JP2007150845A - Data reproducing apparatus, data reproducing method, and program thereof - Google Patents

Data reproducing apparatus, data reproducing method, and program thereof Download PDF

Info

Publication number
JP2007150845A
JP2007150845A JP2005343994A JP2005343994A JP2007150845A JP 2007150845 A JP2007150845 A JP 2007150845A JP 2005343994 A JP2005343994 A JP 2005343994A JP 2005343994 A JP2005343994 A JP 2005343994A JP 2007150845 A JP2007150845 A JP 2007150845A
Authority
JP
Japan
Prior art keywords
packet
data
time information
unit
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005343994A
Other languages
Japanese (ja)
Inventor
Naozumi Sugimura
杉村 直純
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.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics Co Ltd
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 Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Priority to JP2005343994A priority Critical patent/JP2007150845A/en
Priority to KR1020060026474A priority patent/KR100739802B1/en
Publication of JP2007150845A publication Critical patent/JP2007150845A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B21MECHANICAL METAL-WORKING WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21DWORKING OR PROCESSING OF SHEET METAL OR METAL TUBES, RODS OR PROFILES WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21D7/00Bending rods, profiles, or tubes
    • B21D7/08Bending rods, profiles, or tubes by passing between rollers or through a curved die
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B21MECHANICAL METAL-WORKING WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21CMANUFACTURE OF METAL SHEETS, WIRE, RODS, TUBES OR PROFILES, OTHERWISE THAN BY ROLLING; AUXILIARY OPERATIONS USED IN CONNECTION WITH METAL-WORKING WITHOUT ESSENTIALLY REMOVING MATERIAL
    • B21C37/00Manufacture of metal sheets, bars, wire, tubes or like semi-manufactured products, not otherwise provided for; Manufacture of tubes of special shape
    • B21C37/06Manufacture of metal sheets, bars, wire, tubes or like semi-manufactured products, not otherwise provided for; Manufacture of tubes of special shape of tubes or metal hoses; Combined procedures for making tubes, e.g. for making multi-wall tubes
    • B21C37/15Making tubes of special shape; Making tube fittings
    • B21C37/155Making tubes with non circular section
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B21MECHANICAL METAL-WORKING WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21DWORKING OR PROCESSING OF SHEET METAL OR METAL TUBES, RODS OR PROFILES WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21D15/00Corrugating tubes
    • B21D15/02Corrugating tubes longitudinally
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B21MECHANICAL METAL-WORKING WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21DWORKING OR PROCESSING OF SHEET METAL OR METAL TUBES, RODS OR PROFILES WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21D17/00Forming single grooves in sheet metal or tubular or hollow articles
    • B21D17/04Forming single grooves in sheet metal or tubular or hollow articles by rolling

Abstract

<P>PROBLEM TO BE SOLVED: To reproduce images without a sense of incongruity by maintaining the transmission time of images, even when the data are formed as the AV data to which the time information is added only to a part of the packet such as MPEG2-TS format. <P>SOLUTION: The data reproducing apparatus comprises a data reader 206 for reading AV data; a timing controller 208 for outputting a time information packet based on the time information when the packet of AV data obtained is the time information packet to which the time information is added, and outputting an ordinary packet in the predetermined timing interval from the time information packet when the packet is the ordinary packet other than the time information packet; and an interface 214 for relaying the time information packet and ordinary packet outputted to the external side. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は,データ再生装置,データ再生方法およびそのプログラムにかかり,例えば,AVデータのパケットを再生するデータ再生装置,データ再生方法およびそのプログラムに関する。   The present invention relates to a data reproduction device, a data reproduction method, and a program thereof, and, for example, relates to a data reproduction device, a data reproduction method, and a program thereof that reproduce AV data packets.

映像や音声のAV(Audio and Visual)信号をデジタル化し,デジタル圧縮技術を用いて映像のデータ量を削減するデジタル映像圧縮技術が,AV信号の放送や記憶媒体への蓄積に広く使われている。かかるデジタル映像圧縮技術を用いた例としては,BS(Broadcast Satellite)デジタル放送や地上デジタル放送,また,所謂DVD(Digital Versatile Disc)を用いた映像ソフトといったものがある。   Digital video compression technology that digitizes video and audio AV (Audio and Visual) signals and reduces the amount of video data using digital compression technology is widely used for broadcasting AV signals and storing them in storage media . Examples of using such digital video compression technology include BS (Broadcast Satellite) digital broadcasting, terrestrial digital broadcasting, and video software using a so-called DVD (Digital Versatile Disc).

上記デジタル映像圧縮技術の代表的な例としてMPEG−2(Motion Picture Experts Group−2)方式がある。ここで,MPEGとは,Motion Picture Experts Groupによって標準化されたデータ圧縮方式の総称である。また,デジタル放送では,圧縮したデジタルデータの伝送方法としてMPEG2−TS(Transport Stream)形式が用いられている。   A typical example of the digital video compression technique is the MPEG-2 (Motion Picture Experts Group-2) system. Here, MPEG is a general term for data compression methods standardized by the Motion Picture Experts Group. In digital broadcasting, MPEG2-TS (Transport Stream) format is used as a method for transmitting compressed digital data.

MPEG2−TS形式では,圧縮した映像や音声のデータを,例えば,188バイトのパケットと呼ばれる単位に分割し,そのパケット(TSパケット)単位でデータの伝送を行っている。このようにデータをパケット化することで,複数のチャンネルのデータを多重化して伝送することが容易となる。   In the MPEG2-TS format, compressed video or audio data is divided into units called, for example, 188-byte packets, and data is transmitted in units of packets (TS packets). By packetizing data in this way, it becomes easy to multiplex and transmit data of a plurality of channels.

上記MPEG2−TS形式の放送を記録し,また再生するデータ再生装置が実用化されている。例えば,AV信号として入力された188バイトのパケットを,NULLパケットデータを用いてパディングしつつ記憶媒体に記憶し,MPEGデータの境界とディスクのセクタ境界とを一致させ,ファイルシステム上でも映像の進行を認識することが可能な記憶装置が開示されている(例えば,特許文献1)。かかる技術では,再生時に複雑なディスクアクセスをすることなしにパケットを読み出し,再生処理を行っている。   A data reproducing apparatus for recording and reproducing the MPEG2-TS broadcast has been put into practical use. For example, a 188-byte packet input as an AV signal is stored in a storage medium while being padded with NULL packet data, the boundary of MPEG data is matched with the sector boundary of the disk, and the video progresses on the file system. Has been disclosed (for example, Patent Document 1). In such a technique, a packet is read and reproduction processing is performed without performing complicated disk access during reproduction.

このように,AVデータを分割した188バイトのパケットをファイルに対して単純に連続して記憶することは,デジタル放送の受信機能を有したPC(Personal Computer)などでも広く用いられている。   Thus, storing 188-byte packets obtained by dividing AV data simply and continuously in a file is widely used in PCs (Personal Computers) having a digital broadcast receiving function.

また,所謂AV機器では,MPEG2−TS形式の全パケットに,各パケットの伝送時刻を示すタイムスタンプを付加して記憶し,再生時には,このタイムスタンプを利用してパケットの出力タイミングを制御し,入力時と同じパケット間隔でパケットを出力する技術が知られている(例えば,特許文献2)。このような技術によって,AV機器内部のパケット伝送の早着ないし遅延により,内部バッファの溢れおよび枯渇が生じたり,ストリーム内の時刻情報がずれたりすることを防止することができる。   Also, in so-called AV equipment, a time stamp indicating the transmission time of each packet is added to and stored in all packets in the MPEG2-TS format, and at the time of reproduction, the output timing of the packet is controlled using this time stamp, A technique for outputting packets at the same packet interval as at the time of input is known (for example, Patent Document 2). With such a technique, it is possible to prevent the internal buffer from overflowing and depleting and the time information in the stream from being shifted due to early arrival or delay of packet transmission inside the AV device.

特開2005−25919号公報JP 2005-25919 A 特許3119116号公報Japanese Patent No. 3119116

しかし,NULLパケットを挿入し,MPEGデータの境界とディスクのセクタ境界とを一致させるように記憶するPCと,全パケットの伝送時刻を示すタイムスタンプを付加して記憶する上記AV機器のようなデータ再生装置とでは,その記憶形態によって以下の問題が生じる。   However, data such as a PC that inserts a NULL packet and stores it so that the boundary of the MPEG data and the sector boundary of the disk coincide with each other, and data such as the AV device that stores the time stamp indicating the transmission time of all packets. With the playback device, the following problems occur depending on the storage form.

即ち,データ再生装置では,全パケットのデータにタイムスタンプを付加できるのに対して,PCでは,ハードウェアの制限からタイムスタンプを付加することも管理することもできないので,データ再生装置とPCとではファイル形式が異なることとなり,データの互換性が無くなる。これは,PCとデータ再生装置とを接続し,データ再生装置をPCの周辺機器として利用する場合に特に問題となる。   That is, in the data reproducing apparatus, time stamps can be added to the data of all packets, whereas in the PC, time stamps cannot be added or managed due to hardware limitations. The file format will be different and data compatibility will be lost. This is a particular problem when the PC and the data reproducing apparatus are connected and the data reproducing apparatus is used as a peripheral device of the PC.

また,PCで記憶したファイルには,出力時刻に関する情報が全パケットに付加されていないので,パケットの出力間隔を正確に把握または制御することが出来ない。従って,PCから外部にはパケットを正確なタイミングで出力することができず,PCからデータ再生装置へのデータ伝送は困難である。MPEG2−TSパケット中には,様々な時刻情報が含まれているが,パケットの伝送時刻が一旦ずれると時刻情報が意味をなさなくなるので,PCからデータ再生装置にデータを伝送する場合にもデコード処理する必要がある。   Also, since the file stored in the PC does not include information regarding the output time in all packets, the packet output interval cannot be accurately grasped or controlled. Therefore, the packet cannot be output from the PC to the outside at an accurate timing, and data transmission from the PC to the data reproducing apparatus is difficult. MPEG2-TS packets contain various time information, but once the transmission time of the packet deviates, the time information becomes meaningless, so even when data is transmitted from the PC to the data reproduction device, it is decoded. Need to be processed.

本発明は,従来における上記問題点に鑑みてなされたものであり,本発明の目的は,全てのパケットに時刻情報が付加されていなくとも,映像の伝送時間を維持して違和感のない映像を再生することが可能な,新規かつ改良されたデータ再生装置,データ再生方法およびそのプログラムを提供することである。   The present invention has been made in view of the above-mentioned problems in the prior art, and an object of the present invention is to maintain a video transmission time and to provide a video with no sense of incongruity even when time information is not added to all packets. It is intended to provide a new and improved data reproducing apparatus, data reproducing method and program thereof that can be reproduced.

上記課題を解決するために,本発明のある観点によれば,AVデータを読み取るデータ読み取り部と;上記読み取られたAVデータのパケットが,時刻情報が付加された時刻情報パケットであった場合,その時刻情報に基づいて上記時刻情報パケットを出力し,上記読み取られたAVデータのパケットが,上記時刻情報パケット以外の通常パケットであった場合,上記時刻情報パケットから所定時間間隔で上記通常パケットを出力するタイミング制御部と;上記出力された時刻情報パケットおよび通常パケットを外部に中継するインターフェース部と;を備えることを特徴とする,データ再生装置が提供される。   In order to solve the above-described problem, according to an aspect of the present invention, a data reading unit that reads AV data; and a packet of the read AV data is a time information packet to which time information is added, The time information packet is output based on the time information, and when the read AV data packet is a normal packet other than the time information packet, the normal packet is output at a predetermined time interval from the time information packet. There is provided a data reproducing device comprising: an output timing control unit; and an interface unit that relays the output time information packet and normal packet to the outside.

