JP3650018B2 - RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF - Google Patents

RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF Download PDF

Info

Publication number
JP3650018B2
JP3650018B2 JP2000306468A JP2000306468A JP3650018B2 JP 3650018 B2 JP3650018 B2 JP 3650018B2 JP 2000306468 A JP2000306468 A JP 2000306468A JP 2000306468 A JP2000306468 A JP 2000306468A JP 3650018 B2 JP3650018 B2 JP 3650018B2
Authority
JP
Japan
Prior art keywords
packet
time information
pcr
time
null
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
JP2000306468A
Other languages
Japanese (ja)
Other versions
JP2002118824A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2000306468A priority Critical patent/JP3650018B2/en
Publication of JP2002118824A publication Critical patent/JP2002118824A/en
Application granted granted Critical
Publication of JP3650018B2 publication Critical patent/JP3650018B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、MPEG(Moving Picture Experts Group)2トランスポートストリームの録画再生技術に関し、特に、任意のビットレートで入力される多重化されたMPEG2トランスポートストリームを録画する録画装置、それを再生する再生装置およびそれらの方法に関する。
【0002】
【従来の技術】
近年、マルチメディアに対する関心が高まってきており、それに利用される技術が盛んに開発されている。マルチメディアに不可欠な技術として、デジタル動画像および音響の符号化技術があり、MPEGによって提唱されたMPEG2(国際規格ISO/IEC13818−1)が主流となりつつある。
【0003】
MPEG2は、デジタルビデオ信号およびデジタルオーディオ信号を圧縮する符号化方式であり、パケットを用いた時分割多重方式を採用している。この時分割多重方式を用いてビデオ信号とオーディオ信号とを多重化する場合、ビデオ信号およびオーディオ信号をそれぞれ適当な長さのストリームに分割してパケットに収容し、ビデオ信号のパケットとオーディオ信号のパケットとを適宜切替えて時分割伝送する。
【0004】
また、MPEG2は、複数の番組データの伝送を実現するために、マルチプログラミング対応の多重・分割方式を採用している。この多重・分割方式を用いることにより、1つのプログラムを構成するビデオ信号およびオーディオ信号を時分割伝送するだけでなく、複数のプログラムを構成するビデオ信号およびオーディオ信号を時分割伝送することができる。この複数のプログラムを構成する方式は、トランスポートストリーム方式と呼ばれている。
【0005】
デジタル放送においては、このトランスポートストリーム方式を採用して時分割伝送された複数の番組データを受信し、その中から任意の番組データを抽出して再生を行なう。この番組データを再生する際、放送局側の送信装置に設けられた符号器と、受信側の再生装置に設けられた復号器との間で同期をとる必要がある。トランスポートストリーム方式においては、符号器と復号器との同期をとるために、PCR(Program Clock Reference)と呼ばれる時刻基準の設定および校正のための情報を伝送し、このPCRに基づいて符号器と復号器との間の同期をとっている。
【0006】
PCRを用いて符号器と復号器との間の同期をとるためには、PCRの値とPCRが復号器に到達する時刻とを正確に管理する必要がある。すなわち、復号器はPCRの到達時刻とPCRの値とを用いて、復号処理および再生処理の基準となるSTC(System Time Clock)の設定または校正を行なう。これにより、受信側の再生装置においてPCRの到達周期と完全に一致したSTCを作り出すことができ、送信装置に設けられた符号器と受信装置に設けられた復号器との間で高精度な同期を確立することができる。
【0007】
また、MPEG2においては、映像データや音声データをトランスポートストリームに変換する際に、エンコードのビットレートを任意に設定できる。たとえば、ユーザが高画質な映像を望む場合には高ビットレートのエンコードを選択し、画質を抑えて録画時間を増やしたい場合には低ビットレートのエンコードを選択することができる。このように、ビットレートが異なるトランスポートストリームデータを再生するためにも、符号器と復号器との間で同期をとる必要があり、トランスポートストリーム中に含まれるPCRが復号器に到達する時刻を正確に管理する必要がある。
【0008】
一方、近年、DVD(Digital Versatile Disc)等のデジタル方式の記録媒体の価格が下がり、デジタル放送やアナログ放送によって送信された番組データをデジタル方式の記録媒体に記録したいという要望が高まっている。これに伴って、トランスポートストリームの録画再生を行なう装置の研究開発や商品化が進められている。このような録画再生装置は、入力トランスポートストリームを一時的に記録媒体に記録する記録制御部と、実際に記録データが記録される記録媒体と、記録媒体に記録された記録データを、復号器を含む再生装置へ転送する再生制御部とによって構成されるのが一般的である。
【0009】
しかし、記録媒体の記録容量が未だ十分であるとは言えず、記録データ量を減らして記録時間を増やすための工夫が必要である。たとえば、デジタル放送のように複数の番組が多重化されている場合には、録画したい番組のみを抽出したり、アナログ放送のように一旦エンコードしてMPEG圧縮する必要がある場合には、エンコードのビットレートを低くして録画したりしている。ただし、ビットレートを低くすると映像品質が低下するため、高品質録画もサポートするためには複数のビットレートに対応したエンコードを行なう必要がある。これは、従来のビデオデッキの3倍録画モードと標準録画モードとの関係と同様である。
【0010】
従来、任意のビットレートでエンコードされた、または多重化されたトランスポートストリームデータから一部のみが抽出されて記録媒体に録画されたデータを再生装置に送信する場合には、そのトランスポートストリーム中のPCRの間隔を再現することが困難であるという問題点があった。
【0011】
この問題点を解決する第1の従来技術として、再生制御部から再生装置へデータを転送するときの送信クロックを複数用意し、入力ビットレートに合わせた送信ビットレートで送信を行なうものがある。
【0012】
一方、PCR間隔を再現するヌルパケットを挿入する方式も知られている。この第2の技術は、多重化されたストリームデータから一部のデータを抽出して記録する際に、抽出されずに破棄されたパケット数も同時に記録し、データを再生するときに破棄されたパケット数分のヌルパケットを挿入することによって、PCR間隔を再現するものである。
【0013】
図12は、この第2の従来技術を説明するための図である。図12(a)に示す2つの番組を多重した入力データが入力されると、図12(b)に示すように番組AのPCR情報含むTSパケット(以下、PCRパケットと呼ぶ。)と、それ以外の番組AのTSパケットとが抽出されて、番組BのTSパケットが破棄される。そして、抽出された番組AのTSパケットのみが記録されるとともに、破棄された番組BのTSパケットの代わりに挿入されるヌルパケットの数が記録される。この記録データが再生される場合には、図12(c)に示すように、ヌルパケット数が記録された部分については、ヌルパケット数に相当するヌルパケットが挿入されて、PCR間隔が再現されている。
【0014】
また、第3の従来技術として、多重化されたストリームデータから一部のデータを抽出する際にPCRを書換えて記録し、再生装置へデータを転送する際にヌルパケットを挿入することによって、PCR間隔を再現する方式も知られている。図13(a)に示す2つの番組を多重した入力データが入力されると、図13(b)に示すように番組AのPCRパケットと、それ以外の番組AのTSパケットとが抽出されて、番組Bのパケットが破棄される。そして、抽出された番組AのPCR値が書換えられる等の処理が行なわれてPCRパケットが記録されるとともに、番組AのTSパケットも記録される。
【0015】
【発明が解決しようとする課題】
しかし、上述した第1の従来技術においては、複数の送信クロックを用意しなければならないため装置が高価なものになるという問題点、および多重化されたデータから一部のデータをのみを抽出して記録再生を行なう装置には適用できないという問題点があった。
【0016】
また、第2の従来技術においては、抽出したデータを録画する際に転送されるデータの伝送レートと、再生装置へ転送する送信レートとを一致させる必要がある。たとえば、図12(d)に示すように、入力ビットレートと異なる転送レートで再生装置へ転送する場合には、PCR間隔を正しく再現することができない。すなわち、最初のPCRと、2番目のPCRまたは3番目のPCRとの間隔が、図12(a)に示す入力データよりも短くなっている。そのため、入力ビットレートに応じて送信ビットレートを変更する必要があり、録画再生装置が高価なものとなってしまう。
【0017】
また、第3の従来技術において、記録データが再生される場合には、図13(c)に示すように、PCRパケットの前にヌルパケットを挿入することによって、PCR間隔が再現されている。この方式においては、入力され得る全ての入力ビットレートよりも高い送信クロックを1つ用意するだけで、任意のビットレートでエンコードされたデータ、または多重化されたデータから抽出された一部のデータを正確なPCR間隔で再生装置に送信することができる。しかし、図13(d)に示すように、PCRパケット間の番組データが本来の番組データよりも早く再生装置に到着するという問題点がある。
【0018】
たとえば、図13(a)に示す星印を付した番組Aの5番目のパケットが記録され、その記録データが再生されると、図13(d)に示すように入力データ内のパケットの位置よりも早く再生装置に到着していることがわかる。このように、PCR間隔を再現するだけではその間に存在するパケットが本来よりも早く再生装置に到着し、再生装置のバッファが溢れる可能性があるという問題点があった。
【0019】
また、この方式においては、PCRが一定間隔以内に存在することが前提となっており、PCR間隔が広くなった場合には途中のパケットの伝送レートを制御することができなくなり、再生装置への伝送レートでデータが転送されることになる。したがって、再生装置のバッファが溢れる可能性があった。また、多重化されたストリーム中から、PCRが存在しないようなデータのみを抽出する場合にも同様の問題が発生する。
【0020】
本発明は、上記問題点を解決するためになされたものであり、第1の目的は、再生装置内の入力バッファが溢れることなく、TSストリームデータを送出することが可能な録画再生装置を提供することである。
【0021】
第2の目的は、記憶媒体の記憶容量を有効に利用して、記録時間を長くすることが可能な録画再生装置を提供することである。
【0022】
第3の目的は、装置の構成を簡略化することが可能な録画再生装置を提供することである。
【0023】
【課題を解決するための手段】
本発明のある局面に従えば、録画装置は、TSストリームから所望の番組データに対応したパケットを抽出するための抽出手段と、TSストリームから所望の番組データに対応したPCRパケットを検出するための検出手段と、検出手段によって検出されたPCRパケットの到着時刻を保持するためのPCR到着時刻保持手段と、抽出手段によって抽出されたパケットの到着時刻を保持するためのパケット到着時刻保持手段と、PCR到着時刻保持手段によって保持されるPCRパケットの到着時刻を含んだ時刻情報パケットと、パケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットとを生成し、抽出手段によって抽出されたパケットに挿入するための時刻情報パケット挿入手段と、時刻情報パケット挿入手段によって時刻情報パケットが挿入されたデータを記録媒体に記録するための記録手段とを含む。
【0024】
時刻情報パケット挿入手段は、PCRパケットの到着時刻を含んだ時刻情報パケットと、パケットの到着時刻を含んだ時刻情報パケットとを生成して挿入するので、ヌルパケット等を予め挿入する必要がなくなり、データ量を削減することができる。また、再生装置において、PCRパケットの到着時刻を含んだ時刻情報パケットと、パケットの到着時刻を含んだ時刻情報パケットとに基づいて、ヌルパケットを挿入することができるので、パケットの到着時刻を再現することが可能となる。
【0025】
好ましくは、時刻情報パケット挿入手段は、所定周期でカウントアップするカウント手段と、検出手段によってPCRパケットが検出されると、PCR到着時刻保持手段によって保持されるPCRパケットの到着時刻を含んだ時刻情報パケットを生成してカウント手段をリセットし、PCRパケットが到着してからカウント手段が所定値を超える毎にパケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成するためのパケット生成手段と、抽出手段によって抽出されたパケットと、パケット生成手段によって生成された時刻情報パケットとを切替えて出力するための入力切替手段とを含む。
【0026】
パケット生成手段は、PCRパケットが到着してからカウント手段が所定値を超える毎にパケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成するので、再生装置においてヌルパケットを挿入でき、パケットの到着時刻を再現することが可能となる。また、再生装置の再生時においてパケットを分散して入力することができるので、再生装置の入力バッファが溢れることを防止することが可能となる。
【0027】
好ましくは、時刻情報パケット挿入手段は、所定周期でカウントアップするカウント手段と、検出手段によってPCRパケットが検出されると、PCR到着時刻保持手段によって保持されるPCRパケットの到着時刻を含んだ時刻情報パケットを生成し、TSストリームの入力を開始してからカウント手段が所定値を超える毎にパケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成するためのパケット生成手段と、抽出手段によって抽出されたパケットと、パケット生成手段によって生成された時刻情報パケットとを切替えて出力するための入力切替手段とを含む。
【0028】
パケット生成手段は、TSストリームの入力を開始してからカウント手段が所定値を超える毎にパケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成するので、パケット生成手段の構成を簡略化することが可能となる。また、再生装置の再生時においてパケットを分散して入力することができるので、再生装置の入力バッファが溢れることを防止することが可能となる。
【0029】
さらに好ましくは、入力切替手段は、検出手段によって検出されたPCRパケットの直前に、パケット生成手段によって生成されたPCRパケットの到着時刻を含んだ時刻情報パケットを挿入する。
【0030】
したがって、時刻情報パケット内の時刻情報を参照することによって、PCRの到着時刻を取得することができる。
【0031】
さらに好ましくは、パケット生成手段は、PCRパケットの直前に挿入される時刻情報パケットであるか否かを判定するための識別子を含んだ時刻情報パケットを生成する。
【0032】
したがって、時刻情報パケットが、PCRパケットの直前に挿入されたものであるか否かを容易に判定することが可能となる。
【0033】
さらに好ましくは、パケット生成手段は、検出手段によって検出されたPCRパケットの到着時刻と、PCR到着時刻保持手段に保持される1つ前のPCRパケットの到着時刻との差分が所定間隔以内の場合には、パケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成しない。
【0034】
したがって、時刻情報パケットの挿入量が多くなることを防止できる。
さらに好ましくは、録画装置はさらに、検出手段によって検出されたPCRパケットの到着時刻と、PCR到着時刻保持手段に保持される1つ前のPCRパケットの到着時刻との差分が所定間隔以内の場合には、検出手段によって検出されたPCRパケットのPCRを削除して時刻情報パケット挿入部へ出力するためのPCR間引き手段を含む。
【0035】
したがって、PCRパケットの出現頻度が大きい場合に、時刻情報パケットが生成されないという不都合を防止でき、再生装置においてパケットの到着時刻を正確に再現することができる。
【0036】
本発明の別の局面に従えば、再生装置は、記録媒体に記録されたデータを読出すための読出手段と、読出手段によって読出されたデータから時刻情報パケットを抽出するための抽出手段と、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報に基づいてヌルパケットを生成し、抽出手段によって時刻情報パケットが抽出された後のストリームデータに生成されたヌルパケットを挿入するためのヌルパケット挿入手段と、ヌルパケット挿入手段によってヌルパケットが挿入された後のストリームデータを再生するための再生手段とを含み、時刻情報は、所望の番組データに対応したPCRパケットの到着時刻と、所望の番組データに対応したPCRパケット以外のパケットの到着時刻とを含む。
【0037】
ヌルパケット挿入手段は、時刻情報パケットに含まれる時刻情報に基づいてヌルパケットを生成しストリームデータに挿入するので、パケットの到着時刻を再現することが可能となる。また、再生手段による再生時においてパケットが分散されて入力されるので、再生手段の入力バッファが溢れることを防止することが可能となる。
【0038】
好ましくは、ヌルパケット挿入手段は、PCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持するためのPCR到着時刻保持手段と、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報とPCR到着時刻保持手段によって保持される時刻情報との差分に基づいて、挿入すべきヌルパケット数を算出するための算出手段と、算出手段によって算出された数のヌルパケットを生成するためのヌルパケット生成手段と、抽出手段によって時刻情報パケットが抽出された後のパケットと、ヌルパケット生成手段によって生成されたヌルパケットとを切替えて出力するための入力切替手段とを含む。
【0039】
算出手段は、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報とPCR到着時刻保持手段によって保持される時刻情報との差分に基づいて、挿入すべきヌルパケット数を算出するので、パケットの到着時刻を正確に再現するようにヌルパケット数を決定することが可能となる。
【0040】
好ましくは、PCR到着時刻保持手段は、最初に到着したPCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持し、算出手段は、最初のPCRパケットが到着してから現在までの間に再生手段へ送出したパケット数をカウントし、パケット数、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報とPCR到着時刻保持手段によって保持される時刻情報との差分および伝送レートに基づいて、挿入すべきヌルパケット数を算出する。
【0041】
したがって、パケットの到着時刻を正確に再現するようにヌルパケット数を決定することが可能となる。
【0042】
好ましくは、PCR到着時刻保持手段は、到着した最新のPCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持し、算出手段は、最新のPCRパケットが到着してから現在までの間に再生手段へ送出したパケット数をカウントし、パケット数、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報とPCR到着時刻保持手段によって保持される時刻情報との差分および伝送レートに基づいて、挿入すべきヌルパケット数を算出する。
【0043】
到着した最新のPCRパケットの直前の時刻情報パケットに含まれる時刻情報に基づいて、挿入すべきヌルパケット数を算出するので、ヌルパケット数の誤差が蓄積されるのを防止することが可能となる。
【0044】
好ましくは、ヌルパケット挿入手段は、最初に到着したPCRパケットの直前の時刻情報パケットに含まれる時刻情報が設定され、所定周期でカウントアップするカウント手段と、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報と、カウント手段のカウント値とを比較するための比較手段と、比較手段によって、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報が、カウント手段のカウント値より大きいと判定された場合には、ヌルパケットを生成するためのヌルパケット生成手段と、抽出手段によって時刻情報パケットが抽出された後のパケットと、ヌルパケット生成手段によって生成されたヌルパケットとを切替えて出力するための入力切替手段とを含む。
【0045】
ヌルパケット生成手段は、抽出手段によって抽出された時刻情報パケットに含まれる時刻情報が、カウント手段のカウント値より大きいと判定された場合にはヌルパケットを生成するので、ヌルパケット数を算出する必要がなくなり、処理が容易に行なえるようになる。
【0046】
本発明の別の局面に従えば、録画方法は、TSストリームから所望の番組データに対応したパケットを抽出するステップと、TSストリームから所望の番組データに対応したPCRパケットを検出するステップと、検出されたPCRパケットの直前にPCRパケットが到着したときの時刻情報を含んだ時刻情報パケットを生成して抽出されたパケットに挿入するステップと、PCRパケットが到着してから所定時間を超える毎に当該時刻情報を含んだ時刻情報パケットを生成して抽出されたパケットに挿入するステップと、時刻情報パケットが挿入されたデータを記録媒体に記録するステップとを含む。
【0047】
時刻情報を含んだ時刻情報パケットを生成して挿入するので、ヌルパケット等を予め挿入する必要がなくなり、データ量を削減することができる。また、再生装置において、時刻情報を含んだ時刻情報パケットに基づいて、ヌルパケットを挿入することができるので、パケットの到着時刻を再現することが可能となる。また、再生装置の再生時においてパケットを分散して入力することができるので、再生装置の入力バッファが溢れることを防止することが可能となる。
【0048】
本発明の別の局面に従えば、録画方法は、TSストリームから所望の番組データに対応したパケットを抽出するステップと、TSストリームから所望の番組データに対応したPCRパケットを検出するステップと、検出されたPCRパケットの直前にPCRパケットが到着したときの時刻情報を含んだ時刻情報パケットを生成して抽出されたパケットに挿入するステップと、TSストリームの入力を開始してから所定時間を超える毎に当該時刻情報を含んだ時刻情報パケットを生成して抽出されたパケットに挿入するステップと、時刻情報パケットが挿入されたデータを記録媒体に記録するステップとを含む。
【0049】
TSストリームの入力を開始してから所定時間を超える毎に当該時刻情報を含んだ時刻情報パケットを生成して挿入するので、再生装置においてヌルパケットを挿入でき、パケットの到着時刻を再現することが可能となる。また、再生装置の再生時においてパケットを分散して入力することができるので、再生装置の入力バッファが溢れることを防止することが可能となる。
【0050】
好ましくは、時刻情報パケットは、PCRパケットの直前の時刻情報パケットであるか否かを示す識別子を含む。
【0051】
したがって、時刻情報パケットが、PCRパケットの直前に挿入されたものであるか否かを容易に判定することが可能となる。
【0052】
さらに好ましくは、PCRパケットを検出するステップは、PCRパケットが所定間隔内に検出された場合には、当該PCRパケット内のPCR情報を削除したパケットを生成して出力するステップを含む。
【0053】
したがって、PCRパケットの出現頻度が大きい場合に、時刻情報パケットが生成されないという不都合を防止でき、再生装置においてパケットの到着時刻を正確に再現することができる。
【0054】
本発明の別の局面に従えば、再生方法は、記録媒体に記録されたデータを読出すステップと、読出されたデータから時刻情報パケットを抽出するステップと、抽出された時刻情報パケットに含まれる時刻情報に基づいてヌルパケットを生成し、時刻情報パケットが抽出された後のストリームデータに生成されたヌルパケットを挿入するステップと、ヌルパケットが挿入された後のストリームデータを再生するステップとを含み、時刻情報は、所望の番組データに対応したPCRパケットの到着時刻と、所望の番組データに対応したPCRパケット以外のパケットの到着時刻とを含む。
【0055】
時刻情報パケットに含まれる時刻情報に基づいてヌルパケットを生成しストリームデータに挿入するので、パケットの到着時刻を再現することが可能となる。また、再生時においてパケットが分散されて入力されるので、入力バッファが溢れることを防止することが可能となる。
【0056】
好ましくは、ヌルパケットを挿入するステップは、PCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持するステップと、抽出された時刻情報パケットに含まれる時刻情報と保持される時刻情報との差分に基づいて、挿入すべきヌルパケット数を算出するステップと、算出された数のヌルパケットを生成するステップと、時刻情報パケットが抽出された後のパケットと、生成されたヌルパケットとを切替えて出力するステップとを含む。
【0057】
抽出された時刻情報パケットに含まれる時刻情報と保持される時刻情報との差分に基づいて、挿入すべきヌルパケット数を算出するので、パケットの到着時刻を正確に再現するようにヌルパケット数を決定することが可能となる。
【0058】
【発明の実施の形態】
(実施の形態1)
図1は、本発明の実施の形態1における録画再生装置の概略構成を示すブロック図である。この録画再生装置は、録画制御部1と、録再制御部2と、再生制御部3と、記録媒体4と、再生装置5とを含む。録画制御部1は、外部から任意のビットレートでエンコードされ多重化されたTSストリームデータを入力し、TSストリームデータの中から一部のデータのみを抽出し、後述する時刻情報パケットを挿入したストリームデータを生成して録再制御部2へ出力する。
【0059】
録再制御部2は、録画制御部1から出力されたストリームデータを記録媒体4に記録し、記録媒体4に記録されたストリームデータを読出して再生制御部3へ出力する。再生制御部3は、録再制御部2から転送されるストリームデータ中の時刻情報パケットをヌルパケットに変換して再生装置5へ転送する。再生装置5は、入力されたストリームデータ中のPCRを用いたSTCの設定処理や、ストリーム中に含まれる信号の種類(ビデオ信号、オーディオ信号等)に応じたデコード処理を行なう。なお、再生装置5については、従来の装置と同様であるので、詳細な説明は行なわない。
【0060】
また、録画制御部1は、同期検出部11と、パケットセレクト部12と、PCR検出器13と、PCR到着時刻保持部14と、パケット到着時刻保持部15と、時刻情報パケット挿入部16とを含む。同期検出部11は、外部から入力されるTSストリームデータの同期を検出し、TSストリームデータをパケットセレクト部12へ出力する。同期の検出方法として、TSパケットの先頭に位置する同期バイトを検出する方法が用いられる。
【0061】
また、同期検出部11は、録画制御部1と再生制御部3とによって共通に使用されるクロックのクロック数をカウントするカウンタを内蔵しており、同期を検出したときのカウンタの値を時刻としてパケット到着時刻保持部15に格納する。このカウンタは、たとえば録画を開始したときにカウントを開始し、経過時間をカウント値によって表わす。
【0062】
パケットセレクト部12は、TSストリームから所望の番組データのみを抽出し、抽出された番組データを時刻情報パケット挿入部16へ転送する。この番組データの抽出は、各TSパケットに含まれるPID(Packet Identification)を参照して行なわれる。PIDは、各番組の映像や音声などのサービス毎に異なる識別子が割当てられている。パケットセレクト部12は、抽出すべき番組データに対応した複数のPIDをメモリ等の所定領域に保持しており、入力されたTSパケットのPIDが所定領域に保持された複数のPIDのいずれかと一致する場合にはそのPIDを有するパケットを時刻情報パケット挿入部16へ転送し、一致しない場合にはそのパケットを破棄する。
【0063】
PCR検出器13は、パケットセレクト部12によって抽出されたパケット中にPCRが含まれるか否かをチェックし、PCRが含まれている場合にはパケット到着時刻保持部15に保持された時刻をPCR到着時刻保持部14にコピーする。そして、PCRが検出されたことを示すPCR検出信号を時刻情報パケット挿入部16へ出力する。
【0064】
図2(a)は、PCRを含んだTSパケットを示す図である。PCR検出器13は、TSパケット中のアダプテーションフィールド制御ビットとPCRフラグとを参照して、PCRが含まれているか否かを判定する。このパケットの内容については、「ポイント図解式最新MPEG教科書」藤原洋監修(アスキー出版局発行)等に詳細に説明されているので、これらの参考書を参照されたい。なお、図2(b)については後述する。
【0065】
図3は、時刻情報パケット挿入部16を詳細に説明するための図である。時刻情報パケット挿入部16は、コントロール部161と、入力切替部162と、パケット生成部163と、録画カウンタ部164とを含む。コントロール部161は、入力切替部162、パケット生成部163および録画カウンタ部164を制御して、時刻情報パケット挿入部16の全体的な制御を行なう。
【0066】
コントロール部161は、PCR検出器13からPCR検出信号が入力された場合には、時刻情報パケット生成信号と、PCR到着時刻保持部14に保持されるPCR到着時刻情報とをパケット生成部163へ出力する。また、コントロール部161は、次に転送すべきパケットがパケット生成部163によって生成される時刻情報パケットであることを示す入力切替信号を入力切替部162へ出力し、録画カウンタ部164に対して内部のカウンタをリセットするためのリセット信号を出力する。
【0067】
録画カウンタ部164は、コントロール部161からリセット信号を受けると、内部のカウンタをリセットしてカウントを開始する。すなわち、録画カウンタ164は、PCRを含むパケットの到着からの時刻をカウントする。そして、所定のカウント値を超えたときにコントロール部161に対して時刻超信号を出力し、内部のカウンタをリセットする。
【0068】
コントロール部161は、録画カウンタ部164から時刻超信号を受けると、時刻情報パケット生成信号と、パケット到着時刻保持部15に保持されるパケット到着時刻情報とをパケット生成部163へ出力し、入力切替部162に対して次に転送すべきパケットがパケット生成部163によって生成される時刻情報パケットであることを示す入力切替信号を出力する。
【0069】
パケット生成部163は、コントロール部161から時刻情報パケット生成信号を受けると、コントロール部161から出力される時刻情報に基づいて時刻情報パケットを生成して入力切替部162へ出力する。
【0070】
入力切替部162は、通常はパケットセレクト部12によって抽出されたTSパケットを入力し、TSストリームとして録再制御部2へ順次出力する。入力切替部162は、コントロール部161からの入力切替信号を受けると、パケット生成部163から出力される時刻情報パケットをTSストリームとして録再制御部2へ出力する。そして、パケット生成部163からの1TSパケット分の時刻情報パケットを録再制御部2へ出力すると、再びパケットセレクト部12から出力されるTSパケットをTSストリームとして録再制御部2へ出力する。
【0071】
図4(a)〜図4(f)は、パケット生成部163によって生成される時刻情報パケットの一例を示す図である。なお、時刻情報パケットは、そのパケットが特殊パケットであることを判別できること、および時刻情報が含まれていることを満たしていれば、再生制御部3において認識可能であり、図4(a)〜図4(f)に示すパケットに限定されるものではない。
【0072】
図4(a)は、TSパケットの先頭の同期バイト(0x47)の最上位ビットを“1”にすることにより(0xC7)、特殊パケットであることを示している。なお、“0x”は以降の数が16進数で表現されていることを示している。
【0073】
図4(b)は、TSパケットのフラグ内のエラー表示ビットを“1”にすることによって、特殊パケットであることを示している。エラー表示ビットは、TSパケットの先頭から2バイト目の最上位ビットに割当てられており、このビットが“1”の場合にはパケットにエラーが含まれることを示している。したがって、パケットセレクト部12がエラーを含んだパケットを抽出しない限り、録画制御部1から送出されるパケット内のエラー表示ビットが“1”のものは特殊パケットであることを認識することができる。
【0074】
図4(c)は、PIDをヌルパケットであることを示す値“0x1FFF”に設定することによって、特殊なパケットであることを示している。ヌルパケットは、TSの到着タイミングをコントロールするためのパケットであり、データを含まないパケットであるので、このようなパケットを挿入しても記録媒体の容量を消費するだけで、悪影響を及ぼすものではない。したがって、パケットセレクト部12がヌルパケットを抽出しない限り、録画制御部1から送出されるパケット内のPIDがヌルパケットを示す“0x1FFF”のものは特殊パケットであることを認識することができる。
【0075】
時刻情報パケットに含まれる識別子は、そのパケットがPCRパケットの直前に挿入されたものであるか否かを判別するときに用いられる。PCRパケットの直前の場合には“1”が設定され、PCRパケットの直前でない場合には“0”が設定される。なお、時刻情報パケットがPCRパケットの直前であるか否かを判別できれば良く、これに限られるものではない。また、時刻情報を6バイトとしているのは、時刻情報を生成するクロックとしてSTCと同じクロックを用いることを前提としているためであり、別のクロックを用いるのであればそれに応じたバイト数を設定するようにすれば良い。
【0076】
図4(d)〜図4(f)は、PCR検出器の機構を利用して時刻情報パケットの認識を可能としたものの例である。通常のTSパケットのアダプテーションフィールド制御ビットとPCRフラグとに、アダプテーションフィールドとPCRフラグとを含むような設定を行ない、PCRの位置に時刻情報を設定している。このようなフォーマットにすることにより、PCR検出器の機構をそのまま流用して時刻情報パケットの認識が可能となる。
【0077】
図5は、再生制御部3の詳細を説明するためのブロック図である。この再生制御部3は、時刻情報パケットセレクト部31と、時刻情報抽出部32と、ヌルパケット挿入部33とを含む。
【0078】
時刻情報パケットセレクト部31は、録再制御部2によって読出されたTSストリームを入力し、録画時に挿入された時刻情報パケットを抽出する。時刻情報パケットセレクト部31は、時刻情報パケットを抽出した後のTSストリームをヌルパケット挿入部33へ送出する。時刻情報抽出部32は、時刻情報パケットセレクト部31によって抽出された時刻情報パケットから時刻情報を抽出してヌルパケット挿入部33へ送出するとともに、そのパケットがPCRパケットの直前に位置するものであるか否かを示す識別子もヌルパケット挿入部33へ送出する。
【0079】
図6は、ヌルパケット挿入部33を詳細に説明するためのブロック図である。ヌルパケット挿入部33は、コントロール部331と、PCR到着時刻保持部332と、ヌルパケット生成部333と、入力切替部334とを含む。
【0080】
コントロール部331は、時刻情報パケット検出信号を受けると、時刻情報抽出部32から送出される時刻情報および時刻情報パケットがPCRパケットの直前に位置するものであるか否かを示す識別子を入力する。そして、コントロール部331は、時刻情報パケットがPCRパケットの直前に位置するものであり、かつ最初のPCRパケットの前に位置する場合には、その時刻情報パケット内の到着時刻をPCR到着時刻保持部332に保持し、送出済みのパケット(TSパケットおよびヌルパケット)をカウントするためのカウンタをリセットする。また、コントロール部331は、最初のPCRパケットの後に時刻情報パケットを入力した場合には、時刻情報パケットに含まれる時刻情報、PCR到着時刻保持部332に保持される時刻情報、および内部でカウントしているパケット数に基づいて、生成すべきヌルパケットの数を算出する。この生成すべきヌルパケットの数の算出方法を以下に述べる。
【0081】
PCR到着時刻保持部332に保持される到着時刻をT0とし、最初に到着したPCRパケットを検出してから再生装置5へ既に送出したパケット数をPとし、時刻情報パケット内の到着時刻をTnとし、設定されている共通の転送レートをRとすると、次式によってヌルパケット数が算出される。
【0082】
ヌルパケット数=(Tn−T0)/R−P …(1)
コントロール部331は、算出したヌルパケット数をヌルパケット生成部333へ送出するとともに、ヌルパケットの生成を指示するパケット生成信号をヌルパケット生成部333へ出力する。そして、コントロール部331は、入力切替信号を入力切替部334へ出力して、ヌルパケット生成部333から送出されるヌルパケットをTSストリームとして出力するよう指示する。
【0083】
入力切替部334は、通常、時刻情報パケットセレクト部31によって抽出されなかったTSパケットを入力し、TSストリームとして再生装置5へ順次転送している。この再生装置5への転送は、TSストリームのエンコードビットレートによらない、予め設定された一定の伝送レートによって行なわれる。入力切替部334は、コントロール部331から入力切替信号を受けると、ヌルパケット生成部333から出力されるヌルパケットをTSストリームとして再生装置5へ転送する。そして、ヌルパケット生成部333からのヌルパケットの送出が終了すると、入力切替部334は、再び時刻情報パケットセレクト部31からのTSパケットをTSストリームとして再生装置5へ転送する。また、入力切替部334は、パケットを再生装置5へ送出する度に、コントロール部331へパケットを送出したことを示すパケット送出信号を出力する。コントロール部331は、このパケット送出信号に基づいて既に送出したパケット数をカウントする。
【0084】
図7は、本実施の形態における録画再生装置によって生成されるTSストリームを説明するための図である。図7(a)に示す2つの番組を多重した入力データが録画制御部1に入力されると、図7(b)に示すように最初の番組AのPCRパケットの到着時刻▲1▼を含んだ特殊パケット(時刻情報パケット)が生成されて挿入された後、番組AのPCRパケットおよび番組Aの3つのTSパケットが送出される。続く4つの番組BのTSパケットが破棄されて、その代わりにパケット到着時刻▲2▼を含んだ特殊パケットが生成されて挿入される。その後、番組Aの3つのTSパケットが送出され、続く4つの番組BのTSパケットが破棄されて、その代わりにパケット到着時刻▲3▼を含んだ特殊パケットが生成されて挿入される。以降同様の処理が行なわれる。このようにして生成されたTSストリームは、録再制御部2によって順次記録媒体4に録画される。
【0085】
図7(b)に示す特殊パケットが挿入されたTSストリームが、録再制御部2によって記録媒体4から読出されて再生制御部3へ転送されると、図7(b)に示す最初の特殊パケットが抽出されて、その特殊パケットに含まれる到着時刻がPCR到着時刻保持部332に保持される。そして、図7(c)に示すように、パケット到着時刻▲1▼から番組AのPCRパケットおよび番組Aの3つのTSパケットが再生装置5へ転送される。そして、次の特殊パケットに含まれるパケット到着時刻▲2▼が抽出されて、パケット到着時刻▲1▼および▲2▼からヌルパケット数が算出されて、図7(c)に示すように算出されたヌルパケット数に対応したヌルパケットが挿入されて、到着時刻▲2▼が再現される。
【0086】
そして、続く番組Aの3つのTSパケットが転送された後、次の特殊パケットに含まれるパケット到着時刻▲3▼が抽出されて、パケット到着時刻▲1▼および▲3▼からヌルパケット数が算出されて、図7(c)に示すように算出されたヌルパケット数に対応したヌルパケットが挿入されて、到着時刻▲3▼が再現される。以降同様の処理が行なわれる。
【0087】
挿入されるヌルパケット数は、特殊パケット内に含まれる到着時刻と、再生装置5へ転送されるときの伝送レートに依存する。伝送レートは入力ストリームのビットレートによらず、共通の伝送レートが用いられるため、固定値として扱うことができる。なお、図7(d)に、入力ストリームのビットレートと異なるビットレートでTSストリームを転送したときの一例を示す。図13(d)に示す従来技術と比較して、再生装置5に転送されるデータを分散して、一度に転送されるデータ量を減らすようにしたため、再生装置5の入力バッファが溢れることを防止することが可能となる。
【0088】
本実施の形態における録画再生装置においては、最初に到着したPCRパケットの直前に到着した時刻情報パケットに含まれる到着時刻をT0とし、最初に到着したPCRパケットを検出してから再生装置5へ既に送出したパケット数をPとし、時刻情報パケット内の到着時刻をTnとし、設定されている共通の転送レートをRとしてヌルパケット数を算出している。
【0089】
しかし、この方法によると、(Tn−T0)の値が大きくなるため、挿入すべきヌルパケット数に誤差が生じやすくなる。これを防止するために、再生制御部3に到着した最新のPCRパケットの直前に到着した時刻情報パケットに含まれる到着時刻をT0とし、その後に送出したパケット数をカウントしてPとすることによって、式(1)を用いてヌルパケット数を算出できるとともに、挿入すべきヌルパケット数の誤差の蓄積を防止することが可能となる。
【0090】
また、時刻情報パケットがPCRパケットの直前のものであるか否かを判定することなく、前回到着した時刻情報パケットに含まれる到着時刻をT0とし、その後に送出したパケット数をカウントしてPとしても、同様に式(1)を用いてヌルパケット数を算出できるとともに、挿入すべきヌルパケット数の誤差の蓄積を防止することが可能となる。
【0091】
以上説明したように、本実施の形態における録画再生装置によれば、複数の番組データを含む入力ストリームから所望の番組データのみを抽出し、破棄されたデータの代わりにパケット到着時刻を含んだ特殊パケットを挿入するようにしたので、TSストリームのデータ量を削減することができ、記録媒体の録画時間を長くすることが可能となった。また、最初のPCRパケットが到着してから所定時間経過する毎に特殊パケットを挿入するようにしたので、再生装置5に転送されるデータを分散して、一度に転送されるデータ量を減らすことができ、再生装置5の入力バッファが溢れることを防止することが可能となった。
【0092】
(実施の形態2)
本発明の実施の形態2における録画再生装置は、図1に示す実施の形態1における録画再生装置と比較して、時刻情報パケット挿入部16の構成および機能のみが異なる。したがって、重複する構成および機能の詳細な説明は繰返さない。なお、本実施の形態における時刻情報パケット挿入部の参照符号を16’として説明する。
【0093】
図8は、本実施の形態における時刻情報パケット挿入部16’の詳細を説明するためのブロック図である。この時刻情報パケット挿入部16’は、図3に示す実施の形態1における時刻情報パケット挿入部16と比較して、コントロール部161から録画カウンタ部164へ出力されるリセット信号が削除された点のみが異なる。したがって、重複する構成および機能の詳細な説明は繰返さない。なお、本実施の形態におけるコントロール部および録画カウンタ部の参照符号を、それぞれ161’および164’として説明する。
【0094】
コントロール部161’は、PCR検出器13からPCR検出信号が入力された場合には、時刻情報パケット生成信号と、PCR到着時刻保持部14に保持されるPCR到着時刻情報とをパケット生成部163へ出力する。また、コントロール部161’は、次に転送すべきパケットがパケット生成部163によって生成される時刻情報パケットであることを示す入力切替信号を入力切替部162へ出力する。
【0095】
録画カウンタ部164’は、時刻情報パケット挿入部16’の動作開始から内部のカウンタのカウントを開始し、所定のカウント値を超えたときにコントロール部161’に対して時刻超信号を出力し、内部のカウンタをリセットする。
【0096】
コントロール部161’は、録画カウンタ部164’から時刻超信号を受けると、時刻情報パケット生成信号と、パケット到着時刻保持部15に保持されるパケット到着時刻情報とをパケット生成部163へ出力し、入力切替部162に対して次に転送すべきパケットがパケット生成部163によって生成される時刻情報パケットであることを示す入力切替信号を出力する。
【0097】
パケット生成部163は、コントロール部161’から時刻情報パケット生成信号を受けると、コントロール部161’から出力される時刻情報に基づいて時刻情報パケットを生成して入力切替部162へ出力する。
【0098】
以上説明したように、本実施の形態における録画再生装置によれば、コントロール部161’と録画カウンタ164’との間のリセット信号を削除し、それに伴う動作を省略したので、実施の形態1における録画再生装置と比較して、回路構成を簡略化することが可能となった。
【0099】
(実施の形態3)
本発明の実施の形態3における録画再生装置は、実施の形態1における録画再生装置と比較して、図5に示すヌルパケット挿入部33の構成および機能のみが異なる。したがって、重複する構成および機能の詳細な説明は繰返さない。なお、本実施の形態におけるヌルパケット挿入部の参照符号を33’として説明する。
【0100】
図9は、本実施の形態におけるヌルパケット挿入部33’の詳細を説明するためのブロック図である。このヌルパケット挿入部33’は、コントロール部331’と、ヌルパケット生成部333’と、入力切替部334’と、再生カウンタ部335とを含む。
【0101】
コントロール部331’は、時刻情報パケット検出信号を受けると、時刻情報抽出部32から送出される時刻情報および時刻情報パケットがPCRパケットの直前に位置するものであるか否かを示す識別子を入力する。そして、コントロール部331’は、時刻情報パケットがPCRパケットの直前に位置するものであり、かつ最初のPCRパケットの前に位置する場合には、その時刻情報パケット内の到着時刻を再生カウンタ部335に設定する。
【0102】
再生カウンタ部335は、コントロール部331’によって時刻情報が設定されると、録画時に時刻情報の生成に使用されたクロックに基づいてカウントアップを行なう。そして、これ以降に時刻情報が入力された場合には、コントロール部331’は入力された時刻情報(Tn)と再生カウンタ部335の現在値(Tc)とを比較する。Tn>Tcの場合、コントロール部331’はヌルパケット生成部333’にヌルパケットの送出を指示する送出開始信号を出力し、入力切替信号を入力切替部334’へ出力して、ヌルパケット生成部333’から送出されるヌルパケットをTSストリームとして出力するよう指示する。また、Tn≦Tcの場合、コントロール部331’はヌルパケット生成部333’に対する送出開始信号の出力、および入力切替部334’に対する入力切替信号の出力を終了する。
【0103】
入力切替部334’は、通常、時刻情報パケットセレクト部31によって抽出されなかったTSパケットを入力し、TSストリームとして再生装置5へ順次転送している。この再生装置5への転送は、TSストリームのエンコードビットレートによらない、予め設定された一定の伝送レートによって行なわれる。入力切替部334’は、コントロール部331’から入力切替信号を受けると、ヌルパケット生成部333’から出力されるヌルパケットをTSストリームとして再生装置5へ転送する。そして、ヌルパケット生成部333’からのヌルパケットの送出が終了すると、入力切替部334’は、再び時刻情報パケットセレクト部31からのTSパケットをTSストリームとして再生装置5へ転送する。
【0104】
以上説明したように、本実施の形態における録画再生装置によれば、コントロール部331’が入力された時刻情報と再生カウンタ部335の現在値とを比較し、Tn>Tcの場合にはヌルパケット生成部333’にヌルパケットの送出を指示する送出開始信号を出力し、入力切替信号を入力切替部334’へ出力するようにしたので、実施の形態1におけるヌルパケット挿入部33のように送出済みのパケット数をカウントする必要がなくなり、装置の構成を簡略化することが可能となった。
【0105】
(実施の形態4)
図10は、本発明の実施の形態4における録画再生装置1’の概略構成を示すブロック図である。本実施の形態における録画再生装置は、図1に示す実施の形態1における録画再生装置と比較して、PCR検出器13がPCR間引き部17に置換されている点のみが異なる。したがって、重複する構成および機能の詳細な説明は繰返さない。
【0106】
PCR間引き部17は、実施の形態1において説明したPCR検出器13を内部に有しており、パケットセレクト部12から出力されたパケット中のPCRの検出と、PCRの間引きとを行なう。PCR検出器13によってPCRパケットが検出されると、PCR間引き部17はパケット到着時刻保持部15に保持されるそのパケットが到着した時刻と、PCR到着時刻保持部14に保持される以前PCRパケットとして時刻情報パケット挿入部16へ転送したPCRパケットの到着時刻との差分を算出する。そして、その差分が所定値以内であれば、PCR間引き部17はそのPCRパケットを削除して間引きを行なう。
【0107】
図11は、本実施の形態におけるPCR間引き部17の処理手順を説明するためのフローチャートである。まず、PCR検出器13は、パケットセレクト部12から出力されたパケットの最初の6バイトを読込み(S11)、アダプテーションフィールド制御ビットと、PCRフラグとをチェックする(S12)。図2(a)に示すように、4バイト目のアダプテーションフィールド制御ビットの上位ビットが“1”であり、6バイト目のPCRフラグが“1”であれば、そのパケットにPCRが含まれると判定し(S12,PCR含む)、ステップS13へ処理が進む。また、それ以外の場合には、そのパケットにPCRが含まれていないと判定し(S12,PCR含まない)、ステップS21へ処理が進む。
【0108】
ステップS13において、PCR間引き部17は、現在のPCRパケットが到着した時刻と、以前にPCRパケットとして時刻情報パケット挿入部16へ送出したPCRパケットの到着時刻との差分を算出する。そして、その差分が一定時間以内であるか否かが判定される(S14)。
【0109】
差分が一定時間以内であれば(S14,一定時間以内)、そのPCRを削除する。すなわち、PCR間引き部17は、そのPCRパケットのPCRフラグを“0”にして、ステップS11において読込んだ6バイトを出力する(S15)。そして、次の6バイト(PCR)を破棄し、(アダプテーションフィールド長−7)バイトだけ読込んでそのまま出力する(S16)。そして、PCR間引き部17は、6バイトのスタッフィングバイト出力し(S17)、残りのペイロード分(183−アダプテーションフィールド長)だけデータを読込んでそのまま出力する(S18)。以上説明したS15〜S18の処理によって、図2(b)に示すPCR削除後のTSパケットが生成される。
【0110】
また、ステップS14において、差分が一定時間以上であれば(S14,一定時間以上)、PCR間引き部17は、パケット到着時刻保持部15に保持される時刻情報をPCR到着時刻保持部14にコピーし(S19)、時刻情報パケット挿入部16にPCR検出信号を出力する(S20)。そして、ステップS11において読込んだ6バイトをそのまま出力し(S21)、残りのデータもそのまま出力する(S22)。
【0111】
以上説明したように、本実施の形態における録画再生装置によれば、PCR間引き部17が現在のPCRパケットが到着した時刻と、以前にPCRパケットとして時刻情報パケット挿入部16へ送出したPCRパケットの到着時刻との差分を算出し、その差分が一定時間以内であればそのPCRを削除するようにしたので、PCRの出現頻度が大きいTSストリームであっても時刻情報パケットが過剰に挿入されるのを防止することができ、記憶媒体の記憶容量を有効に利用することが可能となった。
【0112】
今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。
【図面の簡単な説明】
【図1】 本発明の実施の形態1における録画再生装置の概略構成を示すブロック図である。
【図2】 (a)は、PCRを含んだTSパケットを示す図である。(b)は、PCR削除後のTSパケットを示す図である。
【図3】 時刻情報パケット挿入部16を詳細に説明するための図である。
【図4】 時刻情報パケットの例を示す図である。
【図5】 再生制御部3の詳細を説明するためのブロック図である。
【図6】 ヌルパケット挿入部33を詳細に説明するためのブロック図である。
【図7】 本発明の実施の形態1における録画再生装置によって生成されるTSストリームを説明するための図である。
【図8】 本発明の実施の形態2における時刻情報パケット挿入部16’の詳細を説明するためのブロック図である。
【図9】 本発明の実施の形態3におけるヌルパケット挿入部33’の詳細を説明するためのブロック図である。
【図10】 本発明の実施の形態4における録画再生装置1’の概略構成を示すブロック図である。
【図11】 本発明の実施の形態4におけるPCR間引き部17の処理手順を説明するためのフローチャートである。
【図12】 第2の従来技術を説明するための図である。
【図13】 第3の従来技術を説明するための図である。
【符号の説明】
1,1’ 録画再生装置、2 録再制御部、3 再生制御部、4 記録媒体、5 再生装置、11 同期検出部、12 パケットセレクト部、13 PCR検出部、14 PCR到着時刻保持部、15 パケット到着時刻保持部、16,16’ 時刻情報パケット挿入部、17 PCR間引き部、31 時刻情報パケットセレクト部、32 時刻情報抽出部、33,33’ ヌルパケット挿入部、161,161’ コントロール部、162 入力切替部、163 パケット生成部、164,164’ 録画カウンタ部、331,331’ コントロール部、332 PCR到着時刻保持部、333 ヌルパケット生成部、334,334’ 入力切替部、335 再生カウンタ部。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to MPEG (Moving Picture Experts Group) 2 transport stream recording / playback technology, and more particularly to a recording apparatus for recording multiplexed MPEG2 transport streams input at an arbitrary bit rate, and playback for playback. The present invention relates to devices and methods thereof.
[0002]
[Prior art]
In recent years, interest in multimedia has increased, and technologies used for it have been actively developed. As an indispensable technology for multimedia, there is a digital video and audio encoding technology, and MPEG2 (international standard ISO / IEC13818-1) proposed by MPEG is becoming mainstream.
[0003]
MPEG2 is an encoding method for compressing digital video signals and digital audio signals, and adopts a time division multiplexing method using packets. When a video signal and an audio signal are multiplexed using this time division multiplexing method, the video signal and the audio signal are divided into streams of appropriate lengths and accommodated in packets. Time-division transmission is performed by appropriately switching between packets.
[0004]
MPEG2 employs a multi-programming multiplexing / division method in order to realize transmission of a plurality of program data. By using this multiplexing / division method, not only video signals and audio signals constituting one program are transmitted in a time division manner, but also video signals and audio signals constituting a plurality of programs can be transmitted in a time division manner. This method of configuring a plurality of programs is called a transport stream method.
[0005]
In digital broadcasting, a plurality of program data time-divisionally transmitted using the transport stream method is received, and arbitrary program data is extracted from the received program data and reproduced. When this program data is reproduced, it is necessary to synchronize between the encoder provided in the transmission apparatus on the broadcasting station side and the decoder provided in the reproduction apparatus on the reception side. In the transport stream method, in order to synchronize an encoder and a decoder, information for setting and calibrating a time reference called PCR (Program Clock Reference) is transmitted, and an encoder and a decoder are based on the PCR. Synchronize with the decoder.
[0006]
In order to achieve synchronization between the encoder and the decoder using PCR, it is necessary to accurately manage the PCR value and the time when the PCR reaches the decoder. That is, the decoder uses the PCR arrival time and the PCR value to set or calibrate an STC (System Time Clock) that serves as a reference for the decoding process and the reproduction process. As a result, an STC that completely matches the arrival period of the PCR can be created in the playback device on the reception side, and high-precision synchronization can be achieved between the encoder provided in the transmission device and the decoder provided in the reception device. Can be established.
[0007]
In MPEG2, the bit rate of encoding can be arbitrarily set when converting video data and audio data into a transport stream. For example, high bit rate encoding can be selected when the user desires high-quality video, and low bit rate encoding can be selected when the user wants to reduce the image quality and increase the recording time. As described above, in order to reproduce transport stream data having different bit rates, it is necessary to establish synchronization between the encoder and the decoder, and the time at which the PCR included in the transport stream reaches the decoder. Need to be managed accurately.
[0008]
On the other hand, in recent years, the price of digital recording media such as DVDs (Digital Versatile Discs) has fallen, and there is an increasing demand for recording program data transmitted by digital broadcasting or analog broadcasting on digital recording media. Along with this, research and development and commercialization of devices for recording and reproducing transport streams are being promoted. Such a recording / playback apparatus includes a recording control unit for temporarily recording an input transport stream on a recording medium, a recording medium on which recording data is actually recorded, and a recording data recorded on the recording medium by a decoder. And a playback control unit that transfers to a playback device including
[0009]
However, it cannot be said that the recording capacity of the recording medium is still sufficient, and a device for reducing the amount of recording data and increasing the recording time is necessary. For example, when a plurality of programs are multiplexed as in digital broadcasting, only the program to be recorded is extracted, or when encoding and MPEG compression are required as in analog broadcasting, encoding The video is recorded at a lower bit rate. However, if the bit rate is lowered, the video quality is lowered. Therefore, in order to support high-quality recording, it is necessary to perform encoding corresponding to a plurality of bit rates. This is the same as the relationship between the 3 × recording mode and the standard recording mode of the conventional video deck.
[0010]
Conventionally, in the case where data partially extracted from transport stream data encoded at an arbitrary bit rate or multiplexed and recorded on a recording medium is transmitted to a playback device, There was a problem that it was difficult to reproduce the PCR interval.
[0011]
As a first conventional technique for solving this problem, there is a technique in which a plurality of transmission clocks for transferring data from a reproduction control unit to a reproduction apparatus are prepared and transmission is performed at a transmission bit rate that matches an input bit rate.
[0012]
On the other hand, a method of inserting a null packet that reproduces the PCR interval is also known. In the second technique, when a part of data is extracted from the multiplexed stream data and recorded, the number of packets discarded without being extracted is recorded at the same time and discarded when the data is reproduced. The PCR interval is reproduced by inserting null packets corresponding to the number of packets.
[0013]
FIG. 12 is a diagram for explaining the second prior art. When input data obtained by multiplexing the two programs shown in FIG. 12A is input, as shown in FIG. 12B, a TS packet including PCR information of the program A (hereinafter referred to as a PCR packet), and that. TS packets of program A other than those are extracted, and TS packets of program B are discarded. Then, only the extracted TS packet of program A is recorded, and the number of null packets inserted instead of the discarded program B TS packet is recorded. When this recorded data is reproduced, as shown in FIG. 12C, a null packet corresponding to the number of null packets is inserted in the portion where the number of null packets is recorded, and the PCR interval is reproduced. ing.
[0014]
As a third prior art, PCR is performed by rewriting and recording a PCR when extracting some data from multiplexed stream data, and inserting a null packet when transferring the data to a playback device. A method for reproducing the interval is also known. When input data obtained by multiplexing two programs shown in FIG. 13A is input, a PCR packet of program A and a TS packet of other program A are extracted as shown in FIG. 13B. , The packet of program B is discarded. Then, processing such as rewriting the PCR value of the extracted program A is performed and a PCR packet is recorded, and a TS packet of program A is also recorded.
[0015]
[Problems to be solved by the invention]
However, in the first prior art described above, a plurality of transmission clocks must be prepared, so that the apparatus becomes expensive, and only a part of the data is extracted from the multiplexed data. Therefore, there is a problem that it cannot be applied to a recording / reproducing apparatus.
[0016]
In the second prior art, it is necessary to match the transmission rate of data transferred when recording the extracted data with the transmission rate transferred to the playback device. For example, as shown in FIG. 12D, when transferring to the playback device at a transfer rate different from the input bit rate, the PCR interval cannot be correctly reproduced. That is, the interval between the first PCR and the second PCR or the third PCR is shorter than the input data shown in FIG. Therefore, it is necessary to change the transmission bit rate according to the input bit rate, and the recording / playback apparatus becomes expensive.
[0017]
In the third prior art, when the recorded data is reproduced, the PCR interval is reproduced by inserting a null packet before the PCR packet as shown in FIG. In this method, only one transmission clock higher than all input bit rates that can be input is prepared, and data encoded at an arbitrary bit rate, or a part of data extracted from multiplexed data. Can be transmitted to the playback device at accurate PCR intervals. However, as shown in FIG. 13D, there is a problem that program data between PCR packets arrives at the playback device earlier than the original program data.
[0018]
For example, when the fifth packet of program A marked with an asterisk shown in FIG. 13 (a) is recorded and the recorded data is reproduced, the position of the packet in the input data as shown in FIG. 13 (d). It can be seen that it arrived at the playback device earlier. As described above, there is a problem that if the PCR interval is simply reproduced, packets existing in the meantime may arrive at the playback device earlier than originally intended, and the buffer of the playback device may overflow.
[0019]
Also, in this method, it is assumed that the PCR exists within a certain interval, and when the PCR interval becomes wide, it becomes impossible to control the transmission rate of packets in the middle, and to the playback device Data is transferred at the transmission rate. Therefore, there is a possibility that the buffer of the reproducing apparatus overflows. The same problem occurs when only data that does not have PCR is extracted from the multiplexed stream.
[0020]
The present invention has been made to solve the above problems, and a first object thereof is to provide a recording / playback apparatus capable of sending TS stream data without overflowing an input buffer in the playback apparatus. It is to be.
[0021]
A second object is to provide a recording / playback apparatus capable of effectively using the storage capacity of a storage medium and extending the recording time.
[0022]
A third object is to provide a recording / playback apparatus capable of simplifying the configuration of the apparatus.
[0023]
[Means for Solving the Problems]
According to an aspect of the present invention, a recording apparatus includes an extraction unit for extracting a packet corresponding to desired program data from a TS stream, and a PCR packet for detecting a PCR packet corresponding to desired program data from the TS stream. Detecting means; PCR arrival time holding means for holding the arrival time of the PCR packet detected by the detecting means; packet arrival time holding means for holding the arrival time of the packet extracted by the extracting means; and PCR A time information packet including the arrival time of the PCR packet held by the arrival time holding means and a time information packet including the arrival time of the packet held by the packet arrival time holding means are generated and extracted by the extracting means Time information packet insertion means for inserting into the received packet, and time information packet And a recording means for recording the data time information packet is inserted by guide means on a recording medium.
[0024]
Since the time information packet insertion means generates and inserts the time information packet including the arrival time of the PCR packet and the time information packet including the arrival time of the packet, it is not necessary to insert a null packet or the like in advance. The amount of data can be reduced. In addition, the playback device can insert a null packet based on the time information packet including the arrival time of the PCR packet and the time information packet including the arrival time of the packet, so that the arrival time of the packet is reproduced. It becomes possible to do.
[0025]
Preferably, the time information packet inserting means includes a counting means that counts up at a predetermined cycle, and time information including an arrival time of the PCR packet held by the PCR arrival time holding means when the detection means detects the PCR packet. Generate a packet and reset the counting means to generate a time information packet including the arrival time of the packet held by the packet arrival time holding means every time the counting means exceeds a predetermined value after the arrival of the PCR packet The packet generation means, and the input switching means for switching and outputting the packet extracted by the extraction means and the time information packet generated by the packet generation means.
[0026]
The packet generation means generates a time information packet including the arrival time of the packet held by the packet arrival time holding means every time the counting means exceeds a predetermined value after the arrival of the PCR packet. And the arrival time of the packet can be reproduced. Also, since packets can be input in a distributed manner during playback by the playback device, it is possible to prevent the input buffer of the playback device from overflowing.
[0027]
Preferably, the time information packet inserting means includes a counting means that counts up at a predetermined cycle, and time information including an arrival time of the PCR packet held by the PCR arrival time holding means when the detection means detects the PCR packet. Packet generating means for generating a time information packet including the arrival time of a packet held by the packet arrival time holding means every time the counting means exceeds a predetermined value after generating a packet and starting input of the TS stream And an input switching means for switching and outputting the packet extracted by the extracting means and the time information packet generated by the packet generating means.
[0028]
The packet generation means generates a time information packet including the arrival time of the packet held by the packet arrival time holding means every time the counting means exceeds a predetermined value after the input of the TS stream is started. The configuration can be simplified. Also, since packets can be input in a distributed manner during playback by the playback device, it is possible to prevent the input buffer of the playback device from overflowing.
[0029]
More preferably, the input switching unit inserts a time information packet including the arrival time of the PCR packet generated by the packet generation unit immediately before the PCR packet detected by the detection unit.
[0030]
Therefore, the arrival time of the PCR can be acquired by referring to the time information in the time information packet.
[0031]
More preferably, the packet generation means generates a time information packet including an identifier for determining whether or not the time information packet is inserted immediately before the PCR packet.
[0032]
Therefore, it is possible to easily determine whether or not the time information packet is inserted immediately before the PCR packet.
[0033]
More preferably, the packet generation unit is configured such that the difference between the arrival time of the PCR packet detected by the detection unit and the arrival time of the previous PCR packet held in the PCR arrival time holding unit is within a predetermined interval. Does not generate a time information packet including the arrival time of the packet held by the packet arrival time holding means.
[0034]
Therefore, it is possible to prevent the insertion amount of the time information packet from increasing.
More preferably, the recording apparatus further includes a case where the difference between the arrival time of the PCR packet detected by the detecting means and the arrival time of the previous PCR packet held in the PCR arrival time holding means is within a predetermined interval. Includes a PCR thinning-out means for deleting the PCR of the PCR packet detected by the detecting means and outputting it to the time information packet inserting section.
[0035]
Therefore, the inconvenience that the time information packet is not generated when the appearance frequency of the PCR packet is high can be prevented, and the arrival time of the packet can be accurately reproduced in the reproducing apparatus.
[0036]
  According to another aspect of the present invention, the reproducing apparatus includes a reading unit for reading data recorded on the recording medium, an extracting unit for extracting a time information packet from the data read by the reading unit, A null packet for generating a null packet based on the time information included in the time information packet extracted by the extracting means and inserting the generated null packet into the stream data after the time information packet is extracted by the extracting means Insertion means, and reproduction means for reproducing the stream data after the null packet is inserted by the null packet insertion means.Thus, the time information includes the arrival time of the PCR packet corresponding to the desired program data and the arrival time of a packet other than the PCR packet corresponding to the desired program data.
