JP2001268518A - Data recording and reproducing device - Google Patents

Data recording and reproducing device

Info

Publication number
JP2001268518A
JP2001268518A JP2000080272A JP2000080272A JP2001268518A JP 2001268518 A JP2001268518 A JP 2001268518A JP 2000080272 A JP2000080272 A JP 2000080272A JP 2000080272 A JP2000080272 A JP 2000080272A JP 2001268518 A JP2001268518 A JP 2001268518A
Authority
JP
Japan
Prior art keywords
packet
time stamp
data
pcr
recording
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.)
Granted
Application number
JP2000080272A
Other languages
Japanese (ja)
Other versions
JP3592186B2 (en
Inventor
Takayuki Mizunaga
隆行 水永
Mamoru Oda
守 小田
Takeshi Hashimoto
剛 橋本
Akito Mori
玲人 森
Shinichiro Shirai
慎一郎 白井
Takeshi Hayama
剛 葉山
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 JP2000080272A priority Critical patent/JP3592186B2/en
Publication of JP2001268518A publication Critical patent/JP2001268518A/en
Application granted granted Critical
Publication of JP3592186B2 publication Critical patent/JP3592186B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data recording and reproducing device capable of executing reproduction by using a common reproducing stream sending rate independently of the bit rate of a stream. SOLUTION: The data recording and reproducing device is provided with a packet selection part 13 for identifying the packet ID of an MPEG2 transport stream and selecting a PCR packet, a recording buffer 14 for storing the identified packet, a packet generation part 15 for generating a time stamp packet using time as information, and a packet insertion part 16 for inserting the time stamp packet into the transport stream. The device is provided also with a recording/reproducing control part 17 for recording the packet inserted transport stream and controlling reproduction, a time stamp packet selection part 20 for identifying the time stamp packet from data outputted from a reproducing buffer 19, a control part 21 for controlling the reading of data from the buffer 19 on the basis of the time stamp, and an output control part 22 for outputting the read data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数のデータが時
分割多重された多重化データの中から、1つのデータを
抜き出して記録再生するためのデータ記録再生装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording / reproducing apparatus for extracting and recording and reproducing one data from multiplexed data obtained by time-division multiplexing a plurality of data.

【0002】[0002]

【従来の技術】MPEG(Moving Picture Expert Grou
p)により提唱されたMPEG2(国際規格ISO/I
EC13818−1)は、デジタルビデオ信号及びデジ
タルオーディオ信号を圧縮する符号化方式である。MP
EG2では、パケットを用いた時分割多重方式を採用し
ている。例えば、この方式を用いてビデオ信号とオーデ
ィオ信号を多重化するときには、ビデオ信号及びオーデ
ィオ信号をパケットと呼ばれる適当な長さのストリーム
にそれぞれ分割し、ビデオ信号のパケットとオーディオ
信号のパケットとを適宜切り換えて時分割伝送する。
2. Description of the Related Art MPEG (Moving Picture Expert Group)
MPEG2 (international standard ISO / I)
EC13818-1) is an encoding method for compressing digital video signals and digital audio signals. MP
EG2 employs a time division multiplexing method using packets. For example, when multiplexing a video signal and an audio signal using this method, the video signal and the audio signal are divided into streams of appropriate length called packets, and the video signal packet and the audio signal packet are appropriately divided. Switch to time division transmission.

【0003】さらに、MPEG2は、複数の番組データ
の伝送を実現するために、マルチプログラミング対応の
多重・分離方式を採用している。例えば、この方式を用
いれば、1つの番組データを構成するビデオ信号及びオ
ーディオ信号を時分割伝送するだけでなく、複数のプロ
グラムを構成するビデオ信号及びオーディオ信号を時分
割伝送することができる。
Further, MPEG2 employs a multiplexing / demultiplexing method compatible with multiprogramming in order to realize transmission of a plurality of program data. For example, if this method is used, not only a video signal and an audio signal constituting one program data can be transmitted in a time division manner, but also a video signal and an audio signal constituting a plurality of programs can be transmitted in a time division manner.

【0004】このようなマルチプログラミング対応の多
重・分離方式の1つとして、トランスポートストリーム
と呼ばれる方式がある。このトランスポートストリーム
方式では、PESパケット(Packetized Elementary St
ream Packet)をさらに複数のパケットに分割し、複数
の番組データを時分割伝送する。各パケットは固定長で
あり、その長さは、比較的短く、具体的には188バイ
トである。図12は、MPEG2のトランスポートスト
リーム(TS)の構造を示す図である。
[0004] As one of such multiplexing / demultiplexing methods compatible with multiprogramming, there is a method called a transport stream. In this transport stream method, PES packets (Packetized Elementary Strategies) are used.
Ream Packet) is further divided into a plurality of packets, and a plurality of program data is transmitted in a time-division manner. Each packet has a fixed length, and its length is relatively short, specifically 188 bytes. FIG. 12 is a diagram showing the structure of an MPEG-2 transport stream (TS).

【0005】また、トランスポートストリーム(TS)
方式を採用して時分割伝送された番組データを受信し、
再生するためには、送信装置に設けられた符号器と受信
装置(再生装置)に設けられた復号器との間で同期をと
る必要がある。トランスポートストリーム方式では、符
号器と復号器との間で同期をとるために、PCR(Prog
ram Clock Reference:プログラム時刻基準参照値)と
呼ばれる時刻基準を設定及び校正するための情報を伝送
し、このPCRに基づいて符号器と復号器との間の同期
をとる。
[0005] Also, a transport stream (TS)
Receiving program data transmitted in a time-division manner using the
In order to reproduce, it is necessary to synchronize between the encoder provided in the transmitting device and the decoder provided in the receiving device (reproducing device). In the transport stream system, in order to synchronize between the encoder and the decoder, a PCR (Prog
Information for setting and calibrating a time reference called a ram clock reference (program clock reference value) is transmitted, and the encoder and the decoder are synchronized based on the PCR.

【0006】PCRを用いて、符号器と復号器との間の
同期をとるためには、PCRの値と、PCRが復号器に
到達する時刻を正確に管理する必要がある。具体的に
は、PCRは6バイトのデータであり、複号器は、PC
Rの最終バイトが到達した時刻にPCRの値を復号器内
にセットする必要がある。そして、複号器は、PCRの
到達時刻とPCRの値を用いて、復号器内において復号
処理及び再生処理の基準となるSTC(System Time Cl
ock:システム同期信号)を設定し、又は校正する。
In order to synchronize the encoder and the decoder using the PCR, it is necessary to accurately manage the value of the PCR and the time at which the PCR arrives at the decoder. Specifically, PCR is 6-byte data, and the
It is necessary to set the value of PCR in the decoder at the time when the last byte of R arrives. Then, the decoder uses the arrival time of the PCR and the value of the PCR to set a STC (System Time Clamp) as a reference for decoding and reproduction in the decoder.
ock: system sync signal) is set or calibrated.

【0007】さらに具体的に説明すると、複号器は、S
TCを出力するカウンタが組み込まれたPLL回路(Ph
ase Locked Loop circuit)を有している。このPLL
回路は、PCRが到達する毎に、PCRの値とSTCの
値との差を演算し、その結果を制御信号に変換し、この
制御信号に基づいてフィードバック制御を行う。これに
より、PCRの到達周期と完全に一致したSTCを作り
出すことができ、送信装置に設けられた符号器と受信装
置に設けられた復号器との間の同期を高精度に確立する
ことができる。
More specifically, the decoder is S
PLL circuit incorporating a TC output counter (Ph
ase Locked Loop circuit). This PLL
The circuit calculates a difference between the PCR value and the STC value each time the PCR arrives, converts the result into a control signal, and performs feedback control based on the control signal. Thus, an STC that completely matches the arrival cycle of the PCR can be created, and synchronization between the encoder provided in the transmitting device and the decoder provided in the receiving device can be established with high accuracy. .

【0008】ところで、上述したようなマルチプログラ
ミング方式の多重・分離方式を用いて伝送された多重化
データを受信し、この受信した多重化データを記録する
技術が開発されている。このような技術が確立すれば、
例えば、デジタル衛星放送サービスを提供する放送局
が、デジタル信号によって記録された複数の映画を多重
化して各家庭に送信し、各家庭では、放送局から送信さ
れた映画をデジタル信号のまま記録することが可能とな
る。ここで、マルチプログラミング方式の多重・分離方
式を用いて伝送された多重化データを記録する方法とし
て、2つの方法が提案されている。
By the way, there has been developed a technique for receiving multiplexed data transmitted using the multiplexing / demultiplexing method of the above-described multiprogramming system and recording the received multiplexed data. Once such technology is established,
For example, a broadcasting station providing a digital satellite broadcasting service multiplexes a plurality of movies recorded by digital signals and transmits the multiplexed movies to each home, and each home records the movies transmitted from the broadcasting stations as digital signals. It becomes possible. Here, two methods have been proposed as a method of recording multiplexed data transmitted using the multiplexing / demultiplexing method of the multiprogramming method.

【0009】第1の方法は、伝送された多重化データを
すべて記録する方法である。この方法では、多重化デー
タのすべてを記録するため、データ量が大きくなるとい
う問題がある。また、多重化された複数の番組データ
に、不要な番組データが含まれていても、これを排除で
きないという問題がある。
The first method is to record all transmitted multiplexed data. In this method, since all of the multiplexed data is recorded, there is a problem that the data amount becomes large. In addition, even if unnecessary program data is included in a plurality of multiplexed program data, there is a problem that this cannot be eliminated.

【0010】第2の方法は、伝送された多重化データの
中から、1つの番組データを抜き出して記録する方法で
ある。この方法を採用すれば、必要な番組データのみを
記録することができ、データ量を小さくすることができ
る。しかし、この第2の方法を採用した場合には、記録
した番組データを再生するときに、PCRによる同期に
支障が生じるという問題がある。
The second method is a method of extracting and recording one program data from the transmitted multiplexed data. If this method is adopted, only necessary program data can be recorded, and the data amount can be reduced. However, when the second method is adopted, there is a problem that when reproducing the recorded program data, the synchronization by the PCR is hindered.

【0011】すなわち、一度記録した番組データを再生
するときでも、送信装置から伝送された多重化データを
受信して再生するときと同様に、PCRの再生時刻とP
CRの値に基づいて再生装置のSTCを設定又は校正す
る必要がある。ところが、時分割多重された信号の中か
ら、1つの番組データを抜き出して記録すると、PCR
の再生時刻とPCRの値との関係が壊されてしまい、P
CRに基づいて再生装置のSTCを設定又は校正するこ
とができないという問題がある。これらの課題に対し、
特開平11−275524号公報に記載のデータ記録方
法では、多重化データからの番組データの抽出におい
て、抽出されたパケット間のパケット数を示すパケット
数データを記録、再生段階でその数値を参照してパケッ
ト間隔を復元することによる解決を試みている。
That is, even when the program data once recorded is reproduced, the reproduction time of the PCR and the reproduction time of the PCR are the same as when the multiplexed data transmitted from the transmitting device is received and reproduced.
It is necessary to set or calibrate the STC of the playback device based on the value of CR. However, if one program data is extracted from the time-division multiplexed signal and recorded, the PCR
The relationship between the playback time of the and the PCR value is broken, and P
There is a problem that the STC of the playback device cannot be set or calibrated based on the CR. For these issues,
In the data recording method described in Japanese Patent Application Laid-Open No. H11-275524, in extracting program data from multiplexed data, packet number data indicating the number of packets between the extracted packets is recorded, and the numerical value is referred to at the reproduction stage. Attempts to resolve the problem by restoring the packet interval.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のデータ記録方法にあっては、入力データのビ
ットレートを考慮していないため、異なるビットレート
のデータを共通の再生装置で再生できないという問題が
発生する。この問題を図13及び図14を用いて説明す
る。
However, in such a conventional data recording method, since the bit rate of input data is not taken into consideration, data of different bit rates cannot be reproduced by a common reproducing apparatus. Problems arise. This problem will be described with reference to FIGS.

【0013】図13は、受信時と送信時のビットレート
を一致させた場合の受信データ、記録データ及び送信デ
ータを示す説明図、図14は、受信時と送信時のビット
レートを変化させた場合の受信データ、記録データ及び
送信データを示す説明図である。ここでは、異なるビッ
トレートを持つデータとして、27Mbps(図13及
び図14)のものと、9Mbps(図14)のものを仮
定する。27MbpSのデータは、1TSパケットが約
0・055ms毎に到着するストリームであり、9Mb
psのデータは、1TSパケットが約0.167ms毎
に到着するストリームである。図13は、従来例の方式
を用いて、3つの番組が多重化された27Mbpsのビ
ットレートを持つTSストリームから番組Aのみを記録
して、27Mbpsのビットレートで送出した例を示
す。
FIG. 13 is an explanatory diagram showing reception data, recording data, and transmission data when the bit rates at the time of reception and transmission are matched, and FIG. 14 shows the bit rates at the time of reception and transmission. FIG. 9 is an explanatory diagram showing reception data, recording data, and transmission data in the case. Here, it is assumed that data having different bit rates are 27 Mbps (FIGS. 13 and 14) and 9 Mbps (FIG. 14). The 27 MbpS data is a stream in which one TS packet arrives approximately every 0.055 ms, and is 9 MbS.
The data of ps is a stream in which one TS packet arrives about every 0.167 ms. FIG. 13 shows an example in which only a program A is recorded from a TS stream having a bit rate of 27 Mbps in which three programs are multiplexed and transmitted at a bit rate of 27 Mbps using the conventional method.

【0014】図中のPは、1TSパケット(188バイ
ト)を表している。パケットP内部のPCR値は、その
TSパケットに付けられたPCR値であり、このパケッ
トが複合器に到着する時のSTC値と一致する必要があ
る。図中、27Mbpsクロックは、PCRやSTCで
用いられるクロックを表したものであり、受信データや
送信データのビットレートによらず、その間隔は一定で
ある。受信ビットレートは、入力ストリームのビットレ
ートである。この多重化ストリームから番組Aを抽出
し、パケット間のパケット数(図13では、パケット数
=2)をカウントして記録したものが記録データであ
る。送信データでは、記録データ中にカウントされたパ
ケット数分、空パケットを挿入することによって、スト
リームの送出間隔を復元する。
P in the figure represents one TS packet (188 bytes). The PCR value inside the packet P is the PCR value attached to the TS packet, and needs to match the STC value when this packet arrives at the multifunction peripheral. In the figure, a 27 Mbps clock represents a clock used in PCR and STC, and its interval is constant regardless of the bit rate of the reception data or transmission data. The reception bit rate is the bit rate of the input stream. The program A is extracted from this multiplexed stream, and the number of packets between packets (in FIG. 13, the number of packets = 2) is counted and recorded to be recorded data. In the transmission data, the transmission interval of the stream is restored by inserting empty packets by the number of packets counted in the recording data.

