JP2006262465A - Apparatus and method for performing video synchronization by parsing a time stamp from a packet stored in a buffer - Google Patents
Apparatus and method for performing video synchronization by parsing a time stamp from a packet stored in a buffer Download PDFInfo
- Publication number
- JP2006262465A JP2006262465A JP2006064300A JP2006064300A JP2006262465A JP 2006262465 A JP2006262465 A JP 2006262465A JP 2006064300 A JP2006064300 A JP 2006064300A JP 2006064300 A JP2006064300 A JP 2006064300A JP 2006262465 A JP2006262465 A JP 2006262465A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- buffer
- time stamp
- extracted
- time
- 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)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
【課題】バッファに貯蔵されたパケットからタイムスタンプをパーシングしてビデオ同期化を遂行する装置及び方法を提供する。
【解決手段】MPEG PESの複数のパケットをバッファに貯蔵する段階と、バッファから貯蔵されたパケットを引き出す段階と、引き出されたパケットをパーシングしてタイムスタンプを復元する段階と、復元されたタイムスタンプと基準時間とを比較する段階と、復元されたタイムスタンプと基準時間の比較結果によって引き出されたパケットのデータをデコーディングすることを制御する段階とを含む。従って、両方向コーディングを考慮する必要がなく、PTSのみを比較/制御部に伝達しても良いため、ビデオ伝送時よりも動作を単純化できる。
【選択図】図3An apparatus and method for performing video synchronization by parsing a time stamp from a packet stored in a buffer.
Storing a plurality of MPEG PES packets in a buffer; extracting a packet stored from the buffer; parsing the extracted packet to restore a timestamp; and a restored timestamp And a reference time, and a step of controlling decoding of the data of the packet extracted by the comparison result between the restored time stamp and the reference time. Therefore, it is not necessary to consider bidirectional coding, and only the PTS may be transmitted to the comparison / control unit, so that the operation can be simplified as compared with video transmission.
[Selection] Figure 3
Description
本発明は、ディジタル圧縮方法に係り、より詳しくは、圧縮されたディジタル情報を同期化デコーディングする方法に関する。 The present invention relates to a digital compression method, and more particularly, to a method for synchronously decoding compressed digital information.
動映像を圧縮に関する標準であるMPEG−2規格は、ディジタルテレビジョン(DTV)放送システムに適用され、この規格を適用したDTVレシーバが開発されている。MPEG−2は、他の多様なビデオ及びオーディオ伝送装置に使用されている。 The MPEG-2 standard, which is a standard for compressing moving images, is applied to a digital television (DTV) broadcasting system, and a DTV receiver to which this standard is applied has been developed. MPEG-2 is used in various other video and audio transmission devices.
一般的なMPEG−2伝送で、エレメンタリストリーム(Elementary Stream;ES)(すなわち、オーディオ、ビデオ及び/又はデータストリーム)はパケット化されて、パケット化されたエレメンタリストリーム(Packetized Elementary Stream;PES)を形成する。エレメンタリストリーム(ES)は、伝送ストリーム(Transport Stream;TS)の他のパケット化されたエレメンタリストリーム(PES)と共に多重化される。ここで、伝送ストリーム(TS)は、無線、有線又は光ケーブルなどの通信媒体を介して連続的に伝送されるストリームを言う。ビデオ装置で、パケット化されたエレメンタリストリームは、ピクチャスタートコード(PSC)と多くの種類のタイムスタンプとを含む。ここで、ピクチャスタートコードは、映像データの開始を表示するためのコードである。このようなタイムスタンプは、DTS(Decoding Time Stamp)とPTS(Presentation Time Stamp)とを含む。DTSは、デコーディング時点を示すタイムスタンプであり、PTSはエンコーディングされた映像のディスプレイ時間を示す。一般に、DTSとPTSとは、全てI−ピクチャ(Intra−Coded Pictures)とP−ピクチャ(Predictive−coded Pictures)に用いられるために伝送される。しかしながら、PTSは、B−ピクチャ(Bidirectionally predictive−coded Pictures)に用いられるために伝送される。一般的なデコーダは、エレメンタリストリームデータとタイムスタンプとをPESから抽出する。抽出されたエレメンタリストリームデータは、バッファに貯蔵され、抽出されたタイムスタンプはメモリに貯蔵される。タイムスタンプは、デコーディングのためにエレメンタリストリームデータを選択的に出力するのに使用するバッファのポインタと連関する。 In general MPEG-2 transmission, an elementary stream (ES) (that is, an audio, video and / or data stream) is packetized, and a packetized elementary stream (PES). Form. The elementary stream (ES) is multiplexed together with other packetized elementary streams (PES) of the transport stream (TS). Here, the transmission stream (TS) refers to a stream that is continuously transmitted via a communication medium such as wireless, wired, or optical cable. In a video device, a packetized elementary stream includes a picture start code (PSC) and many types of time stamps. Here, the picture start code is a code for displaying the start of video data. Such a time stamp includes a DTS (Decoding Time Stamp) and a PTS (Presentation Time Stamp). DTS is a time stamp indicating a decoding time point, and PTS indicates a display time of encoded video. In general, DTS and PTS are all transmitted for use in I-pictures (Intra-Coded Pictures) and P-pictures (Predictive-coded Pictures). However, the PTS is transmitted for use in B-pictures (Bidirectionally predictive-coded pictures). A general decoder extracts elementary stream data and a time stamp from the PES. The extracted elementary stream data is stored in a buffer, and the extracted time stamp is stored in a memory. The time stamp is associated with a pointer to a buffer used to selectively output elementary stream data for decoding.
このようなプロセスに使用する一般的なレシーバの構造が図1に示されている。伝送ストリーム逆多重化部(Transport Stream Demultiplexer)10は、伝送ストリームデパケット化部(Transport Stream Depacketizer)11とPES逆多重化部12とを含む。伝送ストリームデパケット化部11は、入力されたTSを多重化してPESを作る。PES逆多重化部12は、PESのパケットヘッダをパーシングし、抽出されたヘッダ情報(タイムスタンプを含む)をタイムスタンプメモリ40に貯蔵する。また、PES逆多重化部12は、抽出されたエレメンタリストリームデータをESバッファ20に貯蔵する。タイムスタンプ抽出部50は、タイムスタンプメモリ40に貯蔵されたヘッダ情報からタイムスタンプを抽出して貯蔵する。抽出されたタイムスタンプは比較/制御部60に伝達される。デコーダ30は、ESバッファ20に貯蔵されたエレメンタリデータをデコーディングするとき同期化のためタイムスタンプを使用する。比較/制御部60は、基準時間とタイムスタンプに貯蔵されたSTC(System Time Clock)とを比較してバッファリングされたエレメンタリストリームデータをデコーディングし、ディスプレイするための制御信号を発生する場合に用いられる。デコーダ30は、このような制御信号に応答して、ESバッファ20に貯蔵されたエレメンタリストリームをデコーディングし、デコーディングされたデータをディスプレイ装置70に提供する。これにより、ディスプレイ装置70は、デコーディングされたデータを画面に表示する。
A typical receiver structure for use in such a process is shown in FIG. The transport stream demultiplexer (Transport Stream Demultiplexer) 10 includes a transport stream depacketizer 11 and a PES demultiplexer 12. The
図1に示されたシステムにおいて、タイムスタンプは、図2に示されたようにポインタを用いて対応するエレメンタリストリームデータのESバッファ20内の貯蔵位置に連関するようにタイムスタンプメモリ40に貯蔵される。比較/制御部60は、エレメンタリデータがESバッファ20から出力されてデコーダ30に伝達されるように制御するため、タイムスタンプメモリ40からデコーディングされるエレメンタリストリームデータと連関しているタイムスタンプを探してSTCと比較する。これと類似した内容が特許文献1に開示されている。また、特許文献2には入力パケットをパーシングし、タイムスタンプを分析することに関する技術が掲載されている。
本発明の技術的課題は、MPEGビデオ又はオーディオPESのようなパケット化されたコードストリームを処理する方法を提供することにある。 The technical problem of the present invention is to provide a method for processing a packetized code stream such as MPEG video or audio PES.
前述した技術的課題を達成するための本発明の特徴によれば、暗号ストリーム処理方法は、暗号ストリームの複数のパケットをバッファに貯蔵する段階と、バッファから貯蔵されたパケットを引き出す段階と、引き出されたパケットをパーシングしてタイムスタンプを復元する段階と、復元されたタイムスタンプと基準時間とを比較する段階と、復元されたタイムスタンプと基準時間との比較結果によって引き出されたパケットのデータをデコーディングすることを制御する段階とを含む。ここで、貯蔵されたパケットを引き出す段階は、バッファから先ず引き出されたパケットのタイムスタンプと基準時間とを比較した先行比較結果によってバッファから貯蔵されたパケットを引き出す段階を含む。一実施形態において、基準時間と復元されたタイムスタンプとの比較結果によって引き出されたパケットのデータをデコーディングすることを制御する段階は、基準時間より以前時間を示すタイムスタンプに対応するパケットを先ずデコーディングすることと、基準時間と一致する時間を示すタイムスタンプに対応するパケットをデコーディングすることと、基準時間後の時間を示すタイムスタンプに対応するパケットをデコーディングしてバッファリングすることを含む。 According to the characteristics of the present invention for achieving the technical problem described above, a method for processing an encrypted stream includes a step of storing a plurality of packets of the encrypted stream in a buffer, a step of extracting the stored packet from the buffer, and an extraction. The packet is extracted by parsing the recovered packet and restoring the timestamp, comparing the restored timestamp with the reference time, and comparing the restored timestamp with the reference time. Controlling the decoding. Here, the step of pulling out the stored packet includes the step of pulling out the stored packet from the buffer according to the result of the preceding comparison in which the time stamp of the packet first extracted from the buffer is compared with the reference time. In one embodiment, the step of controlling the decoding of the packet data derived from the comparison result between the reference time and the recovered time stamp includes firstly selecting a packet corresponding to a time stamp indicating a time before the reference time. Decoding, decoding a packet corresponding to a time stamp indicating a time corresponding to the reference time, and decoding and buffering a packet corresponding to a time stamp indicating a time after the reference time. Including.
他の実施形態において、暗号ストリーム処理方法は、バッファに暗号ストリームの複数のパケットを貯蔵する段階と、バッファから貯蔵されたパケットを順次に処理する段階とを含む。この順次に処理する段階は、バッファから貯蔵されたパケットを順次に引き出す段階と、引き出されたパケットそれぞれをパーシングしてタイムスタンプを復元する段階と、復元されたタイムスタンプそれぞれを基準時間と比較する段階と、復元されたタイムスタンプそれぞれと基準時間との比較結果によって引き出されたパケットを選択的にデコーディングする段階とを含む。ここで、バッファに貯蔵されたパケットを順次に処理する段階は、バッファから先ず引き出されたパケットのタイムスタンプと基準時間とを比較した先行比較結果によってバッファから貯蔵されたパケットを引き出す段階を含む。 In another embodiment, the cryptographic stream processing method includes storing a plurality of packets of the cryptographic stream in a buffer and sequentially processing the packets stored from the buffer. The sequential processing includes sequentially extracting packets stored from the buffer, parsing each extracted packet to restore a time stamp, and comparing each restored time stamp with a reference time. And a step of selectively decoding a packet extracted according to a comparison result between each restored time stamp and a reference time. Here, the step of sequentially processing the packets stored in the buffer includes the step of extracting the packet stored from the buffer according to the result of the preceding comparison in which the time stamp of the packet first extracted from the buffer is compared with the reference time.
他の実施形態において、パケット化された暗号ストリーム処理装置は、暗号ストリームの複数のパケットを含むバッファから貯蔵されたパケットを順次に引き出し、引き出されたパケットそれぞれをパーシングしてタイムスタンプを復元し、復元されたタイムスタンプそれぞれを基準時間と比較し、復元されたタイムスタンプそれぞれと基準時間との比較結果によって引き出されたパケットを選択的にデコーディングするプロセッサを含む。ここで、このプロセッサは、バッファから先ず引き出されたパケットのタイムスタンプと基準時間とを比較した先行比較結果によってバッファから貯蔵されたパケットを引き出す。 In another embodiment, the packetized cryptographic stream processing apparatus sequentially retrieves the stored packets from a buffer including a plurality of packets of the cryptographic stream, parses each extracted packet, and restores the time stamp. A processor is included that compares each restored timestamp with a reference time and selectively decodes a packet derived from the comparison result between each restored timestamp and the reference time. Here, the processor retrieves the packet stored from the buffer according to the result of the preceding comparison in which the time stamp of the packet first extracted from the buffer is compared with the reference time.
他の実施形態において、暗号ストリーム処理プログラムを貯蔵する貯蔵媒体は、暗号ストリームの複数のパケットを含むバッファから貯蔵されたパケットを順次に引き出し、引き出されたパケットそれぞれをパーシングしてタイムスタンプを復元し、復元されたタイムスタンプそれぞれを基準時間と比較し、復元されたタイムスタンプそれぞれと基準時間との比較結果によって引き出されたパケットを選択的にデコーディングするプログラムコードを含む。ここで、プログラムコードは、バッファから先ず引き出されたパケットのタイムスタンプと基準時間とを比較した先行比較結果によってバッファから貯蔵されたパケットを引き出す。 In another embodiment, the storage medium storing the cryptographic stream processing program sequentially extracts the stored packets from a buffer including a plurality of packets of the cryptographic stream, and parses each extracted packet to restore the time stamp. Each of the restored time stamps is compared with a reference time, and a program code for selectively decoding a packet extracted based on a comparison result between each restored time stamp and the reference time is included. Here, the program code retrieves the packet stored from the buffer based on the result of the preceding comparison that compares the time stamp of the packet first extracted from the buffer with the reference time.
本発明のバッファに貯蔵されたパケットからタイムスタンプをパーシングしてビデオ同期化を実行する装置及び方法は、両方向コーディングを考慮する必要がなく、PTSのみを比較/制御部に伝達しても良いため、ビデオ伝送時よりも動作を単純化できる。 The apparatus and method for performing the video synchronization by parsing the time stamp from the packet stored in the buffer of the present invention does not need to consider bidirectional coding, and may transmit only the PTS to the comparison / control unit. The operation can be simplified compared to video transmission.
以下、添付した図面を参照して本発明の好適な実施形態を詳細に説明する。しかしながら、本発明は、以下で開示される実施形態に限定されるものではなく、相異なる多様な形態で実現されるものであり、本実施形態は、本発明の開示が完全となり、当業者に発明の範疇を完全に知らせるために提供されるものであり、本発明は、特許請求の範囲の記載に基づいて決められなければならない。なお、明細書全体にかけて同一参照符号は同一構成要素を示すものとする。 Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but can be realized in various different forms. The present embodiment is intended to complete the disclosure of the present invention, and to those skilled in the art. The present invention is provided to fully inform the scope of the invention, and the present invention should be determined based on the description of the claims. Note that the same reference numerals denote the same components throughout the specification.
図3は、本発明の一実施形態によってビデオエンコーディング、伝送そしてデコーディングのためのシステム(例えば、ディジタルテレビジョンシステム)のレシーバを示すブロック図である。MPEGエンコーダ312から発生したエンコーディングされたビデオエレメンタリストリームは、パケット化部314でパケット化される。パケット化されたエレメンタリストリームは、伝送ストリーム多重化部316で他のストリームと共に多重化されて伝送ストリームになる。このような作業は、この技術の属する分野の当業者によく知られた内容であり、詳細な内容説明は省略する。
FIG. 3 is a block diagram illustrating a receiver of a system (eg, a digital television system) for video encoding, transmission, and decoding according to an embodiment of the present invention. The encoded video elementary stream generated from the
伝送ストリームは、伝送経路315を介して伝送ストリーム逆多重化部322に伝達される。伝送ストリーム逆多重化部322は、例えば受信機(レシーバ)に含まれる。伝送経路315は、例えばミキサ、送信器(Transmitter)、アンテナ、媒体変換器(Media Transducers)、ダウンコンバータ、復号化器などを含むことができる。また、伝送経路315は、無線、有線、又は光ケーブル、レコーディング媒体(例えば、マグネチック貯蔵媒体、半導体貯蔵媒体、光学的貯蔵媒体など)を含む。伝送ストリーム逆多重化部322は、TSを逆多重化してPESを復旧する。PESのパケットは、PESパケットバッファ324に貯蔵される。PESパケットバッファ324に貯蔵されたPESパケットは、同期化部326によって復元される。同期化部326は、PESパケットを用いてビデオデータを復元し、デコーディング及び映像生成部328に伝達する。デコーディング及び映像生成部328は、パケットに含まれたタイムスタンプと同期化部326から伝達されたSTCとを比較して、入力されたビデオデータのデコーディング及び再生が時間上に先立つか、或いは遅くならないように制御する。
The transmission stream is transmitted to the transmission
図4は、本発明の他の実施形態によるレシーバ400を含むビデオエンコーディング、伝送、デコーディングシステムを示すブロック図である。レシーバ400は、伝送ストリーム逆多重化部410を含む。伝送ストリーム逆多重化部410は、TSを逆多重化してPESを発生する。PESのパケットは、PESパケットバッファ420に貯蔵される。同期化部430は、PESパケットバッファ420からパケットが入力されてビデオデータを抽出する。また、同期化部430は、抽出したビデオデータをデコーダ440に伝達する。同期化部430は、入力されたパケットからタイムスタンプを抽出して比較/制御部450に伝達する。比較制御部450は、デコーダ440に制御信号を発生する。比較/制御部450は、タイムスタンプとシステムタイムクロックとを比較し、デコーダ440に制御信号を発生する。デコーダ440は、制御信号に応答してペイロードをデコーディングし、デコーディングされた映像データを映像生成部460に出力する。
FIG. 4 is a block diagram illustrating a video encoding, transmission, and decoding system including a
図5は、本発明の一実施形態によって図4に示されたレシーバの同期化部430´を示すブロック図である。同期化部430´はシンタックスプロセッサ432を含む。シンタックスプロセッサ432は、PESパケットバッファ420から出力されたPESのパケットをパーシングしてヘッダとペイロードとを抽出する。抽出されたヘッダは、タイムスタンプを含み、ヘッダ貯蔵部434に貯蔵される。PESパケットのパーシング時にシンタックスプロセッサ432は、マイクロプロセッサ436にインタラプトを送る。マイクロプロセッサ436は、ヘッダ貯蔵部434に貯蔵されたヘッダからタイムスタンプを抽出して、タイムスタンプ貯蔵部438に臨時的に貯蔵する。貯蔵されたタイムスタンプは比較/制御部450に伝達される。
FIG. 5 is a block diagram illustrating the
比較/制御部450に伝達されたタイムスタンプ(例えば、PTS又はDTS)は、映像のタイプによって変わる。例えば、両方向コーディングが不要な場合に(すなわち、B−ピクチャがない場合に)、マイクロプロセッサ436は、I−ピクチャとP−ピクチャのためのPTSを抽出して比較/制御部450に伝達する。しかしながら、両方向コーディングが必要な場合に(すなわち、PESパケットがB−ピクチャを含む場合に)I−ピクチャとP−ピクチャとが先ずデコーディングされなければならない。なぜならば、I−ピクチャとP−ピクチャとがB−ピクチャのソースデータとして役割を果たすためである。PTSは、映像データがデコーダ440で出力される時点を示す。DTSは映像データがデコーディングされる時点を示す。従って、同期化部430は、I−ピクチャとP−ピクチャとに関するDTS及び/又はPTSを抽出して比較/制御部450に伝達する。DTS及び/又はPTSはSTCと比較される。
The time stamp (for example, PTS or DTS) transmitted to the comparison /
図6は、本発明の他の実施形態によるデコーディング動作を示す流れ図である。図4及び図5と共に図6を参照すれば、複数のPESパケットは、PESパケットバッファ420に貯蔵される(610)。PESパケットは、PESパケットバッファ420から引き出される(620)。シンタックスプロセッサ432は、引き出されたパケットをパーシングし、ヘッダ情報とペイロードとを抽出する。また、シンタックスプロセッサ432は、抽出されたヘッダ情報をヘッダ貯蔵部434に貯蔵し、ペイロードをデコーダ440に伝達する(630)。シンタックスプロセッサ432は、パーシング時にインタラプトをマイクロプロセッサ436に送る(640)。マイクロプロセッサ436は、ヘッダ貯蔵部438に貯蔵されたヘッダ情報から対応するタイムスタンプを抽出して比較/制御部450に伝達する(650)。比較/制御部450は、タイムスタンプをSTCと比較し(660)、比較結果によってデコーダ440を制御する。すなわち、比較/制御部450は、デコーダが映像データをデコーディングするか、なければスキップ又は反復することであるか否かを決定する(670)。シンタックスプロセッサ432は、バッファ420に貯蔵されたパケットを順次に引き出して前述したプロセッサを反復する(630〜670)。
FIG. 6 is a flowchart illustrating a decoding operation according to another embodiment of the present invention. Referring to FIG. 6 together with FIGS. 4 and 5, a plurality of PES packets are stored in the PES packet buffer 420 (610). The PES packet is extracted from the PES packet buffer 420 (620). The
本発明の一実施形態において、シンタックスプロセッサ432は、一定に増加するポインタによって先入先出方式でPESパケットをPESパケットバッファ420から引き出す。しかしながら、シンタックスプロセッサ432がPESバッファからPESパケットを引き出す方式は変えることもでき、タイムスタンプとSTCとの比較結果によって選択的にPESパケットを引き出すこともできる。例えば、比較結果STCより遅い時点のパケットがPESパケットバッファ420から引き出されると判断すれば、シンタックスプロセッサ432は、STCに合わせるため、幾つかのパケットの引き出しを飛び越えても良い。すなわち、シンタックスプロセッサ432は、バッファをアクセスする場合に用いられるポインタ値を増加させてSTCに一致する後順位パケットを引き出しても良い。もし比較結果が、STCより早い時点のパケットが引き出されると判断すれば、シンタックスプロセッサ432は、ポインタ値をホールドし、同一のパケットが所定時間の間出力されるようにしても良い。
In one embodiment of the present invention, the
比較/制御部450は、デコーダ440を他の方式で制御する。例えば、タイムスタンプとSTCとの比較結果タイムスタンプがSTCより遅い場合に(すなわち、タイムスタンプがSTCより大きい場合に)、比較/制御部450は、デコーダ440が当該映像データ(ペイロード)をデコーディング及び遅延して映像生成部460に出力するように制御する。逆に、タイムスタンプがSTCより早い場合に(すなわち、タイムスタンプがSTCより小さい場合に)は、比較/制御部450は、デコーダ440が当該映像データのデコーディングをスキップするように制御する。タイムスタンプとSTCとが一致する場合には、比較/制御部450は、デコーダ440が当該映像データをデコーディングして映像生成部460に出力するようにする。このような方式の利点は、バッファリングされたPESパケットのタイムスタンプをパーシングしながら、同時にSTCと個別的に比較できることである。従って、メモリなどに貯蔵されたタイムスタンプを検索及び引き出してSTCと比較する方式の従来技術で発生できる同期化誤謬の問題を克服できる。
The comparison /
本発明の他の実施形態によれば、前述したプロセッサをオーディオストリームにも同様に適用できる。図7は、本発明の他の実施形態によってオーディオエンコーディング、伝送及びデコーディングを実行するシステムを示すブロック図である。MPEGエンコーダ712でエンコーディングされたオーディオエレメンタリストリームは、パケット化部714でパケット化されPESになる。伝送ストリーム多重化部716は、PESを他のストリームと共に多重化して伝送ストリームを生成する。
According to another embodiment of the present invention, the above-described processor can be similarly applied to an audio stream. FIG. 7 is a block diagram illustrating a system for performing audio encoding, transmission, and decoding according to another embodiment of the present invention. The audio elementary stream encoded by the
TSは、伝送経路715を介して伝送ストリーム逆多重化部722に伝送される。伝送ストリーム逆多重化部は、例えばレシーバに含まれる。伝送経路715は、例えばミキサ、送信器、アンテナ、媒体変換器、ダウンコンバータ、復号化器などを含むことができる。また、伝送経路715は、無線、有線、又は光ケーブル、レコーディング媒体(例えば、マグネチック貯蔵媒体、半導体貯蔵媒体、光学的貯蔵媒体など)を含む。伝送ストリーム逆多重化部722は、TSを逆多重化してPESを復旧する。PESのパケットは、PESパケットバッファ724に貯蔵される。PESパケットバッファ724に貯蔵されたPESパケットは、同期化部726によって復元される。同期化部726は、PESパケットを用いてオーディオデータを復元し、デコーディング及び音響生成部728に伝達する。デコーディング及び音響生成部728は、パケットに含まれたタイムスタンプと同期化部726から伝達されたSTCとを比較して、入力されたオーディオデータのデコーディング及び再生が時間上に先立つか、或いは遅くならないように制御する。
The TS is transmitted to the transmission
図8は、本発明の他の実施形態によるレシーバ800を含むオーディオエンコーディング、伝送、デコーディングシステムを示すブロック図である。レシーバ800は、伝送ストリーム逆多重化部810を含む。伝送ストリーム逆多重化部810は、TSを逆多重化してPESを発生する。PESのパケットは、PESパケットバッファ820に貯蔵される。同期化部830は、PESパケットバッファ820からパケットが入力されてオーディオデータを抽出する。また、同期化部830は、抽出したオーディオデータをデコーダ840に伝達する。同期化部430は、入力されたパケットからタイムスタンプを抽出して比較/制御部850に伝達する。比較制御部850は、デコーダ840に制御信号を発生する。比較/制御部850は、タイムスタンプとシステムタイムクロックとを比較し、デコーダ840に制御信号を発生する。デコーダ840は、制御信号に応答してペイロードをデコーディングし、デコーディングされた音響データをオーディオ生成部860に出力する。
FIG. 8 is a block diagram illustrating an audio encoding, transmission, and decoding system including a
図9は、本発明の一実施形態によって図8に示されたレシーバの同期化部830´を示すブロック図である。同期化部830´は、シンタックスプロセッサ832を含む。シンタックスプロセッサ832は、PESパケットバッファ820から出力されたPESのパケットをパーシングしてヘッダとペイロードとを抽出する。抽出されたヘッダは、タイムスタンプを含み、ヘッダ貯蔵部834に貯蔵される。PESパケットのパーシング時に、シンタックスプロセッサ832は、マイクロプロセッサ836にインタラプトを送る。マイクロプロセッサ836は、ヘッダ貯蔵部834に貯蔵されたヘッダからタイムスタンプを抽出して、タイムスタンプ貯蔵部838に臨時的に貯蔵する。貯蔵されたタイムスタンプは、比較/制御部850に伝達される。図5の同期化部430´とは違って、オーディオ同期化部830´は両方向コーディングを考慮する必要がない。同期化部830´は、PTSのみを比較/制御部850に伝達しても良いため、ビデオ伝送時よりも動作が単純化される。以下、スキップ及び反復動作は前述したことと類似する。
FIG. 9 is a block diagram illustrating a
本発明のデコーディング及びデコーディング装置は、MPEGプログラムストリーム(PS)のパケットをデコーディングする場合にも適用でき、ひいてはMPEG−2規格によるパケットを用いた通信にも適用できる。 The decoding and decoding apparatus according to the present invention can be applied to decoding of MPEG program stream (PS) packets, and thus can also be applied to communication using packets according to the MPEG-2 standard.
312:MPEGエンコーダ
314:パケット化部
315:伝送経路
316:伝送ストリーム多重化部
322:伝送ストリーム逆多重化部
324:PESパケットバッファ
326:同期化部
328:デコーディング及び映像生成部
312: MPEG encoder 314: Packetization unit 315: Transmission path 316: Transmission stream multiplexing unit 322: Transmission stream demultiplexing unit 324: PES packet buffer 326: Synchronization unit 328: Decoding and video generation unit
Claims (26)
前記バッファから貯蔵されたパケットを引き出す段階と、
前記引き出されたパケットをパーシングしてタイムスタンプを復元する段階と、
前記復元されたタイムスタンプと基準時間とを比較する段階と、
前記復元されたタイムスタンプと基準時間との前記比較結果によって前記引き出されたパケットのデータをデコーディングすることを制御する段階と
を含むことを特徴とする暗号ストリーム処理方法。 Storing a plurality of packets of the cryptographic stream in a buffer;
Retrieving stored packets from the buffer;
Parsing the extracted packet to restore a time stamp; and
Comparing the restored timestamp with a reference time;
And a step of controlling decoding of the extracted packet data according to the comparison result between the restored time stamp and a reference time.
を特徴とする請求項1に記載の暗号ストリーム処理方法。 The step of extracting the stored packet includes a step of extracting the stored packet from the buffer according to a pre-comparison result obtained by comparing a time stamp of the packet first extracted from the buffer with the reference time. The encryption stream processing method according to claim 1.
を特徴とする請求項2に記載の暗号ストリーム処理方法。 The step of extracting a packet stored from the buffer according to a result of preceding comparison comparing the time stamp of the packet first extracted from the buffer and the reference time includes the time stamp of the packet first extracted from the buffer and the reference time. The encryption stream processing method according to claim 2, further comprising: controlling a pointer used to access the buffer according to a preceding comparison result obtained by comparing
を特徴とする請求項2に記載の暗号ストリーム処理方法。 Retrieving the stored packet from the buffer according to a result of preceding comparison comparing the time stamp of the packet first extracted from the buffer and the reference time includes re-extracting the stored packet. The cryptographic stream processing method according to claim 2.
を特徴とする請求項1に記載の暗号ストリーム処理方法。 The step of controlling the decoding of the extracted packet data according to the comparison result between the reference time and the restored time stamp includes first decoding a packet corresponding to a time stamp indicating a time before the reference time. The cryptographic stream processing method according to claim 1, further comprising:
を特徴とする請求項1に記載の暗号ストリーム処理方法。 The step of controlling the decoding of the extracted packet data according to the comparison result between the reference time and the restored time stamp includes decoding a packet corresponding to the time stamp indicating a time corresponding to the reference time. The cryptographic stream processing method according to claim 1, further comprising: coding.
を特徴とする請求項1に記載の暗号ストリーム処理方法。 The step of controlling decoding of the extracted packet data according to a comparison result between the reference time and the restored time stamp includes decoding a packet corresponding to a time stamp indicating a time after the reference time. The encryption stream processing method according to claim 1, further comprising: buffering.
を特徴とする請求項1に記載の暗号ストリーム処理方法。 The encryption stream processing method according to claim 1, wherein the encryption data stream includes a PES, and the reference time includes a system time clock.
を特徴とする請求項1に記載の暗号ストリーム処理方法。 The method of claim 1, wherein the encrypted data stream includes video, audio and / or video or audio data stream.
前記バッファから貯蔵されたパケットを順次に処理する段階と
を含み、
前記順次に処理する段階は、
前記バッファから貯蔵されたパケットを順次に引き出す段階と、
前記引き出されたパケットそれぞれをパーシングしてタイムスタンプを復元する段階と、
前記復元されたタイムスタンプそれぞれを基準時間と比較する段階と、
前記復元されたタイムスタンプそれぞれと前記基準時間の比較結果によって前記引き出されたパケットを選択的にデコーディングする段階と
を含むことを特徴とするパケット化されたコードストリーム処理方法。 Storing a plurality of packets of the cryptographic stream in a buffer;
Sequentially processing packets stored from the buffer;
The step of sequentially processing includes:
Sequentially retrieving packets stored from the buffer;
Parsing each of the extracted packets to restore a time stamp; and
Comparing each restored timestamp with a reference time;
And a step of selectively decoding the extracted packet according to the comparison result between each of the restored time stamps and the reference time.
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 The step of sequentially processing the packets stored in the buffer includes the step of extracting the packet stored from the buffer according to a result of preceding comparison that compares the time stamp of the packet first extracted from the buffer with the reference time. The packetized codestream processing method according to claim 10, wherein:
を特徴とする請求項11に記載のパケット化されたコードストリーム処理方法。 The step of extracting a packet stored from the buffer according to a result of preceding comparison comparing the time stamp of the packet first extracted from the buffer and the reference time includes the time stamp of the packet first extracted from the buffer and the reference time. The packetized codestream processing method according to claim 11, further comprising: controlling a pointer used to access the buffer according to a preceding comparison result obtained by comparing
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 The packetized code stream processing according to claim 10, wherein the selectively decoding step includes first decoding a packet corresponding to a time stamp indicating a time before the reference time. Method.
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 The packetized codestream processing according to claim 10, wherein the selectively decoding step includes decoding a packet corresponding to a time stamp indicating a time corresponding to the reference time. Method.
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 The packetized packet of claim 10, wherein the selectively decoding comprises decoding and buffering a packet corresponding to a time stamp indicating a time after the reference time. Code stream processing method.
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 Retrieving the continuously stored packets includes re-retrieving the stored packets from the buffer according to a result of a pre-comparison that compares the time stamp of the first extracted packet from the buffer with the reference time. The packetized code stream processing method according to claim 10.
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 The packetized code stream processing method according to claim 10, wherein the encrypted data stream includes a PES, and the reference time includes a system time clock.
を特徴とする請求項10に記載のパケット化されたコードストリーム処理方法。 The packetized codestream processing method according to claim 10, wherein the encrypted data stream includes video, audio and / or video or audio data stream.
前記バッファから貯蔵されたパケットを順次に引き出す手段と、
前記引き出されたパケットそれぞれをパーシングしてタイムスタンプを復元する手段と、
前記復元されたタイムスタンプそれぞれを基準時間と比較する手段と、
前記復元されたタイムスタンプそれぞれと前記基準時間との前記比較結果によって前記引き出されたパケットを選択的にデコーディングする手段と
を含むことを特徴とするパケット化された暗号ストリーム処理装置。 Means for storing a plurality of packets of the cryptographic stream in a buffer;
Means for sequentially retrieving packets stored from the buffer;
Means for parsing each of the extracted packets to restore a time stamp;
Means for comparing each restored timestamp with a reference time;
A packetized cipher stream processing apparatus comprising: means for selectively decoding the extracted packet according to the comparison result between each restored time stamp and the reference time.
を特徴とする請求項19に記載のパケット化された暗号ストリーム処理装置。 The means for sequentially extracting the stored packets from the buffer includes means for extracting the stored packets from the buffer according to a result of preceding comparison that compares the time stamp of the packet first extracted from the buffer with the reference time. The packetized cryptographic stream processing apparatus according to claim 19, wherein
を特徴とする請求項19に記載のパケット化された暗号ストリーム処理装置。 The packetized encrypted stream processing apparatus according to claim 19, further comprising the buffer.
を特徴とするパケット化された暗号ストリーム処理装置。 Sequentially retrieving packets stored from a buffer including a plurality of packets of a cryptographic stream, parsing each of the extracted packets to restore a timestamp, comparing each of the restored timestamp with a reference time, and A packetized cipher stream processing apparatus comprising: a processor that selectively decodes the extracted packet according to a comparison result between each restored time stamp and the reference time.
を特徴とする請求項22に記載のパケット化された暗号ストリーム処理装置。 23. The packetized packet of claim 22, wherein the processor retrieves a packet stored from the buffer according to a result of preceding comparison that compares a time stamp of a packet that is first extracted from the buffer and the reference time. Cryptographic stream processing device.
を特徴とする請求項22に記載のパケット化された暗号ストリーム処理装置。 The packetized cipher stream processing apparatus according to claim 22, further comprising the buffer.
を特徴とするパケット化された暗号ストリーム処理プログラムを貯蔵する貯蔵媒体。 Sequentially retrieving packets stored from a buffer including a plurality of packets of a cryptographic stream, parsing each of the extracted packets to restore a timestamp, comparing each of the restored timestamp with a reference time, and A storage medium for storing a packetized encrypted stream processing program, comprising: a program code for selectively decoding the extracted packet according to a comparison result between each restored time stamp and the reference time.
を特徴とする請求項25に記載のパケット化された暗号ストリーム処理プログラムを貯蔵する貯蔵媒体。 26. The packetized packet of claim 25, wherein the program code retrieves a packet stored from the buffer according to a result of a prior comparison that compares a time stamp of the packet first extracted from the buffer with the reference time. A storage medium for storing the encrypted stream processing program.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020050021067A KR20060099687A (en) | 2005-03-14 | 2005-03-14 | Apparatus and method for video synchronization using timestamps |
| US11/358,842 US20060203853A1 (en) | 2005-03-14 | 2006-02-21 | Apparatus and methods for video synchronization by parsing time stamps from buffered packets |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2006262465A true JP2006262465A (en) | 2006-09-28 |
Family
ID=37101120
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006064300A Pending JP2006262465A (en) | 2005-03-14 | 2006-03-09 | Apparatus and method for performing video synchronization by parsing a time stamp from a packet stored in a buffer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2006262465A (en) |
-
2006
- 2006-03-09 JP JP2006064300A patent/JP2006262465A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5133567B2 (en) | Codec change method and apparatus | |
| US20050180512A1 (en) | Method and apparatus for determining timing information from a bit stream | |
| JP2002016918A (en) | Multimedia multiplex transmission system and time information generation method | |
| CN1157065C (en) | Video decoder for synchronous decoding displaying using image as unit | |
| JP5369599B2 (en) | Video encoding apparatus and video encoding method | |
| WO2004071085A1 (en) | Code conversion method and device thereof | |
| CN100416689C (en) | Reproducing device and method, and recording medium | |
| JP2001204032A (en) | Mpeg decoder | |
| US8238446B2 (en) | Method and apparatus for reproducing digital broadcasting | |
| CN1838773B (en) | Apparatus and method for video synchronization by analyzing time stamps in buffered packets | |
| JP4613860B2 (en) | MPEG encoded stream decoding apparatus | |
| JP2006262465A (en) | Apparatus and method for performing video synchronization by parsing a time stamp from a packet stored in a buffer | |
| US6556626B1 (en) | MPEG decoder, MPEG system decoder and MPEG video decoder | |
| JP2823806B2 (en) | Image decoding device | |
| JP6464647B2 (en) | Moving image processing method, moving image transmission apparatus, moving image processing system, and moving image processing program | |
| US20120082435A1 (en) | Moving image display device | |
| EP1947846A1 (en) | Video recording and reproducing apparatus and method of reproducing video in the same | |
| US9508389B2 (en) | System, method, and apparatus for embedding personal video recording functions at picture level | |
| JP2001346166A (en) | Method and apparatus for reproducing compressed encoded data | |
| KR100835909B1 (en) | Digital video signal processing device and operation method thereof | |
| JP3671969B2 (en) | Data multiplexing method and multiple data decoding method | |
| JP4373802B2 (en) | Program transmission method, program transmission apparatus, program transmission system, and program transmission program | |
| JP4719602B2 (en) | Video output system | |
| JP2011078068A (en) | System for video transmission | |
| JP2008011430A (en) | Content retransmission method, content reception method, and content reception device |