[0037]
Since the null packet insertion means generates a null packet based on the time information included in the time information packet and inserts it into the stream data, it is possible to reproduce the arrival time of the packet. Further, since packets are distributed and input during playback by the playback means, it is possible to prevent the input buffer of the playback means from overflowing.
[0038]
Preferably, the null packet inserting means includes a PCR arrival time holding means for holding time information included in the time information packet immediately before the PCR packet, a time information included in the time information packet extracted by the extracting means, and the PCR. Based on the difference from the time information held by the arrival time holding means, a calculation means for calculating the number of null packets to be inserted, and a null packet generation for generating the number of null packets calculated by the calculation means Means, and an input switching means for switching and outputting the packet after the time information packet is extracted by the extracting means and the null packet generated by the null packet generating means.
[0039]
The calculating means calculates the number of null packets to be inserted based on the difference between the time information included in the time information packet extracted by the extracting means and the time information held by the PCR arrival time holding means. It is possible to determine the number of null packets so as to accurately reproduce the arrival time.
[0040]
Preferably, the PCR arrival time holding means holds the time information included in the time information packet immediately before the first arrived PCR packet, and the calculating means reproduces from the arrival of the first PCR packet to the present. The number of packets sent to the means is counted, and the number of packets is inserted based on the difference between the time information included in the time information packet extracted by the extracting means and the time information held by the PCR arrival time holding means and the transmission rate. The number of null packets to be calculated is calculated.
[0041]
Therefore, the number of null packets can be determined so as to accurately reproduce the arrival time of the packet.
[0042]
Preferably, the PCR arrival time holding unit holds the time information included in the time information packet immediately before the latest PCR packet that has arrived, and the calculation unit reproduces the time between the arrival of the latest PCR packet and the present time. The number of packets sent to the means is counted, and the number of packets is inserted based on the difference between the time information included in the time information packet extracted by the extracting means and the time information held by the PCR arrival time holding means and the transmission rate. The number of null packets to be calculated is calculated.
[0043]
Since the number of null packets to be inserted is calculated based on the time information included in the time information packet immediately before the latest PCR packet that has arrived, it is possible to prevent an error in the number of null packets from being accumulated. .
[0044]
Preferably, the null packet inserting means sets the time information included in the time information packet immediately before the first arrived PCR packet, and counts the time information packet extracted by the extracting means by counting up at a predetermined cycle. It is determined that the time information included in the time information packet extracted by the extracting means is greater than the count value of the counting means by the comparing means for comparing the included time information with the count value of the counting means. If it is, the null packet generating means for generating the null packet, the packet after the time information packet is extracted by the extracting means, and the null packet generated by the null packet generating means are switched and output. Input switching means.
[0045]
The null packet generating means generates a null packet when it is determined that the time information included in the time information packet extracted by the extracting means is larger than the count value of the counting means, so it is necessary to calculate the number of null packets This makes it easy to process.
[0046]
According to another aspect of the present invention, a recording method includes a step of extracting a packet corresponding to desired program data from a TS stream, a step of detecting a PCR packet corresponding to desired program data from the TS stream, and a detection Generating a time information packet including the time information when the PCR packet arrives immediately before the received PCR packet and inserting it into the extracted packet; Generating a time information packet including time information and inserting the packet into the extracted packet; and recording data on which the time information packet is inserted onto a recording medium.
[0047]
Since the time information packet including the time information is generated and inserted, it is not necessary to insert a null packet or the like in advance, and the amount of data can be reduced. Further, since the playback apparatus can insert a null packet based on a time information packet including time information, the arrival time of the packet can be reproduced. Also, since packets can be input in a distributed manner during playback by the playback device, it is possible to prevent the input buffer of the playback device from overflowing.
[0048]
According to another aspect of the present invention, a recording method includes a step of extracting a packet corresponding to desired program data from a TS stream, a step of detecting a PCR packet corresponding to desired program data from the TS stream, and a detection Generating a time information packet including time information when the PCR packet arrives immediately before the received PCR packet and inserting it into the extracted packet; and every time a predetermined time has elapsed since the start of TS stream input Generating a time information packet including the time information and inserting it into the extracted packet, and recording the data with the time information packet inserted into a recording medium.
[0049]
Since a time information packet including the time information is generated and inserted every time a predetermined time has elapsed since the input of the TS stream is started, a null packet can be inserted in the playback device, and the arrival time of the packet can be reproduced. It becomes possible. Also, since packets can be input in a distributed manner during playback by the playback device, it is possible to prevent the input buffer of the playback device from overflowing.
[0050]
Preferably, the time information packet includes an identifier indicating whether or not the time information packet is immediately before the PCR packet.
[0051]
Therefore, it is possible to easily determine whether or not the time information packet is inserted immediately before the PCR packet.
[0052]
More preferably, the step of detecting a PCR packet includes a step of generating and outputting a packet from which PCR information in the PCR packet is deleted when the PCR packet is detected within a predetermined interval.
[0053]
Therefore, the inconvenience that the time information packet is not generated when the appearance frequency of the PCR packet is high can be prevented, and the arrival time of the packet can be accurately reproduced in the reproducing apparatus.
[0054]
  According to another aspect of the present invention, a reproduction method is included in a step of reading data recorded on a recording medium, a step of extracting a time information packet from the read data, and the extracted time information packet Generating a null packet based on the time information, inserting the generated null packet into the stream data after the time information packet is extracted, and reproducing the stream data after the null packet is inserted IncludingThus, the time information includes the arrival time of the PCR packet corresponding to the desired program data and the arrival time of a packet other than the PCR packet corresponding to the desired program data.