【0015】図14は、従来例の方式を用いて、3つの
番組が多重化された9Mbpsのビットレートを持つT
Sストリームから番組Aのみを記録して、27Mbps
のビットレートで送出した例を示す。図13の場合と同
様に、ストリームから番組Aを抽出し、パケット間のパ
ケット数(図14では、パケット数=2)をカウントし
て記録したものが記録データであり、送信データでは、
記録データ中にカウントされたパケット数分、空パケッ
トを挿入することによって、ストリームの送出間隔を復
元する。但し、この場合の送信データはPCR値が示す
間隔にはなっていない。
[0015] FIG. 14 is a diagram showing a T multiplexed three programs having a bit rate of 9 Mbps using the conventional method.
27 Mbps by recording only program A from S stream
An example of transmission at a bit rate of As in the case of FIG. 13, program A is extracted from the stream, the number of packets between packets (the number of packets = 2 in FIG. 14) is counted and recorded, and the recorded data is the recorded data.
By inserting empty packets by the number of packets counted in the recording data, the transmission interval of the stream is restored. However, the transmission data in this case is not at the interval indicated by the PCR value.

【0016】これは、パケット数は受信する際のビット
レートに依存する数であるため、送信するストリームの
ビットレートと受信時のものが異なると正しい間隔でス
トリームを送出することができなくなるためである。前
述したように、9Mbpsのデータでは、1パケットは
約0.167msであり、27Mbpsのデータでは、
約0.055msである。挿入するパケットの間隔は受
信する際のビットレートにより異なるため、挿入するパ
ケット数からは、パケット間の時間的間隔は復元できな
い。
This is because the number of packets depends on the bit rate at the time of reception, and if the bit rate of the stream to be transmitted is different from that at the time of reception, the stream cannot be transmitted at the correct interval. is there. As described above, for 9 Mbps data, one packet is about 0.167 ms, and for 27 Mbps data,
It is about 0.055 ms. Since the interval between inserted packets differs depending on the bit rate at the time of reception, the time interval between packets cannot be restored from the number of inserted packets.

【0017】このように、抽出されたパケット間のパケ
ット数を記録する場合は、受信ストリームのビットレー
トに合わせて、送信ストリームのビットレートをコント
ロールする必要があるため、異なるビットレートを持つ
データを共通の再生装置で行うことは難しく、例えば、
CS放送やBSデジタル放送を録画したデータを共通の
装置を用いて再生することができなくなる。また、アナ
ログ放送をエンコーディングして、デジタル録画する際
には、ビットレートを変更して録画時間を延ばしたいと
いう要望に対しても、そのビットレート毎に、再生スト
リームの送出ビットレートを変更しなければならない。
As described above, when recording the number of packets between the extracted packets, it is necessary to control the bit rate of the transmission stream according to the bit rate of the reception stream. It is difficult to do with a common playback device, for example,
Data obtained by recording CS broadcasts or BS digital broadcasts cannot be reproduced using a common device. In addition, when encoding an analog broadcast and recording it digitally, in response to requests to change the bit rate and extend the recording time, the transmission bit rate of the playback stream must be changed for each bit rate. Must.

【0018】本発明は、このような問題に鑑みなされた
ものであって、ストリームのビットレートによらず、多
重化データから任意のストリームを抽出し、共通の再生
ストリーム送出速度を用いて、再生を行うことができる
データ記録再生装置を提供することを目的としている。
The present invention has been made in view of such a problem, and it is an object of the present invention to extract an arbitrary stream from multiplexed data regardless of the bit rate of the stream and reproduce the stream using a common playback stream transmission speed. It is an object of the present invention to provide a data recording / reproducing device capable of performing the following.

【0019】[0019]

【課題を解決するための手段】本発明のデータ記録再生
装置は、複数の番組データから所望の番組データを受信
する受信手段と、受信したMPEGにおけるトランスポ
ートストリームの同期検出を行う同期検出手段と、前記
トランスポートストリームのパケットIDを識別し、特
定のパケットを抽出するパケット抽出手段と、該パケッ
ト抽出手段により識別されたパケットを格納する記録バ
ッファと、前記特定のパケットの到着時刻を情報とする
タイムスタンプパケットを生成するパケット生成手段
と、前記パケット生成手段により生成されたタイムスタ
ンプパケットを前記トランスポートストリームに挿入す
るパケット挿入手段と、前記タイムスタンプパケット挿
入後の前記トランスポートストリームを記録する記録媒
体と、前記記録媒体の記録再生を制御する録再制御手段
と、再生データを格納する再生バッファと、前記再生バ
ッファの出力データから前記タイムスタンプパケットを
識別するタイムスタンプパケット抽出手段と、前記タイ
ムスタンプ抽出手段により抽出されたタイムスタンプパ
ケットからタイムスタンプを取得し、該タイムスタンプ
の時刻情報を基に前記再生バッファからのデータの読み
出しを制御する制御手段と、前記再生バッファから読み
出したデータを出力する出力手段とを備えるものであ
る。
A data recording / reproducing apparatus according to the present invention comprises: receiving means for receiving desired program data from a plurality of program data; and synchronous detecting means for detecting synchronization of a transport stream in the received MPEG. A packet extracting unit for identifying a packet ID of the transport stream and extracting a specific packet, a recording buffer for storing a packet identified by the packet extracting unit, and an arrival time of the specific packet as information. Packet generating means for generating a time stamp packet, packet inserting means for inserting the time stamp packet generated by the packet generating means into the transport stream, and recording for recording the transport stream after inserting the time stamp packet Medium and the recording medium Recording and reproduction control means for controlling recording and reproduction; a reproduction buffer for storing reproduction data; a time stamp packet extraction means for identifying the time stamp packet from output data of the reproduction buffer; Control means for acquiring a time stamp from a time stamp packet and controlling reading of data from the reproduction buffer based on time information of the time stamp, and output means for outputting data read from the reproduction buffer It is.

【0020】また、前記パケット挿入手段は、前記パケ
ット生成手段で生成されたタイムスタンプパケットを、
前記特定のパケットの直前に挿入するものであってもよ
い。また、前記パケット抽出手段で抽出される特定のパ
ケットは、PCRパケットであり、前記パケット生成手
段は、前記PCRパケットを識別した際に出力されるP
CR識別信号をトリガとしてタイムスタンプのカウント
を行う再生カウンタを有し、該再生カウンタからのカウ
ント値を情報とするパケットを生成し、前記制御手段
は、前記タイムスタンプ抽出手段からタイムスタンプを
取得し、前記再生カウンタのカウント値と比較すること
により前記PCRの送出タイミングを制御するものであ
ることで、再生時には、そのタイムスタンプの値を基に
再生データの送出タイミングを調整しているため、スト
リームのビットレートによらず、受信したタイミングで
PCRの送出が可能となる。
Further, the packet inserting means inserts the time stamp packet generated by the packet generating means,
It may be inserted immediately before the specific packet. Further, the specific packet extracted by the packet extracting means is a PCR packet, and the packet generating means outputs a P packet output when the PCR packet is identified.
A reproduction counter that counts a time stamp by using the CR identification signal as a trigger, generates a packet that uses the count value from the reproduction counter as information, and obtains a time stamp from the time stamp extraction unit. Since the transmission timing of the PCR is controlled by comparing with the count value of the reproduction counter, at the time of reproduction, the transmission timing of the reproduction data is adjusted based on the time stamp value. Irrespective of the bit rate, the PCR can be transmitted at the timing of reception.

【0021】また、前記パケット抽出手段で抽出される
特定のパケットは、PCRパケットであり、前記パケッ
ト生成手段は、前記パケット抽出手段によりPCRパケ
ットが抽出された時にそのPCRを取得するPCR取得
手段と、前記PCRパケットの1つ前に到達したPCR
パケットを保持する前PCR保持手段と、前記PCR取
得手段により取得されたPCRの値と前記前PCR保持
手段に保持されたPCRの値との差分を算出するPCR
差分算出手段とを有し、前記PCR差分算出手段により
算出された差分を時間情報とするパケットを生成し、前
記制御手段は、前記タイムスタンプ抽出手段からタイム
スタンプを取得し、前記再生カウンタのカウント値と比
較することにより前記PCRの送出タイミングを制御す
るものであることで、2つのPCRの差分をタイムスタ
ンプパケットの情報として用いるため、記録カウンタと
再生カウンタに必要なビット長が実際のPCRより少な
くすることができる。
The specific packet extracted by the packet extracting means is a PCR packet, and the packet generating means includes a PCR obtaining means for obtaining a PCR when the PCR packet is extracted by the packet extracting means. , The PCR that arrived just before the PCR packet
A pre-PCR holding unit for holding a packet, and a PCR for calculating a difference between the PCR value obtained by the PCR obtaining unit and the PCR value held by the pre-PCR holding unit.
A packet having time information based on the difference calculated by the PCR difference calculating means, wherein the control means obtains a time stamp from the time stamp extracting means, and counts the reproduction counter. Since the transmission timing of the PCR is controlled by comparing with the value, the difference between the two PCRs is used as the information of the time stamp packet. Can be reduced.

【0022】また、前記パケット抽出手段によりパケッ
トを抽出する際に、アダプテーションフィールドコント
ロールフラグとパケットのPCRフラグによりPCRパ
ケットを識別するものであることで、PCRのPIDを
指定することなくタイムスタンプパケットをPCRパケ
ットの直前に挿入することが可能になり、PCRのPI
Dを知る必要がなくなる。
When the packet is extracted by the packet extracting means, the PCR packet is identified by the adaptation field control flag and the PCR flag of the packet, so that the time stamp packet can be identified without specifying the PID of the PCR. It becomes possible to insert immediately before the PCR packet,
You do not need to know D.

【0023】また、前記パケット生成手段は、前記特定
のパケットの到着時刻によらずに、一定時間が経過する
とタイムスタンプパケットを生成し、前記制御手段は、
前記タイムスタンプ抽出手段からタイムスタンプを取得
し、再生カウンタのカウント値と比較することによりデ
ータの送出タイミングを制御するものであることで、P
CRパケットによらず、一定時間間隔によりタイムスタ
ンプパケットを挿入するため、データ放送などPCRが
存在しないストリームに関しても、送出間隔をコントロ
ールすることができる。
Further, the packet generation means generates a time stamp packet after a fixed time elapses, regardless of the arrival time of the specific packet.
By acquiring a time stamp from the time stamp extracting means and comparing the time stamp with the count value of the reproduction counter, the transmission timing of the data is controlled.
Since the timestamp packet is inserted at a fixed time interval regardless of the CR packet, the transmission interval can be controlled even for a stream such as a data broadcast where no PCR exists.

【0024】また、前記パケット生成手段は、PCRパ
ケットを識別した際に出力されるPCR識別信号をトリ
ガとしてタイムスタンプのカウントを行う再生カウンタ
を有し、該再生カウンタからのカウント値を情報とする
パケットを生成し、さらに、取得したタイムスタンプよ
り前記再生カウンタから出力されるカウント値が小さい
場合、カウント値がタイムスタンプと等しくなるまでダ
ミーデータを出力するダミーデータ挿入手段を備えるも
のであることで、再生時にデータを途切れさせることな
く出力することができる。
The packet generating means has a reproduction counter for counting a time stamp triggered by a PCR identification signal output when a PCR packet is identified, and uses the count value from the reproduction counter as information. Generating a packet, and further comprising a dummy data insertion unit for outputting dummy data until the count value becomes equal to the time stamp when the count value output from the reproduction counter is smaller than the obtained time stamp. Thus, data can be output without interruption during reproduction.

【0025】また、前記ダミーデータ挿入手段は、取得
したタイムスタンプより前記再生カウンタから出力され
るカウント値が小さい場合、カウント値がタイムスタン
プと等しくなるまでに、トランスポートストリームパケ
ットを挿入可能な数を算出し、その数だけダミーデータ
パケットを生成して出力するものであることで、再生時
にデータを途切れさせることなく出力することができ
る。
If the count value output from the reproduction counter is smaller than the acquired time stamp, the dummy data inserting means may determine whether the transport stream packet can be inserted until the count value becomes equal to the time stamp. Is calculated and dummy data packets are generated and output by the number of data packets, so that data can be output without interruption during reproduction.

【0026】[0026]

【発明の実施の形態】以下、添付図面を参照しながら本
発明の好適なデータ記録再生装置の実施の形態について
詳細に説明する。本発明の実施の形態として、本発明に
よるデータ記録再生装置を、MPEG2におけるトラン
スポートストリーム方式によって複数の番組データが時
分割多重された多重化データから所望の番組データを抽
出して記録し、その記録した番組データを再生する場合
を例に挙げて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a data recording / reproducing apparatus according to the present invention will be described below in detail with reference to the accompanying drawings. As an embodiment of the present invention, a data recording / reproducing apparatus according to the present invention extracts and records desired program data from multiplexed data in which a plurality of program data are time-division multiplexed by a transport stream system in MPEG2. The case where the recorded program data is reproduced will be described as an example.

【0027】まず、本発明の基本的な考え方について説
明する。本発明は、PCR値を保存する特殊パケット
(タイムスタンプパケット)を挿入することによって、
ストリームのビットレートによらず、多重化データから
任意のストリームを抽出できるようにする。PCR値
は、PCR値を含むパケットが、復号器に到着する絶対
時間を示している。このため、ビットレートによらずに
パケット間隔を復元することができる。
First, the basic concept of the present invention will be described. According to the present invention, by inserting a special packet (time stamp packet) for storing a PCR value,
An arbitrary stream can be extracted from multiplexed data regardless of the bit rate of the stream. The PCR value indicates an absolute time at which a packet including the PCR value arrives at the decoder. Therefore, the packet interval can be restored regardless of the bit rate.

【0028】図1は、本発明によるPCR値を用いた場
合のパケット間隔復元方法の説明図であり、図1(a)
は、27MHzで送出する場合の受信データ、記録デー
タ及び送信データを、図1(b)は、18MHzで送出
した場合の送信データをそれぞれ示す。図1(a)で
は、前記図14の場合と同様に、受信データは3つの番
組(番組A,番組B,番組C)が多重化された受信ビッ
トレート9MbpsのTSストリームである。この中か
ら番組Aのみを抽出して記録し、ストリームに依存しな
い共通の送信ビットレート(図1(a)では、27MH
z)で送出を行うものとする。
FIG. 1 is an explanatory diagram of a packet interval restoring method using a PCR value according to the present invention.
1 shows received data, recording data, and transmission data when transmitted at 27 MHz, and FIG. 1B shows transmission data when transmitted at 18 MHz. In FIG. 1A, as in the case of FIG. 14, the received data is a TS stream having a reception bit rate of 9 Mbps in which three programs (program A, program B, and program C) are multiplexed. From this, only program A is extracted and recorded, and a common transmission bit rate independent of the stream (27 MHz in FIG. 1A)
Sending is performed in z).

【0029】受信する多重化ストリームから番組Aを抽
出する際に、番組Aに付加されたPCR値(図1では、
PCR値=10)、又はPCR差分値(図1では、PC
R差分値=10−1=9)を保持するタイムスタンプパ
ケット100をPCR値を含むパケットの直前に挿入し
て、記録する。記録されたデータを再生する際には、タ
イムスタンプパケット100内の値を参照して、PCR
パケット間隔を復元する。この時、復号器のSTC同様
のクロックカウンタを参照し(図1では、27MHzの
カウンタ)、カウンタ値がタイムスタンプパケット10
0内のPCR値(図1では、PCR値=10)、又はP
CR差分値(図1では、PCR差分値=10−1=9)
に一致するまで、ダミーデータを送出することによっ
て、ストリームの送出間隔を復元することができる。
When extracting program A from the received multiplexed stream, the PCR value added to program A (in FIG. 1,
PCR value = 10) or PCR difference value (PC in FIG. 1)
The time stamp packet 100 holding the R difference value = 10-1 = 9) is inserted and recorded immediately before the packet including the PCR value. When reproducing the recorded data, the PCR in the timestamp packet 100 is referred to
Restore packet intervals. At this time, a clock counter similar to the STC of the decoder is referred to (27 MHz counter in FIG. 1), and the counter value is set to the time stamp packet
PCR value within 0 (PCR value = 10 in FIG. 1) or P
CR difference value (in FIG. 1, PCR difference value = 10-1 = 9)
By sending the dummy data until the data stream matches, the sending interval of the stream can be restored.

【0030】図1(b)は、図1(a)で記録したスト
リームをビットレート=18Mbpsで送出した場合の
例である。この場合でも、PCR値=1を持つパケット
とPCR値=10を持つパケットの間隔は一定となる。
また、タイムスタンプパケット100内に保持する値に
は、PCR値を用いなくてもよく、ストリームのビット
レートに依存しないクロックを用いることにより、送信
データのパケット間隔を復元することは可能である。こ
の方法を図2を用いて説明する。
FIG. 1B shows an example in which the stream recorded in FIG. 1A is transmitted at a bit rate of 18 Mbps. Also in this case, the interval between the packet having the PCR value = 1 and the packet having the PCR value = 10 is constant.
Also, the PCR value may not be used as the value held in the time stamp packet 100, and it is possible to restore the packet interval of the transmission data by using a clock that does not depend on the bit rate of the stream. This method will be described with reference to FIG.

【0031】図2は、本発明によるシステムクロックを
用いた場合のパケット間隔復元方法の説明図である。図
1の場合と同様に、受信データは3つの番組(番組A,
番組B,番組C)が多重化された受信ビットレート9M
bpsのTSストリームである。この中から番組Aのみ
を抽出して記録し、ストリームに依存しない共通の送信
ビットレート(図2では、27MHz)で送出を行うも
のとする。パケット間隔の保持と復元には、ストリーム
の受信時と送信時に共通なシステムクロックカウンタを
用いる。このクロックカウンタは、ビットレートによら
ず、一定の間隔で変化するカウンタである。
FIG. 2 is an explanatory diagram of a packet interval restoring method using a system clock according to the present invention. As in the case of FIG. 1, the received data includes three programs (program A,
Program B, Program C) multiplexed reception bit rate 9M
bps TS stream. It is assumed that only program A is extracted and recorded from among them, and is transmitted at a common transmission bit rate (27 MHz in FIG. 2) independent of the stream. For maintaining and restoring the packet interval, a common system clock counter is used when receiving and transmitting the stream. This clock counter is a counter that changes at fixed intervals regardless of the bit rate.

【0032】受信する多重化ストリームから番組Aを抽
出する際に、該当TSパケットのシステムクロック値
(図2では、システムクロック値=14)又は、前回に
出現したPCRを含むTSパケットのシステムクロック
値(図2では、システムクロック値=14−1=13)
をタイムスタンプパケット100として、該当TSパケ
ットの直前に挿入する。記録されたデータを再生する際
には、タイムスタンプパケット100内の値とクロック
カウンタを参照して、PCRパケット間隔を復元する。
送出時に、カウンタ値がタイムスタンプパケット100
内の値に一致するまで、ダミーデータを送出することに
よって、ストリームの送出間隔を復元することができ
る。
When extracting the program A from the received multiplexed stream, the system clock value of the corresponding TS packet (system clock value = 14 in FIG. 2) or the system clock value of the TS packet containing the PCR that appeared last time (In FIG. 2, the system clock value = 14-1 = 13)
As a time stamp packet 100 and inserted immediately before the corresponding TS packet. When reproducing the recorded data, the PCR packet interval is restored with reference to the value in the time stamp packet 100 and the clock counter.
At the time of transmission, the counter value is the time stamp packet 100
By transmitting the dummy data until the value of the stream matches, the transmission interval of the stream can be restored.

【0033】図3は、本発明の第1の実施の形態のデー
タ記録再生装置の構成を示すブロック図である。本実施
の形態に係るデータ記録再生装置は、デジタル放送の電
波を受信可能なデジタル放送受信機能を備えたテレビジ
ョン受信機に適用することができる。
FIG. 3 is a block diagram showing the configuration of the data recording / reproducing apparatus according to the first embodiment of the present invention. The data recording / reproducing device according to the present embodiment can be applied to a television receiver having a digital broadcast receiving function capable of receiving radio waves of digital broadcast.

【0034】図3において、データ記録再生装置10
は、放送データをデジタルで受信する受信部11(受信
手段)と、受信したMPEG2トランスポートストリー
ムの同期検出を行う同期検出部12(同期検出手段)
と、MPEG2トランスポートストリームのパケットI
Dを識別し、特定のパケットをセレクトするパケットセ
レクト部13(パケット抽出手段)と、パケットセレク
ト部13で識別されたパケットを格納する記録バッファ
14と、特定のパケットの到着時刻を情報とするタイム
スタンプパケットを生成するパケット生成部15(パケ
ット生成手段)と、パケット生成部15で生成されたタ
イムスタンプパケットをMPEG2トランスポートスト
リームに挿入するパケット挿入部16(パケット挿入手
段)と、パケット挿入後のMPEG2トランスポートス
トリームを記録する記録媒体18と、記録媒体18の記
録再生を制御する録再制御部17(録再制御手段)と、
再生データを格納する再生バッファ19と、再生バッフ
ァ18の出力データからタイムスタンプパケットを識別
するタイムスタンプパケットセレクト部20(タイムス
タンプパケット抽出手段)と、タイムスタンプセレクト
部20でセレクトされたタイムスタンプパケットからタ
イムスタンプを取得し、そのタイムスタンプの時刻情報
を基に再生バッファ19からデータの読み出しを制御す
るコントロール部21(制御手段)と、再生バッファ1
9から読み出したデータを出力する出力部22(出力手
段)とから構成される。
In FIG. 3, the data recording / reproducing device 10
Is a reception unit 11 (reception unit) for digitally receiving broadcast data, and a synchronization detection unit 12 (synchronization detection unit) for detecting synchronization of the received MPEG-2 transport stream.
And the packet I of the MPEG2 transport stream
D, a packet selecting unit 13 (packet extracting means) for selecting a specific packet, a recording buffer 14 for storing the packet identified by the packet selecting unit 13, and a time using the arrival time of the specific packet as information. A packet generating unit 15 (packet generating unit) for generating a stamp packet, a packet inserting unit 16 (packet inserting unit) for inserting the time stamp packet generated by the packet generating unit 15 into the MPEG2 transport stream, A recording medium 18 for recording an MPEG2 transport stream, a recording / reproduction control unit 17 (recording / reproduction control means) for controlling recording / reproduction on the recording medium 18,
A playback buffer 19 for storing the playback data; a time stamp packet selecting unit 20 (time stamp packet extracting means) for identifying a time stamp packet from the output data of the playback buffer 18; and a time stamp packet selected by the time stamp selecting unit 20. A control unit 21 (control means) for acquiring a time stamp from the reproduction buffer 19 based on the time information of the time stamp and controlling the reading of data from the reproduction buffer 19;
And an output unit 22 (output means) for outputting the data read from the output unit 9.

【0035】受信部11は、入力端子により受信した信
号の選局を行い所望のチャンネルの放送番組を受信す
る。録再制御部17は、記録命令を受けると、記録媒体
18を録画状態にして、受信部11により受信した番組
を記録する制御を行う。記録媒体18は、録再制御部1
7により選択された信号を記録するもので、VTR(Vi
deo Tape Recorder)や、ハードディスクドライブ(H
DD)、VDP(Video Disc Player)及びMO(Magne
to Optical)等のディスク装置である。
The receiving section 11 selects a signal received at an input terminal and receives a broadcast program of a desired channel. Upon receiving the recording command, the recording / reproduction control unit 17 controls the recording medium 18 to be in a recording state and records the program received by the reception unit 11. The recording medium 18 includes the recording / reproduction control unit 1
7 records the signal selected by VTR (Vi
deo Tape Recorder) and hard disk drive (H
DD), VDP (Video Disc Player) and MO (Magne
to Optical).

【0036】以下、上述のように構成されたデータ記録
再生装置の動作を説明する。まず、データ記録再生装置
10の記録動作について説明する。データ記録再生装置
10では、地上波やケーブル、BS、CS等の放送のテ
レビ番組が受信される。放送されたテレビ放送番組は、
受信放送番組を含む信号として受信部11で受信され
る。受信部1では、放送局などから転送されてくるデジ
タル放送データを受信する。ここで、受信部1で受信す
るデータはMPEG2のトランスポートストリーム(以
下、TSという)である。TSは、映像・音声などに関
するデータを含んだパケットを多重した構成になってお
り、1パケットは188バイトである。パケットには、
それぞれのパケットに含まれるデータを識別するための
ID(以下、PIDという)が各パケットにつけられて
いる。
Hereinafter, the operation of the data recording / reproducing apparatus configured as described above will be described. First, the recording operation of the data recording / reproducing device 10 will be described. The data recording / reproducing apparatus 10 receives a terrestrial broadcast, a broadcast television program such as a cable, BS, or CS. Broadcast television programs are:
The signal is received by the receiving unit 11 as a signal including the received broadcast program. The receiving unit 1 receives digital broadcast data transferred from a broadcasting station or the like. Here, the data received by the receiving unit 1 is an MPEG2 transport stream (hereinafter, referred to as TS). The TS has a configuration in which packets including data relating to video and audio are multiplexed, and one packet is 188 bytes. The packet contains
An ID (hereinafter, referred to as PID) for identifying data included in each packet is attached to each packet.

【0037】このPIDは、各番組を構成するパケット
ごとに固有のPIDがつけられており、例えば、音声は
PID=0x11、映像はPID=0x31、付加デー
タはPID=0x79、PCRはPID=0x20など
である。このPIDを識別することにより、視聴者が所
望する番組を選択することができる。なお、受信部11
は、アナログ放送を受信し、MPEG2のストリームに
エンコードする装置でも構わない。受信したTSは、同
期検出部12により同期が取られ、パケットセレクト部
13に入力される。パケットセレクト部13では、視聴
者が所望した番組を構成するPIDをもつパケットをセ
レクトする。
This PID has a unique PID assigned to each packet constituting each program. For example, PID = 0x11 for audio, PID = 0x31 for video, PID = 0x79 for additional data, PID = 0x20 for PCR And so on. By identifying the PID, the viewer can select a desired program. The receiving unit 11
May be a device that receives an analog broadcast and encodes it into an MPEG2 stream. The received TS is synchronized by the synchronization detector 12 and input to the packet selector 13. The packet selecting unit 13 selects a packet having a PID constituting a program desired by the viewer.

【0038】パケットセレクト部13によりセレクトさ
れたパケットは、記録バッファ14に入力され、一時蓄
積される。パケット挿入部16では、記録バッファ14
に蓄積されているパケットを読み出し、読み出されたパ
ケットは録再制御部17によって記録媒体18に記録さ
れる。このとき、パケット挿入部16から読み出すデー
タはパケット単位に行う。パケット生成部15では、再
生時のデータ送出時刻を情報とするパケットを生成す
る。パケット生成部15から生成信号が入力されると、
記録バッファ14からの読み出しは一時中断し、生成さ
れたタイムスタンプパケットを録再制御部17に出力す
る。タイムスタンプパケットの出力が終了すると、再び
記録バッファ14からパケットを読み出す。そして、そ
のデータは、録再制御部17によって、記録媒体18に
記録される。
The packet selected by the packet selector 13 is input to the recording buffer 14 and is temporarily stored. In the packet insertion unit 16, the recording buffer 14
Is read out, and the read out packet is recorded on the recording medium 18 by the recording / reproduction control unit 17. At this time, data read from the packet insertion unit 16 is performed in packet units. The packet generation unit 15 generates a packet using the data transmission time at the time of reproduction as information. When a generation signal is input from the packet generation unit 15,
Reading from the recording buffer 14 is temporarily suspended, and the generated time stamp packet is output to the recording / reproduction control unit 17. When the output of the time stamp packet is completed, the packet is read from the recording buffer 14 again. Then, the data is recorded on the recording medium 18 by the recording / reproduction control unit 17.

【0039】次に、データ記録再生装置10の再生動作
について説明する。録再制御部17では、記録媒体18
から再生に必要なパケットが読み出され、再生バッファ
19に一時蓄積される。タイムスタンプセレクト部20
は、再生バッファ19からパケットを読み出し、タイム
スタンプパケットを識別すると、コントローラ部21で
そのタイムスタンプの値を保持する。そして、コントロ
ール部21内に有する時計の時刻とタイムスタンプの時
刻が一致すれば、再生バッファ19からパケットを読み
出す。読み出されたパケットは、出力部22によって出
力される。もしタイムスタンプパケットでなければ、タ
イムスタンプパケットを識別するまで連続して再生バッ
ファ19からパケットを読み出し、出力される。
Next, the reproducing operation of the data recording / reproducing apparatus 10 will be described. In the recording / reproduction control unit 17, the recording medium 18
, Packets necessary for reproduction are read out and temporarily stored in the reproduction buffer 19. Time stamp select section 20
Reads a packet from the reproduction buffer 19 and identifies a time stamp packet, and the controller 21 holds the value of the time stamp. When the time of the clock in the control unit 21 matches the time of the time stamp, the packet is read from the reproduction buffer 19. The read packet is output by the output unit 22. If the packet is not a time stamp packet, the packet is continuously read from the reproduction buffer 19 and output until the time stamp packet is identified.

【0040】以上のように、第1の実施の形態のデータ
記録再生装置10は、MPEG2トランスポートストリ
ームのパケットIDを識別し、PCRパケットをセレク
トするパケットセレクト部13と、識別されたパケット
を格納する記録バッファ14と、特定のパケットの到着
時刻を情報とするタイムスタンプパケットを生成するパ
ケット生成部15と、タイムスタンプパケットをトラン
スポートストリームに挿入するパケット挿入部16と、
パケット挿入後のトランスポートストリームを記録する
記録媒体18と、記録媒体18の記録再生を制御する録
再制御部17と、再生データを格納する再生バッファ1
9の出力データからタイムスタンプパケットを識別する
タイムスタンプパケットセレクト部20と、取得したタ
イムスタンプの時刻情報を基に再生バッファ19からデ
ータの読み出しを制御するコントロール部21と、再生
バッファ19から読み出したデータを出力する出力部2
2とを備えて構成したので、ストリームのビットレート
によらず、多重化データから任意のストリームを抽出で
き、共通の再生ストリーム送出速度を用いて、再生を行
うことができる。
As described above, the data recording / reproducing apparatus 10 of the first embodiment identifies the packet ID of the MPEG2 transport stream, and stores the identified packet in the packet selector 13 for selecting the PCR packet. A recording buffer 14, a packet generating unit 15 for generating a time stamp packet using the arrival time of a specific packet as information, a packet inserting unit 16 for inserting the time stamp packet into a transport stream,
A recording medium 18 for recording a transport stream after packet insertion, a recording / reproducing control unit 17 for controlling recording / reproduction on the recording medium 18, and a reproduction buffer 1 for storing reproduction data
9, a time stamp packet selection unit 20 for identifying a time stamp packet from the output data, a control unit 21 for controlling the reading of data from the reproduction buffer 19 based on the time information of the obtained time stamp, and a data read from the reproduction buffer 19. Output unit 2 for outputting data
2 so that an arbitrary stream can be extracted from the multiplexed data regardless of the bit rate of the stream, and can be reproduced using a common reproduction stream transmission speed.

【0041】すなわち、従来例では、多重化ストリーム
中の抽出したパケット間のパケット数を保存し、再生す
る際にパケット数分のダミーデータを挿入する方法であ
ったので、パケット数は受信する際のビットレートに依
存する数のため、パケット間隔を復元するためには入力
データのビットレートと等しいビットレート(クロッ
ク)で出力しなければならず、ストリーム毎に異なる出
力クロックを持つ必要があった。これに対し、本実施の
形態では、PCRパケットの到着時刻を情報とするタイ
ムスタンプパケットを生成し、これをPCRパケットの
直前に挿入して記録し、再生時には、タイムスタンプパ
ケットの情報を基に、PCRの送出タイミングを合わせ
るようにしている。タイムスタンプは、入出力のビット
レートに依存しない数値のため、入力データのデータの
ビットレートと異なるビットレートでも、パケット間隔
を復元することが可能であり、そのため入力が予想され
る複数のビットレートのうち、最も高いものを送出ビッ
トレートちとすることにより、共通の出力クロックを持
つ再生装置で再生することができる。
That is, in the conventional example, the number of packets between the extracted packets in the multiplexed stream is stored, and dummy data corresponding to the number of packets is inserted during reproduction. Therefore, in order to restore the packet interval, it was necessary to output at a bit rate (clock) equal to the bit rate of the input data, and it was necessary to have a different output clock for each stream. . On the other hand, in the present embodiment, a time stamp packet having the arrival time of the PCR packet as information is generated, inserted and recorded immediately before the PCR packet, and at the time of reproduction, based on the information of the time stamp packet. , And the transmission timing of the PCR. Since the timestamp is a numerical value that does not depend on the input / output bit rate, it is possible to restore the packet interval even at a bit rate different from the data bit rate of the input data. Of these, by setting the highest one as the transmission bit rate, it is possible to reproduce with a reproducing apparatus having a common output clock.

【0042】次に、本発明の第2の実施の形態を説明す
る。第2の実施の形態に係るデータ記録再生装置の基本
的な構成は、図1と同じであるためこの部分の説明を省
略する。第2の実施の形態では、パケット生成部15
が、パケットセレクト部13でPCRパケットを識別し
た際に出力されるPCR識別信号をトリガとしてカウン
ト値を情報とするパケットを生成し、コントロール部2
1が、タイムスタンプセレクト部20からタイムスタン
プを取得し、再生カウンタのカウント値と比較すること
でPCRの送出タイミングを計るものである。
Next, a second embodiment of the present invention will be described. The basic configuration of the data recording / reproducing apparatus according to the second embodiment is the same as that shown in FIG. 1, and a description thereof will be omitted. In the second embodiment, the packet generator 15
Generates a packet using the PCR identification signal output when the packet selecting unit 13 identifies the PCR packet as a trigger and using the count value as information,
1 obtains a time stamp from the time stamp selecting unit 20 and compares it with the count value of the reproduction counter to measure the timing of sending the PCR.

【0043】図4は、本実施の形態のデータ記録再生装
置のパケット生成部30の構成を示すブロック図、図5
は、コントロール部40の構成を示すブロック図であ
る。図4において、パケット生成部30は、記録カウン
タ31、及びタイムスタンプパケット生成部32を備え
て構成される。また、図5において、コントロール部4
0は、タイムスタンプ比較部41、再生カウンタ42、
及びバッファコントロール部43を備えて構成される。
上記パケット生成部30及びコントロール部40は、そ
れぞれ図3のパケット生成部15及びコントロール部2
1に置き換えて用いられる。
FIG. 4 is a block diagram showing the configuration of the packet generator 30 of the data recording / reproducing apparatus according to the present embodiment.
3 is a block diagram illustrating a configuration of the control unit 40. FIG. In FIG. 4, the packet generator 30 includes a recording counter 31 and a time stamp packet generator 32. Also, in FIG.
0 is a time stamp comparison unit 41, a reproduction counter 42,
And a buffer control unit 43.
The packet generation unit 30 and the control unit 40 shown in FIG.
It is used instead of 1.

【0044】以下、上述のように構成されたデータ記録
再生装置の動作を説明する。第1の実施の形態のデータ
記録再生装置と同様の動作をする部分に関しては説明を
省略し、異なる動作の部分のみ説明する。まず、データ
記録再生装置の記録動作について説明する。第1の実施
の形態のデータ記録再生装置と同様に、図3において、
パケットセレクト部13では、受信部11で受信したT
Sパケットのセレクトを行い、記録バッファ14により
一時蓄積される。それと同時に、PCRパケット(本実
施の形態の場合、PIDが0x20であるパケット)を
識別したら、PCRパケット識別信号を記録カウンタ3
1に出力する。記録カウンタ31は、記録開始からカウ
ントを開始し、PCRパケット識別信号が入力された時
のカウント値を出力する。タイムスタンプパケット生成
部32では、このカウント値を情報とするタイムスタン
プパケットを生成する。パケットの生成ができれば、パ
ケット挿入部16に生成信号を出力する。この情報は再
生時にデータ転送タイミングを計るのに用いられる。再
生の方法に関する説明については後述する。
Hereinafter, the operation of the data recording / reproducing apparatus configured as described above will be described. A description of parts that perform the same operations as those of the data recording / reproducing apparatus according to the first embodiment will be omitted, and only different operations will be described. First, the recording operation of the data recording / reproducing apparatus will be described. As in the data recording / reproducing apparatus of the first embodiment, in FIG.
In the packet selector 13, the T
The S packet is selected and temporarily stored in the recording buffer 14. At the same time, when a PCR packet (a packet whose PID is 0x20 in this embodiment) is identified, the PCR packet identification signal is output to the recording counter 3.
Output to 1. The recording counter 31 starts counting from the start of recording and outputs a count value when the PCR packet identification signal is input. The time stamp packet generation unit 32 generates a time stamp packet using the count value as information. If a packet can be generated, a generation signal is output to the packet insertion unit 16. This information is used to measure data transfer timing during reproduction. A description of the reproduction method will be described later.

【0045】パケット挿入部16では、記録バッファ1
4に蓄積されているパケットを読み出し、読み出された
パケットは録再制御部17によって記録媒体18に記録
される。パケット挿入部16から読み出すデータは、パ
ケット単位で行う。タイムスタンプパケット生成部32
から生成信号が入力されると、記録バッファ14からの
読み出しは一時中断し、生成されたタイムスタンプパケ
ットを録再制御部17に出力し、タイムスタンプパケッ
トの出力が終了すると、再び記録バッファからパケット
を読み出す。このとき、パケット挿入部16から読み出
されるパケットは、PCRパケットである。つまり、タ
イムスタンプパケットは、PCRパケットの直前に挿入
されることになる。そして、そのデータは、録再制御部
17によって、記録媒体18へ記録される。
In the packet insertion unit 16, the recording buffer 1
4 is read out, and the read out packet is recorded on the recording medium 18 by the recording / reproducing control unit 17. Data read from the packet insertion unit 16 is performed in packet units. Time stamp packet generator 32
When the generation signal is input from the recording buffer 14, the reading from the recording buffer 14 is temporarily suspended, the generated time stamp packet is output to the recording / reproduction control unit 17, and when the output of the time stamp packet is completed, the packet is again output from the recording buffer. Is read. At this time, the packet read from the packet insertion unit 16 is a PCR packet. That is, the time stamp packet is inserted immediately before the PCR packet. Then, the data is recorded on the recording medium 18 by the recording / reproduction control unit 17.

【0046】次に、データ記録再生装置の再生動作につ
いて説明する。録再制御部17では、記録媒体18から
再生に必要なパケットが読み出され、再生バッファ19
に入力され、一時蓄積される。バッファコントロール部
43は、再生バッファ19からの読み出しを制御する。
読み出されたデータは、タイムスタンプパケットセレク
ト部20でタイムスタンプパケットであるかどうかの識
別が行われる。タイムスタンプパケットでなければ、デ
ータは出力部22ヘ入力され、出力部22から再生デー
タが出力される。もしタイムスタンプパケットであると
識別された場合は、コントロール部40のタイムスタン
プ比較部41でそのタイムスタンプの値が保持される。
再生カウンタ42では、最初にきたタイムスタンプの値
を初期値としてセットし、カウントをスタートする。
Next, the reproducing operation of the data recording / reproducing apparatus will be described. The recording / reproduction control unit 17 reads out a packet necessary for reproduction from the recording medium 18, and
And is temporarily stored. The buffer control unit 43 controls reading from the reproduction buffer 19.
The read data is identified by the time stamp packet selector 20 as to whether it is a time stamp packet. If the packet is not a time stamp packet, the data is input to the output unit 22 and the output unit 22 outputs reproduced data. If it is determined that the packet is a time stamp packet, the time stamp comparing unit 41 of the control unit 40 holds the value of the time stamp.
The reproduction counter 42 sets the value of the first time stamp as an initial value and starts counting.

【0047】再生カウンタ42に初期値がセットされる
と、タイムスタンプ比較部41からバッファコントロー
ル部43に読み出し要求が出される。その要求に対して
バッファコントロール部43から読み出し信号が再生バ
ッファ19へ出され、再生バッファ19に蓄積されたデ
ータがタイムスタンプパケットセレクト部20を介して
出力部22に入力され、出力部22から再生データが出
力される。
When the initial value is set in the reproduction counter 42, a read request is issued from the time stamp comparing section 41 to the buffer control section 43. In response to the request, a read signal is output from the buffer control unit 43 to the reproduction buffer 19, and the data stored in the reproduction buffer 19 is input to the output unit 22 via the time stamp packet selection unit 20, and is reproduced from the output unit 22. Data is output.

【0048】次のタイムスタンプパケットが識別される
と、同様に、そのタイムスタンプの値がタイムスタンプ
比較部41で保持される。タイムスタンプ比較部41で
は、そのタイムスタンプの値(T)と再生カウンタ42
の値(C)を比較して、一致あるいはT<Cであれば、
バッファコントロール部43に読み出し要求を出し、再
生バッファ19からデータを出力させ、出力部22から
再生データが出力される。
When the next time stamp packet is identified, the value of the time stamp is similarly held in the time stamp comparing section 41. In the time stamp comparing section 41, the value (T) of the time stamp and the reproduction counter 42
Are compared, and if they match or T <C,
A read request is issued to the buffer control unit 43, data is output from the reproduction buffer 19, and reproduction data is output from the output unit 22.

【0049】本データ記録再生装置において、記録カウ
ンタ31と再生カウンタ42をカウントするクロックの
周波数は等しくしておく必要がある。使用するクロック
は、MPEG2のPCRに使用されている27MHzの
クロックでも良いし、あるいは、それ以外のクロックで
も良い。また、タイムスタンプパケット生成部32で生
成されるパケットの一例を図6に示す。
In the present data recording / reproducing apparatus, the frequency of the clock for counting the recording counter 31 and the clock for counting the reproduction counter 42 must be equal. The clock to be used may be a 27 MHz clock used for the MPEG2 PCR, or may be another clock. FIG. 6 shows an example of a packet generated by the time stamp packet generation unit 32.

【0050】図6は、タイムスタンプパケットの構成を
示す図であり、記録するTSパケットとタイムスタンプ
パケットを区別するために同期バイトの最上位ビットに
フラグを立てたものである。通常の同期バイトは1バイ
トで0x47であるが、タイムスタンプパケットに付い
ている同期バイトは0xC7である。同期バイトの次の
バイトから記録カウンタ31で出力された時間情報が格
納されている。図6では、タイムスタンプはPCRと同
様に6バイトのデータとして格納されているが、時間情
報は187バイト以内であればよく、設計者の設計しや
すいようにデータ長を決定すれば良い。また、図6で
は、タイムスタンプパケットの同期バイトとして最上位
ビットにフラグを立てた例を示したが、PIDを変更す
る、あるいは、ヘッダそのものを変更するなど様々な方
法が考えられる。また、パケットも188バイトにした
が、固定長でなくても、タイムスタンプパケットである
ことを確認できれば可変長でも良い。
FIG. 6 is a diagram showing the structure of a time stamp packet, in which a flag is set in the most significant bit of the synchronization byte in order to distinguish between a TS packet to be recorded and a time stamp packet. The normal sync byte is 0x47 with 1 byte, but the sync byte attached to the time stamp packet is 0xC7. The time information output by the recording counter 31 from the byte next to the synchronization byte is stored. In FIG. 6, the time stamp is stored as 6-byte data as in the case of the PCR, but the time information may be within 187 bytes, and the data length may be determined so that the designer can easily design. Although FIG. 6 shows an example in which the most significant bit is flagged as the synchronization byte of the time stamp packet, various methods such as changing the PID or changing the header itself are conceivable. Although the packet is 188 bytes, the packet may not be of fixed length but may be of variable length as long as it can be confirmed that the packet is a time stamp packet.

【0051】図7は、本データ記録再生装置の受信デー
タ、記録データ及び出力データを示す説明図であり、受
信時のデータ受信間隔と記録データの構成と再生時のデ
ータ転送間隔を示す。使用者が番組Aの記録指示を出し
た場合、図7に示すように、番組Aを構成するTSパケ
ットのみ記録を行い他の番組のTSパケットは破棄す
る。そして、再生時には、タイムスタンプパケットを識
別するまでは連続してデータを出力し、タイムスタンプ
パケットを識別するとデータの出力を一旦中断する。そ
して、タイムスタンプの値とカウンタ値が一致した場合
に次のパケット、すなわちPCRパケットの送出を行っ
ている。図7から明らかなように、本データ記録再生装
置では、受信データと同様のタイミングでPCRパケッ
トの出力が可能となり、番組再生に支障をきたすような
ことがなくなる。
FIG. 7 is an explanatory diagram showing received data, recorded data, and output data of the data recording / reproducing apparatus, showing a data receiving interval at the time of reception, a configuration of recorded data, and a data transfer interval at the time of reproduction. When the user issues a recording instruction for program A, as shown in FIG. 7, only the TS packets constituting program A are recorded, and the TS packets of other programs are discarded. Then, at the time of reproduction, data is continuously output until the time stamp packet is identified. When the time stamp packet is identified, the data output is temporarily stopped. When the time stamp value and the counter value match, the next packet, that is, the PCR packet is transmitted. As is clear from FIG. 7, in the present data recording / reproducing apparatus, it is possible to output a PCR packet at the same timing as that of the received data, so that the program reproduction is not hindered.

【0052】次に、本発明の第3の実施の形態を説明す
る。第3の実施の形態に係るデータ記録再生装置の基本
的な構成は、図1と同じであるためこの部分の説明を省
略する。第3の実施の形態では、パケット生成部15
が、パケットセレクト部13でPCRパケットがセレク
トされた時にそのPCRを取得する手段と、PCRパケ
ットの1つ前に到達したPCRパケットを保持する手段
を有し、その2つのPCRの値の差を時間情報とするパ
ケットを生成し、コントロール部21は、タイムスタン
プセレクト部13からタイムスタンプを取得し、再生カ
ウンタ42のカウント値と比較することでPCRの送出
タイミングを計るものである。
Next, a third embodiment of the present invention will be described. The basic configuration of the data recording / reproducing apparatus according to the third embodiment is the same as that of FIG. In the third embodiment, the packet generator 15
Has means for acquiring a PCR when a PCR packet is selected by the packet selecting unit 13 and means for holding a PCR packet that has arrived immediately before the PCR packet, and determines the difference between the two PCR values. The control unit 21 generates a packet serving as time information, obtains a time stamp from the time stamp selecting unit 13, and compares the time stamp with the count value of the reproduction counter 42 to measure the transmission timing of the PCR.

【0053】図8は、本実施の形態のデータ記録再生装
置のパケット生成部50の構成を示すブロック図であ
る。図4に示すパケット生成部30と同一構成部分には
同一符号を付している。また、本実施の形態のデータ記
録再生装置のコントロール部の構成は、図5に示すコン
トロール部40と同一である。図8において、パケット
生成部50は、PCR取得部51(PCR取得手段)、
前PCR保持部52(前PCR保持手段)、PCR差分
算出部53(PCR差分算出手段)、及びタイムスタン
プパケット生成部32を備えて構成される。上記パケッ
ト生成部50及びコントロール部40(図5参照)は、
それぞれ図3のパケット生成部15及びコントロール部
21に置き換えて用いられる。
FIG. 8 is a block diagram showing the configuration of the packet generator 50 of the data recording / reproducing apparatus of the present embodiment. The same components as those of the packet generation unit 30 shown in FIG. 4 are denoted by the same reference numerals. Further, the configuration of the control unit of the data recording / reproducing apparatus of the present embodiment is the same as the control unit 40 shown in FIG. 8, the packet generation unit 50 includes a PCR acquisition unit 51 (PCR acquisition unit),
It includes a pre-PCR holding unit 52 (pre-PCR holding unit), a PCR difference calculation unit 53 (PCR difference calculation unit), and a time stamp packet generation unit 32. The packet generation unit 50 and the control unit 40 (see FIG. 5)
They are used in place of the packet generation unit 15 and the control unit 21 in FIG. 3, respectively.

【0054】以下、上述のように構成されたデータ記録
再生装置の動作を説明する。第1の実施の形態のデータ
記録再生装置と同様の動作をする部分に関しては説明を
省略し、異なる動作の部分のみ説明する。まず、データ
記録再生装置の記録動作について説明する。第1の実施
の形態のデジタルデータ記録再生装置と同様に、図3に
おいて、パケットセレクト部13では、受信部11で受
信したTSパケットのセレクトを行い、記録バッファ1
4に入力され、一時蓄積される。パケットセレクト部1
3で1回目のPCRパケットを識別すると、そのPCR
の値をパケット生成部50のPCR取得部51で保持す
る。
Hereinafter, the operation of the data recording / reproducing apparatus configured as described above will be described. A description of parts that perform the same operations as those of the data recording / reproducing apparatus according to the first embodiment will be omitted, and only different operations will be described. First, the recording operation of the data recording / reproducing apparatus will be described. As in the digital data recording / reproducing apparatus of the first embodiment, in FIG. 3, the packet selecting unit 13 selects the TS packet received by the receiving unit 11 and
4 and temporarily stored. Packet select unit 1
When the first PCR packet is identified in step 3, the PCR
Is held in the PCR acquisition unit 51 of the packet generation unit 50.

【0055】図9は、PCRの構造を示す図である。こ
の図に示すように、PCRは、TSのオプションフィー
ルドに48ビットの領域であり、33ビットのPCR_
base領域61と、9ビットのPCR_extention領域6
2と、その2つの領域の間の6ビットのStuffing領域6
3とからなる。PCR_base領域63のデータは、90
KHz単位、PCR_extention領域61のデータは、
27MHz単位で1ずつ増加する。PCR値のカウント
アップは、PCR_extention領域61において、27
MHz単位で0から299まで増加し、次にPCR_ex
tention領域61が0になると同時に、PCR_base領
域63が1増加する。
FIG. 9 is a diagram showing the structure of the PCR. As shown in this figure, the PCR is a 48-bit area in the option field of the TS,
base area 61 and 9-bit PCR_extension area 6
2 and a 6-bit Stuffing area 6 between the two areas
3 The data of the PCR_base area 63 is 90
The data of the PCR_extention area 61 in KHz unit is
It increases by 1 in units of 27 MHz. The PCR value is counted up in the PCR_extention area 61 by 27.
Increase from 0 to 299 in MHz, then PCR_ex
At the same time as the tention area 61 becomes 0, the PCR_base area 63 increases by 1.

【0056】図3及び図8に戻って、PCR取得部51
によりPCRを取得すると、PCR差分算出部53から
0が出力され、タイムスタンプパケット生成部32に入
力される。タイムスタンプパケット生成部32では、入
力されたデータを情報として、新たなパケットを生成す
る。生成されたパケットは、パケット挿入部16により
PCRパケットの直前に挿入され、録再制御部17によ
り、記録媒体18に記録される。2回目以降のPCRパ
ケットの識別時には、PCR取得部51で保持されてい
た1つ前のPCRの値(OP)が、前PCR保持部52
で保持され、新たなPCRの値(NP)がPCR取得部
51で保持される。
Returning to FIG. 3 and FIG.
When the PCR is acquired, 0 is output from the PCR difference calculation unit 53 and is input to the time stamp packet generation unit 32. The time stamp packet generation unit 32 generates a new packet using the input data as information. The generated packet is inserted immediately before the PCR packet by the packet insertion unit 16 and recorded on the recording medium 18 by the recording / reproduction control unit 17. At the time of identifying the second and subsequent PCR packets, the value (OP) of the immediately preceding PCR held in the PCR acquisition unit 51 is replaced with the previous PCR holding unit 52.
And the new PCR value (NP) is stored in the PCR acquisition unit 51.

【0057】PCR差分算出部53では、この2つのP
CRの差を計算する。すなわち、新たなPCRの値(N
P)から1つ前のPCRの値(OP)を差し引く(NP
−OP)。この計算結果をタイムスタンプパケット生成
部32に入力する。タイムスタンプパケット生成部32
では、入力されたデータを情報とするタイムスタンプパ
ケットを生成し、パケットを生成信号をパケット挿入部
16に入力する。パケット挿入部16では、生成信号が
入力されると、生成したパケットをPCRパケットの直
前に挿入し、このパケットを録再制御部17に転送す
る。録再制御部17は、記録媒体18へ該パケットを記
録する。ここで、PCR差分算出部53で計算する差分
(NP−OP)は、次式(1)で求められる。
In the PCR difference calculation section 53, the two P
Calculate the CR difference. That is, the new PCR value (N
P) minus the previous PCR value (OP) (NP
-OP). The calculation result is input to the time stamp packet generation unit 32. Time stamp packet generator 32
Then, a time stamp packet having the input data as information is generated, and a packet generation signal is input to the packet insertion unit 16. When the generation signal is input, the packet insertion unit 16 inserts the generated packet immediately before the PCR packet, and transfers this packet to the recording / reproduction control unit 17. The recording / reproduction control unit 17 records the packet on the recording medium 18. Here, the difference (NP-OP) calculated by the PCR difference calculation unit 53 is obtained by the following equation (1).

【0058】 NP−OP=[PCR_base(i)−PCR_base(i−1)]×300 +[PCR_extention(i)−PCR_extention(i−1)] …(1)NP-OP = [PCR_base (i) −PCR_base (i−1)] × 300 + [PCR_extention (i) −PCR_extention (i−1)] (1)

【0059】次に、データ記録再生装置の再生動作につ
いて説明する。録再制御部17では、記憶媒体18から
再生に必要なパケットが読み出され、再生バッファ19
に入力され、一時蓄積される。バッファコントロール部
43は、再生バッファ19からの読み出しを制御する。
読み出されたデータは、タイムスタンプパケットセレク
ト部20でタイムスタンプパケットであるかどうかの識
別が行われる。タイムスタンプパケットでなければ、デ
ータは出力部22に入力され、出力部22から再生デー
タが出力される。もしタイムスタンプパケットであると
識別された場合は、コントロール部40のタイムスタン
プ比較部41でそのタイムスタンプの値が保持される。
Next, the reproducing operation of the data recording / reproducing apparatus will be described. In the recording / reproducing control unit 17, packets necessary for reproduction are read from the storage medium 18,
And is temporarily stored. The buffer control unit 43 controls reading from the reproduction buffer 19.
The read data is identified by the time stamp packet selector 20 as to whether it is a time stamp packet. If the packet is not a time stamp packet, the data is input to the output unit 22, and the output unit 22 outputs reproduced data. If it is determined that the packet is a time stamp packet, the time stamp comparing unit 41 of the control unit 40 holds the value of the time stamp.

【0060】再生カウンタ42では、最初にきたタイム
スタンプの値を初期値としてセットし、カウントをスタ
ートする。再生カウンタ42に初期値がセットされる
と、タイムスタンプ比較部41からバッファコントロー
ル部43に読み出し要求が出される。その要求に対して
バッファコントロール部43から読み出し信号が再生バ
ッファ19へ出され、再生バッファ19に蓄積されたデ
ータがタイムスタンプパケットセレクト部20を介して
出力部22に入力され、出力部22から再生データが出
力される。
The reproduction counter 42 sets the value of the first time stamp as an initial value and starts counting. When the initial value is set in the reproduction counter 42, a read request is issued from the time stamp comparing unit 41 to the buffer control unit 43. In response to the request, a read signal is output from the buffer control unit 43 to the reproduction buffer 19, and the data stored in the reproduction buffer 19 is input to the output unit 22 via the time stamp packet selection unit 20, and is reproduced from the output unit 22. Data is output.

【0061】次のタイムスタンプパケットが識別される
と、同様に、そのタイムスタンプの値がタイムスタンプ
比較部41で保持される。タイムスタンプ比較部41で
は、そのタイムスタンプの値(T)と再生カウンタ42
の値(C)を比較して、一致あるいはT<Cであれば、
バッファコントロール部43に読み出し要求を出すとと
もに、再生カウンタ42のカウント値をリセットする。
バッファコントロール部43では、再生バッファ19へ
読み出し要求を出し、再生バッファ19から出力された
データは、出力部22から出力される。この装置の再生
カウンタ42は、27MHzのクロックを使用する。
When the next time stamp packet is identified, the time stamp value is held in the time stamp comparing section 41 in the same manner. In the time stamp comparing section 41, the value (T) of the time stamp and the reproduction counter 42
Are compared, and if they match or T <C,
A read request is issued to the buffer control unit 43, and the count value of the reproduction counter 42 is reset.
The buffer control unit 43 issues a read request to the reproduction buffer 19, and the data output from the reproduction buffer 19 is output from the output unit 22. The reproduction counter 42 of this device uses a clock of 27 MHz.

【0062】次に、本発明の第4の実施の形態を説明す
る。第4の実施の形態では、パケットセレクト部13で
パケットをセレクトする際に、アダプテーションフィー
ルドコントロールフラグとパケットのPCRフラグによ
りPCRパケットを識別するものである。PCRの識別
は、PIDからだけでなく、TSパケットに存在するア
ダプテーションフィールドコントロールフラグとPCR
フラグを調べれば、PCRが存在するかどうかの識別が
可能である。TSの構造は、前記図13に示されてい
る。
Next, a fourth embodiment of the present invention will be described. In the fourth embodiment, when a packet is selected by the packet selecting unit 13, the PCR packet is identified by the adaptation field control flag and the PCR flag of the packet. The PCR is identified not only from the PID but also from the adaptation field control flag present in the TS packet and the PCR.
By examining the flag, it is possible to identify whether a PCR exists. The structure of the TS is shown in FIG.