上記データ再生装置は,デジタル圧縮技術によりデータ圧縮された映像および音声データをパケット化したAVデータを再生する。このAVデータには時刻情報パケットと通常パケットが混在している。上記タイミング制御部は,まず,時刻情報パケットを検知し,その時刻情報に基づいて特定の時刻に当該時刻情報パケットを出力する。また,タイミング制御部は,その時刻情報パケットの間に含まれる通常パケットを時刻情報パケットの出力タイミングを基準に所定時間間隔をおいて順次出力する。かかる構成により,映像の伝送時間を維持して,違和感のない再生映像を得ることができる。   The data reproduction device reproduces AV data obtained by packetizing video and audio data that have been compressed by digital compression technology. In this AV data, a time information packet and a normal packet are mixed. The timing control unit first detects a time information packet and outputs the time information packet at a specific time based on the time information. In addition, the timing control unit sequentially outputs normal packets included in the time information packet at predetermined time intervals with reference to the output timing of the time information packet. With this configuration, it is possible to maintain a video transmission time and obtain a reproduced video without a sense of incongruity.

上記AVデータは,記憶媒体上に予め記憶されたデータであり,上記記憶媒体のAVデータの連続する2つの時刻情報パケットにおける時刻情報の時刻差,および,上記2つの時刻情報パケット間における通常パケットの数から,上記所定時間間隔を演算する間隔演算部をさらに備えるとしても良い。   The AV data is data stored in advance on a storage medium, the time difference between the time information in two successive time information packets of the AV data in the storage medium, and the normal packet between the two time information packets An interval calculation unit for calculating the predetermined time interval from the number of the above may be further provided.

記憶媒体には予めデータが書き込まれているため,当該データ再生装置においては,一度にもしくは短時間でデータの内容を参照することができる。従って,上記間隔演算部は,実際のAVデータの出力を伴わなくとも,記憶媒体から時刻差および通常パケット数を読み取ることが可能となり,事前に,もしくはデータ伝送経路とは独立して,所定時間間隔もしくはパケットの出力レートを算出できる。かかる演算は,時刻差を通常パケット数+1で除算した結果であっても良い。   Since data is written in advance in the storage medium, the data reproducing apparatus can refer to the contents of the data at once or in a short time. Therefore, the interval calculation unit can read the time difference and the number of normal packets from the storage medium without the actual output of AV data, and the predetermined time can be read in advance or independently of the data transmission path. The interval or packet output rate can be calculated. Such a calculation may be a result of dividing the time difference by the number of normal packets + 1.

上記読み取られたAVデータのパケットを一旦保持するデータバッファと;上記データバッファに保持されたAVデータの連続する2つの時刻情報パケットにおける時刻情報の時刻差,および,上記2つの時刻情報パケット間における通常パケットの数から,上記所定時間間隔を演算する間隔演算部をさらに備えるとしても良い。   A data buffer for temporarily holding the read AV data packet; a time difference between time information in two successive time information packets of the AV data held in the data buffer; and between the two time information packets An interval calculating unit that calculates the predetermined time interval from the number of normal packets may be further provided.

上記データバッファは,少なくとも連続する2つの時刻情報パケットを含むAVデータの一部を一旦保持する。上記間隔演算部は,このデータバッファに保持されている少なくとも2つの時刻情報パケットとその間にある通常パケットを,一度にもしくは短時間に参照することができる。従って,上記間隔演算部は,時刻差および通常パケット数から簡単に所定時間間隔もしくはパケットの出力レートを算出できる。   The data buffer temporarily holds a part of AV data including at least two continuous time information packets. The interval calculation unit can refer to at least two time information packets held in the data buffer and a normal packet between them at once or in a short time. Therefore, the interval calculation unit can easily calculate the predetermined time interval or the packet output rate from the time difference and the number of normal packets.

上記間隔演算部は,上記時刻差や通常パケット数の変化に応じて上記所定時間間隔を随時更新するとしても良い。かかる構成により,AVデータの時刻差や通常パケット数が不規則に並べられていたとしても均一した出力間隔を維持でき,より違和感の無い再生映像を得ることができる。   The interval calculation unit may update the predetermined time interval as needed according to the time difference or the change in the number of normal packets. With such a configuration, even if the time difference of AV data and the number of normal packets are irregularly arranged, a uniform output interval can be maintained, and a reproduced video with a more uncomfortable feeling can be obtained.

上記所定時間間隔は,上記時刻差を通常パケット数+1で除した値より短く設定されるとしても良い。かかる構成により,通常パケットと,その直後に出力される時刻情報パケットとの衝突を防止することができる。   The predetermined time interval may be set shorter than a value obtained by dividing the time difference by the number of normal packets + 1. With this configuration, it is possible to prevent a collision between a normal packet and a time information packet output immediately thereafter.

また,上記タイミング制御部は,入力されたパケットを一旦保持するパケットバッファと;上記パケットバッファに保持されたパケットが,時刻情報パケットであるか否かを判別するPCRパケット判別部と;上記パケットバッファに保持されたパケットの時刻情報を抽出するPCR抽出部と;クロックを計数するカウンタと;上記時刻情報と上記カウンタの計数値とが一致した時点で出力開始信号を生成する一致検出部と;上記一致検出部からの出力開始信号を基準に上記所定時間間隔で出力開始信号を生成するタイマと;上記PCRパケット判別部の判別に基づいて,上記一致検出部と上記タイマとの出力開始信号を切り替えるタイミング切替部と;上記切り替えられた出力開始信号に応じて上記パケットバッファのパケットを出力する出力制御部と;を備えるとしても良い。   The timing control unit includes: a packet buffer that temporarily holds an input packet; a PCR packet determination unit that determines whether the packet held in the packet buffer is a time information packet; and the packet buffer A PCR extracting unit for extracting time information of the packet held in the counter; a counter for counting clocks; a coincidence detecting unit for generating an output start signal when the time information and the count value of the counter coincide; A timer for generating an output start signal at the predetermined time interval based on an output start signal from the match detection unit; and switching an output start signal between the match detection unit and the timer based on the determination of the PCR packet determination unit A timing switching unit; outputting a packet in the packet buffer in response to the switched output start signal A force controlling section; may be provided with.

AVデータを書き込むデータ書き込み部をさらに備え,上記インターフェース部は,さらに外部機器からのオーティオデータを上記データ書き込み部に中継するとしても良い。   A data writing unit for writing AV data may be further provided, and the interface unit may further relay audio data from an external device to the data writing unit.

このようにデータ再生装置は,外部から入力されるAVデータを記憶する機能も有することができる。かかるインターフェース部およびデータ書き込み部は,AVデータに冗長な時刻情報を付加しないで,入力されたデータ形式のまま記憶媒体に記憶するので,PCで記憶される記憶媒体と互換性をとることができる。   As described above, the data reproducing apparatus can also have a function of storing AV data input from the outside. Since the interface unit and the data writing unit store the input data format in the storage medium without adding redundant time information to the AV data, the interface unit and the data writing unit can be compatible with the storage medium stored in the PC. .

また,コンピュータによって,上記データ再生装置として機能するプログラムも提供され,データ再生装置を利用してAVデータを再生するデータ再生方法も提供される。   The computer also provides a program that functions as the data reproduction device, and also provides a data reproduction method for reproducing AV data using the data reproduction device.

以上説明したように本発明によれば,MPEG2−TS形式のような一部のパケットにのみ時刻情報が付加されているAVデータであっても,映像の伝送時間を維持して違和感のない映像を再生することができる。   As described above, according to the present invention, even with AV data in which time information is added to only a part of packets such as the MPEG2-TS format, the video transmission time can be maintained and the video without any sense of incongruity. Can be played.

以下に添付図面を参照しながら,本発明の好適な実施の形態について詳細に説明する。なお,本明細書及び図面において,実質的に同一の機能構成を有する構成要素については,同一の符号を付することにより重複説明を省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the present specification and drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and redundant description is omitted.

従来のデータ再生装置では,入力されたパケットが,時刻情報を付加されたPCR(Program Clock Reference)パケットであるかどうかに拘わらず,独自に,全パケットに時刻情報を付加して記憶し,また,その時刻情報を利用して再生していた。   In the conventional data reproducing apparatus, regardless of whether the input packet is a PCR (Program Clock Reference) packet to which time information is added, the time information is added to all the packets independently and stored. , It was played back using the time information.

一方,PCは汎用品である故,ハードウェアが制限されており,記憶するパケットに独自に時刻情報を追加することや,追加された時刻情報を参照する術を持っていなかった。   On the other hand, since the PC is a general-purpose product, the hardware is limited, and there is no way to add time information uniquely to the packet to be stored or to refer to the added time information.

従って,従来のデータ再生装置で記憶された記憶媒体と,PCで記憶された記憶媒体とでは,フォーマットの不一致が生じ,互換性はなかった。   Therefore, a format discrepancy occurs between the storage medium stored in the conventional data reproducing apparatus and the storage medium stored in the PC, and there is no compatibility.

(第1の実施形態:データ再生システム)
本実施形態によるデータ再生装置は,デジタル圧縮技術によりデータ圧縮された映像および音声データをパケット化したAVデータを,伝送遅延等の違和感を得ることなく再生する。上記AVデータは,音声および/または映像をデジタル化し,所定のデータ圧縮処理を行ったデータである。上記AVデータには時刻情報パケットと通常パケットが混在している。
(First embodiment: data reproduction system)
The data reproducing apparatus according to the present embodiment reproduces AV data obtained by packetizing video and audio data that has been data-compressed by a digital compression technique without feeling uncomfortable such as a transmission delay. The AV data is data obtained by digitizing audio and / or video and performing a predetermined data compression process. In the AV data, a time information packet and a normal packet are mixed.

図1は,本実施形態によるデータ再生システムの接続関係を説明するためのイメージ図であり,図2は,そのデータ再生システムの機能を概略的に示したブロック図である。   FIG. 1 is an image diagram for explaining the connection relation of the data reproduction system according to the present embodiment, and FIG. 2 is a block diagram schematically showing the function of the data reproduction system.

図1におけるデータ再生システム100は,アンテナ110と,放送受信機120と,テレビモニタ130と,データ再生装置としても機能するHDD(Hard Disk Drive)レコーダ140と,を含んで構成される。   The data reproduction system 100 in FIG. 1 includes an antenna 110, a broadcast receiver 120, a television monitor 130, and an HDD (Hard Disk Drive) recorder 140 that also functions as a data reproduction device.

上記アンテナ110は,テレビジョン放送タワー150から広域に渡って出力されるテレビジョン放送等の無線電波を受信し,受信した無線信号を電気信号に変換する。   The antenna 110 receives a radio wave such as a television broadcast output from the television broadcast tower 150 over a wide area, and converts the received radio signal into an electric signal.

上記放送受信機120は,アンテナ110で受信されたAVデータをテレビモニタ130で再生できる形式に変換し,テレビモニタ130に送信する。また,アンテナ110からのAVデータをHDDレコーダ140に記憶するため出力し,かつ,HDDレコーダ140に記憶されたAVデータを入力する。   The broadcast receiver 120 converts the AV data received by the antenna 110 into a format that can be reproduced by the television monitor 130, and transmits the AV data to the television monitor 130. Further, the AV data from the antenna 110 is output to be stored in the HDD recorder 140, and the AV data stored in the HDD recorder 140 is input.

上記テレビモニタ130は,放送受信機120からの映像信号および音声信号を受けて,その映像をモニタ上に,音声をスピーカーに再生する。   The television monitor 130 receives the video signal and the audio signal from the broadcast receiver 120, and reproduces the video on the monitor and the audio on the speaker.

上記HDDレコーダ140は,放送受信機120から入力されたAVデータを,例えば,HDDやDVDといった記憶媒体に記憶し,また,そのHDDやDVDに記憶されたAVデータを読み取って放送受信機120に出力する。   The HDD recorder 140 stores the AV data input from the broadcast receiver 120 in a storage medium such as an HDD or a DVD, and reads the AV data stored in the HDD or DVD to the broadcast receiver 120. Output.

上記放送受信機120は,テレビモニタ130と一体形成しても良いし,HDDレコーダ140と一体形成することもできる。さらには,放送受信機120,テレビモニタ130,HDDレコーダ140を全て一体形成することができる。また,HDDレコーダ140で読み取られるAVデータが,放送受信機120を介さずに直接テレビモニタ130に送信されるとしても良い。   The broadcast receiver 120 may be integrally formed with the television monitor 130 or may be integrally formed with the HDD recorder 140. Furthermore, the broadcast receiver 120, the television monitor 130, and the HDD recorder 140 can all be integrally formed. Further, AV data read by the HDD recorder 140 may be directly transmitted to the television monitor 130 without using the broadcast receiver 120.

図2を参照すると,上記放送受信機120は,チューナー122と,インターフェース部124と,デコーダ126とを含んで構成される。   Referring to FIG. 2, the broadcast receiver 120 includes a tuner 122, an interface unit 124, and a decoder 126.

上記チューナー122は,アンテナ110にて受信された電波から,所望の周波数帯域を選局し,その周波数帯域の信号をBPF(Band Pass Filter)等により抽出する。また,このようにして抽出された周波数のうち,所望のチャンネルの情報を,MPEG2−TS形式のデータとして抽出する。   The tuner 122 selects a desired frequency band from the radio wave received by the antenna 110, and extracts a signal in the frequency band using a BPF (Band Pass Filter) or the like. In addition, information on a desired channel is extracted as data in the MPEG2-TS format from the frequencies thus extracted.

デジタル放送では,限りあるキャリア(周波数)を有効利用するために,一つの周波数の信号に複数のチャンネルのパケットが多重化されている。チューナー122では,先ず,所定周波数に含まれる信号を復調し,誤り訂正処理などを行い,複数のパケットを生成する。このパケット群には複数のチャンネルの番組が多重化されているので,チューナー122は,そのパケットの中から,所望のチャンネルのパケットのみを抽出してインターフェース部124に出力する。   In digital broadcasting, in order to effectively use a limited carrier (frequency), packets of a plurality of channels are multiplexed on a signal of one frequency. The tuner 122 first demodulates a signal included in a predetermined frequency, performs error correction processing, and generates a plurality of packets. Since a program of a plurality of channels is multiplexed in this packet group, the tuner 122 extracts only a packet of a desired channel from the packet and outputs it to the interface unit 124.

図3は,チューナー122から出力されるMPEG2−TS形式のパケットの伝送形態を示した説明図である。図3(A)は,所定周波数に含まれる全てのパケットを示している。ここでは,AVデータを分割した188バイトのパケット200が受信され,1つの周波数に複数のチャンネルが混在している。チューナー122は,その所定周波数に含まれるパケットが所望する所定チャンネルのパケット202であるかどうかを順次判断し,図3(B)に示すような,所定チャネルのパケット202のみ抽出する。抽出されたパケット202は,図3(B)のように不規則かつ不連続な出力タイミングとなってしまう。   FIG. 3 is an explanatory diagram showing a transmission form of an MPEG2-TS format packet output from the tuner 122. FIG. 3A shows all packets included in the predetermined frequency. Here, a 188-byte packet 200 obtained by dividing AV data is received, and a plurality of channels are mixed in one frequency. The tuner 122 sequentially determines whether or not the packet included in the predetermined frequency is the packet 202 of the desired channel, and extracts only the packet 202 of the predetermined channel as shown in FIG. The extracted packet 202 has an irregular and discontinuous output timing as shown in FIG.

上記インターフェース部124は,チューナー122からのパケット202をデコーダ126に伝達し,また,HDDレコーダ140が接続されている場合,HDDレコーダ140にもパケット202を出力する。   The interface unit 124 transmits the packet 202 from the tuner 122 to the decoder 126, and also outputs the packet 202 to the HDD recorder 140 when the HDD recorder 140 is connected.

上記デコーダ126は,インターフェース部124から伝達されたパケット202から映像パケットを抽出し,続いてテレビモニタ130が再生できる形式にデコード処理を行って映像信号を生成し,テレビモニタ130に供給する。   The decoder 126 extracts a video packet from the packet 202 transmitted from the interface unit 124, subsequently performs a decoding process into a format that can be reproduced by the television monitor 130, generates a video signal, and supplies the video signal to the television monitor 130.

また,デコーダ126では,音声パケットも抽出し,続いてデコード処理を行って音声信号を生成し,併せてテレビモニタ130に供給する。   The decoder 126 also extracts audio packets, performs decoding processing to generate audio signals, and supplies them to the television monitor 130 together.

上記データ再生システムにおけるデータ再生装置は,HDDレコーダ140を挙げているが,かかる場合に限られず,DVD,CD(Compact Disc),FD(Floppy(登録商標) Disk),MO(Magnetico−optical Disk),フラッシュメモリ,カードメモリ,USBメモリ,RAM,EPROM,不揮発性RAM等の記憶媒体上のAVデータを再生し得る装置であれば良く,DVDレコーダ等様々なAV機器を利用することができる。 The data reproducing apparatus in the data reproducing system is exemplified by the HDD recorder 140, but is not limited to such a case. DVD, CD (Compact Disc), FD (Floppy (registered trademark) Disk), MO (Magnetic-optical Disk). Any device capable of reproducing AV data on a storage medium such as a flash memory, a card memory, a USB memory, a RAM, an E 2 PROM, and a non-volatile RAM may be used, and various AV devices such as a DVD recorder can be used. .

また,上述のデータ再生システムでは,放送受信機とデータ再生装置との接続を挙げて説明しているが,かかる場合に限られず,撮像装置(ビデオカメラ等)や動画撮像可能なデジタルカメラ等と,データ再生装置とを接続して,上述した機能を実施することもできる。   In the above-described data reproduction system, the connection between the broadcast receiver and the data reproduction device has been described. However, the present invention is not limited to this, and an imaging device (such as a video camera) or a digital camera capable of capturing a moving image can be used. The above-described functions can be implemented by connecting a data reproducing device.

従って,ビデオカメラにデータ再生装置を一体形成し,録画したデータを直接テレビモニタ130で視聴することも可能となる。   Therefore, it is possible to form a data reproducing device integrally with the video camera and view the recorded data directly on the television monitor 130.

(データ再生装置200)
次に,HDDレコーダ140を例に挙げて説明したデータ再生装置の詳細な説明を行う。
(Data reproducing apparatus 200)
Next, a detailed description will be given of the data reproducing apparatus described using the HDD recorder 140 as an example.

図4は,本実施形態によるデータ再生装置200の概略的な機能を示したブロック図である。かかるデータ再生装置200は,データ再生制御部202と,データ保持部204と,データ読み取り部206と,タイミング制御部208と,間隔演算部210と,データバッファ212と,インターフェース部214と,データ書き込み部216と,リモコン受信部218とを含んで形成される。   FIG. 4 is a block diagram showing a schematic function of the data reproducing apparatus 200 according to the present embodiment. The data reproduction apparatus 200 includes a data reproduction control unit 202, a data holding unit 204, a data reading unit 206, a timing control unit 208, an interval calculation unit 210, a data buffer 212, an interface unit 214, and a data writing. A part 216 and a remote control receiving part 218 are formed.

上記データ再生制御部202は,中央処理装置(CPU)を含む半導体集積回路によりデータ再生装置200全体を管理および制御する。   The data reproduction control unit 202 manages and controls the entire data reproduction apparatus 200 by a semiconductor integrated circuit including a central processing unit (CPU).

上記データ保持部204は,HDDやDVD等の記憶媒体からなり,外部から入力されるAVデータを記憶することができる。   The data holding unit 204 is composed of a storage medium such as an HDD or a DVD, and can store AV data input from the outside.

図5は,データ保持部204に記憶されるAVデータのデータ記憶形式を示した説明図である。データ保持部204としてのHDD上には,MPEG−TS形式の188バイト長のパケット150が連続して記憶され,一つのファイルとして管理される。   FIG. 5 is an explanatory diagram showing a data storage format of AV data stored in the data holding unit 204. On the HDD as the data holding unit 204, 188-byte long packets 150 in the MPEG-TS format are continuously stored and managed as one file.

MPEG2−TS方式においては,かかるAVデータをPES(Packetized Elementary Stream)パケットに分割し,このPESパケットのヘッダ部分には,PTS(Present Time Stamp)やDTS(Decord Time Stamp)等の時刻情報が付され,さらに上述したように188バイトのTSパケット150に分割される。   In the MPEG2-TS system, such AV data is divided into PES (Packetized Elementary Stream) packets, and time information such as PTS (Present Time Stamp) and DTS (Decord Time Stamp) is attached to the header portion of the PES packet. Further, as described above, the TS packet 150 is divided into 188 bytes.

また,各パケット150には,パケットの先頭を示す同期バイト152,パケットの種別を識別する13ビットのPID(Packet ID)154,分割されたAVデータを含むパケット本体156等が含まれている。   Each packet 150 includes a synchronization byte 152 indicating the head of the packet, a 13-bit PID (Packet ID) 154 for identifying the packet type, a packet body 156 including the divided AV data, and the like.

パケット150には,映像データパケット,音声データパケットのほか,PAT(Program Association Table)パケット,PMT(Program Map Table)パケット,PCRパケットなどの種類があり,これらをPID154により識別することが可能である。   The packet 150 includes video data packets, audio data packets, PAT (Program Association Table) packets, PMT (Program Map Table) packets, PCR packets, and the like, which can be identified by the PID 154. .

上記データ読み取り部206は,データ保持部204に記憶されているAVデータの再生処理のためAVデータのパケットを順次読み取り,直接もしくはデータバッファ212を介して,タイミング制御部208に転送する。また,データ読み取り部206は,時刻差やパケット数をデータ保持部204から直接読み取り,データ伝送経路と独立した経路で間隔演算部210に伝達するとしても良い。   The data reading unit 206 sequentially reads AV data packets for reproduction processing of AV data stored in the data holding unit 204 and transfers the AV data packets to the timing control unit 208 directly or via the data buffer 212. Further, the data reading unit 206 may directly read the time difference and the number of packets from the data holding unit 204 and transmit the time difference and the number of packets to the interval calculation unit 210 via a route independent of the data transmission route.

上記タイミング制御部208は,データ読み取り部206で読み取られたAVデータのパケットが,PCRパケットとして表される,AVデータの再生時刻を含む再生情報が付加された時刻情報パケットであるかどうか判断し,PCRパケットであった場合,その時刻情報に基づいて当該PCRパケットを出力すべき特定の時刻にPCRパケットをインターフェース部214に出力し,PCRパケット以外の通常パケットであった場合,PCRパケットの出力時点から所定時間間隔で通常パケットをインターフェース部214に順次出力する。   The timing control unit 208 determines whether the AV data packet read by the data reading unit 206 is a time information packet to which reproduction information including the reproduction time of the AV data is added, which is represented as a PCR packet. If the packet is a PCR packet, the PCR packet is output to the interface unit 214 at a specific time when the PCR packet is to be output based on the time information. If the packet is a normal packet other than the PCR packet, the PCR packet is output. Normal packets are sequentially output to the interface unit 214 at predetermined time intervals from the time.

かかるPCRパケットは,例えば,映像時間の100msecに少なくとも1つ含まれるとしても良い。上記タイミング制御部208によって,映像の伝送時間を維持することができ,違和感のない再生映像を得ることが可能となる。   For example, at least one PCR packet may be included in 100 msec of video time. The timing control unit 208 can maintain the transmission time of the video, and can obtain a playback video without a sense of incongruity.

上記間隔演算部210は,データ保持部204のAVデータの連続する2つのPCRパケットにおける時刻情報の時刻差,および,上記2つのPCRパケット間における通常パケットの数から,所定時間間隔を演算する。かかる演算は,時刻差を通常パケット数+1で除算して行われるとしても良い。   The interval calculation unit 210 calculates a predetermined time interval from the time difference of time information in two consecutive PCR packets of AV data in the data holding unit 204 and the number of normal packets between the two PCR packets. Such calculation may be performed by dividing the time difference by the number of normal packets + 1.

詳細には,間隔演算部210は,データ保持部204からのパケット群を一旦データバッファ212に保持して,そのパケット群からPCRパケットに関する時刻差および通常パケット数を抽出し,所定時間間隔もしくはパケットの出力レートを算出する。   Specifically, the interval calculation unit 210 temporarily holds the packet group from the data holding unit 204 in the data buffer 212, extracts the time difference and the number of normal packets related to the PCR packet from the packet group, and performs a predetermined time interval or packet The output rate is calculated.

また,データ保持部204には予めAVデータが記憶されているため,データ読み取り部206はその内容を一度に参照することができる。従って,データ読み取り部206で時刻差および通常パット数を直接抽出し,単一のビットレートに頼ることなく,実際のデータ量からパケットの出力タイミングを求めることも可能である。   Further, since AV data is stored in the data holding unit 204 in advance, the data reading unit 206 can refer to the contents at a time. Therefore, it is possible to directly extract the time difference and the number of normal pads by the data reading unit 206 and obtain the packet output timing from the actual data amount without depending on a single bit rate.

このようにして,パケットの出力タイミングを正確に制御することができ,パケット間隔が部分的に開いてしまう問題を回避できる。   In this way, the packet output timing can be accurately controlled, and the problem of partially opening the packet interval can be avoided.

また,所定時間間隔は,PCRパケット間の時刻差を,通常パケット数+1で除した値より短く(例えば,1〜2割程度)設定されるとしても良い。かかる構成により,出力される通常パケットと,その直後のPCRパケットとの衝突を防止することができ,PCRパケットの出力が保証される。   The predetermined time interval may be set shorter (for example, about 10 to 20%) than the value obtained by dividing the time difference between PCR packets by the number of normal packets + 1. With this configuration, it is possible to prevent a collision between the normal packet to be output and the PCR packet immediately after that, and to guarantee the output of the PCR packet.

間隔演算部210は,上記時刻差や通常パケット数の変化に応じて上記所定時間間隔を随時更新するとしても良い。例えば,AVデータの時刻差や通常パケット数が不規則に並べられている場合においても出力レートが一定であると,PCRパケットの間に規定値より多い通常パケットが含まれていた場合,通常パケットとその直後のPCRパケットとで衝突が起こり,映像が欠落したり,映像出力タイミングが遅延したりする原因となる。かかる出力レートを随時調整する構成により,時刻差に応じた出力間隔を維持でき,より違和感の無い再生映像を得ることができる。   The interval calculation unit 210 may update the predetermined time interval as needed according to the time difference or the change in the number of normal packets. For example, if the output rate is constant even when the time difference of AV data and the number of normal packets are irregularly arranged, if there are more normal packets than the specified value among the PCR packets, And a PCR packet immediately after that cause a video loss or a video output timing delay. With such a configuration that adjusts the output rate as needed, it is possible to maintain an output interval according to the time difference, and to obtain a reproduced video with a more uncomfortable feeling.

但し,データ保持部204に記憶されているAVデータのPCRパケットと通常パケットとの並びに規則性があり,かつ,その出力レートが一定であることが予め分かっている場合,間隔演算部210の機能を停止,もしくは不使用とすることもできる。   However, if it is known beforehand that the PCR packet of the AV data stored in the data holding unit 204 and the regular packet have regularity and the output rate is constant, the function of the interval calculation unit 210 Can be stopped or not used.

上記インターフェース部214は,上記出力されたPCRパケットおよび通常パケットを外部に中継する   The interface unit 214 relays the output PCR packet and normal packet to the outside.

上記データ書き込み部216は,外部機器(周辺機器)からインターフェース部214に入力されたAVデータをデータ保持部204に書き込む。   The data writing unit 216 writes AV data input from the external device (peripheral device) to the interface unit 214 in the data holding unit 204.

上記リモコン受信部218は,リモートコントローラから,ユーザの所望するチャンネルや,AVデータの録画や再生に関する指令を受けて,データ再生制御部202に伝達する。データ再生制御部202は,かかる指令に応じて,各機能を遂行する。   The remote control receiving unit 218 receives a command desired by the user from the remote controller and a command related to AV data recording and reproduction, and transmits the command to the data reproduction control unit 202. The data reproduction control unit 202 performs each function in response to the command.

上述した各構成により,デジタル圧縮技術によりデータ圧縮された映像および音声データをパケット化したデータであり,PCRパケットと通常パケットが混在するAVデータをデータ保持部204に記憶し,また,再生することができる。このようなAVデータの記憶と再生の動作を以下で簡単に説明する。   With the above-described configuration, video data and audio data that have been compressed by digital compression technology are packetized data, and AV data in which PCR packets and normal packets are mixed is stored in the data holding unit 204 and reproduced. Can do. The operation of storing and reproducing such AV data will be briefly described below.

ユーザがデータ再生システムにおいて,テレビジョン放送を受信している際,視聴しているテレビ番組の録画を行う場合を想定する。ユーザは,放送中の映像を録画するため,リモコン(図示せず)を用いデータ再生装置に対し録画準備の指示,例えばチャンネル変更を行う。リモコンから出力された指令信号は,データ再生装置内のリモコン受信部218で受信され,データ再生制御部202に録画準備指令が入力される。   Assume that a user records a television program being viewed while the user is receiving a television broadcast in the data reproduction system. In order to record the video being broadcast, the user uses a remote controller (not shown) to instruct the data playback device to prepare for recording, for example, to change the channel. The command signal output from the remote control is received by the remote control receiving unit 218 in the data playback device, and a recording preparation command is input to the data playback control unit 202.

データ再生制御部202は,インターフェース部214を録画モードに切り替え,データ書き込み部216に対して録画準備を指示し,さらに,インターフェース部214を介して,例えば,放送受信機120に対しストリームデータの送出を要求する。   The data reproduction control unit 202 switches the interface unit 214 to the recording mode, instructs the data writing unit 216 to prepare for recording, and further sends, for example, stream data to the broadcast receiver 120 via the interface unit 214. Request.

このとき,放送受信機120では,チューナー122で受信したストリームデータが,インターフェース部124を介してデコーダ126に供給されており,このストリームデータがデコーダ126によりデコードされてテレビモニタ130に表示されている。   At this time, in the broadcast receiver 120, the stream data received by the tuner 122 is supplied to the decoder 126 via the interface unit 124, and the stream data is decoded by the decoder 126 and displayed on the television monitor 130. .

放送受信機120内のインターフェース部124は,データ再生装置200からのストリームデータの送出要求を受け,デコーダに供給しているストリームデータをデータ再生装置200側にも供給する。   The interface unit 124 in the broadcast receiver 120 receives a stream data transmission request from the data reproduction device 200 and supplies the stream data supplied to the decoder to the data reproduction device 200 side.

放送受信機120のインターフェース部124と,データ再生装置200のインターフェース部214との間におけるインターフェースには,IEEE1394で規定されたデジタルインターフェースを使用することが可能であり,図3(B)で示したようなMPEG2−TS形式のTSパケットのまま伝送することができる。   As an interface between the interface unit 124 of the broadcast receiver 120 and the interface unit 214 of the data reproduction device 200, a digital interface defined by IEEE 1394 can be used, as shown in FIG. Such MPEG2-TS format TS packets can be transmitted as they are.

データ再生装置200側では,放送受信機120から入力されたストリームデータが,データ再生装置200の入出力端子を通じてインターフェース部214に入力され,パケット形式でデータ書き込み部216へ入力される。   On the data playback device 200 side, the stream data input from the broadcast receiver 120 is input to the interface unit 214 through the input / output terminal of the data playback device 200 and input to the data writing unit 216 in a packet format.

その後,ユーザが,録画開始をリモコンで指示すると,リモコンからの信号がリモコン受信部218で受信され,データ再生制御部202に入力される。データ再生制御部202は,録画開始指示に従って,かかるストリームデータの録画処理を指示し,データ書き込み部216は,インターフェース部214から入力されたパケットを連続データとしてファイルに変換し,データ保持部204に記憶していく。   Thereafter, when the user instructs to start recording with the remote control, a signal from the remote control is received by the remote control receiving unit 218 and input to the data reproduction control unit 202. The data reproduction control unit 202 instructs the recording process of the stream data in accordance with the recording start instruction, and the data writing unit 216 converts the packet input from the interface unit 214 into a file as continuous data, and sends it to the data holding unit 204. I will remember it.

所望するストリームの終了時に,ユーザは,リモコンを介して録画の停止指令を行う。これに応じてデータ再生制御部202が,データ書き込み部216を制御し,パケットの書き込みを完了した後,データ保持部204の,例えばHDDにおけるファイル管理情報領域を書き換え,記憶した情報をファイルとしてファイル管理情報に登録する。   At the end of the desired stream, the user issues a recording stop command via the remote control. In response to this, the data reproduction control unit 202 controls the data writing unit 216 and, after completing the packet writing, rewrites the file management information area of the data holding unit 204, for example, in the HDD, and stores the stored information as a file. Register in management information.

以上の処理により,外部から入力されたパケット群をデータ保持部204としてのHDD上にファイルとして記憶することが出来る。HDD上のデータ形式は,図5に示したように188バイトのパケットが連続した形となる。   Through the above processing, a packet group input from the outside can be stored as a file on the HDD as the data holding unit 204. The data format on the HDD is a continuous form of 188 byte packets as shown in FIG.

続いて,データ保持部204に記憶されたAVデータの再生処理に関して説明する。   Next, the reproduction process of AV data stored in the data holding unit 204 will be described.

ユーザは,リモコンを操作することにより,再生するAVデータを選択して,再生開始の指示を行う。リモコン受信部218は,かかる再生開始の信号を受信すると,データ再生制御部202に再生開始指令を伝達する。   The user operates the remote controller to select AV data to be played back and gives an instruction to start playback. When receiving the reproduction start signal, the remote control receiving unit 218 transmits a reproduction start command to the data reproduction control unit 202.

データ再生制御部202は,再生開始指令に従い,インターフェース部214を再生モードに切り替え,インターフェース部214を介して放送受信機120をストリームデータの入力モードに切り替える。即ち,放送受信機120内のインターフェース部124は,データ再生装置200から受信するパケットをデコーダ126に供給するように動作を切り替える。   The data playback control unit 202 switches the interface unit 214 to the playback mode in accordance with the playback start command, and switches the broadcast receiver 120 to the stream data input mode via the interface unit 214. That is, the interface unit 124 in the broadcast receiver 120 switches the operation so that the packet received from the data reproduction device 200 is supplied to the decoder 126.

また,データ再生制御部202は,再生開始指示に従って,データ保持部204から所望のファイルを読み取る。読み取ったファイルは,188バイトのパケット形式で抽出され,直接もしくはデータバッファ212を介して,タイミング制御部208に入力される。タイミング制御部208は,時刻情報に矛盾が生じないようパケットの出力タイミングを制御し,所定のタイミングでパケットを出力する。以下に,タイミング制御部208の詳細な動作を説明する。   Further, the data reproduction control unit 202 reads a desired file from the data holding unit 204 in accordance with the reproduction start instruction. The read file is extracted in a 188-byte packet format and input to the timing control unit 208 directly or via the data buffer 212. The timing control unit 208 controls the packet output timing so that time information does not contradict, and outputs the packet at a predetermined timing. The detailed operation of the timing control unit 208 will be described below.

(タイミング制御部208)
図6は,タイミング制御部208の概略的な機能ブロックを表したブロック図である。ここで,タイミング制御部208は,パケット入力端子300と,パケットバッファ302と,PCRパケット判別部304と,PCR抽出部306と,カウンタ308と,一致検出部310と,タイマ312と,パラメータ入力端子314と,タイミング切替部316と,出力制御部318と,パケット出力端子320とを含んで構成される。
(Timing control unit 208)
FIG. 6 is a block diagram illustrating schematic functional blocks of the timing control unit 208. Here, the timing control unit 208 includes a packet input terminal 300, a packet buffer 302, a PCR packet determination unit 304, a PCR extraction unit 306, a counter 308, a coincidence detection unit 310, a timer 312, and a parameter input terminal. 314, a timing switching unit 316, an output control unit 318, and a packet output terminal 320.

データ読み取り部206から入力されたパケットは,パケット入力端子300を介してパケットバッファ302に一時的に保持される。PCRパケット判別部304,および,PCR抽出部306は,パケットバッファ302に入力された上記パケットの内容を解析する。   The packet input from the data reading unit 206 is temporarily held in the packet buffer 302 via the packet input terminal 300. The PCR packet determination unit 304 and the PCR extraction unit 306 analyze the contents of the packet input to the packet buffer 302.

上記PCRパケット判別部304は,パケットバッファ302に入力されたパケットが,時刻情報パケットとしてのPCRパケットであるか,それ以外の通常パケットであるかを判別する。   The PCR packet discriminating unit 304 discriminates whether the packet input to the packet buffer 302 is a PCR packet as a time information packet or another normal packet.

上記PCR抽出部306は,パケットバッファ302に入力されたパケットに付随する,時刻情報としてのPCR値を抽出する。かかるパケットがPCRパケットの場合,PCR抽出部306は,抽出したPCR値を一致検出部310に転送する。かかるパケットがPCRパケットではない場合,そのPCR値は意味を持たないこととなる。   The PCR extracting unit 306 extracts a PCR value as time information attached to the packet input to the packet buffer 302. If the packet is a PCR packet, the PCR extraction unit 306 transfers the extracted PCR value to the match detection unit 310. If such a packet is not a PCR packet, the PCR value has no meaning.

上記カウンタ308は,例えば27MHzのクロックを用いて,PCRと同期可能な形式のカウント値を計数する。カウンタ308は,このように計数したカウント値を一致検出部310に伝達する。   The counter 308 counts a count value in a format that can be synchronized with the PCR using, for example, a 27 MHz clock. The counter 308 transmits the count value thus counted to the coincidence detection unit 310.

上記一致検出部310は,PCR抽出部306から入力されたPCR値と,カウンタ308で生成されたカウント値とを比較し,その値が一致した時点で,タイミング切替部316にパケット出力開始信号を出力する。   The coincidence detection unit 310 compares the PCR value input from the PCR extraction unit 306 with the count value generated by the counter 308, and outputs a packet output start signal to the timing switching unit 316 when the values match. Output.

上記タイマ312は,一致検出部310からの出力開始信号を基準に所定の周期でパケット出力開始信号をタイミング切替部316に出力する。かかるタイマ312によるパケット出力開始信号の出力周期は,パラメータ入力端子314を介してデータ再生制御部202から制御することが可能である。   The timer 312 outputs a packet output start signal to the timing switching unit 316 at a predetermined cycle based on the output start signal from the coincidence detection unit 310. The output period of the packet output start signal by the timer 312 can be controlled from the data reproduction control unit 202 via the parameter input terminal 314.

上記タイミング切替部316は,出力制御部318に対して,PCRパケット判別部304が判別対象パケットをPCRパケットと判別した場合,そのPCRパケットを一致検出部310の出力開始信号に応じて出力させ,PCRパケット判別部304がPCRパケット以外の,例えば通常パケットであると判断した場合,そのパケットをタイマ312の出力開始信号に応じて出力させる。   The timing switching unit 316 causes the output control unit 318 to output the PCR packet in response to the output start signal of the coincidence detection unit 310 when the PCR packet determination unit 304 determines that the determination target packet is a PCR packet, When the PCR packet determining unit 304 determines that the packet is a normal packet other than the PCR packet, for example, the packet is output according to the output start signal of the timer 312.

以下に,タイミング制御部208の詳細な動作を説明する。   The detailed operation of the timing control unit 208 will be described below.

図7A,Bは,タイミング切替部316によるパケットの出力タイミングを説明するためのタイミングチャートである。図7Aは,パケット入力端子300に入力されるパケットのタイミングを,図7Bは,パケット出力端子320から出力されるパケットのタイミングを示している。   7A and 7B are timing charts for explaining the packet output timing by the timing switching unit 316. 7A shows the timing of the packet input to the packet input terminal 300, and FIG. 7B shows the timing of the packet output from the packet output terminal 320.

AVデータの再生が開始されると,タイミング制御部208では,データ保持部204からAVデータのパケットを読み取る。かかる読み取りタイミングは,図7Aのように所定数(ここでは4つ)のパケット毎に読み取られるとしても良いし,所定間隔で1つずつ読み取られても良いが,遅くとも本来出力すべきパケットのレートより速いタイミングで読み取り,パケットバッファ302に保持される。かかるパケットの読み取り時には,そのパケットがPCRパケットであるか,それ以外のパケットであるかは問われない。   When the reproduction of the AV data is started, the timing control unit 208 reads the AV data packet from the data holding unit 204. The read timing may be read for every predetermined number of packets (in this case, four) as shown in FIG. 7A, or may be read one by one at predetermined intervals. It is read at a faster timing and held in the packet buffer 302. When reading such a packet, it does not matter whether the packet is a PCR packet or any other packet.

パケットバッファ302は,データ保持部204からパケット350を一つ取得する。PCRパケット判別部304は,そのパケットがPCRパケットであるかどうかを判別する。図7Aにおいては,斜線が入っているパケットをPCRパケットとする。従って,PCRパケット判別部304は,パケット350をPCRパケットであると判別し,タイミング切替部316にその旨伝達する。   The packet buffer 302 acquires one packet 350 from the data holding unit 204. The PCR packet discriminating unit 304 discriminates whether or not the packet is a PCR packet. In FIG. 7A, a packet with diagonal lines is a PCR packet. Accordingly, the PCR packet determining unit 304 determines that the packet 350 is a PCR packet, and notifies the timing switching unit 316 to that effect.

タイミング切替部316は,PCRパケット判別部304からの信号を受けて,タイミング切替部316のタイミング入力を一致検出部310側に切り替える。その結果,一致検出部310から出力されるパケットの出力開始信号が出力制御部318に入力される。   The timing switching unit 316 receives the signal from the PCR packet determination unit 304 and switches the timing input of the timing switching unit 316 to the coincidence detection unit 310 side. As a result, the output start signal of the packet output from the match detection unit 310 is input to the output control unit 318.

また,PCR抽出部306は,PCRパケット判別部304と並行して,パケットバッファ302が取得したパケットのPCR値を抽出し,一致検出部310に転送する。一致検出部310は,PCR抽出部306で抽出されたPCR値と,カウンタ308で生成されたカウント値とを比較し,両者が一致した時点でタイミング切替部316に出力開始信号を出力する。このようにしてパケット(PCRパケット)350は,PCR値とカウント値が一致した時点,即ち,PCRパケットが本来出力されるべき時点(図7Bにおける時刻T)でパケット出力端子320から出力される。 The PCR extraction unit 306 extracts the PCR value of the packet acquired by the packet buffer 302 in parallel with the PCR packet determination unit 304 and transfers it to the match detection unit 310. The coincidence detection unit 310 compares the PCR value extracted by the PCR extraction unit 306 with the count value generated by the counter 308, and outputs an output start signal to the timing switching unit 316 when they match. In this way, the packet (PCR packet) 350 is output from the packet output terminal 320 at the time when the PCR value and the count value coincide, that is, when the PCR packet should be output (time T 1 in FIG. 7B). .

パケットバッファ302は,データ保持部204から次のパケット352を取得する。PCRパケット判別部304は,上記同様に,そのパケットがPCRパケットであるかどうかを判別する。かかるパケット352は,PCRパケットではない通常パケットなので,PCRパケット判別部304は,タイミング切替部316にその旨伝達する。   The packet buffer 302 acquires the next packet 352 from the data holding unit 204. The PCR packet discriminating unit 304 discriminates whether or not the packet is a PCR packet, as described above. Since the packet 352 is a normal packet that is not a PCR packet, the PCR packet determination unit 304 notifies the timing switching unit 316 to that effect.

タイミング切替部316は,PCRパケット判別部304からの信号を受けて,タイミング切替部316のタイミング入力をタイマ312側に切り替える。その結果,タイマ312から出力されるパケットの出力開始信号が出力制御部318に入力される。   The timing switching unit 316 receives the signal from the PCR packet determination unit 304 and switches the timing input of the timing switching unit 316 to the timer 312 side. As a result, the output start signal of the packet output from the timer 312 is input to the output control unit 318.

タイマ312は,直前のパケット(ここでは,パケット350)から所定時間間隔kだけ待機し,所定時間間隔kに到達すると,タイミング切替部316にパケットの出力開始信号を出力する。このようにしてパケット352は,PCRパケットであるパケット350から所定時間間隔kを空けた時点でパケット出力端子320から出力される。   The timer 312 waits for a predetermined time interval k from the previous packet (here, the packet 350), and outputs a packet output start signal to the timing switching unit 316 when the predetermined time interval k is reached. In this way, the packet 352 is output from the packet output terminal 320 at a predetermined time interval k from the packet 350 that is a PCR packet.

このように,PCRパケットを除いた通常パケットの出力間隔は,タイマ312によって制御される。ここで,パケットの出力間隔は,PCRパケットを含めほぼ均一であることが望ましい。また,パケット間隔が短すぎると両装置のインターフェース部124,214や,放送受信機120のデコーダ126に負担がかかり,パケットの伝送中にバッファが溢れてしまう可能性があるため,パケット同士の間隔はなるべく長い方が良い。   In this way, the output interval of normal packets excluding PCR packets is controlled by the timer 312. Here, it is desirable that the packet output interval is substantially uniform including the PCR packet. In addition, if the packet interval is too short, the interface units 124 and 214 of both devices and the decoder 126 of the broadcast receiver 120 may be burdened, and the buffer may overflow during packet transmission. Should be as long as possible.

従って,PCRパケットを除いたパケットの間隔kは,以下のようにして求めることができる。即ち,時間間隔kは再生ストリームデータのビットレートを1パケット分のビット数で除したものと考えることができる。ここで,ビットレートは,MPEGストリーム中のsequence_extension内に記載されているbit_rate情報を使用することができる。   Therefore, the packet interval k excluding the PCR packet can be obtained as follows. That is, the time interval k can be considered as the bit rate of the reproduction stream data divided by the number of bits for one packet. Here, as the bit rate, bit_rate information described in the sequence_extension in the MPEG stream can be used.

しかし,任意のパケットに関して,部分的にビットレートが高く,かつ,PCRパケットの間に存在するパケットの数が多い場合には,PCRパケットの出力タイミングが遅くなる可能性がある。PCRパケットの出力タイミングが本来の出力タイミングよりも遅くなると,ストリームデータ上のPCR値がずれてしまうので,演算値kよりも若干短い間隔でパケットを出力することが望ましい。   However, if a bit rate is partially high for an arbitrary packet and the number of packets existing between PCR packets is large, the output timing of the PCR packet may be delayed. If the output timing of the PCR packet is later than the original output timing, the PCR value on the stream data is shifted, so it is desirable to output the packet at an interval slightly shorter than the calculated value k.

また,パケット間隔kは,実際に記憶されているストリームデータから求めるとしても良い。かかる演算に関しては後述の実施形態で説明する。   Further, the packet interval k may be obtained from the actually stored stream data. Such calculation will be described in an embodiment described later.

パケット352出力後も,上記同様に,パケットバッファ302は,データ保持部204から次のパケット354を取得し,かかるパケット354がPCRパケットでないことが把握されると,パケット354は,直前のパケット352から所定時間間隔kを隔てて,パケット出力端子320に出力される。このような処理がパケットの取得毎に繰り返され,1つのPCRパケットから所定時間間隔kをおいて複数の通常パケットが出力される。   Even after the packet 352 is output, the packet buffer 302 obtains the next packet 354 from the data holding unit 204 in the same manner as described above, and if it is determined that the packet 354 is not a PCR packet, the packet 354 becomes the previous packet 352. Are output to the packet output terminal 320 at a predetermined time interval k. Such processing is repeated every time a packet is acquired, and a plurality of normal packets are output at a predetermined time interval k from one PCR packet.

そして,次のPCRパケットであるパケット356がPCRパケット判別部304に認識されると,パケット(PCRパケット)356は,PCR値とカウント値が一致した時点,即ち,PCRパケットが本来出力されるべき時点(図7Bにおける時刻T)でパケット出力端子320から出力される。このようにして図7Bのようにパケットの出力タイミングが均一化され,テレビモニタ130で違和感のない再生映像を得ることができる。 When the packet 356, which is the next PCR packet, is recognized by the PCR packet discriminating unit 304, the packet (PCR packet) 356 should be output when the PCR value matches the count value, that is, the PCR packet should be output originally. The packet is output from the packet output terminal 320 at the time (time T 2 in FIG. 7B). In this way, the packet output timing is made uniform as shown in FIG. 7B, and a reproduced video with no sense of incongruity can be obtained on the television monitor 130.

また,図7Bに示したパケットの出力タイミングは,図3(B)に示したパケット出力タイミングとは異なっているが,時刻情報を含んでいるPCRパケットの出力タイミングが正確に制御されているため,図7Bに示したパケットを受信した放送受信機120では,時刻情報がずれることなく常に正しいパケット受信時刻を再現することができ,デコード処理に支障が生じることはない。   Further, although the packet output timing shown in FIG. 7B is different from the packet output timing shown in FIG. 3B, the output timing of the PCR packet including the time information is accurately controlled. In the broadcast receiver 120 that has received the packet shown in FIG. 7B, the correct packet reception time can always be reproduced without the time information being shifted, and the decoding process is not hindered.

図7A,Bの例では,説明の簡略化のためパケット数を少なくして説明しているが,その数は図7A,Bのような場合に限定されず,PCRパケット間に数千から数万のパケットが存在するとしても良い。   In the example of FIGS. 7A and 7B, the number of packets is reduced to simplify the description. However, the number is not limited to the case of FIGS. There may be 10,000 packets.

(間隔演算部210)
次に,パケットを出力する時間間隔kをAVデータのPCRパケットを利用して求める構成を説明する。
(Interval calculator 210)
Next, a configuration for obtaining a time interval k for outputting a packet by using a PCR packet of AV data will be described.

間隔演算部210は,上述したように,データバッファ212に保持された,データ保持部204からのAVデータの連続する2つのPCRパケットにおけるPCR値の時刻差,および,前後2つのPCRパケット間における通常パケットの数から,所定時間間隔を演算する。   As described above, the interval calculation unit 210 determines the time difference between the PCR values in two consecutive PCR packets of AV data from the data holding unit 204 held in the data buffer 212, and between the two preceding and following PCR packets. The predetermined time interval is calculated from the number of normal packets.

図8は,上記所定時間間隔の演算を説明するためのデータバッファ212の保持パケットを示した説明図である。ここでは,データバッファ212に入力されたパケット順に数値が割り振られている。   FIG. 8 is an explanatory diagram showing a packet held in the data buffer 212 for explaining the calculation of the predetermined time interval. Here, numerical values are assigned in the order of packets input to the data buffer 212.

本実施形態においては,例えば,16個のパケットをデータ保持部204から一度に読み取り,間隔演算部210はかかるパケット群からPCRパケットを抽出する。この結果,データバッファ212には,3つのPCRパケット400,402,404が存在することが認識される。   In the present embodiment, for example, 16 packets are read from the data holding unit 204 at a time, and the interval calculation unit 210 extracts PCR packets from the packet group. As a result, it is recognized that three PCR packets 400, 402, and 404 exist in the data buffer 212.

続いて,間隔演算部210は,直近のPCRパケットを2つ選択し(400,402),そのPCRパケット400,402のPCR値を参照する。ここでPCRパケット400のPCR値には,tの時刻が含まれ,PCRパケット402のPCR値には,tの時刻が含まれているとする。 Subsequently, the interval calculation unit 210 selects two recent PCR packets (400, 402), and refers to the PCR values of the PCR packets 400, 402. Here, the PCR value of the PCR packet 400 includes the time of t 1, the PCR value of the PCR packet 402 that contains the time t 2.

次に,間隔演算部210は,上記2つのPCRパケット間にあるパケット(通常パケット)の数を計数する。ここでは,PCRパケット間406に5つのパケットが存在している。   Next, the interval calculation unit 210 counts the number of packets (normal packets) between the two PCR packets. Here, five packets exist between the PCR packets 406.

続いて,間隔演算部210は,PCR値の時刻差t−tを,前後2つのPCRパケット間における通常パケットの数5に1を加えた数値6で除す(割る)。これによって,所定時間間隔kが導出される。また,所定時間間隔kは,時刻差t−tを通常パケット数5+1で除した値より短く設定されるとしても良い。これは,除算後の小数点の切り捨て,もしくは一様(1〜2割)に減算することによって実施される。かかる処理により,出力される通常パケットと,その直後のPCRパケットとの衝突を容易に防止することができる。このようにして求めた所定時間間隔kは,ストリームファイルに関連した管理情報として,ファイルに記憶されるとしても良い。 Subsequently, the interval calculation unit 210 divides (divides) the time difference t 2 −t 1 of the PCR value by the numerical value 6 obtained by adding 1 to the number of normal packets 5 between the two previous and subsequent PCR packets. Thereby, the predetermined time interval k is derived. The predetermined time interval k may be set shorter than a value obtained by dividing the time difference t 2 −t 1 by the number of normal packets 5 + 1. This is implemented by rounding down the decimal point after division or by subtracting uniformly (1 to 20%). By such processing, it is possible to easily prevent a collision between the output normal packet and the PCR packet immediately after that. The predetermined time interval k thus obtained may be stored in the file as management information related to the stream file.

このような所定時間間隔kの演算は,実際にストリームデータを再生している最中に行われるとしても良いし,再生開始時もしくは再生開始前に所定時間間隔kを求める目的において行われるとしても良い。ここで,所定時間間隔kは,伝送に問題が生じない程度に高速化することも可能であり,インターフェース部124,214やデコーダ126の最大ビットレートから演算した値に予め設定することもできる。   Such calculation of the predetermined time interval k may be performed during the actual reproduction of the stream data, or may be performed for the purpose of obtaining the predetermined time interval k at the start of reproduction or before the start of reproduction. good. Here, the predetermined time interval k can be increased to such an extent that no problem occurs in transmission, and can be set in advance to a value calculated from the maximum bit rates of the interface units 124 and 214 and the decoder 126.

上記のようにして求めた所定時間間隔kは,データ再生制御部200によってタイミング制御部208内のタイマ312に設定され,パケットの出力間隔が制御される。従って,タイミング制御部208に入力されたストリームファイル内のパケットが,図7Bに示したような間隔で出力されることとなる。   The predetermined time interval k obtained as described above is set in the timer 312 in the timing control unit 208 by the data reproduction control unit 200, and the packet output interval is controlled. Accordingly, the packets in the stream file input to the timing control unit 208 are output at intervals as shown in FIG. 7B.

タイミング制御部208から出力されたパケットは,インターフェース部214を介して外部の放送受信機120に伝送され,放送受信機120側のインターフェース部124からデコーダ126に入力される。上記パケットは,デコーダ126において所定の映像信号にデコードされたのち,テレビモニタ130にて表示が行われる。   The packet output from the timing control unit 208 is transmitted to the external broadcast receiver 120 via the interface unit 214 and input to the decoder 126 from the interface unit 124 on the broadcast receiver 120 side. The packet is decoded into a predetermined video signal by the decoder 126 and then displayed on the television monitor 130.

以上のようにして,所定割合のパケットのみが出力タイミングを有するストリームデータ(ストリームファイル)であっても,各パケットの出力タイミングをほぼ一定に保って出力することができる。また,PCRパケットの出力タイミングは,ストリーム中の時刻情報と同期して出力されるので,正確な時刻情報を有したストリームの出力を実現することが可能となる。   As described above, even when only a predetermined percentage of packets are stream data (stream file) having an output timing, the output timing of each packet can be kept substantially constant and output. Further, since the output timing of the PCR packet is output in synchronization with the time information in the stream, it is possible to realize the output of the stream having accurate time information.

これにより,放送受信機120におけるインターフェース部124やデコーダ126での時刻情報の管理が正しく行われ,パケットを蓄積するバッファの管理が容易になり,データ再生装置200での再生に問題を生じることがなくなる。   As a result, the time information is correctly managed in the interface unit 124 and the decoder 126 in the broadcast receiver 120, the management of the buffer for storing the packets is facilitated, and a problem occurs in the reproduction in the data reproducing apparatus 200. Disappear.

また,本実施形態では,図7Aや図8に示したようにAVデータのパケットが規則的に並んでいる場合だけでなく,PCRパケットと通常パケットが不規則に並べられている場合であっても,パケットの適切な出力タイミングを提供できる。   Further, in the present embodiment, not only when AV data packets are regularly arranged as shown in FIGS. 7A and 8, but also when PCR packets and normal packets are irregularly arranged. Can also provide appropriate output timing of packets.

上記間隔演算部210が,データバッファ212に保持された,データ保持部204のAVデータの連続する2つのPCRパケットにおけるPCR値の時刻差,および,前後2つのPCRパケット間における通常パケットの数から,所定時間間隔を演算する上記の処理は,時刻差もしくは通常パケット数が変化している限り,常に継続される。   Based on the time difference between the PCR values in two consecutive PCR packets of the AV data in the data holding unit 204 and the number of normal packets between the two preceding and following PCR packets, the interval calculation unit 210 holds the data buffer 212. The above processing for calculating the predetermined time interval is always continued as long as the time difference or the number of normal packets changes.

従って,視聴するAVデータが,時刻差や通常パケットの数が不規則なAVデータであったとしても,その時々に応じた最適の所定時間間隔kを導出することができ,その所定時間間隔kによって,タイミング制御部208は,パケットの最適な出力レートを提供することが可能となる。こうして,均一した出力間隔を維持でき,より違和感の無い再生映像を得ることができる。   Therefore, even if the AV data to be viewed is AV data with irregular time difference or number of normal packets, it is possible to derive an optimum predetermined time interval k according to the time, and the predetermined time interval k. Thus, the timing control unit 208 can provide an optimum output rate of packets. In this way, it is possible to maintain a uniform output interval, and to obtain a reproduced image that is more comfortable.

また,データ保持部204の記憶内容には,独自の時刻情報等が付されず,PCで記憶した状態と同じになるので,PCとのフォーマットに関する互換性を維持できる。こうして,PCで記憶した記憶媒体をそのままデータ再生装置で利用でき,逆も可能となる。   In addition, the storage content of the data holding unit 204 is not attached with unique time information and the like, and is the same as the state stored in the PC, so that the compatibility with the format with the PC can be maintained. In this way, the storage medium stored in the PC can be used as it is in the data reproducing apparatus, and vice versa.

また,上述したデータ再生装置として機能するプログラムやこのプログラムを記憶した記憶媒体も提供される。   In addition, a program that functions as the above-described data reproduction device and a storage medium that stores the program are also provided.

(第2の実施形態:データ再生装置の変形例)
また,上述したデータ再生装置200は,放送受信機120と一体形成することができる。
(Second Embodiment: Modification of Data Reproducing Device)
In addition, the data reproduction device 200 described above can be formed integrally with the broadcast receiver 120.

図9は,データ再生装置200の変形例を示すブロック図である。データ再生装置200の変形例であるデータ再生装置300は,チューナー122と,デコーダ126と,データ再生制御部202と,データ保持部204と,データ読み取り部206と,タイミング制御部208と,間隔演算部210と,データバッファ212と,データ書き込み部216と,リモコン受信部218とを含んで構成される。   FIG. 9 is a block diagram showing a modified example of the data reproducing device 200. A data reproduction device 300, which is a modification of the data reproduction device 200, includes a tuner 122, a decoder 126, a data reproduction control unit 202, a data holding unit 204, a data reading unit 206, a timing control unit 208, and an interval calculation. A unit 210, a data buffer 212, a data writing unit 216, and a remote control receiving unit 218 are included.

上記の構成要素は,第1の実施形態における構成要素と実質的に機能が同一なので重複説明を省略し,ここでは,その機能において相違する点のみ説明する。   Since the above-described components have substantially the same functions as the components in the first embodiment, redundant description will be omitted, and only the points that differ in the functions will be described here.

上記データ再生装置300は,放送受信機としてのチューナー122とデコーダ126を備え,アンテナ110で受信されたAVデータをテレビモニタ130で再生できる形式に変換しテレビモニタ130に送信する。同時に,データ再生装置300は,アンテナ110で受信されたAVデータを記憶し,また,その記憶したAVデータを再生することができる。   The data reproduction apparatus 300 includes a tuner 122 and a decoder 126 as a broadcast receiver, converts AV data received by the antenna 110 into a format that can be reproduced by the television monitor 130, and transmits the converted data to the television monitor 130. At the same time, the data reproduction device 300 can store AV data received by the antenna 110 and can reproduce the stored AV data.

かかる構成では,タイミング制御部208によって出力タイミングが調整されたパケットが,データの付加等何ら加工されることなく,デコーダ126を介して直接テレビモニタ130に送信されることから,低コストかつ信頼性の高い映像再生を行うことが可能となる。   In such a configuration, a packet whose output timing is adjusted by the timing control unit 208 is directly transmitted to the television monitor 130 via the decoder 126 without any processing such as addition of data. High-quality video playback can be performed.

また,データ再生装置300の出力時点でタイミング調整されているため,テレビモニタ130以外の例えばパーソナルコンピュータに接続した場合においても,違和感のない映像を得ることが可能である。   In addition, since the timing is adjusted at the time of output of the data reproduction device 300, it is possible to obtain a video with no sense of incompatibility even when connected to a personal computer other than the television monitor 130, for example.

(第3の実施形態:データ再生方法)
図10は,第3の実施形態におけるデータ再生方法の流れを示したフローチャートである。
(Third embodiment: data reproduction method)
FIG. 10 is a flowchart showing the flow of the data reproducing method according to the third embodiment.

先ず,ユーザのリモコン操作により,記憶されたAVデータの再生が開始されると(S500),データ読み取り部206がAVデータを読み取り(S502),タイミング制御部208は,その読み取られたAVデータのパケットを挙げ,そのパケットが,PCRパケットであった場合,そのPCR値に基づいてPCRパケットを出力し,そのパケットが,通常パケットであった場合,PCRパケットから所定時間間隔で通常パケットを出力する(S504)。   First, when reproduction of stored AV data is started by a user's remote control operation (S500), the data reading unit 206 reads AV data (S502), and the timing control unit 208 reads the AV data that has been read. If the packet is a PCR packet, the PCR packet is output based on the PCR value. If the packet is a normal packet, the normal packet is output at a predetermined time interval from the PCR packet. (S504).

かかる所定時間間隔は,データ保持部204のAVデータの連続する2つのPCRパケットにおけるPCR値の時刻差を2つのPCRパケット間における通常パケットの数+1で除することによって求められる。この所定時間間隔は,時刻差や通常パケット数の変化に応じて随時更新されるとしても良い。   Such a predetermined time interval is obtained by dividing the time difference between the PCR values of two consecutive PCR packets of AV data in the data holding unit 204 by the number of normal packets between the two PCR packets + 1. The predetermined time interval may be updated as needed according to a time difference or a change in the number of normal packets.

そして,インターフェース部214は,タイミング制御部208から出力されたPCRパケットおよび通常パケットを外部に中継する(S506)。   The interface unit 214 relays the PCR packet and the normal packet output from the timing control unit 208 to the outside (S506).

続いて,上記出力タイミング調整(S504)の処理を詳細に説明する。   Next, the output timing adjustment (S504) process will be described in detail.

図11は,第3の実施形態における出力タイミングの調整方法の流れを示したフローチャートである。ここでは,パケットバッファ302に入力されたパケットの出力タイミングを,各々のパケットの種類に応じて決定している。   FIG. 11 is a flowchart showing the flow of the output timing adjustment method in the third embodiment. Here, the output timing of the packet input to the packet buffer 302 is determined according to the type of each packet.

先ず,記憶されたAVデータの再生が開始されると(S550),パケットバッファ302は,データ保持部204からのパケットを一つ取得する(S552)。   First, when the reproduction of stored AV data is started (S550), the packet buffer 302 acquires one packet from the data holding unit 204 (S552).

次に,PCRパケット判別部304は,取得したパケットがPCRパケットかどうかの判別を行う(S554)。取得したパケットが,PCRパケットの場合,PCRパケット判別部304は,タイミング切替部316の出力タイミングの入力として,一致検出部310側を選択し,一致検出部310から出力されるパケット出力開始信号が出力制御部318に入力されるように制御する。   Next, the PCR packet determining unit 304 determines whether or not the acquired packet is a PCR packet (S554). When the acquired packet is a PCR packet, the PCR packet determination unit 304 selects the coincidence detection unit 310 as an input of the output timing of the timing switching unit 316, and the packet output start signal output from the coincidence detection unit 310 is Control is performed so as to be input to the output control unit 318.

これと並行して,PCR抽出部306は,パケットバッファ302で取得したパケットのPCR値を抽出し,一致検出部310に入力する。一致検出部310は,PCR抽出部で抽出されたPCRの値と,カウンタで生成したカウント値とを比較し,両者が一致するまで待機する(S556)。PCR値とカウント値が一致すると,一致検出部310からパケット出力開始信号が出力され,タイミング切替部316を介して出力制御部318に入力される。   In parallel with this, the PCR extraction unit 306 extracts the PCR value of the packet acquired by the packet buffer 302 and inputs it to the match detection unit 310. The coincidence detection unit 310 compares the PCR value extracted by the PCR extraction unit with the count value generated by the counter, and waits until they match (S556). When the PCR value and the count value match, a packet output start signal is output from the match detection unit 310 and input to the output control unit 318 via the timing switching unit 316.

また,取得したパケットが,PCRパケット以外の通常パケットであった場合,PCRパケット判別部304は,タイミング切替部316の出力タイミングの入力として,タイマ312側を選択し,タイマ312から出力されるパケット出力開始信号が出力制御部318に入力されるように制御する。   If the acquired packet is a normal packet other than the PCR packet, the PCR packet determination unit 304 selects the timer 312 side as the output timing input of the timing switching unit 316 and outputs the packet output from the timer 312. Control is performed so that the output start signal is input to the output control unit 318.

これと並行して,タイマ312は,直前のPCRパケットから上記で求めた所定時間間隔分待機し(S558),所定時間間隔が経過するとタイマ312からパケット出力開始信号が出力され,タイミング切替部316を介して出力制御部318に入力される。   In parallel with this, the timer 312 waits for the predetermined time interval obtained from the previous PCR packet (S558). When the predetermined time interval elapses, the timer 312 outputs a packet output start signal, and the timing switching unit 316 Is input to the output control unit 318.

出力制御部318は,タイミング切替部316からの出力開始信号に応じてパケットの出力を行い(S560),記憶されたAVデータの再生が終了するまで,かかる処理を繰り返す。   The output control unit 318 outputs a packet in response to the output start signal from the timing switching unit 316 (S560), and repeats this process until the reproduction of the stored AV data is completed.

以上,添付図面を参照しながら本発明の好適な実施形態について説明したが,本発明は係る例に限定されないことは言うまでもない。当業者であれば,特許請求の範囲に記載された範疇内において,各種の変更例または修正例に想到し得ることは明らかであり,それらについても当然に本発明の技術的範囲に属するものと了解される。   As mentioned above, although preferred embodiment of this invention was described referring an accompanying drawing, it cannot be overemphasized that this invention is not limited to the example which concerns. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

例えば,上述した実施形態においては,PCRパケット間の通常パケットを均一にならすことで映像の再生スピードを維持することを述べているが,かかる場合に限られず,例えば,NULLパケットの補充を適宜行い,所定時間間隔が一定,かつ,PCRパケット間に通常パケット以外の残余間隔がある場合等に対応することも可能である。   For example, in the above-described embodiment, it is described that the reproduction speed of the video is maintained by making the normal packets between the PCR packets uniform. However, the present invention is not limited to this, and for example, supplementation of NULL packets is appropriately performed. It is also possible to cope with a case where the predetermined time interval is constant and there is a remaining interval other than the normal packet between the PCR packets.

なお,本明細書のデータ再生方法における各工程は,必ずしもフローチャートとして記載された順序に沿って時系列に処理する必要はなく,並列的あるいは個別に実行される処理(例えば,並列処理あるいはオブジェクトによる処理)も含むとしても良い。   Note that the steps in the data reproduction method of the present specification do not necessarily have to be processed in time series in the order described in the flowchart, but are executed in parallel or individually (for example, parallel processing or object-based processing). Processing).

本発明は,データ再生装置およびその方法にかかり,例えば,AVデータのパケットを再生するデータ再生装置およびその方法に適用可能である。   The present invention relates to a data reproducing apparatus and method thereof, and can be applied to, for example, a data reproducing apparatus and method for reproducing AV data packets.

第1の実施形態によるデータ再生システムの接続関係を説明するためのイメージ図である。It is an image figure for demonstrating the connection relation of the data reproduction system by 1st Embodiment. データ再生システムの機能を概略的に示したブロック図である。It is the block diagram which showed the function of the data reproduction system roughly. チューナーから出力されるMPEG2−TS形式のパケットの伝送形態を示した説明図である。It is explanatory drawing which showed the transmission form of the packet of the MPEG2-TS format output from a tuner. 第1の実施形態によるデータ再生装置の概略的な機能を示したブロック図である。It is the block diagram which showed the schematic function of the data reproduction apparatus by 1st Embodiment. データ保持部に記憶されるAVデータのデータ記憶形式を示した説明図である。It is explanatory drawing which showed the data storage format of AV data memorize | stored in a data holding part. タイミング制御部の概略的な機能ブロックを表したブロック図である。It is a block diagram showing the schematic functional block of a timing control part. タイミング切替部によるパケットの出力タイミングを説明するためのタイミングチャートである。It is a timing chart for demonstrating the output timing of the packet by a timing switching part. タイミング切替部によるパケットの出力タイミングを説明するためのタイミングチャートである。It is a timing chart for demonstrating the output timing of the packet by a timing switching part. 所定時間間隔の演算を説明するためのデータバッファの保持パケットを示した説明図である。It is explanatory drawing which showed the holding | maintenance packet of the data buffer for demonstrating the calculation of a predetermined time interval. データ再生装置の変形例を示すブロック図である。It is a block diagram which shows the modification of a data reproduction apparatus. 第3の実施形態におけるデータ再生方法の流れを示したフローチャートである。It is the flowchart which showed the flow of the data reproduction method in 3rd Embodiment. 第3の実施形態における出力タイミングの調整方法の流れを示したフローチャートである。It is the flowchart which showed the flow of the adjustment method of the output timing in 3rd Embodiment.

符号の説明Explanation of symbols

200,300 データ再生装置
206 データ読み取り部
208 タイミング制御部
210 間隔演算部
212 データバッファ
124,214 インターフェース部
216 データ書き込み部
302 パケットバッファ
304 PCRパケット判別部
306 PCR抽出部
308 カウンタ
310 一致検出部
312 タイマ
316 タイミング切替部
318 出力制御部
200, 300 Data reproduction device 206 Data reading unit 208 Timing control unit 210 Interval calculation unit 212 Data buffer 124, 214 Interface unit 216 Data writing unit 302 Packet buffer 304 PCR packet discrimination unit 306 PCR extraction unit 308 Counter 310 Match detection unit 312 Timer 316 Timing switching unit 318 Output control unit

Claims (9)

AVデータを読み取るデータ読み取り部と;
前記読み取られたAVデータのパケットが,時刻情報が付加された時刻情報パケットであった場合,その時刻情報に基づいて前記時刻情報パケットを出力し,前記読み取られたAVデータのパケットが,前記時刻情報パケット以外の通常パケットであった場合,前記時刻情報パケットから所定時間間隔で前記通常パケットを出力するタイミング制御部と;
前記出力された時刻情報パケットおよび通常パケットを外部に中継するインターフェース部と;
を備えることを特徴とする,データ再生装置。
A data reading unit for reading AV data;
When the read AV data packet is a time information packet to which time information is added, the time information packet is output based on the time information, and the read AV data packet is the time information packet. A timing control unit for outputting the normal packet at a predetermined time interval from the time information packet when the normal packet is other than the information packet;
An interface unit that relays the output time information packet and normal packet to the outside;
A data reproducing apparatus comprising:
前記AVデータは,記憶媒体上に予め記憶されたデータであり,
前記記憶媒体のAVデータの連続する2つの時刻情報パケットにおける時刻情報の時刻差,および,前記2つの時刻情報パケット間における通常パケットの数から,前記所定時間間隔を演算する間隔演算部をさらに備えることを特徴とする,請求項1に記載のデータ再生装置。
The AV data is data stored in advance on a storage medium,
An interval calculation unit that calculates the predetermined time interval from the time difference between the time information in two continuous time information packets of the AV data of the storage medium and the number of normal packets between the two time information packets is further provided. The data reproducing apparatus according to claim 1, wherein:
前記読み取られたAVデータのパケットを一旦保持するデータバッファと;
前記データバッファに保持されたAVデータの連続する2つの時刻情報パケットにおける時刻情報の時刻差,および,前記2つの時刻情報パケット間における通常パケットの数から,前記所定時間間隔を演算する間隔演算部をさらに備えることを特徴とする,請求項1に記載のデータ再生装置。
A data buffer for temporarily holding the read AV data packet;
An interval calculation unit for calculating the predetermined time interval from a time difference between time information in two continuous time information packets of AV data held in the data buffer and the number of normal packets between the two time information packets The data reproducing apparatus according to claim 1, further comprising:
前記間隔演算部は,前記時刻差や通常パケット数の変化に応じて前記所定時間間隔を随時更新することを特徴とする,請求項2または3のいずれかに記載のデータ再生装置。   4. The data reproducing apparatus according to claim 2, wherein the interval calculation unit updates the predetermined time interval as needed according to the time difference or a change in the number of normal packets. 前記所定時間間隔は,前記時刻差を通常パケット数+1で除した値より短く設定されることを特徴とする,請求項2または3のいずれかに記載のデータ再生装置。   4. The data reproducing apparatus according to claim 2, wherein the predetermined time interval is set shorter than a value obtained by dividing the time difference by the number of normal packets + 1. 前記タイミング制御部は,
入力されたパケットを一旦保持するパケットバッファと;
前記パケットバッファに保持されたパケットが,時刻情報パケットであるか否かを判別するPCRパケット判別部と;
前記パケットバッファに保持されたパケットの時刻情報を抽出するPCR抽出部と;
クロックを計数するカウンタと;
前記時刻情報と前記カウンタの計数値とが一致した時点で出力開始信号を生成する一致検出部と;
前記一致検出部からの出力開始信号を基準に前記所定時間間隔で出力開始信号を生成するタイマと;
前記PCRパケット判別部の判別に基づいて,前記一致検出部と前記タイマとの出力開始信号を切り替えるタイミング切替部と;
前記切り替えられた出力開始信号に応じて前記パケットバッファのパケットを出力する出力制御部と;
を備えることを特徴とする,請求項1に記載のデータ再生装置。
The timing controller is
A packet buffer that temporarily holds an input packet;
A PCR packet determining unit for determining whether or not the packet held in the packet buffer is a time information packet;
A PCR extractor for extracting time information of the packet held in the packet buffer;
A counter for counting clocks;
A coincidence detection unit that generates an output start signal when the time information coincides with the count value of the counter;
A timer for generating an output start signal at the predetermined time interval based on an output start signal from the coincidence detection unit;
A timing switching unit that switches output start signals of the coincidence detection unit and the timer based on the determination of the PCR packet determination unit;
An output control unit for outputting a packet of the packet buffer according to the switched output start signal;
The data reproducing apparatus according to claim 1, further comprising:
AVデータを書き込むデータ書き込み部をさらに備え,
前記インターフェース部は,さらに外部機器からのオーティオデータを前記データ書き込み部に中継することを特徴とする,請求項1に記載のデータ再生装置。
A data writing unit for writing AV data;
The data reproducing apparatus according to claim 1, wherein the interface unit further relays audio data from an external device to the data writing unit.
コンピュータが,
AVデータを読み取るデータ読み取り部と;
前記読み取られたAVデータのパケットが,時刻情報が付加された時刻情報パケットであった場合,その時刻情報に基づいて前記時刻情報パケットを出力し,前記読み取られたAVデータのパケットが,前記時刻情報パケット以外の通常パケットであった場合,前記時刻情報パケットから所定時間間隔で前記通常パケットを出力するタイミング制御部と;
前記出力された時刻情報パケットおよび通常パケットを外部に中継するインターフェース部と;
として機能することを特徴とする,プログラム。
Computer
A data reading unit for reading AV data;
When the read AV data packet is a time information packet to which time information is added, the time information packet is output based on the time information, and the read AV data packet is the time information packet. A timing control unit for outputting the normal packet at a predetermined time interval from the time information packet when the normal packet is other than the information packet;
An interface unit that relays the output time information packet and normal packet to the outside;
A program characterized by functioning as
AVデータを読み取る工程と;
前記読み取られたAVデータのパケットが,時刻情報が付加された時刻情報パケットであった場合,その時刻情報に基づいて前記時刻情報パケットを出力し,前記読み取られたAVデータのパケットが,前記時刻情報パケット以外の通常パケットであった場合,前記時刻情報パケットから所定時間間隔で前記通常パケットを出力する工程と;
前記出力された時刻情報パケットおよび通常パケットを外部に中継する工程と;
を含むことを特徴とする,データ再生方法。
Reading AV data;
When the read AV data packet is a time information packet to which time information is added, the time information packet is output based on the time information, and the read AV data packet is the time information packet. Outputting the normal packet at a predetermined time interval from the time information packet if it is a normal packet other than an information packet;
Relaying the output time information packet and normal packet to the outside;
A method for reproducing data, comprising:
JP2005343994A 2005-11-29 2005-11-29 Data reproducing apparatus, data reproducing method, and program thereof Pending JP2007150845A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2005343994A JP2007150845A (en) 2005-11-29 2005-11-29 Data reproducing apparatus, data reproducing method, and program thereof
KR1020060026474A KR100739802B1 (en) 2005-11-29 2006-03-23 Apparatus for reproducing data and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005343994A JP2007150845A (en) 2005-11-29 2005-11-29 Data reproducing apparatus, data reproducing method, and program thereof

Publications (1)

Publication Number Publication Date
JP2007150845A true JP2007150845A (en) 2007-06-14

Family

ID=38211696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005343994A Pending JP2007150845A (en) 2005-11-29 2005-11-29 Data reproducing apparatus, data reproducing method, and program thereof

Country Status (2)

Country Link
JP (1) JP2007150845A (en)
KR (1) KR100739802B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001057570A (en) * 1999-08-18 2001-02-27 Toshiba Corp Data multiplexer and recording medium recording program
JP2005027006A (en) * 2003-07-02 2005-01-27 Matsushita Electric Ind Co Ltd Data transmitting device
JP2005216265A (en) * 2004-02-02 2005-08-11 Canon Inc Transfer apparatus and method
JP2005295295A (en) * 2004-04-01 2005-10-20 Mitsubishi Electric Corp Stream transmitting device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100243416B1 (en) * 1997-12-17 2000-02-01 이계철 Method and apparatus for re-multiplexing in mpeg-2 ts
JP4491970B2 (en) 2001-01-10 2010-06-30 ソニー株式会社 Digital signal multiplexer
US6868125B2 (en) 2001-11-29 2005-03-15 Thomson Licensing S.A. Transport stream to program stream conversion
KR100546640B1 (en) * 2003-03-11 2006-01-26 엘지전자 주식회사 Digital Video record/playback system and trick playback method
KR20050058924A (en) * 2003-12-13 2005-06-17 엘지전자 주식회사 Method of detecting a/v synchronous error in mpeg-2 system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001057570A (en) * 1999-08-18 2001-02-27 Toshiba Corp Data multiplexer and recording medium recording program
JP2005027006A (en) * 2003-07-02 2005-01-27 Matsushita Electric Ind Co Ltd Data transmitting device
JP2005216265A (en) * 2004-02-02 2005-08-11 Canon Inc Transfer apparatus and method
JP2005295295A (en) * 2004-04-01 2005-10-20 Mitsubishi Electric Corp Stream transmitting device

Also Published As

Publication number Publication date
KR20070056895A (en) 2007-06-04
KR100739802B1 (en) 2007-07-13

Similar Documents

Publication Publication Date Title
KR100984638B1 (en) Robust method for achieving audio/video synchronization in mpeg decoders in personal video recording applications
US8249419B2 (en) Method for generating additional information for guaranteeing seamless playback between data streams, recording medium storing the information, and recording, editing and/or playback apparatus using the same
JP3516206B2 (en) Data stream processing apparatus and method, and program storage medium
JP4793247B2 (en) Recording apparatus, recording method, reproducing apparatus, and reproducing method
US7865064B2 (en) Recording/output apparatus and recording/output method
JPH08339630A (en) Multichannel selector, multichannel recorder, multichannel reproducer, multichannel recorder and reproducer, data compressor and data expander
KR101014664B1 (en) Reproduction method for guaranteeing seamless reproduction of a plurality of data streams and reproducing apparatus therefor
JPH11317768A (en) Transmission system, transmitting device, recording and reproducing device, and recording device
JP4257478B2 (en) Recording / playback device
US7092411B2 (en) Transport stream multiplexing method, transport stream multiplexing apparatus, and storage and reproduction system
JPH11205789A (en) Transmission rate converter of mpeg2 transport stream
JP2004040579A (en) Digital broadcast reception device and synchronous reproduction method for digital broadcast
JP2007150845A (en) Data reproducing apparatus, data reproducing method, and program thereof
JP2001339688A (en) Playback equipment of transport stream
JP4462237B2 (en) Digital signal processor
JP2000187940A (en) Recording/reproducing device and recorder
JP3897753B2 (en) Memory output device
KR20090012814A (en) The image device of providing pvr function and the method thereof
EP1152612A2 (en) Multiplex data recording and reproducing apparatus and method for the same
JP2002281498A (en) Reception reproducing device
JP4187040B2 (en) Recording / playback device
JP2000041011A (en) Device and method for information output and providing medium
JP3825646B2 (en) MPEG device
JP5120469B2 (en) Digital signal processor
JP4697330B2 (en) Digital signal processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081118

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090515

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20090706

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20090707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111115

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120529

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121023