[0055]
Since a null packet is generated based on the time information included in the time information packet and inserted into the stream data, the arrival time of the packet can be reproduced. In addition, since packets are distributed and input during reproduction, it is possible to prevent the input buffer from overflowing.
[0056]
Preferably, the step of inserting a null packet includes the step of holding the time information included in the time information packet immediately before the PCR packet, and the difference between the time information included in the extracted time information packet and the held time information And switching between the step of calculating the number of null packets to be inserted, the step of generating the calculated number of null packets, the packet after extracting the time information packet, and the generated null packet Outputting.
[0057]
Since the number of null packets to be inserted is calculated based on the difference between the time information contained in the extracted time information packet and the held time information, the number of null packets is set so as to accurately reproduce the arrival time of the packet. It becomes possible to decide.
[0058]
DETAILED DESCRIPTION OF THE INVENTION
(Embodiment 1)
FIG. 1 is a block diagram showing a schematic configuration of a recording / playback apparatus according to Embodiment 1 of the present invention. This recording / playback apparatus includes a recording control unit 1, a recording / playback control unit 2, a playback control unit 3, a recording medium 4, and a playback device 5. The recording control unit 1 inputs TS stream data encoded and multiplexed at an arbitrary bit rate from the outside, extracts only a part of the data from the TS stream data, and inserts a time information packet to be described later Data is generated and output to the recording / playback control unit 2.
[0059]
The recording / playback control unit 2 records the stream data output from the recording control unit 1 on the recording medium 4, reads the stream data recorded on the recording medium 4, and outputs the stream data to the playback control unit 3. The playback control unit 3 converts the time information packet in the stream data transferred from the recording / playback control unit 2 into a null packet and transfers the packet to the playback device 5. The playback apparatus 5 performs STC setting processing using PCR in the input stream data and decoding processing according to the type of signal (video signal, audio signal, etc.) included in the stream. Note that the playback device 5 is the same as the conventional device, and therefore will not be described in detail.
[0060]
Further, the recording control unit 1 includes a synchronization detection unit 11, a packet selection unit 12, a PCR detector 13, a PCR arrival time holding unit 14, a packet arrival time holding unit 15, and a time information packet insertion unit 16. Including. The synchronization detector 11 detects the synchronization of TS stream data input from the outside, and outputs the TS stream data to the packet selector 12. As a synchronization detection method, a method of detecting a synchronization byte located at the head of a TS packet is used.
[0061]
Further, the synchronization detection unit 11 has a built-in counter that counts the number of clocks commonly used by the recording control unit 1 and the reproduction control unit 3, and the value of the counter when synchronization is detected is used as the time. Stored in the packet arrival time holding unit 15. This counter starts counting, for example, when recording is started, and the elapsed time is represented by a count value.
[0062]
The packet selector 12 extracts only desired program data from the TS stream, and transfers the extracted program data to the time information packet inserter 16. The program data is extracted with reference to PID (Packet Identification) included in each TS packet. The PID is assigned a different identifier for each service such as video and audio of each program. The packet selection unit 12 holds a plurality of PIDs corresponding to program data to be extracted in a predetermined area such as a memory, and the PID of the input TS packet matches one of the plurality of PIDs held in the predetermined area If so, the packet having the PID is transferred to the time information packet insertion unit 16, and if not matched, the packet is discarded.
[0063]
The PCR detector 13 checks whether or not a PCR is included in the packet extracted by the packet selection unit 12. If the PCR is included, the PCR detector 13 determines the time held in the packet arrival time holding unit 15 as the PCR. Copy to arrival time holding unit 14. Then, a PCR detection signal indicating that PCR has been detected is output to the time information packet insertion unit 16.
[0064]
FIG. 2A shows a TS packet including PCR. The PCR detector 13 refers to the adaptation field control bit and the PCR flag in the TS packet to determine whether or not a PCR is included. The contents of this packet are explained in detail in “Point Diagram Illustrated Latest MPEG Textbook” supervised by Hiroshi Fujiwara (issued by ASCII Publishing Bureau), etc., so please refer to these reference books. Note that FIG. 2B will be described later.
[0065]
FIG. 3 is a diagram for explaining the time information packet insertion unit 16 in detail. The time information packet insertion unit 16 includes a control unit 161, an input switching unit 162, a packet generation unit 163, and a recording counter unit 164. The control unit 161 controls the input switching unit 162, the packet generation unit 163, and the recording counter unit 164 to perform overall control of the time information packet insertion unit 16.
[0066]
When the PCR detection signal is input from the PCR detector 13, the control unit 161 outputs the time information packet generation signal and the PCR arrival time information held in the PCR arrival time holding unit 14 to the packet generation unit 163. To do. In addition, the control unit 161 outputs an input switching signal indicating that the next packet to be transferred is a time information packet generated by the packet generation unit 163 to the input switching unit 162, so that the recording counter unit 164 has an internal A reset signal for resetting the counter is output.
[0067]
When receiving the reset signal from the control unit 161, the recording counter unit 164 resets the internal counter and starts counting. That is, the recording counter 164 counts the time from arrival of a packet including PCR. When a predetermined count value is exceeded, a time super signal is output to the control unit 161, and the internal counter is reset.
[0068]
When receiving the super time signal from the recording counter unit 164, the control unit 161 outputs the time information packet generation signal and the packet arrival time information held in the packet arrival time holding unit 15 to the packet generation unit 163, and performs input switching. An input switching signal indicating that the next packet to be transferred is a time information packet generated by the packet generator 163 is output to the unit 162.
[0069]
When receiving the time information packet generation signal from the control unit 161, the packet generation unit 163 generates a time information packet based on the time information output from the control unit 161 and outputs the time information packet to the input switching unit 162.
[0070]
The input switching unit 162 normally receives the TS packets extracted by the packet selection unit 12, and sequentially outputs the TS packets to the recording / playback control unit 2 as TS streams. When receiving the input switching signal from the control unit 161, the input switching unit 162 outputs the time information packet output from the packet generation unit 163 to the recording / playback control unit 2 as a TS stream. When the time information packet for one TS packet from the packet generation unit 163 is output to the recording / playback control unit 2, the TS packet output from the packet selection unit 12 is output to the recording / playback control unit 2 as a TS stream again.
[0071]
FIG. 4A to FIG. 4F are diagrams illustrating an example of a time information packet generated by the packet generation unit 163. The time information packet can be recognized by the reproduction control unit 3 as long as it can be determined that the packet is a special packet and that the time information is included. It is not limited to the packet shown in FIG.
[0072]
FIG. 4A shows a special packet by setting the most significant bit of the first synchronization byte (0x47) of the TS packet to “1” (0xC7). Note that “0x” indicates that the subsequent numbers are expressed in hexadecimal.
[0073]
FIG. 4B shows a special packet by setting the error indication bit in the flag of the TS packet to “1”. The error indication bit is assigned to the most significant bit of the second byte from the head of the TS packet, and when this bit is “1”, it indicates that the packet contains an error. Therefore, unless the packet selector 12 extracts a packet including an error, it can be recognized that an error indication bit in the packet sent from the recording controller 1 is a special packet.
[0074]
FIG. 4C shows that the packet is a special packet by setting the PID to a value “0x1FFF” indicating that it is a null packet. The null packet is a packet for controlling the arrival timing of the TS, and is a packet that does not contain data. Therefore, even if such a packet is inserted, it only consumes the capacity of the recording medium and does not adversely affect it. Absent. Therefore, as long as the packet selection unit 12 does not extract a null packet, it can be recognized that a packet with a PID of “0x1FFF” indicating a null packet in the packet transmitted from the recording control unit 1 is a special packet.
[0075]
The identifier included in the time information packet is used when determining whether or not the packet is inserted immediately before the PCR packet. “1” is set immediately before the PCR packet, and “0” is set when not immediately before the PCR packet. It is only necessary to determine whether or not the time information packet is immediately before the PCR packet, and the present invention is not limited to this. The reason why the time information is 6 bytes is that the same clock as the STC is used as a clock for generating the time information. If another clock is used, the number of bytes corresponding to that is set. You can do that.
[0076]
FIG. 4D to FIG. 4F show examples in which the time information packet can be recognized using the mechanism of the PCR detector. In the normal TS packet, the adaptation field control bit and the PCR flag are set to include the adaptation field and the PCR flag, and time information is set at the position of the PCR. By adopting such a format, it is possible to recognize the time information packet by diverting the mechanism of the PCR detector as it is.
[0077]
FIG. 5 is a block diagram for explaining the details of the reproduction control unit 3. The reproduction control unit 3 includes a time information packet selection unit 31, a time information extraction unit 32, and a null packet insertion unit 33.
[0078]
The time information packet selector 31 receives the TS stream read by the recording / playback controller 2 and extracts the time information packet inserted during recording. The time information packet selection unit 31 sends the TS stream after extracting the time information packet to the null packet insertion unit 33. The time information extraction unit 32 extracts time information from the time information packet extracted by the time information packet selection unit 31 and sends it to the null packet insertion unit 33, and the packet is positioned immediately before the PCR packet. The identifier indicating whether or not is sent to the null packet insertion unit 33.
[0079]
FIG. 6 is a block diagram for explaining the null packet insertion unit 33 in detail. Null packet insertion unit 33 includes a control unit 331, a PCR arrival time holding unit 332, a null packet generation unit 333, and an input switching unit 334.
[0080]
When receiving the time information packet detection signal, the control unit 331 inputs time information sent from the time information extraction unit 32 and an identifier indicating whether or not the time information packet is located immediately before the PCR packet. If the time information packet is located immediately before the PCR packet and is located before the first PCR packet, the control unit 331 sets the arrival time in the time information packet as the PCR arrival time holding unit. The counter for counting the packets (TS packet and null packet) that have been sent and held in 332 is reset. When the time information packet is input after the first PCR packet, the control unit 331 counts the time information included in the time information packet, the time information held in the PCR arrival time holding unit 332, and the internal count. The number of null packets to be generated is calculated based on the number of packets that are present. A method for calculating the number of null packets to be generated will be described below.
[0081]
The arrival time held in the PCR arrival time holding unit 332 is T0, the number of packets already sent to the playback device 5 after detecting the first arrived PCR packet is P, and the arrival time in the time information packet is Tn. Assuming that the set common transfer rate is R, the number of null packets is calculated by the following equation.
[0082]
Number of null packets = (Tn−T0) / R−P (1)
The control unit 331 outputs the calculated number of null packets to the null packet generation unit 333 and outputs a packet generation signal instructing generation of the null packet to the null packet generation unit 333. Then, the control unit 331 outputs an input switching signal to the input switching unit 334 and instructs to output a null packet transmitted from the null packet generation unit 333 as a TS stream.
[0083]
The input switching unit 334 normally inputs TS packets that are not extracted by the time information packet selector 31 and sequentially transfers them to the playback device 5 as TS streams. The transfer to the playback device 5 is performed at a preset constant transmission rate that does not depend on the encoding bit rate of the TS stream. When the input switching unit 334 receives the input switching signal from the control unit 331, the input switching unit 334 transfers the null packet output from the null packet generation unit 333 to the playback device 5 as a TS stream. When the transmission of the null packet from the null packet generation unit 333 is completed, the input switching unit 334 again transfers the TS packet from the time information packet selection unit 31 to the playback device 5 as a TS stream. The input switching unit 334 outputs a packet transmission signal indicating that the packet has been transmitted to the control unit 331 every time a packet is transmitted to the playback device 5. The control unit 331 counts the number of packets already transmitted based on this packet transmission signal.
[0084]
FIG. 7 is a diagram for explaining a TS stream generated by the recording / playback apparatus according to the present embodiment. When input data obtained by multiplexing two programs shown in FIG. 7A is input to the recording control unit 1, the arrival time (1) of the PCR packet of the first program A is included as shown in FIG. 7B. After the special packet (time information packet) is generated and inserted, the PCR packet of program A and the three TS packets of program A are sent out. The subsequent four program B TS packets are discarded, and a special packet including the packet arrival time {circle over (2)} is generated and inserted instead. Thereafter, three TS packets of program A are sent out, the subsequent four TS packets of program B are discarded, and a special packet including packet arrival time (3) is generated and inserted instead. Thereafter, the same processing is performed. The TS stream generated in this way is sequentially recorded on the recording medium 4 by the recording / playback control unit 2.
[0085]
When the TS stream in which the special packet shown in FIG. 7B is inserted is read from the recording medium 4 by the recording / playback control unit 2 and transferred to the reproduction control unit 3, the first special stream shown in FIG. The packet is extracted, and the arrival time included in the special packet is held in the PCR arrival time holding unit 332. Then, as shown in FIG. 7C, the PCR packet of program A and the three TS packets of program A are transferred to the playback device 5 from the packet arrival time (1). Then, the packet arrival time (2) included in the next special packet is extracted, and the number of null packets is calculated from the packet arrival times (1) and (2), as shown in FIG. A null packet corresponding to the number of null packets is inserted, and arrival time {circle around (2)} is reproduced.
[0086]
Then, after the three TS packets of the following program A are transferred, the packet arrival time (3) included in the next special packet is extracted, and the number of null packets is calculated from the packet arrival times (1) and (3). Then, null packets corresponding to the calculated number of null packets are inserted as shown in FIG. 7C, and the arrival time (3) is reproduced. Thereafter, the same processing is performed.
[0087]
The number of null packets to be inserted depends on the arrival time included in the special packet and the transmission rate when it is transferred to the playback device 5. The transmission rate can be treated as a fixed value because a common transmission rate is used regardless of the bit rate of the input stream. FIG. 7D shows an example when the TS stream is transferred at a bit rate different from the bit rate of the input stream. Compared with the prior art shown in FIG. 13D, the data transferred to the playback device 5 is distributed to reduce the amount of data transferred at one time, so that the input buffer of the playback device 5 overflows. It becomes possible to prevent.
[0088]
In the recording / playback apparatus in the present embodiment, the arrival time included in the time information packet arriving immediately before the first arrived PCR packet is T0, and the first arrival of the PCR packet is detected before the playback apparatus 5 has already been detected. The number of null packets is calculated by setting P as the number of transmitted packets, Tn as the arrival time in the time information packet, and R as the set common transfer rate.
[0089]
However, according to this method, since the value of (Tn−T0) increases, an error is likely to occur in the number of null packets to be inserted. In order to prevent this, the arrival time included in the time information packet arriving immediately before the latest PCR packet arriving at the reproduction control unit 3 is set to T0, and the number of packets transmitted thereafter is counted as P. The number of null packets can be calculated using equation (1), and accumulation of errors in the number of null packets to be inserted can be prevented.
[0090]
Further, without determining whether or not the time information packet is immediately before the PCR packet, the arrival time included in the time information packet that arrived last time is set as T0, and the number of packets transmitted thereafter is counted as P. Similarly, the number of null packets can be calculated using equation (1), and accumulation of errors in the number of null packets to be inserted can be prevented.
[0091]
As described above, according to the recording / playback apparatus in the present embodiment, only the desired program data is extracted from the input stream including a plurality of program data, and the packet arrival time is included instead of the discarded data. Since the packet is inserted, the data amount of the TS stream can be reduced, and the recording time of the recording medium can be extended. In addition, since a special packet is inserted every predetermined time after the arrival of the first PCR packet, the data transferred to the playback device 5 is distributed to reduce the amount of data transferred at one time. Thus, it is possible to prevent the input buffer of the playback device 5 from overflowing.
[0092]
(Embodiment 2)
The recording / playback apparatus according to the second embodiment of the present invention differs from the recording / playback apparatus according to the first embodiment shown in FIG. 1 only in the configuration and function of the time information packet insertion unit 16. Therefore, detailed description of overlapping configurations and functions will not be repeated. In the following description, the reference numeral of the time information packet insertion unit in this embodiment is 16 '.
[0093]
FIG. 8 is a block diagram for explaining details of the time information packet insertion unit 16 'in the present embodiment. This time information packet insertion unit 16 ′ is only different from the time information packet insertion unit 16 in the first embodiment shown in FIG. 3 in that the reset signal output from the control unit 161 to the recording counter unit 164 is deleted. Is different. Therefore, detailed description of overlapping configurations and functions will not be repeated. The reference numerals of the control unit and the recording counter unit in the present embodiment will be described as 161 'and 164', respectively.
[0094]
When the PCR detection signal is input from the PCR detector 13, the control unit 161 ′ sends the time information packet generation signal and the PCR arrival time information held in the PCR arrival time holding unit 14 to the packet generation unit 163. Output. In addition, the control unit 161 ′ outputs an input switching signal indicating that the next packet to be transferred is a time information packet generated by the packet generation unit 163 to the input switching unit 162.
[0095]
The recording counter unit 164 ′ starts counting the internal counter from the start of the operation of the time information packet insertion unit 16 ′, and outputs a time super signal to the control unit 161 ′ when a predetermined count value is exceeded. Reset the internal counter.
[0096]
When receiving the time super signal from the recording counter unit 164 ′, the control unit 161 ′ outputs the time information packet generation signal and the packet arrival time information held in the packet arrival time holding unit 15 to the packet generation unit 163, An input switching signal indicating that a packet to be transferred next is a time information packet generated by the packet generation unit 163 is output to the input switching unit 162.
[0097]
When receiving the time information packet generation signal from the control unit 161 ′, the packet generation unit 163 generates a time information packet based on the time information output from the control unit 161 ′ and outputs it to the input switching unit 162.
[0098]
As described above, according to the recording / playback apparatus in the present embodiment, the reset signal between the control unit 161 ′ and the recording counter 164 ′ is deleted and the operation associated therewith is omitted. Compared with the recording / playback apparatus, the circuit configuration can be simplified.
[0099]
(Embodiment 3)
The recording / playback apparatus according to the third embodiment of the present invention differs from the recording / playback apparatus according to the first embodiment only in the configuration and function of the null packet insertion unit 33 shown in FIG. Therefore, detailed description of overlapping configurations and functions will not be repeated. In the following description, the reference numeral of the null packet insertion unit in the present embodiment is 33 '.
[0100]
FIG. 9 is a block diagram for explaining details of the null packet insertion unit 33 ′ in the present embodiment. The null packet insertion unit 33 ′ includes a control unit 331 ′, a null packet generation unit 333 ′, an input switching unit 334 ′, and a reproduction counter unit 335.
[0101]
When receiving the time information packet detection signal, the control unit 331 ′ inputs the time information sent from the time information extraction unit 32 and an identifier indicating whether or not the time information packet is located immediately before the PCR packet. . Then, if the time information packet is located immediately before the PCR packet and is located before the first PCR packet, the control unit 331 ′ determines the arrival time in the time information packet as the reproduction counter unit 335. Set to.
[0102]
When the time information is set by the control unit 331 ′, the reproduction counter unit 335 counts up based on the clock used for generating the time information during recording. When time information is input thereafter, the control unit 331 ′ compares the input time information (Tn) with the current value (Tc) of the reproduction counter unit 335. When Tn> Tc, the control unit 331 ′ outputs a transmission start signal instructing the null packet generation unit 333 ′ to transmit a null packet, outputs an input switching signal to the input switching unit 334 ′, and then generates a null packet generation unit. An instruction to output a null packet transmitted from 333 ′ as a TS stream is given. When Tn ≦ Tc, the control unit 331 ′ ends the output of the transmission start signal to the null packet generation unit 333 ′ and the output of the input switching signal to the input switching unit 334 ′.
[0103]
The input switching unit 334 'normally inputs TS packets that are not extracted by the time information packet selector 31 and sequentially transfers them to the playback device 5 as TS streams. The transfer to the playback device 5 is performed at a preset constant transmission rate that does not depend on the encoding bit rate of the TS stream. When the input switching unit 334 ′ receives the input switching signal from the control unit 331 ′, the input switching unit 334 ′ transfers the null packet output from the null packet generation unit 333 ′ to the playback device 5 as a TS stream. When the transmission of the null packet from the null packet generation unit 333 ′ is completed, the input switching unit 334 ′ again transfers the TS packet from the time information packet selection unit 31 to the playback device 5 as a TS stream.
[0104]
As described above, according to the recording / playback apparatus of the present embodiment, the time information input by the control unit 331 ′ is compared with the current value of the playback counter unit 335, and if Tn> Tc, the null packet Since the transmission start signal for instructing the generation unit 333 ′ to transmit the null packet is output and the input switching signal is output to the input switching unit 334 ′, the transmission is performed like the null packet insertion unit 33 in the first embodiment. It is no longer necessary to count the number of completed packets, and the configuration of the apparatus can be simplified.
[0105]
(Embodiment 4)
FIG. 10 is a block diagram showing a schematic configuration of a recording / playback apparatus 1 ′ according to the fourth embodiment of the present invention. The recording / playback apparatus according to the present embodiment is different from the recording / playback apparatus according to the first embodiment shown in FIG. 1 only in that the PCR detector 13 is replaced with a PCR thinning unit 17. Therefore, detailed description of overlapping configurations and functions will not be repeated.
[0106]
The PCR thinning unit 17 includes the PCR detector 13 described in the first embodiment, and performs PCR detection in the packet output from the packet selection unit 12 and PCR thinning. When a PCR packet is detected by the PCR detector 13, the PCR thinning-out unit 17 determines the time when the packet arrives in the packet arrival time holding unit 15 and the previous PCR packet held in the PCR arrival time holding unit 14. The difference from the arrival time of the PCR packet transferred to the time information packet insertion unit 16 is calculated. If the difference is within a predetermined value, the PCR thinning unit 17 deletes the PCR packet and performs thinning.
[0107]
FIG. 11 is a flowchart for explaining a processing procedure of the PCR thinning unit 17 in the present embodiment. First, the PCR detector 13 reads the first 6 bytes of the packet output from the packet selector 12 (S11), and checks the adaptation field control bit and the PCR flag (S12). As shown in FIG. 2A, if the upper bit of the adaptation field control bit of the 4th byte is “1” and the PCR flag of the 6th byte is “1”, a PCR is included in the packet. A determination is made (including S12 and PCR), and the process proceeds to step S13. In other cases, it is determined that no PCR is included in the packet (S12, PCR is not included), and the process proceeds to step S21.
[0108]
In step S13, the PCR thinning unit 17 calculates the difference between the time when the current PCR packet arrives and the arrival time of the PCR packet that was previously sent to the time information packet insertion unit 16 as a PCR packet. Then, it is determined whether or not the difference is within a certain time (S14).
[0109]
If the difference is within a certain time (S14, within a certain time), the PCR is deleted. That is, the PCR thinning unit 17 sets the PCR flag of the PCR packet to “0” and outputs the 6 bytes read in step S11 (S15). Then, the next 6 bytes (PCR) are discarded, and (adaptation field length-7) bytes are read and output as they are (S16). Then, the PCR thinning unit 17 outputs 6 bytes of stuffing bytes (S17), reads the data for the remaining payload (183-adaptation field length), and outputs the data as it is (S18). The TS packet after the PCR deletion shown in FIG. 2B is generated by the processes of S15 to S18 described above.
[0110]
In step S14, if the difference is greater than or equal to a certain time (S14, greater than or equal to a certain time), the PCR thinning unit 17 copies the time information held in the packet arrival time holding unit 15 to the PCR arrival time holding unit 14. (S19), a PCR detection signal is output to the time information packet insertion unit 16 (S20). Then, the 6 bytes read in step S11 are output as they are (S21), and the remaining data are also output as they are (S22).
[0111]
As described above, according to the recording / playback apparatus of the present embodiment, the time when the PCR thinning unit 17 arrives at the current PCR packet and the PCR packet sent to the time information packet inserting unit 16 as a PCR packet before. Since the difference from the arrival time is calculated and the PCR is deleted if the difference is within a certain time, excessive time information packets are inserted even in a TS stream with a high PCR frequency. Can be prevented, and the storage capacity of the storage medium can be used effectively.
[0112]
The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a recording / playback apparatus according to Embodiment 1 of the present invention.
FIG. 2A is a diagram illustrating a TS packet including a PCR. (B) is a figure which shows TS packet after PCR deletion.
FIG. 3 is a diagram for explaining the time information packet insertion unit 16 in detail.
FIG. 4 is a diagram illustrating an example of a time information packet.
FIG. 5 is a block diagram for explaining details of a reproduction control unit 3;
6 is a block diagram for explaining the null packet insertion unit 33 in detail. FIG.
FIG. 7 is a diagram for explaining a TS stream generated by the recording / playback apparatus according to the first embodiment of the present invention.
FIG. 8 is a block diagram for explaining details of a time information packet insertion unit 16 'in the second embodiment of the present invention.
FIG. 9 is a block diagram for explaining details of a null packet insertion unit 33 ′ according to Embodiment 3 of the present invention.
FIG. 10 is a block diagram showing a schematic configuration of a recording / playback apparatus 1 ′ according to Embodiment 4 of the present invention.
FIG. 11 is a flowchart for explaining a processing procedure of a PCR thinning unit 17 according to the fourth embodiment of the present invention.
FIG. 12 is a diagram for explaining a second prior art.
FIG. 13 is a diagram for explaining a third prior art.
[Explanation of symbols]
1, 1 ′ recording / playback device, 2 recording / playback control unit, 3 playback control unit, 4 recording medium, 5 playback device, 11 synchronization detection unit, 12 packet selection unit, 13 PCR detection unit, 14 PCR arrival time holding unit, 15 Packet arrival time holding unit, 16, 16 ′ time information packet inserting unit, 17 PCR thinning unit, 31 time information packet selecting unit, 32 time information extracting unit, 33, 33 ′ null packet inserting unit, 161, 161 ′ control unit, 162 input switching unit, 163 packet generation unit, 164, 164 ′ recording counter unit, 331, 331 ′ control unit, 332 PCR arrival time holding unit, 333 null packet generation unit, 334, 334 ′ input switching unit, 335 reproduction counter unit .

Claims (18)

TSストリームから所望の番組データに対応したパケットを抽出するための抽出手段と、
前記TSストリームから前記所望の番組データに対応したPCRパケットを検出するための検出手段と、
前記検出手段によって検出されたPCRパケットの到着時刻を保持するためのPCR到着時刻保持手段と、
前記抽出手段によって抽出されたパケットの到着時刻を保持するためのパケット到着時刻保持手段と、
前記PCR到着時刻保持手段によって保持されるPCRパケットの到着時刻を含んだ時刻情報パケットと、前記パケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットとを生成し、前記抽出手段によって抽出されたパケットに挿入するための時刻情報パケット挿入手段と、
前記時刻情報パケット挿入手段によって時刻情報パケットが挿入されたデータを記録媒体に記録するための記録手段とを含む録画装置。
Extraction means for extracting packets corresponding to desired program data from the TS stream;
Detection means for detecting a PCR packet corresponding to the desired program data from the TS stream;
PCR arrival time holding means for holding the arrival time of the PCR packet detected by the detection means;
Packet arrival time holding means for holding the arrival time of the packet extracted by the extraction means;
Generating the time information packet including the arrival time of the PCR packet held by the PCR arrival time holding unit and the time information packet including the arrival time of the packet held by the packet arrival time holding unit; Time information packet insertion means for inserting into the packet extracted by the means;
And a recording unit for recording the data, into which the time information packet is inserted by the time information packet inserting unit, on a recording medium.
前記時刻情報パケット挿入手段は、所定周期でカウントアップするカウント手段と、
前記検出手段によってPCRパケットが検出されると、前記PCR到着時刻保持手段によって保持されるPCRパケットの到着時刻を含んだ時刻情報パケットを生成して前記カウント手段をリセットし、
前記PCRパケットが到着してから前記カウント手段が所定値を超える毎に前記パケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成するためのパケット生成手段と、
前記抽出手段によって抽出されたパケットと、前記パケット生成手段によって生成された時刻情報パケットとを切替えて出力するための入力切替手段とを含む、請求項1記載の録画装置。
The time information packet insertion means includes count means for counting up at a predetermined cycle;
When a PCR packet is detected by the detection means, a time information packet including the arrival time of the PCR packet held by the PCR arrival time holding means is generated and the counting means is reset,
A packet generating means for generating a time information packet including an arrival time of a packet held by the packet arrival time holding means every time the counting means exceeds a predetermined value after the arrival of the PCR packet;
The recording apparatus according to claim 1, further comprising: an input switching unit for switching and outputting the packet extracted by the extraction unit and the time information packet generated by the packet generation unit.
前記時刻情報パケット挿入手段は、所定周期でカウントアップするカウント手段と、
前記検出手段によってPCRパケットが検出されると、前記PCR到着時刻保持手段によって保持されるPCRパケットの到着時刻を含んだ時刻情報パケットを生成し、
前記TSストリームの入力を開始してから前記カウント手段が所定値を超える毎に前記パケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成するためのパケット生成手段と、
前記抽出手段によって抽出されたパケットと、前記パケット生成手段によって生成された時刻情報パケットとを切替えて出力するための入力切替手段とを含む、請求項1記載の録画装置。
The time information packet insertion means includes count means for counting up at a predetermined cycle;
When a PCR packet is detected by the detection means, a time information packet including the arrival time of the PCR packet held by the PCR arrival time holding means is generated,
A packet generating means for generating a time information packet including an arrival time of a packet held by the packet arrival time holding means every time the counting means exceeds a predetermined value after starting input of the TS stream;
The recording apparatus according to claim 1, further comprising: an input switching unit for switching and outputting the packet extracted by the extraction unit and the time information packet generated by the packet generation unit.
前記入力切替手段は、前記検出手段によって検出されたPCRパケットの直前に、前記パケット生成手段によって生成されたPCRパケットの到着時刻を含んだ時刻情報パケットを挿入する、請求項2または3記載の録画装置。  4. The recording according to claim 2, wherein the input switching unit inserts a time information packet including an arrival time of the PCR packet generated by the packet generation unit immediately before the PCR packet detected by the detection unit. apparatus. 前記パケット生成手段は、前記PCRパケットの直前に挿入される時刻情報パケットであるか否かを判定するための識別子を含んだ時刻情報パケットを生成する、請求項4記載の録画装置。  The recording apparatus according to claim 4, wherein the packet generation unit generates a time information packet including an identifier for determining whether or not the time information packet is inserted immediately before the PCR packet. 前記パケット生成手段は、前記検出手段によって検出されたPCRパケットの到着時刻と、前記PCR到着時刻保持手段に保持される1つ前のPCRパケットの到着時刻との差分が所定間隔以内の場合には、前記パケット到着時刻保持手段によって保持されるパケットの到着時刻を含んだ時刻情報パケットを生成しない、請求項2〜5のいずれかに記載の録画装置。  The packet generation means, when the difference between the arrival time of the PCR packet detected by the detection means and the arrival time of the previous PCR packet held in the PCR arrival time holding means is within a predetermined interval 6. The recording apparatus according to claim 2, wherein a time information packet including an arrival time of the packet held by the packet arrival time holding means is not generated. 前記録画装置はさらに、前記検出手段によって検出されたPCRパケットの到着時刻と、前記PCR到着時刻保持手段に保持される1つ前のPCRパケットの到着時刻との差分が所定間隔以内の場合には、前記検出手段によって検出されたPCRパケットのPCRを削除して前記時刻情報パケット挿入部へ出力するためのPCR間引き手段を含む、請求項1〜6のいずれかに記載の録画装置。  The recording apparatus further includes a case where a difference between the arrival time of the PCR packet detected by the detection means and the arrival time of the previous PCR packet held in the PCR arrival time holding means is within a predetermined interval. The recording apparatus according to claim 1, further comprising: a PCR thinning-out unit for deleting the PCR of the PCR packet detected by the detecting unit and outputting the PCR packet to the time information packet inserting unit. 記録媒体に記録されたデータを読出すための読出手段と、
前記読出手段によって読出されたデータから時刻情報パケットを抽出するための抽出手段と、
前記抽出手段によって抽出された時刻情報パケットに含まれる時刻情報に基づいてヌルパケットを生成し、前記抽出手段によって時刻情報パケットが抽出された後のストリームデータに前記生成されたヌルパケットを挿入するためのヌルパケット挿入手段と、
前記ヌルパケット挿入手段によってヌルパケットが挿入された後のストリームデータを再生するための再生手段とを含み、
前記時刻情報は、所望の番組データに対応したPCRパケットの到着時刻と、前記所望の番組データに対応したPCRパケット以外のパケットの到着時刻とを含む、再生装置。
Reading means for reading data recorded on the recording medium;
Extracting means for extracting a time information packet from the data read by the reading means;
In order to generate a null packet based on the time information included in the time information packet extracted by the extracting means, and to insert the generated null packet into the stream data after the time information packet is extracted by the extracting means Null packet insertion means,
Look including a reproduction means for reproducing the stream data after the null packet is inserted by the null packet inserting means,
The reproduction apparatus , wherein the time information includes an arrival time of a PCR packet corresponding to desired program data and an arrival time of a packet other than the PCR packet corresponding to the desired program data .
前記ヌルパケット挿入手段は、PCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持するためのPCR到着時刻保持手段と、
前記抽出手段によって抽出された時刻情報パケットに含まれる時刻情報と前記PCR到着時刻保持手段によって保持される時刻情報との差分に基づいて、挿入すべきヌルパケット数を算出するための算出手段と、
前記算出手段によって算出された数のヌルパケットを生成するためのヌルパケット生成手段と、
前記抽出手段によって時刻情報パケットが抽出された後のパケットと、前記ヌルパケット生成手段によって生成されたヌルパケットとを切替えて出力するための入力切替手段とを含む、請求項8記載の再生装置。
The null packet insertion means includes a PCR arrival time holding means for holding time information included in a time information packet immediately before the PCR packet;
A calculating means for calculating the number of null packets to be inserted based on the difference between the time information included in the time information packet extracted by the extracting means and the time information held by the PCR arrival time holding means;
Null packet generating means for generating the number of null packets calculated by the calculating means;
9. The reproducing apparatus according to claim 8, further comprising: an input switching unit for switching and outputting the packet after the time information packet is extracted by the extracting unit and the null packet generated by the null packet generating unit.
前記PCR到着時刻保持手段は、最初に到着したPCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持し、
前記算出手段は、前記最初のPCRパケットが到着してから現在までの間に前記再生手段へ送出したパケット数をカウントし、該パケット数、前記抽出手段によって抽出された時刻情報パケットに含まれる時刻情報と前記PCR到着時刻保持手段によって保持される時刻情報との差分および伝送レートに基づいて、挿入すべきヌルパケット数を算出する、請求項9記載の再生装置。
The PCR arrival time holding means holds the time information included in the time information packet immediately before the first arrived PCR packet,
The calculation means counts the number of packets sent to the reproduction means between the arrival of the first PCR packet and the present time, and the number of packets and the time included in the time information packet extracted by the extraction means The reproduction device according to claim 9, wherein the number of null packets to be inserted is calculated based on a difference between information and time information held by the PCR arrival time holding means and a transmission rate.
PCR到着時刻保持手段は、到着した最新のPCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持し、
前記算出手段は、前記最新のPCRパケットが到着してから現在までの間に前記再生手段へ送出したパケット数をカウントし、該パケット数、前記抽出手段によって抽出された時刻情報パケットに含まれる時刻情報と前記PCR到着時刻保持手段によって保持される時刻情報との差分および伝送レートに基づいて、挿入すべきヌルパケット数を算出する、請求項9記載の再生装置。
The PCR arrival time holding means holds the time information included in the time information packet immediately before the latest PCR packet that has arrived,
The calculation means counts the number of packets sent to the reproduction means between the arrival of the latest PCR packet and the present time, and the number of packets and the time included in the time information packet extracted by the extraction means The reproduction device according to claim 9, wherein the number of null packets to be inserted is calculated based on a difference between information and time information held by the PCR arrival time holding means and a transmission rate.
前記ヌルパケット挿入手段は、最初に到着したPCRパケットの直前の時刻情報パケットに含まれる時刻情報が設定され、所定周期でカウントアップするカウント手段と、
前記抽出手段によって抽出された時刻情報パケットに含まれる時刻情報と、前記カウント手段のカウント値とを比較するための比較手段と、
前記比較手段によって、前記抽出手段によって抽出された時刻情報パケットに含まれる時刻情報が、前記カウント手段のカウント値より大きいと判定された場合には、ヌルパケットを生成するためのヌルパケット生成手段と、
前記抽出手段によって時刻情報パケットが抽出された後のパケットと、前記ヌルパケット生成手段によって生成されたヌルパケットとを切替えて出力するための入力切替手段とを含む、請求項8記載の再生装置。
The null packet insertion means is set with time information included in the time information packet immediately before the first arrived PCR packet, and count means for counting up at a predetermined cycle;
Comparing means for comparing the time information included in the time information packet extracted by the extracting means with the count value of the counting means;
A null packet generating means for generating a null packet when the comparing means determines that the time information included in the time information packet extracted by the extracting means is greater than the count value of the counting means; ,
9. The reproducing apparatus according to claim 8, further comprising: an input switching unit for switching and outputting the packet after the time information packet is extracted by the extracting unit and the null packet generated by the null packet generating unit.
TSストリームから所望の番組データに対応したパケットを抽出するステップと、
前記TSストリームから前記所望の番組データに対応したPCRパケットを検出するステップと、
前記検出されたPCRパケットの直前に該PCRパケットが到着したときの時刻情報を含んだ時刻情報パケットを生成して前記抽出されたパケットに挿入するステップと、
前記PCRパケットが到着してから所定時間を超える毎に当該時刻情報を含んだ時刻情報パケットを生成して前記抽出されたパケットに挿入するステップと、
前記時刻情報パケットが挿入されたデータを記録媒体に記録するステップとを含む録画方法。
Extracting a packet corresponding to desired program data from the TS stream;
Detecting a PCR packet corresponding to the desired program data from the TS stream;
Generating a time information packet including time information when the PCR packet arrives immediately before the detected PCR packet and inserting it into the extracted packet;
Generating a time information packet including the time information and inserting it into the extracted packet every time a predetermined time has passed since the arrival of the PCR packet;
Recording the data into which the time information packet is inserted on a recording medium.
TSストリームから所望の番組データに対応したパケットを抽出するステップと、
前記TSストリームから前記所望の番組データに対応したPCRパケットを検出するステップと、
前記検出されたPCRパケットの直前に該PCRパケットが到着したときの時刻情報を含んだ時刻情報パケットを生成して前記抽出されたパケットに挿入するステップと、
前記TSストリームの入力を開始してから所定時間を超える毎に当該時刻情報を含んだ時刻情報パケットを生成して前記抽出されたパケットに挿入するステップと、
前記時刻情報パケットが挿入されたデータを記録媒体に記録するステップとを含む録画方法。
Extracting a packet corresponding to desired program data from the TS stream;
Detecting a PCR packet corresponding to the desired program data from the TS stream;
Generating a time information packet including time information when the PCR packet arrives immediately before the detected PCR packet and inserting it into the extracted packet;
Generating a time information packet including the time information and inserting it into the extracted packet every time a predetermined time has elapsed since the start of input of the TS stream;
Recording the data into which the time information packet is inserted on a recording medium.
前記時刻情報パケットは、PCRパケットの直前の時刻情報パケットであるか否かを示す識別子を含む、請求項13または14記載の録画方法。  The recording method according to claim 13 or 14, wherein the time information packet includes an identifier indicating whether or not the time information packet is immediately before the PCR packet. 前記PCRパケットを検出するステップは、PCRパケットが所定間隔内に検出された場合には、当該PCRパケット内のPCR情報を削除したパケットを生成して出力するステップを含む、請求項13〜15のいずれかに記載の録画方法。  16. The step of detecting the PCR packet includes a step of generating and outputting a packet from which PCR information in the PCR packet is deleted when the PCR packet is detected within a predetermined interval. The recording method according to any one of the above. 記録媒体に記録されたデータを読出すステップと、
前記読出されたデータから時刻情報パケットを抽出するステップと、
前記抽出された時刻情報パケットに含まれる時刻情報に基づいてヌルパケットを生成し、前記時刻情報パケットが抽出された後のストリームデータに前記生成されたヌルパケットを挿入するステップと、
前記ヌルパケットが挿入された後のストリームデータを再生するステップとを含み、
前記時刻情報は、所望の番組データに対応したPCRパケットの到着時刻と、前記所望の番組データに対応したPCRパケット以外のパケットの到着時刻とを含む、再生方法。
Reading the data recorded on the recording medium;
Extracting a time information packet from the read data;
Generating a null packet based on the time information included in the extracted time information packet, and inserting the generated null packet into the stream data after the time information packet is extracted;
Look including a step of reproducing the stream data after the null packet is inserted,
The reproduction method , wherein the time information includes an arrival time of a PCR packet corresponding to desired program data and an arrival time of a packet other than the PCR packet corresponding to the desired program data .
前記ヌルパケットを挿入するステップは、PCRパケットの直前の時刻情報パケットに含まれる時刻情報を保持するステップと、
前記抽出された時刻情報パケットに含まれる時刻情報と前記保持される時刻情報との差分に基づいて、挿入すべきヌルパケット数を算出するステップと、
前記算出された数のヌルパケットを生成するステップと、
前記時刻情報パケットが抽出された後のパケットと、前記生成されたヌルパケットとを切替えて出力するステップとを含む、請求項17記載の再生方法。
Inserting the null packet includes holding time information included in a time information packet immediately before the PCR packet;
Calculating the number of null packets to be inserted based on the difference between the time information included in the extracted time information packet and the held time information;
Generating the calculated number of null packets;
The reproduction method according to claim 17, further comprising a step of switching and outputting the packet after the time information packet is extracted and the generated null packet.
JP2000306468A 2000-10-05 2000-10-05 RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF Expired - Fee Related JP3650018B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000306468A JP3650018B2 (en) 2000-10-05 2000-10-05 RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000306468A JP3650018B2 (en) 2000-10-05 2000-10-05 RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF

Publications (2)

Publication Number Publication Date
JP2002118824A JP2002118824A (en) 2002-04-19
JP3650018B2 true JP3650018B2 (en) 2005-05-18

Family

ID=18787156

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000306468A Expired - Fee Related JP3650018B2 (en) 2000-10-05 2000-10-05 RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF

Country Status (1)

Country Link
JP (1) JP3650018B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706379B2 (en) 2006-03-20 2010-04-27 Kabushiki Kaisha Toshiba TS transmission system, transmitting apparatus, receiving apparatus, and TS transmission method

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3558983B2 (en) * 2000-12-19 2004-08-25 株式会社東芝 Digital broadcast recording and playback device
US8081865B2 (en) 2001-03-29 2011-12-20 Panasonic Corporation AV data recording apparatus and method, recording media recorded by the same, AV data reproducing apparatus and method, and AV data recording and reproducing apparatus and method
JP4556785B2 (en) * 2005-06-27 2010-10-06 船井電機株式会社 Data transmission system
JP4746998B2 (en) * 2006-02-15 2011-08-10 Necディスプレイソリューションズ株式会社 Transmission rate adjusting device and transmission rate adjusting method
JP4777224B2 (en) 2006-12-01 2011-09-21 三菱電機株式会社 Data reproducing apparatus and data reproducing method
KR101309433B1 (en) 2006-12-18 2013-09-23 엘지전자 주식회사 Apparatus and Method for Recording of Digital Multimedia Broadcasting Receiver
JP2009303231A (en) * 2009-08-07 2009-12-24 Hitachi Kokusai Electric Inc Digital transmission system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706379B2 (en) 2006-03-20 2010-04-27 Kabushiki Kaisha Toshiba TS transmission system, transmitting apparatus, receiving apparatus, and TS transmission method

Also Published As

Publication number Publication date
JP2002118824A (en) 2002-04-19

Similar Documents

Publication Publication Date Title
US6956869B1 (en) Data recording and/or reproducing apparatus, method, and system and recording medium
CN100397884C (en) Digital signal processing apparatus and its processing method
US8249419B2 (en) Method for generating additional information for guaranteeing seamless playback between data streams, recording medium storing the information, and recording, editing and/or playback apparatus using the same
JP3666625B2 (en) Data recording method and data recording apparatus
JP3516206B2 (en) Data stream processing apparatus and method, and program storage medium
JP3650018B2 (en) RECORDING DEVICE, REPRODUCTION DEVICE, AND METHOD THEREOF
JP3558983B2 (en) Digital broadcast recording and playback device
EP1199890B1 (en) Coded data transfer control method and storage and reproduction system
JP3592186B2 (en) Data recording / reproducing device
JP4207304B2 (en) Information input device and method, information output device and method, and recording medium
US20090263104A1 (en) Stream playback control device
KR100442279B1 (en) Record-playback system of digital video and audio image
US7072572B2 (en) Method of and apparatus for merging bit streams for seamless reproduction, and recording medium for recording control information for bit stream merging
JP3862933B2 (en) Recording device
JP2004515022A (en) Method of providing program specification information on information recording medium
KR100657262B1 (en) Recording medium for storing additional information so as to ensure seamless playback between data stream
JPH10276404A (en) Digital video recorder
JP2002101387A (en) Reproducing device and method, image processor, method for processing image and storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050104

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: 20050201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050216

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080225

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090225

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140225

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees