Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3921986B2 - Synchronizing apparatus and method, digital broadcast receiving apparatus - Google Patents
[go: Go Back, main page]

JP3921986B2 - Synchronizing apparatus and method, digital broadcast receiving apparatus - Google Patents

Synchronizing apparatus and method, digital broadcast receiving apparatus Download PDF

Info

Publication number
JP3921986B2
JP3921986B2 JP2001312420A JP2001312420A JP3921986B2 JP 3921986 B2 JP3921986 B2 JP 3921986B2 JP 2001312420 A JP2001312420 A JP 2001312420A JP 2001312420 A JP2001312420 A JP 2001312420A JP 3921986 B2 JP3921986 B2 JP 3921986B2
Authority
JP
Japan
Prior art keywords
value
reproduction
pts
stc
repeat
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.)
Expired - Fee Related
Application number
JP2001312420A
Other languages
Japanese (ja)
Other versions
JP2002204404A (en
Inventor
洋介 山本
純二 大岩
英資 小関
芳之 千葉
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2001312420A priority Critical patent/JP3921986B2/en
Publication of JP2002204404A publication Critical patent/JP2002204404A/en
Application granted granted Critical
Publication of JP3921986B2 publication Critical patent/JP3921986B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、MPEG(Moving Picture Coding Experts Group )2のストリームにおいて、オーディオとビデオとの同期をとるのに用いて好適なディジタル信号の同期装置及び方法、並びに、ディジタル放送受信装置に関する。
【0002】
【従来の技術】
ディジタル衛星放送では、MPEG2のトランスポートストリームが伝送される。MPEG2のストリームでは、そのヘッダに、再生の時間を示すPTS(Presentation Time Stamp )が送られている。このPTSと、クロックシステム内部の基準クロックSTC(System Time Clock )とが比較され、PTSとSTCとが一致したときに、デコードを行うような処理が行われる。これにより、ビデオとオーディオ間の同期再生が実現される。
【0003】
なお、ビデオでは特殊な符号化ストリームの送出順序があることから、DTS(Decoding Time Stamp )が設けられる。すなわち、IピクチャとPピクチャは、Bピクチャより先行する。このため、MPEG2のストリームには、PTSとDTSとが異なる場合には、両方付加される。同じ場合には、PTSだけ付加される。
【0004】
【発明が解決しようとする課題】
このように、MPEG2のストリームでは、PTSとSTCとを比較し、PTSとSTCとが一致したら、デコードを行うことで、ビデオとオーディオとの同期を保つようにしている。
【0005】
ところが、放送局から送られてくるPTSは、常に正しいものであるとは限らない。放送局からの信号によっては、不正な間隔でジッタを伴うPTS値や、不正に遅延されたPTS値が送られることがある。
【0006】
従来では、上述のように、PTSとSTCとを比較し、PTSとSTCとが一致したら、デコードを行うような処理を常に行っていたため、ジッタを伴うPTS値や、不正に遅延されたPTS値が送られてくると、その影響を受けて、画像に乱れや音切れを発生させるいう問題がある。
【0007】
したがって、この発明の目的は、PTSにジッタや遅延があったような場合でも、画面が乱れたり、音切れが発生することを防止できるようにした同期装置及び方法、ディジタル放送受信装置を提供することにある。
【0008】
【課題を解決するための手段】
1の発明は、基準時間情報を生成する基準時間生成手段と、TS(Transport Stream)パケットのストリーム中に含まれる再生時間情報と、基準時間生成手段で生成される基準時間情報とを比較する比較手段と、比較手段による比較結果に基づき、再生時間情報と基準時間情報との時間差が閾値内にあるか否かを判断する判断手段と、ストリーム中に含まれるフレームの再生を制御する再生制御手段とを有し、再生制御手段は、判断手段による判断結果に基づき時間差が閾値内にあると判断されれば、再生時間情報に対応するフレームの再生を開始し、時間差が閾値内にないと判断されれば、再生するフレームをスキップまたはリピートするように制御し、スキップまたはリピートは所定のスキップ回数またはリピート回数を限度として行われ、最初に時間差が閾値内にあると判断されたときに、限度とされるスキップ回数またはリピート回数をより少ない回数に変更するとを特徴とする同期装置である。
【0009】
第2の発明は、基準時間情報を生成する基準時間生成のステップと、TS(Transport Stream)パケットのストリーム中に含まれる再生時間情報と、基準時間生成のステップで生成される基準時間情報とを比較する比較のステップと、比較のステップによる比較結果に基づき、再生時間情報と基準時間情報との時間差が閾値内にあるか否かを判断する判断のステップと、ストリーム中に含まれるフレームの再生を制御する再生制御のステップとを有し、再生制御のステップは、判断のステップによる判断結果に基づき時間差が閾値内にあると判断されれば、再生時間情報に対応するフレームの再生を開始し、時間差が閾値内にないと判断されれば、再生するフレームをスキップまたはリピートするように制御し、スキップまたはリピートは所定のスキップ回数またはリピート回数を限度として行われ、最初に時間差が閾値内にあると判断されたときに、限度とされるスキップ回数またはリピート回数をより少ない回数に変更するとを特徴とする同期方法である。
【0010】
第3の発明は、ディジタル放送を受信する手段と、ディジタル放送の受信信号からTS(Transport Stream)パケットのストリームをデコードする手段と、基準時間情報を生成する基準時間生成手段と、TSパケットのストリーム中に含まれる再生時間情報と、基準時間生成手段で生成される基準時間情報とを比較する比較手段と、比較手段による比較結果に基づき、再生時間情報と基準時間情報との時間差が閾値内にあるか否かを判断する判断手段と、ストリーム中に含まれるフレームの再生を制御する再生制御手段とを有し、再生制御手段は、判断手段による判断結果に基づき時間差が閾値内にあると判断されれば、再生時間情報に対応するフレームの再生を開始し、時間差が閾値内にないと判断されれば、再生するフレームをスキップまたはリピートするように制御し、スキップまたはリピートは所定のスキップ回数またはリピート回数を限度として行われ、最初に時間差が閾値内にあると判断されたときに、限度とされるスキップ回数またはリピート回数をより少ない回数に変更するとを特徴とするディジタル放送受信装置である。
【0011】
PTSの値とSTCの値との差の絶対値が所定の閾値以下であるかどうかを判断し、PTSの値がSTCの値より大きければ、再生時間が実時間より早いものとして、リピートカウンタで示される値を限度として、同一フレームを繰り返し再生させ、PTSの値がSTCの値より大きくなければ、再生時間が実時間より遅いものとして、スキップカウンタで示される値を限度として、フレームのデコードをスキップして再生させて、PTSの値とSTCの値との差の絶対値が所定の閾値以内になるように追い込むような処理を行っている。そして、初期同期のときの閾値を、一度同期が確立した後の閾値より狭い値とすると共に、初期同期のときのリピートカウンタのセット値及びスキップカウンタのセット値を、一度同期が確立した後のリピートカウンタのセット値及びスキップカウンタのセット値より大きくしている。
【0012】
これにより、初期同期のときには、PTSの値とSTCの値とが確実に一致するまで同期がとられ、一度同期が確立した後には、PTSの値とSTCの値との同期がとれなければ、非同期モードで再生されるようになり、初期同期が済んだ後では、PTSの値にジッタを含んでいる場合に、ジッタに引きずられて同期が乱れることがなくなる。
【0013】
【発明の実施の形態】
以下、この発明の実施の形態について図面を参照して説明する。図1は、この発明が適用できるIRD(Integrated Receiver Decoder )の一例を示すものである。
【0014】
図1において、例えば12GHz帯の電波で衛星を介して送られてくるディジタル衛星放送の電波は、パラボラアンテナ1で受信され、パラボラアンテナ1に取り付けられた低雑音コンバータ2で、1GHz帯の信号に変換される。この低雑音コンバータ2の出力がチューナ回路3に供給される。チューナ回路3により、受信信号の中から所定の搬送波周波数の信号が選択され、この信号が中間周波信号に変換される。チューナ回路3には、コントローラ4から周波数設定用の制御信号が供給される。この制御信号に基づいて、受信周波数が設定される。
【0015】
チューナ回路3の出力が復調回路5に供給される。復調回路5により、QPSK(Quadrature Phase Shift Keying )の復調処理が行われる。復調回路5の出力がエラー訂正回路6に供給される。エラー訂正回路6より、エラー訂正処理が行われる。
【0016】
エラー訂正回路6の出力がデスクランブラ7に供給される。デスクランブラ7には、受信されたECM(Entitlement Control Message )データ及びEMM(Entitlement Management Message)データが供給されると共に、ICカードインターフェース9に装着されているICカード8に記憶されているデスクランブル用の鍵データが供給される。また、このECMやEMMのデータにより、録画可能な番組かどうかが判断できる。
【0017】
デスクランブラ7は、この受信されたECMデータ及びEMMデータと、ICカード8の鍵データを用いて、MPEGトランスポートストリームのデスクランブルを行なう。また、ECMデータ及びEMMデータによりコピー禁止かどうかが判断できる。デスクランブルされたMPEG2のトランスポートストリームは、デマルチプレクサ10に送られる。
【0018】
デマルチプレクサ10は、コントローラ4からの指令に基づいて、デスクランブラ7からのストリームの中から、所望のパケットを分離するものである。伝送パケットには、ヘッダ部にパケット識別子(PID)が記述されている。デマルチプレクサ10では、このPIDに基づいて、所望のプログラムの映像パケット及び音声パケットが抽出される。この所望のプログラムの映像パケットは、ビデオ処理回路11に送られ、音声パケットは、オーディオ処理回路12に送られる。
【0019】
ビデオ処理回路11は、デマルチプレクサ10からの映像信号のパケットを受け取り、MPEG2方式のデコード処理を行なって、ビデオデータを形成する。このビデオデータは、NTSCエンコーダ13に供給される。NTSCエンコーダ13で、ビデオ処理回路11でデコードされたビデオデータがNTSC方式のビデオ信号に変換される。NTSCエンコーダ13の出力がビデオ出力端子14に供給される。ビデオ出力端子14からNTSC方式のコンポジットビデオ信号が出力される。
【0020】
オーディオ処理回路12は、デマルチプレクサ10からの音声パケットを受け取り、MPEG方式の音声デコード処理を行なって、データ圧縮前のオーディオデータを形成する。オーディオ処理回路12の出力は、D/Aコンバータ15でアナログオーディオ信号に変換された後、オーディオ出力端子16から出力される。
【0021】
IRDを操作するための入力は、リモートコントローラ18により行われる。リモートコントローラ18からの赤外線コマンド信号は、受光部19で受光され、コントローラ4に送られる。また、モデム17が設けられており、モデム17が電話回線に接続される。
【0022】
この発明は、上述のようなディジタル衛星放送において、MPEGストリームを再生する際に、ビデオとオーディオとの同期をとるのに用いて好適である。
【0023】
図2は、この発明が適用されたビデオとオーディオとの同期回路の構成を示すものである。
【0024】
図2において、デマルチプレクサ101(図1におけるデマルチプレクサ10に対応する)で、PIDを基に、ビデオパケットとオーディオパケットとが分離される。ビデオパケットは、ビデオバッファ102に送られ、オーディオパケットは、オーディオバッファ109に送られる。ビデオバッファ102の出力がビデオ同期処理部103に供給されると共に、ビデオデコード部104(図1におけるビデオ処理回路11に対応する)に供給される。
【0025】
オーディオバッファ109の出力は、オーディオ同期処理部110に供給されると共に、オーディオデコード部111(図1におけるオーディオ処理回路12に対応する)に供給される。
【0026】
また、TSストリーム中には、時刻の基準となるSTCのセット・校正のために、SCR(System Clock Reference(システム時刻基準参照値))と、PCR(Program Clock Reference (プログラム時刻基準参照値))が送られる。このSCRやPCRがSTCカウンタ108に供給される。STCカウンタ108からは、時刻の基準となるSTCが発生される。このSTCは、ビデオ同期処理部103に供給されると共に、オーディオ同期処理部110に供給される。
【0027】
ビデオ同期処理部103及びオーディオ同期処理部110は、PTS(又はDTS)で示される時刻と、システムの基準となるSTCで示される時刻とを比較し、PTSとSTCとが一致したときに、ビデオ信号及びオーディオ信号を再生させることで、ヒデオとオーディオとの同期をとるものである。ビデオ同期処理部103及びオーディオ同期処理部110からは、PTSとSTCとが一致したときに、同期指示信号CMV及びCMAが出力される。
【0028】
ビデオデコード部104には、ビデオバッファ102から、ビデオパケットが供給されると共に、ビデオ同期処理部103から、同期指示信号CMVが供給される。ビデオ同期処理部103から同期指示信号CMVが供給されると、ビデオデコード部104で、MPEG2方式によるビデオデータのデコード処理が行われる。ビデオデコード部104の出力がフレームバッファ105を介してビデオ出力処理部106に供給される。
【0029】
オーディオデコード部111には、オーディオバッファ109から、オーディオパケットが供給されると共に、オーディオ同期処理部110から、同期指示信号CMAが供給される。オーディオ同期処理部110から同期指示信号CMAが供給されると、オーディオデコード部111で、オーディオデータのデコード処理が行われる。オーディオデコード部111の出力がPCMバッファ112を介してオーディオ出力処理部113に供給される。
【0030】
図3は、ビデオ同期処理部103及びオーディオ同期処理部110の構成を示すものである。なお、ビデオ同期処理部103と、オーディオ同期処理部110とは、基本的には、同様に構成されている。
【0031】
図3において、PTS取得部201で、PESヘッダ情報内のPTSが抜き取られる。このPTS取得部201の出力が(PTS−STC)検出部202に供給される。また、STCカウンタ108からのSTCが(PTS−STC)検出部202に供給される。
【0032】
(PTS−STC)検出部202で、STCの値と、PTSの値との差分が求められる。この(PTS−STC)検出部202の出力が同期指示部203に供給される。
【0033】
同期指示部203には、(PTS−STC)検出部202の出力が供給されると共に、ビデオデコード部104又はオーディオデコード部111から、バッファニアフル情報BUFV又はBUFAが供給される。同期指示部203で、(PTS−STC)検出部202の出力と、バッファニアフル情報BUFV又はBUFAとから、後に示す制御処理に従って、同期指示信号CMV又はCMAが生成される。
【0034】
ここで、バッファニアフル情報は、ビデオ処理部においては、ビデオデコード部104で検出されるビデオバッファ内のビデオデータの格納状態がオーバーフローに近いかを示すものである。オーディオ処理部においては、オーディオデコード部111で検出されるオーディオバッファ内のオーディオデータの格納状態がオーバーフローに近いかを示すものである。
【0035】
図4は、ビデオ同期処理部103での同期処理を示すフローチャートである。図4において、先ずスキップカウンタの値がCs1にセットされ、リピートカウンタの値がCr1にセットされる(ステップS1)。リピートカウンタは、PTSの値がSTCの値より大きいときに、再生時間が実際の時刻より早いので、1フレームを繰り返して再生させてPTSの値をSTCの値に近づけるような処理を行う際のリピート回数の制限値を示している。スキップカウンタは、PTSの値がSTCの値より大きくないときに、再生時間が実際の時刻より遅いので、1フレームをスキップして再生させてPTSの値をSTCの値に近づけるような処理を行う際のスキップ回数の制限値を示している。
【0036】
なお、初期同期のときのスキップカウンタの値Cs1及びリピートカウンタの値Cr1は、一度同期が確立した後のスキップカウンタの値Cs2及びリピートカウンタの値Cr2(後述する)よりも大きい値
Cs1>Cs2
Cr1>Cr2
に設定される。
【0037】
すなわち、初期同期のときには、一度、同期の確立が必要であるため、スキップカウンタの値Cs1及びリピートカウンタの値Cr1が大きい値が設定される。
【0038】
(PTS−STC)検出部202の出力から、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下であるか否かが判断される(ステップS2)。
|PTS−STC|≦T1
【0039】
なお、初期同期のときの閾値T1は、一度同期が確立した後の閾値T2(後述する)よりも小さい値
T2>T1
に設定される。
【0040】
すなわち、初期同期のときには、一度、完全に同期の確立させる必要であるため、閾値T1が狭く設定される。
【0041】
ステップS2で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下でなければ、バッファ状態がニアフルであるか否かが判断される(ステップS3)。バッファ状態がニアフルの場合には、同期して復号処理を行うことは困難であるので、ビデオとオーディオの非同期モードとして画像復号処理を行うことが指示される(ステップS4)。
【0042】
ここで、バッファ状態がニアフルではなければ、(PTS−STC)が0より大きいか否かが判断される(ステップS5)。
【0043】
(PTS−STC)が0より大きい場合には、STCで示される時間よりPTSの時間が進んでいるので、再生を遅らせる必要がある。この場合には、リピートカウンタの値が0より大きいか否かが判断され(ステップS6)、リピートカウンタの値が0より大きければ、1フレーム繰り返し表示処理が指示され(ステップS7)、リピートカウンタの値が1減算されて(ステップS8)、ステップS2にリターンされる。
【0044】
このように、STCで示される時間よりPTSの時間が進んでいる場合には、ステップS2、S3、S5、S6、S7、S8のループを繰り返すことにより、再生が遅らされ、PTSの値がSTCの値に近づいてくる。そして、S2、S3、S5、S6、S7、S8のループを繰り返す毎に、ステップS8で、リピートカウンタの値がデクリメントされていく。
【0045】
このようにして、PTSの値がSTCの値に近づいていき、ステップS2で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されたら、画像の復号処理が指示される(ステップS9)。
【0046】
ステップS2、S3、S5、S6、S7、S8の処理を、リピートカウンタの設定値Cs1だけ繰り返しても、ステップS2で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されないときには、ステップS6で、リピートカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとして画像復号処理を行うことが指示される(ステップS4)。
【0047】
ステップS5で、(PTS−STC)が0より小さい場合には、STCで示される時間よりPTSの時間が遅れているので、再生を進める必要がある。この場合には、スキップカウンタの値が0より大きいか否かが判断され(ステップS10)、スキップカウンタの値が0より大きければ、1フレーム、デコードのスキップ処理が指示され(ステップS11)、スキップカウンタの値が1減算されて(ステップS12)、ステップS2にリターンされる。
【0048】
このように、STCで示される時間よりPTSの時間が遅れている場合には、ステップS2、S3、S5、S10、S11、S12のループを繰り返すことにより、再生が進められ、PTSの値がSTCの値に近づいてくる。そして、ステップS2、S3、S5、S10、S11、S12のループを繰り返す毎に、ステップS12で、スキップカウンタの値がデクリメントされていく。
【0049】
このようにして、PTSの値がSTCの値に近づいていき、ステップS2で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されたら、画像の復号処理が指示される(ステップS9)。
【0050】
ステップS2、S3、S5、S10、S11、S12の処理を、スキップカウンタの設定値Cs1だけ繰り返しても、ステップS2で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されないときには、ステップS10で、スキップカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとして画像復号処理を行うことが指示される(ステップS4)。
【0051】
このように、初期同期では、STCで示される時間よりPTSの時間が進んでいる場合には、ステップS2、S3、S5、S6、S7、S8のループを繰り返すことにより、再生が遅らされ、PTSの値がSTCの値に近づけられる。また、STCで示される時間よりPTSの時間が遅れている場合には、ステップS2、S3、S5、S6、S10、S11、S12のループを繰り返すことにより、再生が進められ、PTSの値がSTCの値に近づけられる。このときの、繰り返し数は、スキップカウンタの値及びリピートカウンタの値で示され、このスキップカウンタの値及びリピートカウンタの値Cs1及びCr1は、大きい値に設定される。したがって、確実に同期させるまで、同期処理が行われる。
【0052】
一度、初期同期が済むと、ステップS2で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断され、ステップS9で、画像の復号処理が指示される。
【0053】
それから、スキップカウンタの値がCs2にセットされ、リピートカウンタの値がCr2にセットされる(ステップS13)。なお、初期同期が済んだ後のスキップカウンタの値Cs2及びリピートカウンタの値Cr2は、初期同期でのスキップカウンタの値Cs1及びリピートカウンタの値Cr1よりも小さい値である。
【0054】
そして、(PTS−STC)検出部202の出力から、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下であるか否かが判断される(ステップS14)。
|PTS−STC|≦T2
【0055】
なお、一度同期が済んだ後の閾値T2は、初期同期のときの閾値T1よりも大きい値に設定される。すなわち、一度同期が済んだ後には、PTSの値にジッタを含んでいる場合を考慮して、閾値T2が広く設定される。
【0056】
ステップS14で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下でなければ、バッファ状態がニアフルであるか否かが判断される(ステップS15)。バッファ状態がニアフルの場合には、同期して復号処理を行うことは困難であるので、ビデオとオーディオの非同期モードとして画像復号処理を行うことが指示される(ステップS4)。
【0057】
ここで、バッファ状態がニアフルではなければ、(PTS−STC)が0より大きいか否かが判断される(ステップS16)。
【0058】
(PTS−STC)が0より大きい場合には、STCで示される時間よりPTSの時間が進んでいるので、再生を遅らせる必要がある。この場合には、リピートカウンタの値が0より大きいか否かが判断され(ステップS17)、リピートカウンタの値が0より大きければ、1フレーム繰り返し表示処理が指示され(ステップS18)、リピートカウンタの値が1減算されて(ステップS19)、ステップS14にリターンされる。
【0059】
このように、STCで示される時間よりPTSの時間が進んでいる場合には、ステップS14、S15、S16、S17、S18、S19のループを繰り返すことにより、再生が遅らされ、PTSの値がSTCの値に近づいてくる。そして、ステップS14、S15、S16、S17、S18、S19のループを繰り返す毎に、ステップS19で、リピートカウンタの値がデクリメントされていく。
【0060】
このようにして、PTSの値がSTCの値に近づいていき、ステップS14で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されたら、画像の復号処理が指示される(ステップS9)。
【0061】
ステップS14、S15、S16、S17、S18、S19のループを、リピートカウンタの設定値Cs2だけ繰り返しても、ステップS14で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されないときには、ステップS17で、リピートカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとして画像復号処理を行うことが指示される(ステップS4)。
【0062】
ステップS16で、(PTS−STC)が0より小さい場合には、STCで示される時間よりPTSの時間が遅れているので、再生を進める必要がある。この場合には、スキップカウンタの値が0より大きいか否かが判断され(ステップS20)、スキップカウンタの値が0より大きければ、1フレーム、デコードのスキップ処理が指示され(ステップS21)、スキップカウンタの値が1減算されて(ステップS22)、ステップS14にリターンされる。
【0063】
STCで示される時間よりPTSの時間が遅れている場合には、ステップS14、S15、S16、S20、S21、S22のループを繰り返すことにより、再生が進められ、PTSの値がSTCの値に近づいてくる。そして、ステップS14、S15、S16、S20、S21、S22のループを繰り返す毎に、ステップS22で、スキップカウンタの値がデクリメントされていく。
【0064】
このようにして、PTSの値がSTCの値に近づいていき、ステップS14で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されたら、画像の復号処理が指示される(ステップS9)。
【0065】
ステップS14、S15、S16、S20、S21、S22の処理を、スキップカウンタの設定値Cs2だけ繰り返しても、ステップS14で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されないときには、ステップS20で、スキップカウンタの値が0以上ではないと判断されことになる。この場合には、ビデオとオーディオの非同期モードとして画像復号処理を行うことが指示される(ステップS4)。
【0066】
図5は、オーディオ同期処理部110での同期処理を示すフローチャートである。図5において、先ずスキップカウンタの値がCs1にセットされ、リピートカウンタの値がCr1にセットされる(ステップ51)。なお、初期同期のときのスキップカウンタの値Cs1及びリピートカウンタの値Cr1は、一度同期が確立した後のスキップカウンタの値Cs2及びリピートカウンタの値Cr2(後述する)よりも大きい値
Cs1>Cs2
Cr1>Cr2
に設定される。
【0067】
(PTS−STC)検出部202の出力から、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下であるか否かが判断される(ステップS52)。
|PTS−STC|≦T1
【0068】
なお、初期同期のときの閾値T1は、一度同期が確立した後の閾値T2(後述する)よりも小さい値
T2>T1
に設定される。
【0069】
ステップS52で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下でなければ、バッファ状態がニアフルであるか否かが判断される(ステップS53)。バッファ状態がニアフルの場合には、同期して復号処理を行うことは困難であるので、ビデオとオーディオの非同期モードとしてオーディオ復号処理を行うことが指示される(ステップS54)。
【0070】
ここで、バッファ状態がニアフルではなければ、(PTS−STC)が0より大きいか否かが判断される(ステップS55)。
【0071】
(PTS−STC)が0より大きい場合には、STCで示される時間よりPTSの時間が進んでいるので、再生を遅らせる必要がある。この場合には、リピートカウンタの値が0より大きいか否かが判断され(ステップS56)、リピートカウンタの値が0より大きければ、1オーディオフレーム繰り返し表示処理が指示され(ステップS57)、リピートカウンタの値が1減算されて(ステップS58)、ステップS52にリターンされる。
【0072】
このように、STCで示される時間よりPTSの時間が進んでいる場合には、ステップS52、S53、S55、S56、S57、S58のループを繰り返すことにより、再生が遅らされ、PTSの値がSTCの値に近づいてくる。そして、ステップS52、S53、S55、S56、S57、S58のループを繰り返す毎に、ステップS58で、リピートカウンタの値がデクリメントされていく。
【0073】
このようにして、PTSの値がSTCの値に近づいていき、ステップS52で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されたら、オーディオ復号処理が指示される(ステップS59)。
【0074】
ステップS52、S53、S55、S56、S57、S58のループを、リピートカウンタの設定値Cs1だけ繰り返しても、ステップS52で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されないときには、ステップS56で、リピートカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとしてオーディオ復号処理を行うことが指示される(ステップS54)。
【0075】
ステップS55で、(PTS−STC)が0より小さい場合には、STCで示される時間よりPTSの時間が遅れているので、再生を進める必要がある。この場合には、スキップカウンタの値が0より大きいか否かが判断され(ステップS60)、スキップカウンタの値が0より大きければ、1オーディオフレーム、デコードのスキップ処理が指示され(ステップS61)、スキップカウンタの値が1減算されて(ステップS62)、ステップS52にリターンされる。
【0076】
このように、STCで示される時間よりPTSの時間が遅れている場合には、ステップS52、S53、S55、S60、S61、S62のループを繰り返すことにより、再生が進められ、PTSの値がSTCの値に近づいてくる。そして、ステップS52、S53、S55、S60、S61、S62のループを繰り返す毎に、スキップカウンタの値がデクリメントされていく。
【0077】
このようにして、PTSの値がSTCの値に近づいていき、ステップS52で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されたら、オーディオ復号処理が指示される(ステップS59)。
【0078】
ステップS52、S53、S55、S60、S61、S62のループを、スキップカウンタの設定値Cs1だけ繰り返しても、ステップS52で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断されないときには、ステップS60で、スキップカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとしてオーディオ復号処理を行うことが指示される(ステップS54)。
【0079】
このように、初期同期では、STCで示される時間よりPTSの時間が進んでいる場合には、ステップS52、S53、S55、S56、S57、S58のループを繰り返すことにより、再生が遅らされ、PTSの値がSTCの値に近づけられる。また、STCで示される時間よりPTSの時間が遅れている場合には、ステップS52、S53、S55、S56、S57、S58のループを繰り返すことにより、再生が進められ、PTSの値がSTCの値に近づけられる。このときの、繰り返し数は、スキップカウンタの値及びリピートカウンタの値で示され、このスキップカウンタの値及びリピートカウンタの値Cs1及びCr1は、大きい値に設定される。したがって、確実に同期させるまで、同期処理が行われる。
【0080】
一度、初期同期が済むと、ステップS52で、PTSの値とSTCの値との差の絶対値が所定の閾値T1以下になると判断され、ステップS59で、オーディオの復号処理が指示される。
【0081】
それから、スキップカウンタの値がCs2にセットされ、リピートカウンタの値がCr2にセットされる(ステップS63)。なお、初期同期が済んだ後のスキップカウンタの値Cs2及びリピートカウンタの値Cr2は、初期同期でのスキップカウンタの値Cs1及びリピートカウンタの値Cr1よりも小さい値である。
【0082】
(PTS−STC)検出部202の出力から、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下であるか否かが判断される(ステップS64)。
|PTS−STC|≦T2
【0083】
ステップS64で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下でなければ、バッファ状態がニアフルであるか否かが判断される(ステップS65)。バッファ状態がニアフルの場合には、同期して復号処理を行うことは困難であるので、ビデオとオーディオの非同期モードとしてオーディオ復号処理を行うことが指示される(ステップS54)。
【0084】
ここで、バッファ状態がニアフルではなければ、(PTS−STC)が0より大きいか否かが判断される(ステップS66)。
【0085】
(PTS−STC)が0より大きい場合には、STCで示される時間よりPTSの時間が進んでいるので、再生を遅らせる必要がある。この場合には、リピートカウンタの値が0より大きいか否かが判断され(ステップS67)、リピートカウンタの値が0より大きければ、1オーディオフレーム繰り返し表示処理が指示され(ステップS68)、リピートカウンタの値が1減算されて(ステップS69)、ステップS64にリターンされる。
【0086】
このように、STCで示される時間よりPTSの時間が進んでいる場合には、ステップS64、S65、S66、S67、S68、S69のループを繰り返すことにより、再生が遅らされ、PTSの値がSTCの値に近づいてくる。そして、ステップS64、S65、S66、S67、S68、S69のループを繰り返す毎に、ステップS69で、リピートカウンタの値がデクリメントされていく。
【0087】
このようにして、PTSの値がSTCの値に近づいていき、ステップS64で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されたら、オーディオ復号処理が指示される(ステップS59)。
【0088】
ステップS64、S65、S66、S67、S68、S69のループを、リピートカウンタの設定値Cs2だけ繰り返しても、ステップS64で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されないときには、ステップS70で、リピートカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとしてオーディオ復号処理を行うことが指示される(ステップS54)。
【0089】
ステップS66で、(PTS−STC)が0より小さい場合には、STCで示される時間よりPTSの時間が遅れているので、再生を進める必要がある。この場合には、スキップカウンタの値が0より大きいか否かが判断され(ステップS70)、スキップカウンタの値が0より大きければ、1オーディオフレーム、デコードのスキップ処理が指示され(ステップS71)、スキップカウンタの値が1減算されて(ステップS72)、ステップS64にリターンされる。
【0090】
このように、STCで示される時間よりPTSの時間が遅れている場合には、ステップS64、S65、S66、S70、S71、S72のループを繰り返すことにより、再生が進められ、PTSの値がSTCの値に近づいてくる。そして、ステップS64、S65、S66、S70、S71、S72のループを繰り返す毎に、ステップS72で、スキップカウンタの値がデクリメントされていく。
【0091】
このようにして、PTSの値がSTCの値に近づいていき、ステップS69で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されたら、オーディオ復号処理が指示される(ステップS59)。
【0092】
ステップS64、S65、S66、S70、S71、S72のループを、スキップカウンタの設定値Cs2だけ繰り返しても、ステップS64で、PTSの値とSTCの値との差の絶対値が所定の閾値T2以下になると判断されないときには、ステップS70で、スキップカウンタの値が0以上ではないと判断されることになる。この場合には、ビデオとオーディオの非同期モードとしてオーディオ復号処理を行うことが指示される(ステップS54)。
【0093】
なお、上述の例では、PTSの値とSTCの値との差分を使っているが、勿論、PTSの代わりに、DTSを用いる場合もある。
【0094】
【発明の効果】
以上説明したように、この発明では、PTSの値とSTCの値との差の絶対値が所定の閾値以下であるかどうかを判断し、PTSの値がSTCの値より大きければ、再生時間が実時間より早いものとして、リピートカウンタで示される値を限度として、同一フレームを繰り返し再生させ、PTSの値がSTCの値より大きくなければ、再生時間が実時間より遅いものとして、スキップカウンタで示される値を限度として、1フレームのデコードをスキップして再生させて、PTSの値とSTCの値との差の絶対値が所定の閾値以内になるように追い込むような処理を行っている。そして、初期同期のときの閾値T1を、一度同期が確立した後の閾値T2より狭い値とすると共に、初期同期のときのリピートカウンタのセット値Cr1及びスキップカウンタのセット値Cs1を、一度同期が確立した後のリピートカウンタのセット値Cr2及びスキップカウンタのセット値Cs2より大きくしている。
【0095】
これにより、初期同期のときには、PTSの値とSTCの値とが確実に一致するまで同期がとられ、一度同期が確立した後には、PTSの値とSTCの値との同期がとれなければ、非同期モードで再生されるようになり、初期同期が済んだ後では、PTSの値にジッタを含んでいる場合に、ジッタに引きずられて同期が乱れることがなくなる。
【図面の簡単な説明】
【図1】この発明が適用できる衛星放送のIRDの構成を示すブロック図である。
【図2】この発明が適用された同期装置の一例のブロック図である。
【図3】この発明が適用された同期装置における同期処理部の一例のブロック図である。
【図4】この発明が適用された同期装置の一例の説明に用いるフローチャートである。
【図5】この発明が適用された同期装置の一例の説明に用いるフローチャートである。
【符号の説明】
101・・・デマルチプレクサ,103・・・ビデオ同期処理部,104・・・ビデオデコード部,110・・・オーディオ同期処理部,111・・・オーディオデコード部,202・・・(PTS−STC)検出部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a digital signal synchronization apparatus and method suitable for synchronizing audio and video in a MPEG (Moving Picture Coding Experts Group) 2 stream, and a digital broadcast receiving apparatus.
[0002]
[Prior art]
In digital satellite broadcasting, an MPEG2 transport stream is transmitted. In the MPEG2 stream, a PTS (Presentation Time Stamp) indicating the playback time is sent to the header. This PTS is compared with a reference clock STC (System Time Clock) inside the clock system, and when the PTS and STC match, a process for decoding is performed. As a result, synchronized playback between video and audio is realized.
[0003]
It should be noted that a DTS (Decoding Time Stamp) is provided in the video because there is a special encoded stream transmission order. That is, the I picture and the P picture precede the B picture. Therefore, when the PTS and the DTS are different from each other, both are added to the MPEG2 stream. In the same case, only PTS is added.
[0004]
[Problems to be solved by the invention]
As described above, in the MPEG2 stream, PTS and STC are compared, and if PTS and STC match, decoding is performed to keep video and audio synchronized.
[0005]
However, the PTS sent from the broadcasting station is not always correct. Depending on the signal from the broadcast station, a PTS value with jitter or an illegally delayed PTS value may be sent at an incorrect interval.
[0006]
Conventionally, as described above, the PTS and the STC are compared, and if the PTS and the STC match, the decoding is always performed. When a message is sent, there is a problem that the image is disturbed and the sound is cut off.
[0007]
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a synchronization device and method, and a digital broadcast receiving device, which can prevent the screen from being distorted or the occurrence of sound interruption even when there is jitter or delay in the PTS. There is.
[0008]
[Means for Solving the Problems]
First The invention of 1 A reference time generating means for generating reference time information; Playback time information included in the TS (Transport Stream) packet stream and Generated by the reference time generating means Compare with reference time information Comparison Means, Based on the comparison result by the comparison means, Determine whether the time difference between the playback time information and the reference time information is within the threshold Judgment Means, Reproduction control means for controlling the reproduction of the frames included in the stream, the reproduction control means based on the determination result by the determination means The time difference is within the threshold If it is determined, it corresponds to the playback time information. Frame playback starts and the time difference is within the threshold. Is judged Frame to play The Kip or repeat And skip or repeat is performed up to a predetermined number of skips or repeats, At first Time difference Within threshold When it is determined that there is a limit The number of skips or repeats Less often change This The synchronizer characterized by these.
[0009]
Second The invention of A reference time generation step for generating reference time information; Playback time information included in the TS (Transport Stream) packet stream and Generated in the reference time generation step Compare with reference time information Comparison And the steps Based on the comparison result from the comparison step, Determine whether the time difference between the playback time information and the reference time information is within the threshold Judgment And the steps A playback control step for controlling playback of the frames included in the stream, and the playback control step is based on a determination result by the determination step. The time difference is within the threshold If it is determined, it corresponds to the playback time information. Frame playback starts and the time difference is within the threshold. Is judged Frame to play The Kip or repeat And skip or repeat is performed up to a predetermined number of skips or repeats, At first Time difference Within threshold When it is determined that there is a limit The number of skips or repeats Less often change This And a synchronization method characterized by
[0010]
Third The invention includes: means for receiving digital broadcast; means for decoding a stream of TS (Transport Stream) packets from a received signal of digital broadcast; A reference time generating means for generating reference time information; Playback time information included in the TS packet stream and Generated by the reference time generating means Compare with reference time information Comparison Means, Based on the comparison result by the comparison means, Determine whether the time difference between the playback time information and the reference time information is within the threshold Judgment Means, Reproduction control means for controlling the reproduction of the frames included in the stream, the reproduction control means based on the determination result by the determination means The time difference is within the threshold If it is determined, it corresponds to the playback time information. Frame playback starts and the time difference is within the threshold. Is judged Frame to play The Kip or repeat And skip or repeat is performed up to a predetermined number of skips or repeats, At first Time difference Within threshold When it is determined that there is a limit The number of skips or repeats Less often change This And a digital broadcast receiver characterized by the above.
[0011]
It is determined whether or not the absolute value of the difference between the PTS value and the STC value is less than or equal to a predetermined threshold value. If the PTS value is greater than the STC value, it is determined that the playback time is earlier than the real time, and the repeat counter is used. The same frame is repeatedly played back with the indicated value as the limit, and if the PTS value is not greater than the STC value, the playback time is assumed to be slower than the actual time, and the frame decoding is performed with the value indicated by the skip counter as the limit. A process of skipping and reproducing is performed so that the absolute value of the difference between the PTS value and the STC value falls within a predetermined threshold. Then, the threshold value at the time of initial synchronization is set to a value narrower than the threshold value once synchronization is established, and the set value of the repeat counter and the skip counter value at the time of initial synchronization are set after the synchronization is once established. It is larger than the set value of the repeat counter and the set value of the skip counter.
[0012]
Thus, at the time of initial synchronization, synchronization is established until the PTS value and the STC value are surely matched. Once synchronization is established, the PTS value and the STC value are not synchronized. After the reproduction is performed in the asynchronous mode and the initial synchronization is completed, when the jitter is included in the PTS value, the synchronization is not disturbed due to the jitter.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of an IRD (Integrated Receiver Decoder) to which the present invention can be applied.
[0014]
In FIG. 1, for example, a digital satellite broadcast radio wave transmitted through a satellite with a 12 GHz band radio wave is received by a parabolic antenna 1 and converted into a 1 GHz band signal by a low noise converter 2 attached to the parabolic antenna 1. Converted. The output of the low noise converter 2 is supplied to the tuner circuit 3. The tuner circuit 3 selects a signal having a predetermined carrier frequency from the received signal, and converts this signal into an intermediate frequency signal. A frequency setting control signal is supplied from the controller 4 to the tuner circuit 3. A reception frequency is set based on this control signal.
[0015]
The output of the tuner circuit 3 is supplied to the demodulation circuit 5. The demodulation circuit 5 performs QPSK (Quadrature Phase Shift Keying) demodulation processing. The output of the demodulation circuit 5 is supplied to the error correction circuit 6. Error correction processing is performed by the error correction circuit 6.
[0016]
The output of the error correction circuit 6 is supplied to the descrambler 7. The descrambler 7 is supplied with the received ECM (Entitlement Control Message) data and EMM (Entitlement Management Message) data, and for descrambling stored in the IC card 8 mounted on the IC card interface 9 Key data is supplied. Further, it is possible to determine whether or not the program can be recorded based on the data of the ECM and EMM.
[0017]
The descrambler 7 descrambles the MPEG transport stream using the received ECM data and EMM data and the key data of the IC card 8. Further, it can be determined whether or not copying is prohibited by ECM data and EMM data. The descrambled MPEG2 transport stream is sent to the demultiplexer 10.
[0018]
The demultiplexer 10 separates a desired packet from the stream from the descrambler 7 based on a command from the controller 4. A packet identifier (PID) is described in the header part of the transmission packet. The demultiplexer 10 extracts video packets and audio packets of a desired program based on this PID. The video packet of the desired program is sent to the video processing circuit 11, and the audio packet is sent to the audio processing circuit 12.
[0019]
The video processing circuit 11 receives a video signal packet from the demultiplexer 10 and performs MPEG2 decoding to form video data. This video data is supplied to the NTSC encoder 13. The NTSC encoder 13 converts the video data decoded by the video processing circuit 11 into an NTSC video signal. The output of the NTSC encoder 13 is supplied to the video output terminal 14. An NTSC composite video signal is output from the video output terminal 14.
[0020]
The audio processing circuit 12 receives the audio packet from the demultiplexer 10 and performs MPEG audio decoding processing to form audio data before data compression. The output of the audio processing circuit 12 is converted into an analog audio signal by the D / A converter 15 and then output from the audio output terminal 16.
[0021]
Input for operating the IRD is performed by the remote controller 18. An infrared command signal from the remote controller 18 is received by the light receiving unit 19 and sent to the controller 4. A modem 17 is provided, and the modem 17 is connected to a telephone line.
[0022]
The present invention is suitable for synchronizing video and audio when reproducing an MPEG stream in the digital satellite broadcasting as described above.
[0023]
FIG. 2 shows the configuration of a video and audio synchronization circuit to which the present invention is applied.
[0024]
2, a demultiplexer 101 (corresponding to the demultiplexer 10 in FIG. 1) separates video packets and audio packets based on the PID. Video packets are sent to the video buffer 102, and audio packets are sent to the audio buffer 109. The output of the video buffer 102 is supplied to the video synchronization processing unit 103 and also supplied to the video decoding unit 104 (corresponding to the video processing circuit 11 in FIG. 1).
[0025]
The output of the audio buffer 109 is supplied to the audio synchronization processing unit 110 and also to the audio decoding unit 111 (corresponding to the audio processing circuit 12 in FIG. 1).
[0026]
Also, in the TS stream, the SCR (System Clock Reference (system time reference value)) and PCR (Program Clock Reference (program time reference value)) are used for setting and calibrating the STC that is the time reference. Will be sent. The SCR and PCR are supplied to the STC counter 108. The STC counter 108 generates an STC serving as a time reference. This STC is supplied to the video synchronization processing unit 103 and also to the audio synchronization processing unit 110.
[0027]
The video synchronization processing unit 103 and the audio synchronization processing unit 110 compare the time indicated by the PTS (or DTS) with the time indicated by the STC serving as a system reference, and when the PTS and the STC match, the video synchronization processing unit 103 and the audio synchronization processing unit 110 By reproducing the signal and the audio signal, the video and the audio are synchronized. The video synchronization processing unit 103 and the audio synchronization processing unit 110 output synchronization instruction signals CMV and CMA when the PTS and STC match.
[0028]
A video packet is supplied from the video buffer 102 to the video decoding unit 104 and a synchronization instruction signal CMV is supplied from the video synchronization processing unit 103. When the synchronization instruction signal CMV is supplied from the video synchronization processing unit 103, the video decoding unit 104 performs video data decoding processing according to the MPEG2 system. The output of the video decoding unit 104 is supplied to the video output processing unit 106 via the frame buffer 105.
[0029]
An audio packet is supplied from the audio buffer 109 to the audio decoding unit 111 and a synchronization instruction signal CMA is supplied from the audio synchronization processing unit 110. When the synchronization instruction signal CMA is supplied from the audio synchronization processing unit 110, the audio decoding unit 111 performs audio data decoding processing. The output of the audio decoding unit 111 is supplied to the audio output processing unit 113 via the PCM buffer 112.
[0030]
FIG. 3 shows the configuration of the video synchronization processing unit 103 and the audio synchronization processing unit 110. Note that the video synchronization processing unit 103 and the audio synchronization processing unit 110 are basically configured in the same manner.
[0031]
In FIG. 3, the PTS acquisition unit 201 extracts the PTS in the PES header information. The output of the PTS acquisition unit 201 is supplied to the (PTS-STC) detection unit 202. The STC from the STC counter 108 is supplied to the (PTS-STC) detection unit 202.
[0032]
The (PTS-STC) detection unit 202 obtains the difference between the STC value and the PTS value. The output of the (PTS-STC) detection unit 202 is supplied to the synchronization instruction unit 203.
[0033]
The synchronization instruction unit 203 is supplied with the output of the (PTS-STC) detection unit 202 and is also supplied with the buffer near full information BUFV or BUFA from the video decoding unit 104 or the audio decoding unit 111. The synchronization instruction unit 203 generates a synchronization instruction signal CMV or CMA from the output of the (PTS-STC) detection unit 202 and the buffer near full information BUFV or BUFA according to the control process described later.
[0034]
Here, the buffer near full information indicates whether the storage state of the video data in the video buffer detected by the video decoding unit 104 is close to overflow in the video processing unit. The audio processing unit indicates whether the storage state of the audio data in the audio buffer detected by the audio decoding unit 111 is close to overflow.
[0035]
FIG. 4 is a flowchart showing the synchronization processing in the video synchronization processing unit 103. In FIG. 4, first, the value of the skip counter is set to Cs1, and the value of the repeat counter is set to Cr1 (step S1). When the PTS value is larger than the STC value, the repeat counter has a playback time that is earlier than the actual time. Therefore, the repeat counter performs playback such that one frame is repeatedly played and the PTS value approaches the STC value. The limit value of the number of repeats is shown. Since the playback time is later than the actual time when the PTS value is not greater than the STC value, the skip counter performs processing such that one frame is skipped for playback and the PTS value approaches the STC value. The limit value of the number of skips is shown.
[0036]
Note that the skip counter value Cs1 and the repeat counter value Cr1 at the time of initial synchronization are larger than the skip counter value Cs2 and the repeat counter value Cr2 (to be described later) once synchronization is established.
Cs1> Cs2
Cr1> Cr2
Set to
[0037]
That is, since it is necessary to establish synchronization once in the initial synchronization, the skip counter value Cs1 and the repeat counter value Cr1 are set to large values.
[0038]
It is determined from the output of the (PTS-STC) detection unit 202 whether or not the absolute value of the difference between the PTS value and the STC value is equal to or less than a predetermined threshold T1 (step S2).
| PTS-STC | ≦ T1
[0039]
Note that the threshold value T1 at the time of initial synchronization is smaller than a threshold value T2 (described later) after synchronization is once established.
T2> T1
Set to
[0040]
That is, at the time of initial synchronization, since it is necessary to establish synchronization completely once, the threshold value T1 is set narrow.
[0041]
If the absolute value of the difference between the PTS value and the STC value is not less than or equal to the predetermined threshold value T1 in step S2, it is determined whether or not the buffer state is near full (step S3). When the buffer state is near full, it is difficult to perform the decoding process synchronously, and therefore it is instructed to perform the image decoding process in the video and audio asynchronous mode (step S4).
[0042]
Here, if the buffer state is not near full, it is determined whether (PTS-STC) is greater than 0 (step S5).
[0043]
If (PTS-STC) is greater than 0, the PTS time is ahead of the time indicated by the STC, so it is necessary to delay playback. In this case, it is determined whether or not the value of the repeat counter is greater than 0 (step S6). If the value of the repeat counter is greater than 0, one-frame repeated display processing is instructed (step S7). The value is decremented by 1 (step S8), and the process returns to step S2.
[0044]
Thus, when the PTS time is ahead of the time indicated by the STC, the reproduction is delayed by repeating the loop of steps S2, S3, S5, S6, S7, and S8, and the value of the PTS is It approaches the value of STC. Each time the loop of S2, S3, S5, S6, S7, and S8 is repeated, the value of the repeat counter is decremented in step S8.
[0045]
In this way, when the PTS value approaches the STC value and it is determined in step S2 that the absolute value of the difference between the PTS value and the STC value is equal to or less than the predetermined threshold value T1, the image decoding process is performed. Is instructed (step S9).
[0046]
Even if the processes of steps S2, S3, S5, S6, S7, and S8 are repeated for the repeat counter set value Cs1, the absolute value of the difference between the PTS value and the STC value is not more than the predetermined threshold value T1 in step S2. If it is not determined that the value of the repeat counter is not satisfied, it is determined in step S6 that the value of the repeat counter is not 0 or more. In this case, it is instructed to perform the image decoding process in the video and audio asynchronous mode (step S4).
[0047]
In step S5, if (PTS-STC) is smaller than 0, the PTS time is delayed from the time indicated by the STC, so it is necessary to proceed with the reproduction. In this case, it is determined whether or not the value of the skip counter is greater than 0 (step S10). If the value of the skip counter is greater than 0, one frame of decoding skip processing is instructed (step S11). The counter value is decremented by 1 (step S12), and the process returns to step S2.
[0048]
As described above, when the PTS time is delayed from the time indicated by the STC, the reproduction is advanced by repeating the loop of steps S2, S3, S5, S10, S11, and S12, and the value of the PTS is changed to the STC value. Approaches the value of. Each time the loop of steps S2, S3, S5, S10, S11, and S12 is repeated, the value of the skip counter is decremented in step S12.
[0049]
In this way, when the PTS value approaches the STC value and it is determined in step S2 that the absolute value of the difference between the PTS value and the STC value is equal to or less than the predetermined threshold value T1, the image decoding process is performed. Is instructed (step S9).
[0050]
Even if the processes of steps S2, S3, S5, S10, S11, and S12 are repeated for the skip counter set value Cs1, the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold value T1 in step S2. If it is not determined, the skip counter value is determined not to be greater than or equal to 0 in step S10. In this case, it is instructed to perform the image decoding process in the video and audio asynchronous mode (step S4).
[0051]
Thus, in the initial synchronization, when the time of PTS is ahead of the time indicated by STC, reproduction is delayed by repeating the loop of steps S2, S3, S5, S6, S7, and S8. The value of PTS is brought close to the value of STC. If the PTS time is delayed from the time indicated by the STC, the reproduction proceeds by repeating the loop of steps S2, S3, S5, S6, S10, S11, and S12, and the value of the PTS is changed to the STC value. It can be brought close to the value of. The number of repetitions at this time is indicated by a skip counter value and a repeat counter value, and the skip counter value and the repeat counter values Cs1 and Cr1 are set to large values. Therefore, the synchronization process is performed until the synchronization is ensured.
[0052]
Once the initial synchronization is completed, it is determined in step S2 that the absolute value of the difference between the PTS value and the STC value is equal to or less than a predetermined threshold value T1, and in step S9, an image decoding process is instructed.
[0053]
Then, the skip counter value is set to Cs2, and the repeat counter value is set to Cr2 (step S13). Note that the skip counter value Cs2 and the repeat counter value Cr2 after the initial synchronization are smaller than the skip counter value Cs1 and the repeat counter value Cr1 in the initial synchronization.
[0054]
Then, it is determined from the output of the (PTS-STC) detection unit 202 whether or not the absolute value of the difference between the PTS value and the STC value is equal to or less than a predetermined threshold value T2 (step S14).
| PTS-STC | ≦ T2
[0055]
Note that the threshold T2 after the synchronization is once set is set to a value larger than the threshold T1 at the time of the initial synchronization. That is, after the synchronization is completed once, the threshold value T2 is set wide in consideration of the case where the PTS value includes jitter.
[0056]
If the absolute value of the difference between the PTS value and the STC value is not less than or equal to the predetermined threshold value T2 in step S14, it is determined whether or not the buffer state is near full (step S15). When the buffer state is near full, it is difficult to perform the decoding process synchronously, and therefore it is instructed to perform the image decoding process in the video and audio asynchronous mode (step S4).
[0057]
Here, if the buffer state is not near full, it is determined whether (PTS-STC) is greater than 0 (step S16).
[0058]
If (PTS-STC) is greater than 0, the PTS time is ahead of the time indicated by the STC, so it is necessary to delay playback. In this case, it is determined whether or not the value of the repeat counter is greater than 0 (step S17). If the value of the repeat counter is greater than 0, one-frame repeated display processing is instructed (step S18), and the repeat counter The value is decremented by 1 (step S19), and the process returns to step S14.
[0059]
As described above, when the PTS time is ahead of the time indicated by the STC, the reproduction is delayed by repeating the loop of steps S14, S15, S16, S17, S18, and S19, and the value of the PTS is set. It approaches the value of STC. Each time the loop of steps S14, S15, S16, S17, S18, and S19 is repeated, the value of the repeat counter is decremented in step S19.
[0060]
In this way, when the PTS value approaches the STC value and it is determined in step S14 that the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold value T2, the image decoding process is performed. Is instructed (step S9).
[0061]
Even if the loop of steps S14, S15, S16, S17, S18, and S19 is repeated by the repeat counter setting value Cs2, the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold T2 in step S14. If it is not determined that the value of the repeat counter is not determined, it is determined in step S17 that the value of the repeat counter is not 0 or more. In this case, it is instructed to perform the image decoding process in the video and audio asynchronous mode (step S4).
[0062]
If (PTS-STC) is smaller than 0 in step S16, the PTS time is delayed from the time indicated by the STC, so that it is necessary to proceed with the reproduction. In this case, it is determined whether or not the value of the skip counter is greater than 0 (step S20). If the value of the skip counter is greater than 0, one frame of decoding skip processing is instructed (step S21). The counter value is decremented by 1 (step S22), and the process returns to step S14.
[0063]
When the PTS time is delayed from the time indicated by the STC, reproduction is advanced by repeating the loop of steps S14, S15, S16, S20, S21, and S22, and the PTS value approaches the STC value. Come. Each time the loop of steps S14, S15, S16, S20, S21, and S22 is repeated, the value of the skip counter is decremented in step S22.
[0064]
In this way, when the PTS value approaches the STC value and it is determined in step S14 that the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold value T2, the image decoding process is performed. Is instructed (step S9).
[0065]
Even if the processes of steps S14, S15, S16, S20, S21, and S22 are repeated for the skip counter set value Cs2, the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold T2 in step S14. If it is not determined that the value of the skip counter is determined, it is determined in step S20 that the value of the skip counter is not 0 or more. In this case, it is instructed to perform the image decoding process in the video and audio asynchronous mode (step S4).
[0066]
FIG. 5 is a flowchart showing the synchronization processing in the audio synchronization processing unit 110. In FIG. 5, first, the value of the skip counter is set to Cs1, and the value of the repeat counter is set to Cr1 (step 51). Note that the skip counter value Cs1 and the repeat counter value Cr1 at the time of initial synchronization are larger than the skip counter value Cs2 and the repeat counter value Cr2 (to be described later) once synchronization is established.
Cs1> Cs2
Cr1> Cr2
Set to
[0067]
It is determined from the output of the (PTS-STC) detection unit 202 whether or not the absolute value of the difference between the PTS value and the STC value is equal to or less than a predetermined threshold T1 (step S52).
| PTS-STC | ≦ T1
[0068]
Note that the threshold value T1 at the time of initial synchronization is smaller than a threshold value T2 (described later) after synchronization is once established.
T2> T1
Set to
[0069]
If the absolute value of the difference between the PTS value and the STC value is not less than or equal to the predetermined threshold value T1 in step S52, it is determined whether or not the buffer state is near full (step S53). When the buffer state is near full, it is difficult to perform the decoding process synchronously, so that the audio decoding process is instructed in the video and audio asynchronous mode (step S54).
[0070]
Here, if the buffer state is not near full, it is determined whether (PTS-STC) is larger than 0 (step S55).
[0071]
If (PTS-STC) is greater than 0, the PTS time is ahead of the time indicated by the STC, so it is necessary to delay playback. In this case, it is determined whether or not the value of the repeat counter is greater than 0 (step S56). If the value of the repeat counter is greater than 0, one audio frame repeated display processing is instructed (step S57), and the repeat counter is counted. Is subtracted by 1 (step S58), and the process returns to step S52.
[0072]
Thus, when the time of PTS is ahead of the time indicated by STC, reproduction is delayed by repeating the loop of steps S52, S53, S55, S56, S57, and S58, and the value of PTS is It approaches the value of STC. Each time the loop of steps S52, S53, S55, S56, S57, and S58 is repeated, the value of the repeat counter is decremented in step S58.
[0073]
In this way, when the PTS value approaches the STC value and it is determined in step S52 that the absolute value of the difference between the PTS value and the STC value is equal to or less than the predetermined threshold value T1, the audio decoding process is performed. An instruction is given (step S59).
[0074]
Even if the loop of steps S52, S53, S55, S56, S57, and S58 is repeated by the repeat counter setting value Cs1, the absolute value of the difference between the PTS value and the STC value is not more than the predetermined threshold value T1 in step S52. If it is not determined that the value of the repeat counter is not satisfied, it is determined in step S56 that the value of the repeat counter is not 0 or more. In this case, it is instructed to perform the audio decoding process in the video and audio asynchronous mode (step S54).
[0075]
If (PTS-STC) is smaller than 0 in step S55, the PTS time is delayed from the time indicated by the STC, and it is necessary to proceed with the reproduction. In this case, it is determined whether or not the value of the skip counter is greater than 0 (step S60). If the value of the skip counter is greater than 0, one audio frame and decoding skip processing are instructed (step S61). The value of the skip counter is decremented by 1 (step S62), and the process returns to step S52.
[0076]
As described above, when the PTS time is delayed from the time indicated by the STC, the reproduction is advanced by repeating the loop of steps S52, S53, S55, S60, S61, and S62, and the value of the PTS is changed to the STC value. Approaches the value of. Each time the loop of steps S52, S53, S55, S60, S61, and S62 is repeated, the value of the skip counter is decremented.
[0077]
In this way, when the PTS value approaches the STC value and it is determined in step S52 that the absolute value of the difference between the PTS value and the STC value is equal to or less than the predetermined threshold value T1, the audio decoding process is performed. An instruction is given (step S59).
[0078]
Even if the loop of steps S52, S53, S55, S60, S61, and S62 is repeated by the skip counter setting value Cs1, the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold value T1 in step S52. If it is not determined that the value of the skip counter is not determined, it is determined in step S60 that the value of the skip counter is not 0 or more. In this case, it is instructed to perform the audio decoding process in the video and audio asynchronous mode (step S54).
[0079]
Thus, in the initial synchronization, when the PTS time is advanced from the time indicated by the STC, the playback is delayed by repeating the loop of steps S52, S53, S55, S56, S57, and S58. The value of PTS is brought close to the value of STC. If the PTS time is delayed from the time indicated by the STC, the reproduction is advanced by repeating the loop of steps S52, S53, S55, S56, S57, and S58, and the value of the PTS is the STC value. To be close to. The number of repetitions at this time is indicated by a skip counter value and a repeat counter value, and the skip counter value and the repeat counter values Cs1 and Cr1 are set to large values. Therefore, the synchronization process is performed until the synchronization is ensured.
[0080]
Once the initial synchronization is completed, it is determined in step S52 that the absolute value of the difference between the PTS value and the STC value is equal to or less than a predetermined threshold T1, and an audio decoding process is instructed in step S59.
[0081]
Then, the skip counter value is set to Cs2, and the repeat counter value is set to Cr2 (step S63). Note that the skip counter value Cs2 and the repeat counter value Cr2 after the initial synchronization are smaller than the skip counter value Cs1 and the repeat counter value Cr1 in the initial synchronization.
[0082]
It is determined from the output of the (PTS-STC) detection unit 202 whether or not the absolute value of the difference between the PTS value and the STC value is equal to or less than a predetermined threshold T2 (step S64).
| PTS-STC | ≦ T2
[0083]
If the absolute value of the difference between the PTS value and the STC value is not less than or equal to the predetermined threshold T2 in step S64, it is determined whether or not the buffer state is near full (step S65). When the buffer state is near full, it is difficult to perform the decoding process synchronously, so that the audio decoding process is instructed in the video and audio asynchronous mode (step S54).
[0084]
Here, if the buffer state is not near full, it is determined whether (PTS-STC) is greater than 0 (step S66).
[0085]
If (PTS-STC) is greater than 0, the PTS time is ahead of the time indicated by the STC, so it is necessary to delay playback. In this case, it is determined whether or not the value of the repeat counter is greater than 0 (step S67). If the value of the repeat counter is greater than 0, one audio frame repeated display processing is instructed (step S68), and the repeat counter is counted. Is subtracted by 1 (step S69), and the process returns to step S64.
[0086]
In this way, when the PTS time is ahead of the time indicated by the STC, the reproduction is delayed by repeating the loop of steps S64, S65, S66, S67, S68, and S69, and the value of the PTS is set. It approaches the value of STC. Each time the loop of steps S64, S65, S66, S67, S68, and S69 is repeated, the value of the repeat counter is decremented in step S69.
[0087]
In this way, if the PTS value approaches the STC value and it is determined in step S64 that the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold T2, the audio decoding process is performed. An instruction is given (step S59).
[0088]
Even if the loop of steps S64, S65, S66, S67, S68, and S69 is repeated for the repeat counter set value Cs2, the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold T2 in step S64. If it is not determined that the value of the repeat counter is not satisfied, it is determined in step S70 that the value of the repeat counter is not 0 or more. In this case, it is instructed to perform the audio decoding process in the video and audio asynchronous mode (step S54).
[0089]
In step S66, if (PTS-STC) is smaller than 0, the PTS time is delayed from the time indicated by STC, so it is necessary to proceed with the reproduction. In this case, it is determined whether or not the value of the skip counter is larger than 0 (step S70). If the value of the skip counter is larger than 0, one audio frame and decoding skip processing are instructed (step S71). The value of the skip counter is decremented by 1 (step S72), and the process returns to step S64.
[0090]
As described above, when the PTS time is delayed from the time indicated by the STC, the reproduction is advanced by repeating the loop of steps S64, S65, S66, S70, S71, and S72, and the value of the PTS is changed to the STC value. Approaches the value of. Each time the loop of steps S64, S65, S66, S70, S71, S72 is repeated, the value of the skip counter is decremented in step S72.
[0091]
In this way, when the PTS value approaches the STC value and it is determined in step S69 that the absolute value of the difference between the PTS value and the STC value is equal to or less than the predetermined threshold T2, the audio decoding process is performed. An instruction is given (step S59).
[0092]
Even if the loop of steps S64, S65, S66, S70, S71, and S72 is repeated for the skip counter set value Cs2, the absolute value of the difference between the PTS value and the STC value is less than or equal to the predetermined threshold T2 in step S64. If it is not determined, the skip counter value is determined not to be greater than or equal to 0 in step S70. In this case, it is instructed to perform the audio decoding process in the video and audio asynchronous mode (step S54).
[0093]
In the above example, the difference between the PTS value and the STC value is used. Of course, a DTS may be used instead of the PTS.
[0094]
【The invention's effect】
As described above, according to the present invention, it is determined whether or not the absolute value of the difference between the PTS value and the STC value is equal to or smaller than a predetermined threshold value. If the PTS value is larger than the STC value, the playback time is increased. As long as it is earlier than the real time, the same frame is repeatedly reproduced up to the value indicated by the repeat counter, and if the PTS value is not larger than the STC value, the reproduction time is later than the real time and indicated by the skip counter. In this way, processing is performed such that the decoding of one frame is skipped and reproduced so that the absolute value of the difference between the PTS value and the STC value falls within a predetermined threshold. Then, the threshold value T1 at the initial synchronization is set to a value narrower than the threshold value T2 after the synchronization is once established, and the repeat counter set value Cr1 and the skip counter set value Cs1 at the initial synchronization are once synchronized. The set value Cr2 of the repeat counter and the set value Cs2 of the skip counter after the establishment are set.
[0095]
Thus, at the time of initial synchronization, synchronization is established until the PTS value and the STC value are surely matched. Once synchronization is established, the PTS value and the STC value are not synchronized. After the reproduction is performed in the asynchronous mode and the initial synchronization is completed, when the jitter is included in the PTS value, the synchronization is not disturbed due to the jitter.
[Brief description of the drawings]
FIG. 1 is a block diagram showing the configuration of an IRD for satellite broadcasting to which the present invention can be applied.
FIG. 2 is a block diagram of an example of a synchronization device to which the present invention is applied.
FIG. 3 is a block diagram of an example of a synchronization processing unit in a synchronization device to which the present invention is applied.
FIG. 4 is a flowchart used to describe an example of a synchronization device to which the present invention is applied.
FIG. 5 is a flowchart used for explaining an example of a synchronization device to which the present invention is applied;
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 101 ... Demultiplexer, 103 ... Video synchronization processing part, 104 ... Video decoding part, 110 ... Audio synchronization processing part, 111 ... Audio decoding part, 202 ... (PTS-STC) Detection unit

Claims (12)

基準時間情報を生成する基準時間生成手段と、
TSパケットのストリーム中に含まれる再生時間情報と、上記基準時間生成手段で生成される上記基準時間情報とを比較する比較手段と、
上記比較手段による比較結果に基づき、上記再生時間情報と上記基準時間情報との時間差が閾値内にあるか否かを判断する判断手段と、
上記ストリーム中に含まれるフレームの再生を制御する再生制御手段と
を有し、
上記再生制御手段は、
上記判断手段による判断結果に基づき上記時間差が上記閾値内にあると判断されれば、上記再生時間情報に対応するフレームの再生を開始し、上記時間差が上記閾値内にないと判断されれば、再生するフレームをスキップまたはリピートするように制御し、
上記スキップまたはリピートは所定のスキップ回数またはリピート回数を限度として行われ、最初に上記時間差が上記閾値内にあると判断されたときに、上記限度とされる上記スキップ回数または上記リピート回数をより少ない回数に変更する
とを特徴とする同期装置。
A reference time generating means for generating reference time information;
Comparison means for comparing the reproduction time information included in the stream of TS packets with the reference time information generated by the reference time generation means ;
Based on the comparison result by the comparison means, determination means for determining whether the time difference between the reproduction time information and the reference time information is within the threshold value,
Playback control means for controlling playback of frames included in the stream;
Have
The reproduction control means is
If it is determined that the time difference on the basis of the determination result by the determination means Ru near the above threshold value, to start playing the frame corresponding to the reproduction time information, if the time difference is contemplated determined Do in the threshold , controlled so as to skip or repeat a frame to play,
The skip or repeat is performed as limits predetermined skip count or number of repeats, the first time the time difference is determined to be within the threshold, less the number of skips or the number of repeat times which is the limit Change to times
Synchronization device comprising a call.
上記再生制御手段は、
上記判断手段による判断結果に基づき上記時間差が上記閾値内にあると判断されたら、上記閾値をより大きな値に変更する
ようにした請求項1に記載の同期装置。
The reproduction control means is
The time difference on the basis of the determination result by the determination means synchronizer of claim 1 which is adapted to change et it is determined to be within the threshold, the threshold value to a larger value.
上記再生制御手段は、
上記所定のスキップ回数またはリピート回数以上、上記スキップまたはリピートが行われた場合、上記再生するフレームを非同期で再生する
ようにした請求項1に記載の同期装置。
The reproduction control means is
The predetermined skip count or number of repeats or more, when the skip or repeat is performed, the synchronization device of claim 1 in which the <br/> so to play asynchronously frames to the aforementioned reproduction.
上記再生制御手段は、
上記再生を行うデータを一時的に蓄えるバッファの容量が満杯に近いか否かを示す情報に基づき、該バッファが満杯に近いことが検出されたら、上記再生するフレームを非同期で再生する
ようにした請求項1に記載の同期装置。
The reproduction control means is
Based on the information indicating whether the capacity of the buffer for storing temporarily the data for performing the reproduction is nearly full, the buffer if it is detected that nearly full, playing asynchronously frame the reproduction <br / The synchronization device according to claim 1, which is configured as described above.
基準時間情報を生成する基準時間生成のステップと、
TSパケットのストリーム中に含まれる再生時間情報と、上記基準時間生成のステップで生成される上記基準時間情報とを比較する比較のステップと、
上記比較のステップによる比較結果に基づき、上記再生時間情報と上記基準時間情報との時間差が閾値内にあるか否かを判断する判断のステップと、
上記ストリーム中に含まれるフレームの再生を制御する再生制御のステップと
を有し、
上記再生制御のステップは、
上記判断のステップによる判断結果に基づき上記時間差が上記閾値内にあると判断されれば、上記再生時間情報に対応するフレームの再生を開始し、上記時間差が上記閾値内にないと判断されれば、再生するフレームをスキップまたはリピートするように制御し、
上記スキップまたはリピートは所定のスキップ回数またはリピート回数を限度として行われ、最初に上記時間差が上記閾値内にあると判断されたときに、上記限度とされる上記スキップ回数または上記リピート回数をより少ない回数に変更する
とを特徴とする同期方法。
A reference time generation step for generating reference time information;
A comparison step of comparing the reproduction time information included in the stream of TS packets with the reference time information generated in the reference time generation step;
Based on the comparison result of step of the comparison, a determination step of determining whether the time difference between the reproduction time information and the reference time information is within the threshold value,
A playback control step for controlling playback of a frame included in the stream;
Have
The playback control step is as follows:
If it is determined that the time difference on the basis of the determination result of step of the determination Ru near the above threshold value, to start playing the frame corresponding to the reproduction time information, it intended judged Do in the time difference is above a threshold if, controlled so as to skip or repeat a frame to play,
The skip or repeat is performed as limits predetermined skip count or number of repeats, the first time the time difference is determined to be within the threshold, less the number of skips or the number of repeat times which is the limit Change to times
Synchronization method, wherein a call.
上記再生制御のステップは、
上記判断のステップによる判断結果に基づき上記時間差が上記閾値内にあると判断されたら、上記閾値をより大きな値に変更する
ようにした請求項5に記載の同期方法。
The playback control step is as follows:
Et to the time difference on the basis of the determination result of step of the determination is determined to be within the threshold, the synchronization method according to claim 5 which is adapted to change the threshold value to a larger value.
上記再生制御のステップは、
上記所定のスキップ回数またはリピート回数以上、上記スキップまたはリピートが行わ れた場合、上記再生するフレームを非同期で再生する
ようにした請求項5に記載の同期方法。
The playback control step is as follows:
The predetermined skip count or number of repeats or more, when the skip or repeat is performed, a method of synchronizing according to claim 5 in which the <br/> so to play asynchronously frames to the aforementioned reproduction.
上記再生制御のステップは、
上記再生を行うデータを一時的に蓄えるバッファの容量が満杯に近いか否かを示す情報に基づき、該バッファが満杯に近いことが検出されたら、上記再生するフレームを非同期で再生する
ようにした請求項5に記載の同期方法。
The playback control step is as follows:
Based on the information indicating whether the capacity of the buffer for storing temporarily the data for performing the reproduction is nearly full, the buffer if it is detected that nearly full, playing asynchronously frame the reproduction <br / The synchronization method according to claim 5, wherein the synchronization method is performed.
ディジタル放送を受信する手段と、
上記ディジタル放送の受信信号からTSパケットのストリームをデコードする手段と、
基準時間情報を生成する基準時間生成手段と、
TSパケットのストリーム中に含まれる再生時間情報と、上記基準時間生成手段で生成される上記基準時間情報とを比較する比較手段と、
上記比較手段による比較結果に基づき、上記再生時間情報と上記基準時間情報との時間差が閾値内にあるか否かを判断する判断手段と、
上記ストリーム中に含まれるフレームの再生を制御する再生制御手段と
を有し、
上記再生制御手段は、
上記判断手段による判断結果に基づき上記時間差が上記閾値内にあると判断されれば、上記再生時間情報に対応するフレームの再生を開始し、上記時間差が上記閾値内にないと判断されれば、再生するフレームをスキップまたはリピートするように制御し、
上記スキップまたはリピートは所定のスキップ回数またはリピート回数を限度として行われ、最初に上記時間差が上記閾値内にあると判断されたときに、上記限度とされる上記スキップ回数または上記リピート回数をより少ない回数に変更する
とを特徴とするディジタル放送受信装置。
Means for receiving digital broadcasts;
Means for decoding a stream of TS packets from the received signal of the digital broadcast;
A reference time generating means for generating reference time information;
Comparison means for comparing the reproduction time information included in the stream of TS packets with the reference time information generated by the reference time generation means ;
Based on the comparison result by the comparison means, determination means for determining whether the time difference between the reproduction time information and the reference time information is within the threshold value,
Playback control means for controlling playback of frames included in the stream;
Have
The reproduction control means is
If it is determined that the time difference on the basis of the determination result by the determination means Ru near the above threshold value, to start playing the frame corresponding to the reproduction time information, if the time difference is contemplated determined Do in the threshold , controlled so as to skip or repeat a frame to play,
The skip or repeat is performed as limits predetermined skip count or number of repeats, the first time the time difference is determined to be within the threshold, less the number of skips or the number of repeat times which is the limit Change to times
Digital broadcasting receiver, wherein the this.
上記再生制御手段は、
上記判断手段による判断結果に基づき上記時間差が上記閾値内にあると判断されたら、上記閾値をより大きな値に変更する
ようにした請求項9に記載のディジタル放送受信装置。
The reproduction control means is
The al which the time difference on the basis of the determination result by the determining means is determined to be within the threshold, the digital broadcast receiving device according to claim 9 which is adapted to change the threshold value to a larger value.
上記再生制御手段は、
上記所定のスキップ回数またはリピート回数以上、上記スキップまたはリピートが行われた場合、上記再生するフレームを非同期で再生する
ようにした請求項9に記載のディジタル放送受信装置。
The reproduction control means is
The predetermined skip count or number of repeats or more, when the skip or repeat is performed, the digital broadcast receiving device according to claim 9 in which the <br/> so to play asynchronously frames to the aforementioned reproduction.
上記再生制御手段は、
上記再生を行うデータを一時的に蓄えるバッファの容量が満杯に近いか否かを示す情報に基づき、該バッファが満杯に近いことが検出されたら、上記再生するフレームを非同期で再生する
ようにした請求項9に記載のディジタル放送受信装置。
The reproduction control means is
Based on the information indicating whether the capacity of the buffer for storing temporarily the data for performing the reproduction is nearly full, the buffer if it is detected that nearly full, playing asynchronously frame the reproduction <br / The digital broadcast receiving apparatus according to claim 9, which is configured as described above.
JP2001312420A 2000-10-30 2001-10-10 Synchronizing apparatus and method, digital broadcast receiving apparatus Expired - Fee Related JP3921986B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001312420A JP3921986B2 (en) 2000-10-30 2001-10-10 Synchronizing apparatus and method, digital broadcast receiving apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000330259 2000-10-30
JP2000-330259 2000-10-30
JP2001312420A JP3921986B2 (en) 2000-10-30 2001-10-10 Synchronizing apparatus and method, digital broadcast receiving apparatus

Publications (2)

Publication Number Publication Date
JP2002204404A JP2002204404A (en) 2002-07-19
JP3921986B2 true JP3921986B2 (en) 2007-05-30

Family

ID=26603020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001312420A Expired - Fee Related JP3921986B2 (en) 2000-10-30 2001-10-10 Synchronizing apparatus and method, digital broadcast receiving apparatus

Country Status (1)

Country Link
JP (1) JP3921986B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602005015067D1 (en) 2004-09-30 2009-08-06 Toshiba Kk Information processing device and program
KR100657096B1 (en) * 2004-11-30 2006-12-12 엘지전자 주식회사 Audio and video synchronization device and method of mobile terminal
US7339958B2 (en) * 2005-01-03 2008-03-04 Mediatek, Inc. System and method for performing signal synchronization of data streams
JP2006254298A (en) * 2005-03-14 2006-09-21 Matsushita Electric Ind Co Ltd Movie playback apparatus and movie playback method
JP5097874B2 (en) * 2005-08-24 2012-12-12 株式会社メガチップス Inter-station correction device
CN100442858C (en) * 2005-10-11 2008-12-10 华为技术有限公司 Lip synchronization method and device for multimedia real-time transmission in packet network
WO2007060722A1 (en) 2005-11-24 2007-05-31 Fujitsu Limited Receiving device
JP5139677B2 (en) * 2006-12-28 2013-02-06 三星電子株式会社 Playback apparatus and timing control method
JP5141437B2 (en) * 2008-08-04 2013-02-13 富士通セミコンダクター株式会社 Synchronization output device and synchronization establishment method
CN102143376B (en) * 2010-11-29 2013-05-22 北大方正集团有限公司 Method and device for double-channel video signal consistency detection
JP6051847B2 (en) * 2012-12-25 2016-12-27 三菱電機株式会社 Video information reproduction method and system
CN103428584A (en) * 2013-08-01 2013-12-04 珠海全志科技股份有限公司 Method and device for keeping synchronization of audio and video on multimedia playing platform

Also Published As

Publication number Publication date
JP2002204404A (en) 2002-07-19

Similar Documents

Publication Publication Date Title
JP3921986B2 (en) Synchronizing apparatus and method, digital broadcast receiving apparatus
JP2009105902A (en) Method and apparatus for splicing compressed information signal
JP4748195B2 (en) Digital broadcast receiving apparatus and transport stream processing method
JP4501187B2 (en) Information processing apparatus, information processing system, and information processing method
JP3703381B2 (en) CATV emergency broadcast receiver
JP2002077280A (en) Receiver
JP4186514B2 (en) Broadcast receiver
JP3883986B2 (en) Digital tv broadcast receiver
US7058281B2 (en) Recording and reproducing apparatus, and variable speed reproducing method using same
JP3123717B2 (en) Receiver and signal processing method
JP2004015553A (en) Synchronization control method and apparatus thereof, synchronization reproduction apparatus and tv receiving apparatus using the control method and apparatus
JP2002135786A (en) Receiver and digital data decoding method
KR20010022713A (en) Broadcasting receiver
JP3969083B2 (en) Data processing apparatus and data processing method
JP4609449B2 (en) Data processing apparatus and data processing method
JP2006254298A (en) Movie playback apparatus and movie playback method
JP4192363B2 (en) Playback apparatus and method
EP1345429A2 (en) Digital broadcasting reception apparatus and control method
JP2001044866A (en) Information reception method and system thereof
JP4953707B2 (en) Digital broadcast receiver
JP4242525B2 (en) Video / audio partial playback method and receiver in digital broadcasting
JP5231516B2 (en) Video distribution server, video distribution system, and video distribution method
JP4244479B2 (en) Digital broadcast receiving apparatus and transport stream processing method
JP3671969B2 (en) Data multiplexing method and multiple data decoding method
JP2002281498A (en) Reception reproducing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070105

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070212

LAPS Cancellation because of no payment of annual fees