【0063】本データ記録再生装置では、PCRパケッ
トの識別をPIDから行わず、アダプテーションフィー
ルドコントロールフラグとPCRフラグから行う。本デ
ータ記録再生装置のハード的構成は、第1乃至第3の実
施の形態のデータ記録再生装置と同様である。PCRの
識別の手法は、パケットセレクト部13でまず、TSの
中のアダプテーションフィールドコントロールフラグ
(2ビット)の値が11あるいは10であるかを確認
し、11あるいは10であれば、次にPCRフラグ(1
ビット)の確認を行う。もし1であれば、PCRを含む
ことを確認できる。上記以外であれば、PCRを含まな
いことを確認できる。
In the present data recording / reproducing apparatus, the identification of the PCR packet is not performed from the PID, but from the adaptation field control flag and the PCR flag. The hardware configuration of the data recording / reproducing apparatus is the same as that of the data recording / reproducing apparatuses of the first to third embodiments. In the method of identifying the PCR, the packet selection unit 13 first checks whether the value of the adaptation field control flag (2 bits) in the TS is 11 or 10, and if it is 11 or 10, then the PCR flag (1
Bit). If 1, it can be confirmed that PCR is included. Otherwise, it can be confirmed that PCR is not included.

【0064】次に、本発明の第5の実施の形態を説明す
る。第5の実施の形態に係るデータ記録再生装置の基本
的な構成は、図1と同じであるためこの部分の説明を省
略する。第5の実施の形態では、パケット生成部15
が、一定時間が経過するとタイムスタンプパケットを生
成し、コントロール部21は、タイムスタンプセレクト
部13からタイムスタンプを取得し、再生カウンタ42
のカウント値と比較することでデータの送出タイミング
を計るものである。
Next, a fifth embodiment of the present invention will be described. The basic configuration of the data recording / reproducing apparatus according to the fifth embodiment is the same as that shown in FIG. 1, and a description thereof will be omitted. In the fifth embodiment, the packet generation unit 15
However, when a certain time has elapsed, a time stamp packet is generated, and the control unit 21 obtains a time stamp from the time stamp
The transmission timing of the data is measured by comparing the count value with the count value.

【0065】図10は、本実施の形態のデータ記録再生
装置のパケット生成部70の構成を示すブロック図であ
る。図4に示すパケット生成部30と同一構成部分には
同一符号を付している。また、本実施の形態のデータ記
録再生装置のコントロール部の構成は、図5に示すコン
トロール部40と同一である。図10において、パケッ
ト生成部70は、カウント値設定部71、記録カウンタ
31、及びタイムスタンプパケット生成部32を備えて
構成される。上記パケット生成部70及びコントロール
部40(図5参照)は、それぞれ図3のパケット生成部
15及びコントロール部21に置き換えて用いられる。
FIG. 10 is a block diagram showing a configuration of the packet generator 70 of the data recording / reproducing apparatus of the present embodiment. The same components as those of the packet generation unit 30 shown in FIG. 4 are denoted by the same reference numerals. Further, the configuration of the control unit of the data recording / reproducing apparatus of the present embodiment is the same as the control unit 40 shown in FIG. 10, the packet generator 70 includes a count value setting unit 71, a recording counter 31, and a time stamp packet generator 32. The packet generation unit 70 and the control unit 40 (see FIG. 5) are used in place of the packet generation unit 15 and the control unit 21 in FIG. 3, respectively.

【0066】以下、上述のように構成されたデータ記録
再生装置の動作を説明する。基本的な動作は第1の実施
の形態のデータ記録再生装置と同様であるため説明を省
略し、パケット生成部70の動作について詳細に説明す
る。まず、データ記録再生装置の記録動作について説明
する。第1の実施の形態のデータ記録再生装置と同様
に、図3において、記録が開始されると、パケット生成
部70の記録カウンタ31のカウント値がリセットされ
る。カウント値設定部71には、予め決められたカウン
トがセットされている。
Hereinafter, the operation of the data recording / reproducing apparatus configured as described above will be described. Since the basic operation is the same as that of the data recording / reproducing apparatus of the first embodiment, the description is omitted, and the operation of the packet generator 70 will be described in detail. First, the recording operation of the data recording / reproducing apparatus will be described. As in the data recording / reproducing apparatus of the first embodiment, in FIG. 3, when recording is started, the count value of the recording counter 31 of the packet generation unit 70 is reset. In the count value setting section 71, a predetermined count is set.

【0067】カウント値設定部71では、記録カウンタ
31のカウント値が設定されたカウント値と一致してい
るか比較を行う。もし、カウント値が一致した場合は、
パケット挿入部16にトリガ信号を出力する。パケット
挿入部16にトリガ信号が入力されると、現在パケット
挿入部16から再録制御部17に出力しているデータが
パケットの切れ目であれば、記録カウンタ31から現在
出力されているカウント値を時刻情報とするタイムスタ
ンプパケットを生成するようにカウント値設定部71に
トリガ信号を出す。カウント値設定部71では、上記ト
リガ信号により、記録カウンタ31に現在のカウント値
をタイムスタンプパケット生成部32に出力するように
指示を出す。その指示に従い、記録カウンタ31は、タ
イムスタンプパケット生成部32にカウント値を出力す
る。
The count value setting section 71 compares the count value of the recording counter 31 with the set count value. If the count values match,
The trigger signal is output to the packet insertion unit 16. When a trigger signal is input to the packet insertion unit 16, if the data currently output from the packet insertion unit 16 to the re-recording control unit 17 is a packet break, the count value currently output from the recording counter 31 is used. A trigger signal is issued to the count value setting unit 71 so as to generate a time stamp packet as time information. The count value setting unit 71 instructs the recording counter 31 to output the current count value to the time stamp packet generation unit 32 based on the trigger signal. According to the instruction, the recording counter 31 outputs a count value to the time stamp packet generation unit 32.

【0068】タイムスタンプパケット生成部32では、
入力されたカウント値を情報とするタイムスタンプパケ
ットが生成され、タイムスタンプパケットが生成される
と、生成信号をパケット挿入部16に入力する。パケッ
ト挿入部16では、この生成信号をトリガとして、生成
されたタイムスタンプパケットを再録制御部17に転送
し、そのタイムスタンプパケットを記録媒体18に記録
する。そして、再び記録バッファ14に蓄積されている
パケットを再録制御部17に転送し、再録制御部17は
記録媒体18にパケットを記録する。
In the time stamp packet generator 32,
A time stamp packet using the input count value as information is generated, and when the time stamp packet is generated, a generated signal is input to the packet insertion unit 16. The packet insertion unit 16 transfers the generated time stamp packet to the re-recording control unit 17 using the generated signal as a trigger, and records the time stamp packet on the recording medium 18. Then, the packets stored in the recording buffer 14 are transferred to the re-recording control unit 17 again, and the re-recording control unit 17 records the packets on the recording medium 18.

【0069】次に、データ記録再生装置の再生動作につ
いて説明する。録再制御部17では、記録媒体18から
再生に必要なパケットが読み出され、再生バッファ19
に入力され、一時蓄積される。バッファコントロール部
43は、再生バッファ19からの読み出しを制御する。
読み出されたデータは、タイムスタンプパケットセレク
ト部20によりタイムスタンプパケットであるかどうか
の識別が行われる。タイムスタンプパケットでなけれ
ば、データは出力部22に入力され、出力部22から再
生データが出力される。もしタイムスタンプパケットで
あると識別された場合は、タイムスタンプ比較部41で
そのタイムスタンプの値が保持される。
Next, the reproducing operation of the data recording / reproducing apparatus will be described. The recording / reproduction control unit 17 reads out a packet necessary for reproduction from the recording medium 18, and
And is temporarily stored. The buffer control unit 43 controls reading from the reproduction buffer 19.
The read data is identified by the time stamp packet selector 20 as to whether it is a time stamp packet. If the packet is not a time stamp packet, the data is input to the output unit 22, and the output unit 22 outputs reproduced data. If the packet is identified as a time stamp packet, the time stamp comparing unit 41 holds the value of the time stamp.

【0070】再生カウンタ42では、最初のタイムスタ
ンプパケットがきたとき、カウンタをリセットし、カウ
ントをスタートする。再生カウンタがリセットされる
と、タイムスタンプ比較部41からバッファコントロー
ル部43に読み出し要求が出される。その要求に対して
バッファコントロール部43から読み出し信号が再生バ
ッファ19に出力され、再生バッファ19に蓄積された
データがタイムスタンプパケットセレクト部20を介し
て出力部22に入力される。
In the reproduction counter 42, when the first time stamp packet arrives, the counter is reset and counting is started. When the reproduction counter is reset, a read request is issued from the time stamp comparison unit 41 to the buffer control unit 43. In response to the request, a read signal is output from the buffer control unit 43 to the reproduction buffer 19, and the data stored in the reproduction buffer 19 is input to the output unit 22 via the time stamp packet selection unit 20.

【0071】次のタイムスタンプパケットが識別される
と、そのタイムスタンプの値がタイムスタンプ比較部4
1で保持される。タイムスタンプ比較部41では、その
タイムスタンプの値(T)と再生カウンタ42の値
(C)を比較して、一致あるいはT<Cであれば、バッ
ファコントロール部43に読み出し要求を出すととも
に、再生カウンタ42のカウント値をリセットする。バ
ッファコントロール部43では、再生バッファ19へ読
み出し要求を出し、再生バッファ19から出力されたデ
ータは、出力部22から出力される。
When the next time stamp packet is identified, the value of the time stamp is changed to the time stamp comparing unit 4.
It is held at 1. The time stamp comparing section 41 compares the value (T) of the time stamp with the value (C) of the reproduction counter 42, and if they match or T <C, issues a read request to the buffer control section 43 and performs reproduction. The count value of the counter 42 is reset. The buffer control unit 43 issues a read request to the reproduction buffer 19, and the data output from the reproduction buffer 19 is output from the output unit 22.

【0072】次に、本発明の第6の実施の形態を説明す
る。第6の実施の形態では、コントロール部21におい
て取得したタイムスタンプより再生カウンタ42から出
力されるカウント値が小さい場合、カウント値がタイム
スタンプと等しくなるまでダミーデータを出力するよう
にコントロールを行うダミーデータ挿入手段を有するも
のである。
Next, a sixth embodiment of the present invention will be described. In the sixth embodiment, when the count value output from the reproduction counter 42 is smaller than the time stamp obtained by the control unit 21, a dummy which performs control to output dummy data until the count value becomes equal to the time stamp is set. It has data insertion means.

【0073】図11は、本発明の第6の実施の形態のデ
ータ記録再生装置の構成を示すブロック図である。本実
施の形態の説明にあたり図3と同一構成部分には同一番
号を付して重複部分の説明を省略する。図11におい
て、データ記録再生装置80は、タイムスタンプパケッ
トセレクト部20及びコントロール部21と出力部22
との間に、ダミーデータ生成部81及び出力切換部82
からなるダミーデータ挿入部83(ダミーデータ挿入手
段)を備えて構成される。
FIG. 11 is a block diagram showing a configuration of a data recording / reproducing apparatus according to the sixth embodiment of the present invention. In the description of the present embodiment, the same components as those in FIG. 3 are denoted by the same reference numerals, and the description of the overlapping portions will be omitted. 11, the data recording / reproducing device 80 includes a time stamp packet selecting unit 20, a control unit 21, and an output unit 22.
Between the dummy data generation unit 81 and the output switching unit 82
And a dummy data insertion unit 83 (dummy data insertion means).

【0074】記録の方法については、第1乃至第5の実
施の形態のデータ記録生装置と同様であるため説明を省
略する。再生の方法は、タイムスタンプ比較部41でタ
イムスタンプを取得するところまでは第1乃至第5の実
施の形態と同様である。
The recording method is the same as that of the data recording apparatus according to the first to fifth embodiments, and the description is omitted. The reproduction method is the same as in the first to fifth embodiments up to the point where the time stamp is acquired by the time stamp comparison unit 41.

【0075】タイムスタンプ比較部41では、取得した
タイムスタンプ(T)と再生カウンタから出力されるカ
ウント値(C)を比較し、一致あるいはT<Cであれ
ば、第2の実施の形態に適用する場合は、バッファコン
トロール部43に読み出し要求を出す。また、第3又は
第5の実施の形態に適用する場合は、バッファコントロ
ール部43に読み出し要求を出すとともに、再生カウン
タ42のカウント値をリセットする。もしT>Cであれ
ば、ダミーデータ生成部81にダミーデータを生成する
ように指示を出すとともに、出力切換部82にダミーデ
ータ生成部81で生成されたデータを出力するように指
示を出す。出力切換部82では、その指示に従いデータ
出力し、出力部22が再生データを出力する。タイムス
タンプ比較部41で、T=CあるいはT>Cとなった
ら、第2の実施の形態に適用する場合は、バッファコン
トロール部43に読み出し要求を出す。また、第3又は
第5の実施の形態に適用する場合は、バッファコントロ
ール部43に読み出し要求を出すとともに、再生カウン
タ42のカウント値をリセットする。また同時に、出力
切換部82に出力するデータをタイムスタンプセレクト
部20から出力されたデータに切り換えるように指示を
出す。その指示に従い、出力切換部82は、出力部22
に出力するデータを切り換える。
The time stamp comparing section 41 compares the obtained time stamp (T) with the count value (C) output from the reproduction counter, and if they match or T <C, the present invention is applied to the second embodiment. If so, a read request is issued to the buffer control unit 43. When applied to the third or fifth embodiment, a read request is issued to the buffer control unit 43 and the count value of the reproduction counter 42 is reset. If T> C, it instructs the dummy data generation unit 81 to generate dummy data, and instructs the output switching unit 82 to output the data generated by the dummy data generation unit 81. The output switching unit 82 outputs data according to the instruction, and the output unit 22 outputs reproduced data. When T = C or T> C is satisfied by the time stamp comparing unit 41, a read request is issued to the buffer control unit 43 when applying to the second embodiment. When applied to the third or fifth embodiment, a read request is issued to the buffer control unit 43 and the count value of the reproduction counter 42 is reset. At the same time, an instruction is issued to switch the data output to the output switching unit 82 to the data output from the time stamp selection unit 20. In accordance with the instruction, the output switching unit 82
Switch the data to be output.

【0076】次に、本発明の第7の実施の形態を説明す
る。第7の実施の形態に係るデータ記録再生装置の基本
的な構成は、第6の実施の形態の図11と同じであるた
め、図11を用いて説明する。第7の実施の形態では、
コントロール部21は、取得したタイムスタンプより再
生カウンタから出力されるカウント値が小さい場合、カ
ウント値がタイムスタンプと等しくなるまでに、トラン
スポートストリームパケットを挿入可能な数を算出し、
その数だけダミーデータパケットを生成し、出力をコン
トロールするダミーデータ挿入手段を有するものであ
る。記録の方法は、第6の実施の形態のデータ記録生装
置と同様であるため省略する。
Next, a seventh embodiment of the present invention will be described. The basic configuration of the data recording / reproducing apparatus according to the seventh embodiment is the same as that of the sixth embodiment shown in FIG. 11, and will be described with reference to FIG. In the seventh embodiment,
When the count value output from the reproduction counter is smaller than the obtained time stamp, the control unit 21 calculates the number of transport stream packets that can be inserted before the count value becomes equal to the time stamp,
It has dummy data insertion means for generating dummy data packets by that number and controlling the output. The recording method is the same as that of the data recording apparatus according to the sixth embodiment, and a description thereof will be omitted.

【0077】再生の方法は、タイムスタンプ比較部41
でタイムスタンプを取得するところまでは第1乃至第5
の実施の形態と同様である。タイムスタンプ比較部41
では、取得したタイムスタンプ(T)と再生カウンタ4
2から出力されるカウント値(C)を比較し、一致ある
いはT<Cであれば、第2の実施の形態に適用する場合
は、バッファコントロール部43に読み出し要求を出
す。また、第3又は第5の実施の形態に適用する場合
は、バッファコントロール部43に読み出し要求を出す
とともに、再生カウンタ42のカウント値をリセットす
る。もしT>Cであれば、その差を用いて次の再生デー
タを出力するまでに、いくつTSパケットを挿入するか
算出し、ダミーデータ生成部81に生成するパケット数
の指示を出すとともに、出力切換部82に挿入するダミ
ーデータパケットの数を指示する。
The reproduction method is as follows.
1st to 5th until the time stamp is obtained
This is the same as the embodiment. Time stamp comparing unit 41
Then, the obtained time stamp (T) and the reproduction counter 4
The count value (C) output from 2 is compared, and if they match or T <C, a read request is issued to the buffer control unit 43 when applied to the second embodiment. When applied to the third or fifth embodiment, a read request is issued to the buffer control unit 43 and the count value of the reproduction counter 42 is reset. If T> C, the difference is used to calculate how many TS packets are to be inserted before outputting the next reproduced data. The number of dummy data packets to be inserted into the switching unit 82 is indicated.

【0078】生成するダミーデータパケットの算出の一
例について説明する。記録カウンタ31、再生カウンタ
42で使用するクロックは、システムクロックを用い
る。ここで、システムクロック=再生のビットレートの
3倍、T=0x278、C=0x44であったとする。
An example of calculation of a dummy data packet to be generated will be described. A clock used by the recording counter 31 and the reproduction counter 42 uses a system clock. Here, it is assumed that the system clock is three times the reproduction bit rate, T = 0x278, and C = 0x44.

【0079】タイムスタンプ比較部41で、タイムスタ
ンプ(T)と再生カウンタ42から出力されるカウント
値(C)の差(T−C)を求めると、その値が0x23
4であることがわかる。これは、10進数で表せば56
4である。この値を188で割ればシステムクロック上
でのダミーパケット数が算出され、その値は564/1
88=3となる。この値を再生ビットレートとシステム
クロックの比率で割ることにより、再生ビットレートで
のダミーパケット数となる。この値は、3/3=1とな
り1パケット分のダミーデータを挿入すれば良いことに
なる。この操作をタイムスタンプパケットが到着するた
びに行えば良い。
When the difference (TC) between the time stamp (T) and the count value (C) output from the reproduction counter 42 is obtained by the time stamp comparing section 41, the value is 0x23.
It turns out that it is 4. This is 56 in decimal
4. If this value is divided by 188, the number of dummy packets on the system clock is calculated, and the value is 564/1.
88 = 3. By dividing this value by the ratio of the reproduction bit rate to the system clock, the number of dummy packets at the reproduction bit rate is obtained. This value becomes 3/3 = 1, which means that dummy data for one packet should be inserted. This operation may be performed each time a time stamp packet arrives.

【0080】出力切換部82では、ダミーデータ生成部
81からの指示に従い、指示されたパケット数データを
ダミーデータ生成部81から入力し、そのデータを出力
する。出力切換部82で、指定されたパケット数データ
を出力すると、バッファコントロール部43に読み出し
要求を出す。また同時に、タイムスタンプ比較部41
に、指示されたパケット数出力したことを告知するトリ
ガ信号を出力する。
In accordance with the instruction from dummy data generation section 81, output switching section 82 inputs the designated packet number data from dummy data generation section 81 and outputs the data. When the output switching unit 82 outputs the designated packet number data, a read request is issued to the buffer control unit 43. At the same time, the time stamp comparing unit 41
A trigger signal notifying that the designated number of packets have been output.

【0081】タイムスタンプ比較部41では、このトリ
ガ信号により、第3又は第5の実施の形態に適用する場
合は、再生カウンタのカウント値をリセットする。また
同時に、出力切換部82に出力するデータをタイムスタ
ンプセレクト部20から出力されたデータに切り換える
ように指示を出す。その指示に従い、出力切換部82
は、出力部22に出力するデータを切り換える。
In the case where the present invention is applied to the third or fifth embodiment, the time stamp comparing section 41 resets the count value of the reproduction counter in accordance with the trigger signal. At the same time, an instruction is issued to switch the data output to the output switching unit 82 to the data output from the time stamp selection unit 20. According to the instruction, the output switching unit 82
Switches data to be output to the output unit 22.

【0082】なお、上記各実施の形態に係る表示装置
を、上述したようなデジタル放送の電波を受信可能なデ
ジタル放送受信機能を備えたテレビジョン受信機に適用
することもできるが、記録装置の種類や記録方法等は限
定されず、全ての装置に適用可能である。また、上記各
実施の形態では、番組としてデジタル放送番組を記録す
る例について説明したが、記録する番組は何でもよく、
現行テレビ放送番組や、ラジオ放送番組等の音声番組で
あってもよい。
The display device according to each of the above embodiments can be applied to a television receiver having a digital broadcast receiving function capable of receiving radio waves of digital broadcast as described above. The type, recording method, and the like are not limited, and can be applied to all devices. Further, in each of the above-described embodiments, an example in which a digital broadcast program is recorded as a program has been described.
It may be an audio program such as a current television broadcast program or a radio broadcast program.

【0083】また、上記各実施の形態では、記録媒体
は、データを記録できる記録媒体であればどのような装
置でもよい。特に、データ転送速度やランダム・アクセ
ス性能が高く、高速アクセスが可能なHDDを記録媒体
に用いれば、長時間記録した番組の中から所望の番組を
瞬時に検索し、直ぐに利用することが可能になる。ま
た、光磁気ディスク等HDD以外の記録装置を用いても
よく、同様の効果を得ることができる。
In each of the above embodiments, the recording medium may be any device as long as it can record data. In particular, if an HDD that has high data transfer speed and random access performance and allows high-speed access is used as a recording medium, it is possible to instantly search for a desired program from programs recorded for a long time and use it immediately. Become. Further, a recording device other than the HDD such as a magneto-optical disk may be used, and the same effect can be obtained.

【0084】また、上記各実施の形態では、MPEG2
におけるトランスポートストリーム方式によって多重化
されたTSデータから所望の番組データを受信して記録
する場合を例に挙げたが、勿論これには限定されず、M
PEGストリームを用いるものであれば全ての装置(例
えば、MPEG4,MPEG7レベルの規格に準拠する
装置)に適用可能である。
In each of the above embodiments, the MPEG2
Has been described as an example in which the desired program data is received from the TS data multiplexed by the transport stream method and recorded. However, the present invention is not limited to this.
The present invention can be applied to all devices that use a PEG stream (for example, devices conforming to the MPEG4 and MPEG7 level standards).

【0085】また、上記各実施の形態では、本発明によ
るデータ記録再生装置をデータ記録機能とデータ再生機
能を有するデータ記録再生装置に適用した場合を例に挙
げたが、これに限らずデータ記録機能のみを有するデー
タ記録装置、データ再生機能のみを有するデータ再生装
置にも適用することができる。さらに、上記データ記録
再生装置を構成する各回路部、例えば受信部、バッファ
等の種類、数及び接続方法などは前述した各実施の形態
に限られない。
Further, in each of the above-described embodiments, the case where the data recording / reproducing apparatus according to the present invention is applied to a data recording / reproducing apparatus having a data recording function and a data reproducing function has been described as an example. The present invention can be applied to a data recording device having only a function and a data reproducing device having only a data reproducing function. Further, the types, numbers, connection methods, and the like of the respective circuit units constituting the data recording / reproducing device, for example, the receiving unit, the buffer, and the like are not limited to the above-described embodiments.

【0086】[0086]

【発明の効果】以上、詳述したように、本発明によれ
ば、ストリームのビットレートによらず、多重化データ
から任意のストリームを抽出し、共通の再生ストリーム
送出速度を用いて、再生を行うことができる。具体的に
は、以下のような効果を得ることができる。
As described above in detail, according to the present invention, an arbitrary stream is extracted from multiplexed data regardless of the bit rate of the stream, and reproduction is performed using a common reproduction stream transmission speed. It can be carried out. Specifically, the following effects can be obtained.

【0087】請求項1記載の発明によれば、再生時のデ
ータ送出タイミングをストリームのビットレートによら
ず、タイムスタンプパケットの時刻に合わせるだけで良
く、容易に送出タイミングを制御することができる。請
求項2記載の発明によれば、記録時にタイムスタンプパ
ケットをPCRパケットの直前に挿入し、再生時には、
そのタイムスタンプの値を基に再生データの送出タイミ
ングを調整しているため、ストリームのビットレートに
よらず、受信したタイミングでPCRの送出が可能とな
り、多重化データから特定のデータを抜き出して記録し
ても、再生に支障をきたすことがなくなる効果を得るこ
とができる。
According to the first aspect of the present invention, the data transmission timing at the time of reproduction need only be adjusted to the time of the time stamp packet regardless of the bit rate of the stream, and the transmission timing can be easily controlled. According to the invention described in claim 2, the time stamp packet is inserted immediately before the PCR packet at the time of recording, and at the time of reproduction,
Since the playback data transmission timing is adjusted based on the time stamp value, the PCR can be transmitted at the reception timing regardless of the stream bit rate, and specific data is extracted from the multiplexed data and recorded. Even so, it is possible to obtain an effect that does not hinder reproduction.

【0088】請求項3記載の発明によれば、2つのPC
Rの差分をタイムスタンプパケットの情報として用いる
ため、記録カウンタ5と再生カウンタ13に必要なビッ
ト長が実際のPCRより少なくて済む効果を得ることが
できる。請求項4記載の発明によれば、特にPCRのP
IDを指定することなくタイムスタンプパケットをPC
Rパケットの直前に挿入することが可能であり、PCR
のPIDを知る必要がなくなる効果を得ることができ
る。
According to the third aspect of the present invention, two PCs
Since the difference of R is used as the information of the time stamp packet, the effect that the bit length required for the recording counter 5 and the reproduction counter 13 is smaller than the actual PCR can be obtained. According to the fourth aspect of the present invention, in particular, P
Time stamp packet to PC without specifying ID
It is possible to insert immediately before the R packet.
Can be obtained without having to know the PID.

【0089】請求項5記載の発明によれば、PCRパケ
ットによらず、一定時間間隔によりタイムスタンプパケ
ットを挿入するため、データ放送などPCRが存在しな
いストリームに関しても、送出間隔をコントロールする
ことができる。請求項6又は7記載の発明によれば、再
生時にデータを途切れさせることなく出力することがで
きる。
According to the fifth aspect of the present invention, the time stamp packet is inserted at a fixed time interval regardless of the PCR packet, so that the transmission interval can be controlled even for a stream such as a data broadcast where no PCR exists. . According to the invention of claim 6 or 7, data can be output without interruption during reproduction.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明によるPCR値を用いた場合のパケット
間隔復元方法の説明図である。
FIG. 1 is an explanatory diagram of a packet interval restoring method using a PCR value according to the present invention.

【図2】本発明によるシステムクロックを用いた場合の
パケット間隔復元方法の説明図である。
FIG. 2 is an explanatory diagram of a packet interval restoring method when a system clock is used according to the present invention.

【図3】本発明の第1実施の形態のデータ記録再生装置
の構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a data recording / reproducing device according to the first embodiment of the present invention.

【図4】本実施の形態のデータ記録再生装置のパケット
生成部の構成を示すブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a packet generation unit of the data recording / reproducing device of the present embodiment.

【図5】本実施の形態のデータ記録再生装置のコントロ
ール部の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a control unit of the data recording / reproducing device of the present embodiment.

【図6】本実施の形態のデータ記録再生装置のタイムス
タンプパケットの構成を示す図である。
FIG. 6 is a diagram showing a configuration of a time stamp packet of the data recording / reproducing apparatus of the present embodiment.

【図7】本発明の第2実施の形態のデータ記録再生装置
の受信データ、記録データ及び出力データを示す説明図
である。
FIG. 7 is an explanatory diagram showing received data, recorded data, and output data of a data recording / reproducing apparatus according to a second embodiment of the present invention.

【図8】本発明の第3実施の形態のデータ記録再生装置
のパケット生成部の構成を示すブロック図である。
FIG. 8 is a block diagram illustrating a configuration of a packet generation unit of a data recording / reproducing device according to a third embodiment of the present invention.

【図9】本実施の形態のデータ記録再生装置のPCRの
構造を示す図である。
FIG. 9 is a diagram showing a structure of a PCR of the data recording / reproducing device of the present embodiment.

【図10】本発明の第5実施の形態のデータ記録再生装
置のパケット生成部の構成を示すブロック図である。
FIG. 10 is a block diagram illustrating a configuration of a packet generator of a data recording / reproducing device according to a fifth embodiment of the present invention.

【図11】本発明の第6の実施の形態のデータ記録再生
装置の構成を示すブロック図である。
FIG. 11 is a block diagram illustrating a configuration of a data recording / reproducing apparatus according to a sixth embodiment of the present invention.

【図12】MPEG2のトランスポートストリーム(T
S)の構造を示す図である。
FIG. 12 shows a transport stream (T
It is a figure which shows the structure of S).

【図13】従来のデータ記録再生装置の受信時と送信時
のビットレートを一致させた場合の受信データ、記録デ
ータ及び送信データを示す説明図である。
FIG. 13 is an explanatory diagram showing received data, recorded data, and transmitted data when the bit rates at the time of reception and the time of transmission of the conventional data recording / reproducing apparatus are matched.

【図14】従来のデータ記録再生装置の受信時と送信時
のビットレートを変化させた場合の受信データ、記録デ
ータ及び送信データを示す説明図である。
FIG. 14 is an explanatory diagram showing reception data, recording data, and transmission data when the bit rate at the time of reception and the bit rate at the time of transmission of the conventional data recording / reproducing apparatus are changed.

【符号の説明】[Explanation of symbols]

10,80 データ記録再生装置 11 受信部(受信手段) 12 同期検出部(同期検出手段) 13 パケットセレクト部(パケット抽出手段) 14 記録バッファ 15,30,50,70 パケット生成部(パケット生
成手段) 16 パケット挿入部(パケット挿入手段) 17 録再制御部(録再制御手段) 18 記録媒体 19 再生バッファ 20 タイムスタンプパケットセレクト部(タイムスタ
ンプパケット抽出手段) 21,40 コントロール部(制御手段) 22 出力部(出力手段) 30 とから構成される。 31 記録カウンタ 32 タイムスタンプパケット生成部 41 タイムスタンプ比較部 42 再生カウンタ 43 バッファコントロール部 51 PCR取得部(PCR取得手段) 52 前PCR保持部(前PCR保持手段) 53 PCR差分算出部(PCR差分算出手段) 61 PCR_base領域 62 PCR_extention領域 63 Stuffing領域 71 カウント値設定部 81 ダミーデータ生成部 82 出力切換部 83 ダミーデータ挿入部(ダミーデータ挿入手段) 100 タイムスタンプパケット
10, 80 data recording / reproducing device 11 receiving unit (receiving unit) 12 synchronization detecting unit (synchronizing detecting unit) 13 packet selecting unit (packet extracting unit) 14 recording buffer 15, 30, 50, 70 packet generating unit (packet generating unit) 16 packet insertion unit (packet insertion unit) 17 recording / reproduction control unit (recording / reproduction control unit) 18 recording medium 19 reproduction buffer 20 time stamp packet selection unit (time stamp packet extraction unit) 21, 40 control unit (control unit) 22 output (Output means) 30. Reference Signs List 31 recording counter 32 time stamp packet generation unit 41 time stamp comparison unit 42 reproduction counter 43 buffer control unit 51 PCR acquisition unit (PCR acquisition unit) 52 previous PCR holding unit (pre-PCR holding unit) 53 PCR difference calculation unit (PCR difference calculation) Means) 61 PCR_base area 62 PCR_extention area 63 Stuffing area 71 Count value setting section 81 Dummy data generation section 82 Output switching section 83 Dummy data insertion section (dummy data insertion section) 100 Time stamp packet

───────────────────────────────────────────────────── フロントページの続き (72)発明者 橋本 剛 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 森 玲人 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 白井 慎一郎 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 葉山 剛 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 Fターム(参考) 5C053 GA13 GB10 GB37 HA04 HA33 JA22 JA26 KA01 LA15 5C059 MA00 RB02 RB08 RC04 SS11 UA08 UA34 UA38 5D044 DE38 EF05 FG19 GK12  ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Tsuyoshi Hashimoto 22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka Inside Sharp Corporation (72) Inventor Reito Mori 22-22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka (72) Inventor Shinichiro Shirai 22-22, Nagaike-cho, Abeno-ku, Osaka-shi, Osaka Inside Sharp Corporation (72) Inventor Tsuyoshi Hayama 22-22, Nagaike-cho, Abeno-ku, Osaka-shi, Osaka F term (reference) 5C053 GA13 GB10 GB37 HA04 HA33 JA22 JA26 KA01 LA15 5C059 MA00 RB02 RB08 RC04 SS11 UA08 UA34 UA38 5D044 DE38 EF05 FG19 GK12

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 複数の番組データから所望の番組データ
を受信する受信手段と、 受信したMPEGにおけるトランスポートストリームの
同期検出を行う同期検出手段と、 前記トランスポートストリームのパケットIDを識別
し、特定のパケットを抽出するパケット抽出手段と、 該パケット抽出手段により識別されたパケットを格納す
る記録バッファと、 前記特定のパケットの到着時刻を情報とするタイムスタ
ンプパケットを生成するパケット生成手段と、 前記パケット生成手段により生成されたタイムスタンプ
パケットを前記トランスポートストリームに挿入するパ
ケット挿入手段と、 前記タイムスタンプパケット挿入後の前記トランスポー
トストリームを記録する記録媒体と、 前記記録媒体の記録再生を制御する録再制御手段と、 再生データを格納する再生バッファと、 前記再生バッファの出力データから前記タイムスタンプ
パケットを識別するタイムスタンプパケット抽出手段
と、 前記タイムスタンプ抽出手段により抽出されたタイムス
タンプパケットからタイムスタンプを取得し、該タイム
スタンプの時刻情報を基に前記再生バッファからのデー
タの読み出しを制御する制御手段と、 前記再生バッファから読み出したデータを出力する出力
手段とを備えることを特徴とするデータ記録再生装置。
1. A receiving means for receiving desired program data from a plurality of program data; a synchronization detecting means for detecting synchronization of a transport stream in the received MPEG; and identifying and specifying a packet ID of the transport stream. A packet extraction unit for extracting a packet of the packet; a recording buffer for storing a packet identified by the packet extraction unit; a packet generation unit for generating a time stamp packet using information on the arrival time of the specific packet; Packet insertion means for inserting the time stamp packet generated by the generation means into the transport stream; recording medium for recording the transport stream after insertion of the time stamp packet; recording for controlling recording and reproduction of the recording medium Re-control means and playback A time stamp packet extracting means for identifying the time stamp packet from the output data of the playback buffer; and obtaining a time stamp from the time stamp packet extracted by the time stamp extracting means. A data recording / reproducing apparatus comprising: control means for controlling reading of data from the reproduction buffer based on time information of a time stamp; and output means for outputting data read from the reproduction buffer.
【請求項2】 前記パケット抽出手段で抽出される特定
のパケットは、PCR(Program Clock Reference)パ
ケットであり、 前記パケット生成手段は、前記PCRパケットを識別し
た際に出力されるPCR識別信号をトリガとしてタイム
スタンプのカウントを行う再生カウンタを有し、該再生
カウンタからのカウント値を情報とするパケットを生成
し、 前記制御手段は、前記タイムスタンプ抽出手段からタイ
ムスタンプを取得し、前記再生カウンタのカウント値と
比較することにより前記PCRの送出タイミングを制御
することを特徴とする請求項1記載のデータ記録再生装
置。
2. The method according to claim 1, wherein the specific packet extracted by the packet extraction unit is a PCR (Program Clock Reference) packet, and the packet generation unit triggers a PCR identification signal output when the PCR packet is identified. Has a reproduction counter that counts the time stamp, generates a packet using the count value from the reproduction counter as information, the control unit acquires a time stamp from the time stamp extraction unit, 2. The data recording / reproducing apparatus according to claim 1, wherein the transmission timing of the PCR is controlled by comparing with a count value.
【請求項3】 前記パケット抽出手段で抽出される特定
のパケットは、PCRパケットであり、 前記パケット生成手段は、前記パケット抽出手段により
PCRパケットが抽出された時にそのPCRを取得する
PCR取得手段と、 前記PCRパケットの1つ前に到達したPCRパケット
を保持する前PCR保持手段と、 前記PCR取得手段により取得されたPCRの値と前記
前PCR保持手段に保持されたPCRの値との差分を算
出するPCR差分算出手段とを有し、 前記PCR差分算出手段により算出された差分を時間情
報とするパケットを生成し、 前記制御手段は、前記タイムスタンプ抽出手段からタイ
ムスタンプを取得し、前記再生カウンタのカウント値と
比較することにより前記PCRの送出タイミングを制御
することを特徴とする請求項1又は2に記載のデータ記
録再生装置。
3. The specific packet extracted by the packet extraction unit is a PCR packet, and the packet generation unit includes a PCR acquisition unit that acquires a PCR when the PCR packet is extracted by the packet extraction unit. A pre-PCR holding unit that holds a PCR packet that has arrived immediately before the PCR packet; and a difference between a PCR value obtained by the PCR obtaining unit and a PCR value held by the pre-PCR holding unit. A PCR difference calculating means for calculating, a packet using the difference calculated by the PCR difference calculating means as time information is generated, the control means acquires a time stamp from the time stamp extracting means, and The transmission timing of the PCR is controlled by comparing with a count value of a counter. Data recording and reproducing apparatus according to Motomeko 1 or 2.
【請求項4】 前記パケット抽出手段によりパケットを
抽出する際に、アダプテーションフィールドコントロー
ルフラグとパケットのPCRフラグによりPCRパケッ
トを識別することを特徴とする請求項1乃至3のいずれ
かに記載のデータ記録再生装置。
4. The data recording apparatus according to claim 1, wherein when the packet is extracted by the packet extracting unit, a PCR packet is identified by an adaptation field control flag and a PCR flag of the packet. Playback device.
【請求項5】 前記パケット生成手段は、前記特定のパ
ケットの到着時刻によらずに、一定時間が経過するとタ
イムスタンプパケットを生成し、 前記制御手段は、前記タイムスタンプ抽出手段からタイ
ムスタンプを取得し、再生カウンタのカウント値と比較
することによりデータの送出タイミングを制御すること
を特徴とする請求項1記載のデータ記録再生装置。
5. The packet generating means generates a time stamp packet after a lapse of a predetermined time irrespective of the arrival time of the specific packet, and the control means obtains a time stamp from the time stamp extracting means. 2. The data recording / reproducing apparatus according to claim 1, wherein the data transmission timing is controlled by comparing the data transmission timing with a count value of a reproduction counter.
【請求項6】 前記パケット生成手段は、PCRパケッ
トを識別した際に出力されるPCR識別信号をトリガと
してタイムスタンプのカウントを行う再生カウンタを有
し、該再生カウンタからのカウント値を情報とするパケ
ットを生成し、 さらに、取得したタイムスタンプより前記再生カウンタ
から出力されるカウント値が小さい場合、カウント値が
タイムスタンプと等しくなるまでダミーデータを出力す
るダミーデータ挿入手段を備えることを特徴とする請求
項1記載のデータ記録再生装置。
6. The packet generation means has a reproduction counter for counting a time stamp triggered by a PCR identification signal output when a PCR packet is identified, and uses the count value from the reproduction counter as information. Generating a packet, and further comprising a dummy data insertion unit for outputting dummy data until the count value becomes equal to the time stamp when the count value output from the reproduction counter is smaller than the obtained time stamp. The data recording / reproducing device according to claim 1.
【請求項7】 前記ダミーデータ挿入手段は、取得した
タイムスタンプより前記再生カウンタから出力されるカ
ウント値が小さい場合、カウント値がタイムスタンプと
等しくなるまでに、トランスポートストリームパケット
を挿入可能な数を算出し、その数だけダミーデータパケ
ットを生成して出力することを特徴とする請求項6記載
のデータ記録再生装置。
7. When the count value output from the reproduction counter is smaller than the acquired time stamp, the dummy data insertion unit may determine the number of transport stream packets that can be inserted until the count value becomes equal to the time stamp. 7. The data recording / reproducing apparatus according to claim 6, wherein the number of dummy data packets is calculated and output.
JP2000080272A 2000-03-22 2000-03-22 Data recording / reproducing device Expired - Fee Related JP3592186B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000080272A JP3592186B2 (en) 2000-03-22 2000-03-22 Data recording / reproducing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000080272A JP3592186B2 (en) 2000-03-22 2000-03-22 Data recording / reproducing device

Publications (2)

Publication Number Publication Date
JP2001268518A true JP2001268518A (en) 2001-09-28
JP3592186B2 JP3592186B2 (en) 2004-11-24

Family

ID=18597404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000080272A Expired - Fee Related JP3592186B2 (en) 2000-03-22 2000-03-22 Data recording / reproducing device

Country Status (1)

Country Link
JP (1) JP3592186B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035197A (en) * 2006-07-28 2008-02-14 Sumitomo Electric Ind Ltd Clocking circuit, video processor and clock adjustment method
US7865064B2 (en) 2005-06-09 2011-01-04 Hitachi, Ltd. Recording/output apparatus and recording/output method
JP2011035455A (en) * 2009-07-29 2011-02-17 Toshiba Corp Broadcast recording device and broadcast recording method
WO2011024437A1 (en) * 2009-08-25 2011-03-03 パナソニック株式会社 Recording device 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
KR101309433B1 (en) 2006-12-18 2013-09-23 엘지전자 주식회사 Apparatus and Method for Recording of Digital Multimedia Broadcasting Receiver

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US7865064B2 (en) 2005-06-09 2011-01-04 Hitachi, Ltd. Recording/output apparatus and recording/output method
JP2008035197A (en) * 2006-07-28 2008-02-14 Sumitomo Electric Ind Ltd Clocking circuit, video processor and clock adjustment method
KR101309433B1 (en) 2006-12-18 2013-09-23 엘지전자 주식회사 Apparatus and Method for Recording of Digital Multimedia Broadcasting Receiver
JP2011035455A (en) * 2009-07-29 2011-02-17 Toshiba Corp Broadcast recording device and broadcast recording method
WO2011024437A1 (en) * 2009-08-25 2011-03-03 パナソニック株式会社 Recording device and playback device

Also Published As

Publication number Publication date
JP3592186B2 (en) 2004-11-24

Similar Documents

Publication Publication Date Title
JP3666625B2 (en) Data recording method and data recording apparatus
EP0881838B1 (en) Timing correction
US7512962B2 (en) Multichannel display data generating apparatus, medium, and informational set
JP3516206B2 (en) Data stream processing apparatus and method, and program storage medium
US7133347B2 (en) Information outputting apparatus and method, and presentation medium for digital television broadcast systems
EP0721288B1 (en) Transmission apparatus and receiving apparatus
JP2003500948A (en) Method for converting a packetized stream of information signals into a stream of information signals having a time stamp and vice versa
KR100482287B1 (en) Apparatus and method for injection of synchronized stream data in digital broadcasting environment
EP1936625A2 (en) Recording device, recording method and reproducing device
US6879768B1 (en) Information processing apparatus, method therefor and memory medium storing information processing program
JP4650112B2 (en) RECORDING / OUTPUT DEVICE, RECORDING / OUTPUT METHOD, AND RECORDING DEVICE
KR101014664B1 (en) Reproduction method for guaranteeing seamless reproduction of a plurality of data streams and reproducing apparatus therefor
EP1206141A2 (en) Digital-broadcast recording/playback apparatus
US6731658B1 (en) Data recording method and data recording apparatus
US8447159B2 (en) Stream recording apparatus
JPH10334615A (en) Reference clock reproducing apparatus and recording apparatus
US20040233996A1 (en) Reproducing apparatus and method, and recording medium
JP3592186B2 (en) Data recording / reproducing device
JP2006254298A (en) Device and method for moving picture reproduction
JP2003101962A (en) Synchronous reproducing device and method
JP3893643B2 (en) Signal multiplexing method and transmission signal generating apparatus using the same
WO2004086396A1 (en) Reproducing apparatus and method, and recording medium
JP2001339688A (en) Playback equipment of transport stream
JP3741972B2 (en) Data recording / reproducing device
JP2002281498A (en) Reception reproducing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040127

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040824

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080903

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090903

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090903

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100903

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110903

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120903

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130903

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees