JP2006140992A - Data processing apparatus - Google Patents

Data processing apparatus Download PDF

Info

Publication number
JP2006140992A
JP2006140992A JP2005294700A JP2005294700A JP2006140992A JP 2006140992 A JP2006140992 A JP 2006140992A JP 2005294700 A JP2005294700 A JP 2005294700A JP 2005294700 A JP2005294700 A JP 2005294700A JP 2006140992 A JP2006140992 A JP 2006140992A
Authority
JP
Japan
Prior art keywords
information
reproduction
unit
data
reference picture
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
JP2005294700A
Other languages
Japanese (ja)
Other versions
JP4616144B2 (en
Inventor
Masanori Ito
正紀 伊藤
Hiroshi Yabaneta
洋 矢羽田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005294700A priority Critical patent/JP4616144B2/en
Publication of JP2006140992A publication Critical patent/JP2006140992A/en
Application granted granted Critical
Publication of JP4616144B2 publication Critical patent/JP4616144B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To generate management information of an appropriate format without analyzing a data stream and to transfer the data stream and the management information at high speed to various recording media with different formats of the management information. <P>SOLUTION: A data processing apparatus includes an encoder and a management information generating unit. The encoder generates a plurality of reproduction units each including I/B/P picture data, and information indicating reproduction time to reproduce each of the pictures to generate a data stream. The management information generating section generates, in accordance with the type of the recording medium, one of picture information defining a correspondence between a reproduction time of an I picture to be recorded first in respective reproduction units and its recording position, and reproduction unit information defining a correspondence between a reproduction time length of a reproduction unit and the recording position of the I picture, and information relating to a reproduction time length of a picture within a reproduction unit. Such information is stored in one or more tables for each of reproduction units as management information. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、符号化された映像/音声データを光ディスク、ハードディスク、メモリカード等の記録媒体に書き込み、書き込まれた映像/音声データを再生する技術に関する。   The present invention relates to a technique for writing encoded video / audio data on a recording medium such as an optical disk, a hard disk, or a memory card, and reproducing the written video / audio data.

映像データを低いビットレートで圧縮するために、MPEG2規格(ISO/IEC 13818−1)ではシステムストリームが規定されている。当該システムストリームとして、プログラムストリーム、トランスポートストリーム、及びPES(Packetized Elementary Stream)ストリームの3種類が規定されている。   In order to compress video data at a low bit rate, the MPEG2 standard (ISO / IEC 13818-1) defines a system stream. Three types of system streams are defined: a program stream, a transport stream, and a PES (Packetized Elementary Stream) stream.

このようなシステムストリームは、例えば光ディスクに書き込まれ、保存される。光ディスクは磁気テープに代わる映像データの記録媒体であり、DVD−RAM、ブルーレイディスク(Blu−ray Disc)に代表される相変化光ディスクや、MOに代表される光磁気ディスクが知られている。   Such a system stream is written and stored on an optical disc, for example. An optical disk is a recording medium for video data instead of a magnetic tape, and a phase change optical disk represented by a DVD-RAM and a Blu-ray Disc, and a magneto-optical disk represented by an MO are known.

例えば、DVD−RAMに映像データを記録するための規格として、VIDEO RECORDING規格(DVD Specifications for Rewritable/Re−recordable Discs Part 3 VIDEO RECORDING Version 1.0 September 1999)が策定されている。この規格によれば、映像データのデータファイルは、DVD−RAMディスク上にMPEG2プログラムストリームフォーマットで記録される。   For example, as a standard for recording video data on a DVD-RAM, the VIDEO RECORDING standard (DVD Specifics for Rewriteable / Re-recordable Discs Part 3 VIDEO RECORDING Version 1.0 September 1999) has been formulated. According to this standard, a data file of video data is recorded on a DVD-RAM disc in the MPEG2 program stream format.

また他の例として、Blu−ray Discに映像データを記録するための規格も策定されている。その規格においては、映像データのデータファイルは、ISO/IEC 13818−1で規定されるMPEG2のトランスポートストリームフォーマットで記録される。トランスポートストリームにおいては、映像データはISO/IEC 13818−2で規定されるMPEG2方式で圧縮され、音声データは例えばISO/IEC 13818−7で規定されるMPEG2−AAC(Advanced Audio Cording)で圧縮される。   As another example, a standard for recording video data on a Blu-ray Disc has been developed. In the standard, a data file of video data is recorded in an MPEG2 transport stream format defined by ISO / IEC 13818-1. In the transport stream, video data is compressed by the MPEG2 system defined by ISO / IEC 13818-2, and audio data is compressed by, for example, MPEG2-AAC (Advanced Audio Cording) defined by ISO / IEC 13818-7. The

図1は、相変化光ディスク131にリアルタイムで映像を記録したときのデータ構造を示す。図1においては、相変化光ディスクは2Kバイトのセクタから構成され、16個のセクタを1つの論理ブロックとして取り扱い、この論理ブロックごとに誤り訂正符号を付与して相変化ディスクへ記録するようになっている。例えば特許文献1は、上述のデータ構造を開示している。   FIG. 1 shows a data structure when video is recorded on the phase change optical disk 131 in real time. In FIG. 1, the phase change optical disk is composed of 2 Kbyte sectors, and 16 sectors are handled as one logical block, and an error correction code is assigned to each logical block and recorded on the phase change disk. ing. For example, Patent Document 1 discloses the above-described data structure.

さらに、少なくとも所定時間分のデータサイズ(最大記録再生レート換算で例えば11秒分のデータ)を有する物理的に連続する論理ブロックを1つの連続データ領域として確保し、この領域へ0.4〜1秒分のMPEGトランスポートストリームからなる単位ビデオパケット(Video OBject UNIT:以下、「VOBU」という。)を順に記録する。   Furthermore, a physically continuous logical block having a data size of at least a predetermined time (for example, data of 11 seconds in terms of maximum recording / reproducing rate) is secured as one continuous data area, and 0.4 to 1 is allocated to this area. Unit video packets (Video Object UNIT: hereinafter referred to as “VOBU”) composed of MPEG transport streams for seconds are recorded in order.

1つのVOBUは、188バイト単位のMPEGトランスポートストリームの下位階層であるトランスポートパケットから構成されている。トランスポートパケットは、ビデオ圧縮データが格納されたビデオトランスポートパケット(V_TSP)、オーディオ圧縮データが格納されたオーディオトランスポートパケット(A_TSP)、プログラム・アソシェーション・テーブル・パケット(PAT)が格納されたトランスポートパケット(PAT_TSP)、及びプログラム・マップ・テーブル(PMT)が格納されたトランスポートパケット(PMT_TSP)の4種類から構成されている。   One VOBU is composed of transport packets which are lower layers of an MPEG transport stream of 188 bytes. The transport packet stores a video transport packet (V_TSP) in which video compressed data is stored, an audio transport packet (A_TSP) in which audio compressed data is stored, and a program association table packet (PAT). The transport packet (PAT_TSP) and the transport packet (PMT_TSP) in which the program map table (PMT) is stored are configured.

また、1つのVOBUには所定の再生時間分のピクチャに関するV_TSPが含まれる。さらに、1つのVOBUには映像の再生に関連して必要となる音声フレームを含むA_TSPが全て含まれる。すなわち、VOBU内で音声フレームが完結する。また、1つのVOBUのデータサイズは、映像が可変ビットレートであれば最大記録再生レート以下の範囲で変動する。映像が固定ビットレートであればVOBUのデータサイズはほぼ一定である。   One VOBU includes V_TSP related to pictures for a predetermined playback time. Furthermore, one VOBU includes all A_TSPs including audio frames necessary for video reproduction. That is, the audio frame is completed within the VOBU. In addition, the data size of one VOBU varies within a range equal to or less than the maximum recording / reproducing rate if the video is a variable bit rate. If the video is a fixed bit rate, the data size of VOBU is almost constant.

図2(a)〜(e)は、それぞれPCRを有するV_TSP、A_TSP、PAT_TSP、PMT_TSPおよびPCRを有さないV_TSPの詳細を示している。V_TSPはトランスポートパケットヘッダとビデオデータから構成される。A_TSPはトランスポートパケットヘッダとオーディオデータから構成される。PAT_TSPは主にトランスポートパケットヘッダ、及びプログラム・アソシェーション・テーブルから構成される。PMT_TSPは主にトランスポートパケットヘッダ及びプログラム・マップ・テーブルから構成される。また、V_TSPにPCR(プログラム・クロック・リファレンス)が付加されるときには、図2(e)に示すようにトランスポートパケットヘッダに隣接するアダプテーション・フィールド内にPCR値が記録される。   2A to 2E show details of V_TSP, A_TSP, PAT_TSP, PMT_TSP, and V_TSP having no PCR, respectively. V_TSP is composed of a transport packet header and video data. A_TSP is composed of a transport packet header and audio data. PAT_TSP mainly includes a transport packet header and a program association table. PMT_TSP mainly includes a transport packet header and a program map table. When PCR (program clock reference) is added to V_TSP, the PCR value is recorded in the adaptation field adjacent to the transport packet header as shown in FIG.

V_TSP、A_TSP、PAT_TSPおよびPMT_TSPは、それぞれトランスポートパケットヘッダ内のPID(Packet ID)で識別される。例えば図2(a)〜(d)に示されように、V_TSPのPIDは“0x0020”、A_TSPのPIDは“0x0021”、PAT_TSPのPIDは“0x0000”、PMT_TSPのPIDは“0x0030”である。PID値が検出されるとそのパケットの種類が識別される。   V_TSP, A_TSP, PAT_TSP, and PMT_TSP are each identified by a PID (Packet ID) in the transport packet header. For example, as shown in FIGS. 2A to 2D, the PID of V_TSP is “0x0020”, the PID of A_TSP is “0x0021”, the PID of PAT_TSP is “0x0000”, and the PID of PMT_TSP is “0x0030”. When the PID value is detected, the type of the packet is identified.

ここで、V_TSP及びA_TSP用のPIDの割り当て状況はPMT_TSP内のプログラム・マップ・テーブルに記載される。また、PMT_TSP用のPIDはPAT_TSP内のプログラム・アソシェーション・テーブルに記載される。なお、PAT_TSP用のPIDは“0x0000”の固定値をとる。   Here, the assignment status of PIDs for V_TSP and A_TSP is described in a program map table in PMT_TSP. The PID for PMT_TSP is described in the program association table in PAT_TSP. The PID for PAT_TSP takes a fixed value of “0x0000”.

PCRは、トランスポートパケットが仮想的なMPEGデコーダに到着した時刻を示す、27MHzのクロックのサンプル値である。MPEG2規格(ISO/IEC 13818−1)は、特定のPIDを有するトランスポートパケット内に少なくとも100msec以内の任意のタイミングでPCRを挿入することを規定している。   The PCR is a sample value of a 27 MHz clock indicating the time when the transport packet arrives at the virtual MPEG decoder. The MPEG2 standard (ISO / IEC 13818-1) stipulates that a PCR is inserted at an arbitrary timing within at least 100 msec in a transport packet having a specific PID.

PMT内のPCR_PIDフィールドには、PCRを記述するためにどのPIDが選択されたかが記録される。ストリームを受信した装置は、27MHzのクロックにこのPCR値を入力してPLL(Phase Lock Loop)をかける。さらにその装置は、表示タイミング値や復号タイミング値の基準値を得るためにもそのPCR値を使用する。すなわち、装置は27MHzのクロックの初期値としてPCRの値をセットし、以降はPCRの値をPLLに入力することにより、送信側のクロックとして利用する。そして装置は、そのクロック値がビデオデータに含まれる復号タイミング値(デコーディング・タイム・スタンプ、DTS)や表示タイミング値(プレゼンテーション・タイム・スタンプ、PTS)と一致するタイミングで、ビデオデータを復号し、そのビデオデータに基づく映像を表示する。なお、オーディオデータに関してはPTSのみが含まれる点がビデオデータと異なる。PTSと一致するタイミングで復号及び出力が行われる点はビデオデータと同じである。   In the PCR_PID field in the PMT, which PID is selected for describing the PCR is recorded. The apparatus that has received the stream inputs this PCR value to the 27 MHz clock and applies PLL (Phase Lock Loop). Further, the apparatus uses the PCR value to obtain a reference value for the display timing value and the decoding timing value. That is, the apparatus sets a PCR value as an initial value of a 27 MHz clock, and thereafter uses the PCR value as a clock on the transmission side by inputting the PCR value to the PLL. The apparatus then decodes the video data at a timing at which the clock value matches the decoding timing value (decoding time stamp, DTS) or display timing value (presentation time stamp, PTS) included in the video data. The video based on the video data is displayed. Note that audio data is different from video data in that only PTS is included. It is the same as video data in that decoding and output are performed at the same timing as PTS.

装置は、1つの連続データ領域の残りが少なくなった時点で、次の連続データ領域を再検出する。そして、1つの連続データ領域が一杯になると、次の連続データ領域に対してデータを書き込む。   The apparatus redetects the next continuous data area when the remaining one continuous data area becomes small. When one continuous data area is full, data is written to the next continuous data area.

図3は、UDF(Universal Disk Format)ファイルシステム上で管理されている光ディスク上のデータの例を示す。図3においては、記録開始ボタンのオンとオフの各1回の操作により、1つのMPEGトランスポートストリームがファイルMOVIE.MPGとして記録される場合を示している。   FIG. 3 shows an example of data on an optical disc managed on a UDF (Universal Disk Format) file system. In FIG. 3, one MPEG transport stream is converted into a file MOVIE. By one operation of turning on and off the recording start button. The case where it records as MPG is shown.

図3に示すように、ファイル名及びファイルエントリの位置についてはFID(File Identifier Descriptor)で管理されている。また、ファイルエントリ内のアロケーションディスクリプタを使って、1つのファイルとそのファイルを構成する3つの連続データ領域a、b、cを管理している。   As shown in FIG. 3, the file name and the position of the file entry are managed by an FID (File Identifier Descriptor). In addition, one file and three continuous data areas a, b, and c constituting the file are managed by using the allocation descriptor in the file entry.

連続データ領域が3つに分れる経緯を説明する。まず装置が連続データ領域aへの記録中に不良論理ブロックを検出すると、当該不良論理ブロックをスキップして、連続データ領域bの先頭から書き込みを継続する。   The process of dividing the continuous data area into three will be described. First, when the apparatus detects a defective logical block during recording in the continuous data area a, the defective logical block is skipped and writing is continued from the beginning of the continuous data area b.

また、装置が連続データ領域bへの記録中にPCファイルの記録領域を検出すると、今度はPCファイルの記録領域をスキップして、連続データ領域cの先頭から書き込みを継続する。この結果、ファイルMOVIE.MPGは連続データ領域a、b、cの3つの領域から構成される。   If the apparatus detects the recording area of the PC file during recording in the continuous data area b, the apparatus skips the recording area of the PC file and continues writing from the beginning of the continuous data area c. As a result, the file MOVIE. The MPG is composed of three areas, continuous data areas a, b, and c.

図4は、VOBU及びトランスポートパケットと、ビデオ・エレメンタリ・ストリーム及びオーディオ・エレメンタリ・ストリームとの関係を示す。ここでは、1個のVOBUはM個のGOP(グループ・オブ・ピクチャ)から構成されるとする。   FIG. 4 shows the relationship between VOBUs and transport packets, and video elementary streams and audio elementary streams. Here, it is assumed that one VOBU is composed of M GOPs (Group of Pictures).

各ビデオ・フレーム及び各オーディオ・フレームは、PESヘッダを含んでいる。また、1個のVOBUは、先頭にシーケンスヘッダを含んでいる。各GOPはGOPヘッダを含んでいる。   Each video frame and each audio frame includes a PES header. One VOBU includes a sequence header at the head. Each GOP includes a GOP header.

各VOBUにおける先頭のビデオ又はオーディオのPESヘッダは、各々のトランスポートパケットのペイロードの先頭から始まるように調整される。具体的には、直前のトランスポートパケットにパディングデータが挿入されてトランスポートストリームのデータサイズが調整されている。   The PES header of the leading video or audio in each VOBU is adjusted to start from the beginning of the payload of each transport packet. Specifically, padding data is inserted into the immediately preceding transport packet to adjust the data size of the transport stream.

PAT_TSP及びPMT_TSPは、ビデオデータが格納されているパケットのPID及びオーディオデータが格納されているパケットのPIDを格納する。したがって、少なくともこの2つのPIDを認識できなければ映像および音声を再生できないといえる。   PAT_TSP and PMT_TSP store the PID of a packet in which video data is stored and the PID of a packet in which audio data is stored. Therefore, it can be said that video and audio cannot be reproduced unless at least these two PIDs can be recognized.

復号時にPTS及びDTSを基準として復号タイミングや出力タイミングを制御するためには、いち早く27MHzのクロック値を適切な値に初期化する必要がある。そのためには、MPEGデコーダがPCR値をできるだけ早く受け取り、その値をクロック値として使用開始することが必要となる。   In order to control decoding timing and output timing based on PTS and DTS at the time of decoding, it is necessary to quickly initialize the 27 MHz clock value to an appropriate value. For this purpose, it is necessary that the MPEG decoder receives the PCR value as soon as possible and starts using the value as a clock value.

上述の映像データおよび音声データを相変化光ディスクに書き込む装置の具体的な構成は、例えば特許文献2を参照されたい。   For a specific configuration of an apparatus for writing the above-described video data and audio data on a phase change optical disk, see, for example, Patent Document 2.

MPEG2規格(ISO/IEC 13818−1)においては、PAT_TSP、PMT_TSP及びPCRの挿入タイミングは規定されていない。また、PCRの挿入頻度は規定されているが、PAT_TSP及びPMT_TSPの挿入頻度は規定されていない。   In the MPEG2 standard (ISO / IEC 13818-1), the insertion timing of PAT_TSP, PMT_TSP and PCR is not defined. Moreover, although the insertion frequency of PCR is prescribed | regulated, the insertion frequency of PAT_TSP and PMT_TSP is not prescribed | regulated.

一方、ディスクに記録された映像を再生する再生機器の多くは、映像の特定のシーンをユーザの好みの順番で再生する機能を有している。特定のシーンから映像を再生する際には、一般的にはシーケンスヘッダの先頭から映像データの再生を開始する。
特開平11−155130号公報 国際公開公報WO02/080541
On the other hand, many playback devices that play back video recorded on a disc have a function of playing back specific scenes of the video in the user's preferred order. When playing back video from a specific scene, playback of video data is generally started from the beginning of the sequence header.
JP 11-155130 A International Publication No. WO02 / 080541

しかしながら、一般に再生開始点となるシーケンスヘッダの先頭を含むV_TSPに対するPAT_TSP、PMT_TSP、PCRの挿入タイミングは、規格上規定されていない。機器がシーケンスヘッダの先頭からデータを読み出したとしても、PAT_TSP及びPMT_TSPが検出されていなければPIDを参照してV_TSP及びA_TSPを認識することができない。よって、PAT_TSP及びPMT_TSPを検出するまで復号処理を実行できない。   However, in general, the insertion timing of PAT_TSP, PMT_TSP, and PCR with respect to V_TSP including the beginning of a sequence header serving as a playback start point is not defined in the standard. Even if the device reads data from the head of the sequence header, V_TSP and A_TSP cannot be recognized by referring to the PID unless PAT_TSP and PMT_TSP are detected. Therefore, the decoding process cannot be executed until PAT_TSP and PMT_TSP are detected.

このように、PAT_TSP及びPMT_TSPが未検出であるために、例えばシーケンスヘッダ直後のIピクチャが認識できなかったときには、次のシーケンスヘッダまで映像を表示することができない。このことにより、典型的には0.5〜1.0秒程度の映像及び音声が出力されないことになる。   Thus, since PAT_TSP and PMT_TSP are not detected, for example, when an I picture immediately after the sequence header cannot be recognized, video cannot be displayed until the next sequence header. As a result, typically, video and audio of about 0.5 to 1.0 seconds are not output.

さらに、特定のシーンを順次切り換えながら再生する場合には、シーンごとにPAT_TSP、PMT_TSPに登録されたPIDが異なる場合もある。また、PAT_TSP、PMT_TSPに含まれるディスクリプタ情報もシーンごとに異なる場合もある。このことから、PAT_TSP、PMT_TSPは、少なくともシーンごとに、適切な内容のものをできるだけ早期にMPEGデコーダに渡す必要がある。   Further, when playing back while sequentially switching a specific scene, the PID registered in PAT_TSP and PMT_TSP may be different for each scene. In addition, descriptor information included in PAT_TSP and PMT_TSP may be different for each scene. For this reason, it is necessary to pass PAT_TSP and PMT_TSP to the MPEG decoder as early as possible with appropriate contents at least for each scene.

特に、IEEE1394インタフェースで接続したSTB(セットトップボックス)やDTV(デジタルテレビ)へISO−61883のトランスポートストリームの転送プロトコルを使用して伝送する場合には、PAT_TSP、PMT_TSP、及びPCRの伝送が重要になる。使用されたPIDやPCRの値等をトランスポートストリームとは別に伝送する手段がないからである。   In particular, when transmitting to STB (set top box) or DTV (digital television) connected by IEEE1394 interface using the transport protocol of ISO-61883 transport stream, transmission of PAT_TSP, PMT_TSP, and PCR is important. become. This is because there is no means for transmitting the used PID, PCR value, etc. separately from the transport stream.

機器のMPEGデコーダを利用して再生する際には、使用されたPIDやPCRの値等をMPEGストリームとは異なる径路を利用して(例えば、MPEGデコーダに接続されたCPUを経由させる)、異なるデータ構造に変換して伝送することが考えられる。   When playing back using the MPEG decoder of the device, the used PID, PCR value, etc. are different using a different path from the MPEG stream (for example, via a CPU connected to the MPEG decoder). It is conceivable to convert the data structure before transmission.

しかし、シーンごとに必要な情報を別の径路より伝達するには、各VOBU単位でPIDに関する情報や先頭のPCR値の情報を記録時に記録しておき、それらの情報をシーンが切り替わる前にMPEGデコーダへ伝送する必要がある。この方法では、VOBU単位でPID及びPCR値を管理データとして記録しておく必要があり、データ容量が大きくなってしまう。また処理の遅延が発生するため、機器のMPEGデコーダを利用して映像を再生すると同時にその映像信号を1394インタフェースへ出力し、かつ両方の出力先において全く同じ映像を表示するためには、この方法では不十分である。   However, in order to transmit information necessary for each scene from another route, information on the PID and information on the top PCR value are recorded at the time of recording for each VOBU, and those information is recorded in the MPEG before the scene is switched. It is necessary to transmit to the decoder. In this method, it is necessary to record PID and PCR values as management data in units of VOBU, which increases the data capacity. Further, since a processing delay occurs, this method is used to reproduce the video using the MPEG decoder of the device and simultaneously output the video signal to the 1394 interface and display the same video at both output destinations. Is not enough.

さらに、PC上で動作するMPEG再生アプリケーションを用いてPCのハードディスク上に蓄積されたストリームを再生する場合にも、問題があった。具体的には、特定のシーンから再生を開始しようとしても、PAT_TSP、PMT_TSP及びPCRがシーンの途中から記録されているときには、そのシーン以降の、最初のシーケンスヘッダが検出された位置以降から映像が表示されていた。または、再生開始点に対応するデータ以後に挿入されたPAT_TSP、PMT_TSP、及びPCRを検出した後に、再生開始地点へもう一度戻って、再生を開始する必要があった。これは、再生開始の遅れ、及びシーン切り換えの遅れの原因となっている。   In addition, there is a problem when a stream stored on the hard disk of the PC is played back using an MPEG playback application running on the PC. Specifically, even if playback is started from a specific scene, if PAT_TSP, PMT_TSP, and PCR are recorded from the middle of the scene, the video from the position after the first sequence header is detected after that scene. It was displayed. Alternatively, after detecting PAT_TSP, PMT_TSP, and PCR inserted after the data corresponding to the playback start point, it is necessary to return to the playback start point and start playback. This causes a delay in starting reproduction and a delay in switching scenes.

さらに、他の記録媒体にMPEGストリームをコピーまたはダビングする際にも問題が生じていた。すなわち、MPEGストリームの管理情報のデータ構造を変換する必要があるときには、例えばVOBU毎にMPEGストリームを解析して複製先の記録媒体に記録可能な管理情報を生成する必要があった。これでは多大な処理時間を要する可能性がある。この問題は、複製元の記録媒体上のMPEGストリームが他の機器にそのまま転送して複製されるときにおいても生じうる。   Furthermore, problems have arisen when copying or dubbing an MPEG stream to another recording medium. That is, when it is necessary to convert the data structure of the management information of the MPEG stream, for example, it is necessary to analyze the MPEG stream for each VOBU and generate management information that can be recorded on the copy destination recording medium. This may require a great deal of processing time. This problem may also occur when the MPEG stream on the copy source recording medium is copied to another device as it is and copied.

本発明の目的は、ファイルの途中を再生開始点とした場合であっても、容易に指定された範囲の全フレームを機器内で再生し、かつ同じフレームが1394インタフェースを介した接続先の機器で再生できる装置及び方法を提供することである。   An object of the present invention is to easily reproduce all frames within a specified range within a device even when the middle of a file is set as a reproduction start point, and the same frame is connected to a device via a 1394 interface. It is providing the apparatus and method which can be reproduced | regenerated by this.

また、本発明の他の目的は、管理情報のフォーマットが異なる種々の記録媒体に対して、データストリームを解析することなく適切なフォーマットの管理情報を生成し、データストリームと管理情報とを高速に転送できるようにすることである。   Another object of the present invention is to generate management information in an appropriate format for various recording media having different formats of management information without analyzing the data stream, and to speed up the data stream and the management information. Is to be able to transfer.

本発明によるデータ処理装置は、映像信号に符号化処理を行ってデータストリームを生成するエンコーダと、前記データストリームから映像を再生するための管理情報を生成する管理情報生成部と、前記データストリームおよび前記管理情報を記録媒体に書き込むドライブとを備えている。前記エンコーダは、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成し、配列して、前記データストリームを生成する。前記管理情報生成部は、前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成し、さらに、前記再生単位内のピクチャの再生時間長に関する時間長情報を生成して、管理情報として前記再生単位ごとの1以上のテーブルに格納する。   A data processing apparatus according to the present invention includes an encoder that performs an encoding process on a video signal to generate a data stream, a management information generation unit that generates management information for reproducing video from the data stream, the data stream, A drive for writing the management information to a recording medium. The encoder generates a plurality of reproduction units including data of a reference picture that can be decoded independently, data of one or more reference pictures that need to be decoded from the reference picture, and time information indicating a reproduction time of each picture. , Arrange and generate the data stream. The management information generation unit, according to the type and recording format of the recording medium, reference picture information in which a reproduction time of a reference picture recorded first in each reproduction unit is associated with a recording position of the reference picture; And generating one piece of reproduction unit information for associating the reproduction time length of the reproduction unit with the recording position of the reference picture, and further generating and managing time length information related to the reproduction time length of the picture in the reproduction unit Information is stored in one or more tables for each reproduction unit.

前記符号化処理に起因して、各ピクチャのデータが配列されている順序は、各ピクチャが表示される順序と相違している。前記エンコーダは、前記再生単位中のデータの配列に関して最初の基準ピクチャよりも後に配列された1以上の参照ピクチャであって、前記最初の基準ピクチャよりも先に表示される1以上の参照ピクチャを特定する情報を出力し、前記管理情報生成部は、特定された前記1以上の参照ピクチャの再生時間長に関する時間長情報を生成し、前記再生単位ごとの1以上のテーブルにさらに格納してもよい。   Due to the encoding process, the order in which the data of each picture is arranged is different from the order in which each picture is displayed. The encoder includes one or more reference pictures arranged after the first reference picture with respect to an arrangement of data in the reproduction unit, wherein the one or more reference pictures are displayed before the first reference picture. The management information generation unit generates time length information related to the playback time length of the specified one or more reference pictures, and further stores the information in one or more tables for each playback unit. Good.

前記管理情報生成部は、生成された前記基準ピクチャ情報および前記再生単位情報の一方を特定する第1フラグ、および、前記時間長情報が含まれていることを示す第2フラグを生成し、前記再生単位ごとの1以上のテーブルにさらに格納していてもよい。   The management information generation unit generates a first flag for specifying one of the generated reference picture information and the reproduction unit information, and a second flag indicating that the time length information is included, You may further store in one or more tables for every reproduction | regeneration unit.

前記データ処理装置は、前記管理情報の形式を変換する変換部をさらに備えていてもよい。前記管理情報生成部が前記基準ピクチャ情報を生成したときにおいて、前記変換部は、前記基準ピクチャ情報および前記時間長情報に基づいて前記再生単位情報をさらに生成してもよい。   The data processing apparatus may further include a conversion unit that converts the format of the management information. When the management information generation unit generates the reference picture information, the conversion unit may further generate the reproduction unit information based on the reference picture information and the time length information.

前記変換部は、生成した前記再生単位情報を前記基準ピクチャ情報に置き換えて、新たな管理情報を生成してもよい。   The conversion unit may generate new management information by replacing the generated reproduction unit information with the reference picture information.

前記データ処理装置は、外部機器との間でデータ通信を行うためのインタフェース部をさらに備えていてもよい。前記インタフェース部は、前記新たな管理情報および前記データストリームを前記外部機器に出力してもよい。   The data processing apparatus may further include an interface unit for performing data communication with an external device. The interface unit may output the new management information and the data stream to the external device.

前記データ処理装置は、前記管理情報の形式を変換する変換部をさらに備えていてもよい。前記管理情報生成部が前記再生単位情報を生成したときにおいて、前記変換部は、前記再生単位情報および前記時間長情報に基づいて前記基準ピクチャ情報をさらに生成してもよい。   The data processing apparatus may further include a conversion unit that converts the format of the management information. When the management information generation unit generates the reproduction unit information, the conversion unit may further generate the reference picture information based on the reproduction unit information and the time length information.

前記変換部は、生成した前記基準ピクチャ情報を前記再生単位情報に置き換えて、新たな管理情報を生成してもよい。   The conversion unit may generate new management information by replacing the generated reference picture information with the reproduction unit information.

前記データ処理装置は、外部機器との間でデータ通信を行うためのインタフェース部をさらに備えていてもよい。前記インタフェース部は、前記新たな管理情報および前記データストリームを前記外部機器に出力してもよい。   The data processing apparatus may further include an interface unit for performing data communication with an external device. The interface unit may output the new management information and the data stream to the external device.

本発明によるデータ処理方法は、映像のデータストリーム、および、前記データストリームから前記映像を再生するための管理情報を記録媒体に書き込むために用いられる。前記データ処理方法は、映像信号に符号化処理を行って、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成するステップと、複数の前記再生単位を配列してデータストリームを生成するステップと、前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成するステップと、前記再生単位内のピクチャの再生時間長に関する時間長情報を生成するステップと、生成された前記基準ピクチャ情報および前記再生単位情報の一方、および前記時間長情報を、管理情報として再生単位ごとの1以上のテーブルに格納するステップと、前記データストリームおよび前記管理情報を前記記録媒体に書き込むステップとを包含する。   The data processing method according to the present invention is used to write a video data stream and management information for reproducing the video from the data stream to a recording medium. In the data processing method, reference picture data that can be decoded independently by performing an encoding process on a video signal, data of one or more reference pictures that require decoding from the reference picture, and reproduction time of each picture Generating a plurality of playback units including time information indicating the time information, generating a data stream by arranging the plurality of playback units, and depending on the type and recording format of the recording medium, One of reference picture information that associates the reproduction time of the reference picture recorded in the recording position with the recording position of the reference picture, and reproduction unit information that associates the reproduction time length of the reproduction unit with the recording position of the reference picture. Generating a time length information related to a playback time length of a picture in the playback unit; One of the reference picture information and the reproduction unit information, and the time length information are stored as management information in one or more tables for each reproduction unit, and the data stream and the management information are written to the recording medium. Including.

本発明による回路チップは、映像信号に符号化処理を行ってデータストリームを生成するエンコーダと、前記データストリームから映像を再生するための管理情報を生成する管理情報生成部とを備えている。この回路チップは、ドライブを介して前記データストリームおよび前記管理情報を記録媒体に書き込むことが可能である。前記エンコーダは、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成し配列して、前記データストリームを生成する。前記管理情報生成部は、前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成し、さらに、前記再生単位内のピクチャの再生時間長に関する時間長情報を生成して、管理情報として前記再生単位ごとのテーブルとして格納する。   A circuit chip according to the present invention includes an encoder that performs an encoding process on a video signal to generate a data stream, and a management information generation unit that generates management information for reproducing a video from the data stream. The circuit chip can write the data stream and the management information to a recording medium via a drive. The encoder generates a plurality of reproduction units including data of a reference picture that can be decoded independently, data of one or more reference pictures that need to be decoded from the reference picture, and time information indicating a reproduction time of each picture. Arrange to generate the data stream. The management information generation unit, according to the type and recording format of the recording medium, reference picture information in which a reproduction time of a reference picture recorded first in each reproduction unit is associated with a recording position of the reference picture; And generating one piece of reproduction unit information for associating the reproduction time length of the reproduction unit with the recording position of the reference picture, and further generating and managing time length information related to the reproduction time length of the picture in the reproduction unit Information is stored as a table for each reproduction unit.

本発明によるコンピュータプログラムは、コンピュータにおいて実行可能であり、映像のデータストリーム、および、前記データストリームから前記映像を再生するための管理情報を生成するために用いられる。前記コンピュータプログラムは、前記コンピュータに、映像信号に符号化処理を行って、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成するステップと、複数の前記再生単位を配列してデータストリームを生成するステップと、前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成するステップと、前記再生単位内のピクチャの再生時間長に関する時間長情報を生成するステップと、生成された前記基準ピクチャ情報および前記再生単位情報の一方、および前記時間長情報を、管理情報として再生単位ごとの1以上のテーブルに格納するステップと、前記データストリームおよび前記管理情報を前記記録媒体に書き込むステップとを実行させる。   The computer program according to the present invention can be executed in a computer, and is used to generate a video data stream and management information for reproducing the video from the data stream. The computer program causes the computer to perform encoding processing on a video signal and to decode standard picture data that can be decoded independently, data of one or more reference pictures that require decoding from the standard picture, and each picture Generating a plurality of playback units including time information indicating the playback time, generating a data stream by arranging the plurality of playback units, and each playback unit according to the type and recording format of the recording medium Reference picture information in which the reproduction time of the reference picture recorded first and the recording position of the reference picture are associated with each other, and reproduction unit information in which the reproduction time length of the reproduction unit is associated with the recording position of the reference picture And generating time length information related to the playback time length of the picture in the playback unit. Storing one of the generated reference picture information and the reproduction unit information and the time length information as management information in one or more tables for each reproduction unit, and the data stream and the management information Are written on the recording medium.

本発明のデータ処理装置は、ストリームの再生単位中の最初の基準ピクチャよりも先に再生される参照ピクチャの再生時間長に関する時間長情報を、管理情報のテーブルに保持している。この情報を利用することにより、他の記録媒体にストリームファイルおよびその管理情報が記録された管理ファイルをエクスポートする際に、ストリームをオブジェクトごとに解析しないで管理データをデータ変換可能となり、高速なエクスポート処理が実現できる。   The data processing apparatus of the present invention holds the time length information related to the playback time length of the reference picture played back before the first reference picture in the stream playback unit in the management information table. By using this information, when exporting a stream file and management file with its management information recorded to another recording medium, management data can be converted without analyzing the stream for each object. Processing can be realized.

以下、添付の図面を参照して、本発明によるデータ処理装置の第1から第7の実施形態を説明する。なお、本発明に関する特に主要な処理、データ構造等は実施形態6および7において説明する。   Hereinafter, first to seventh embodiments of a data processing apparatus according to the present invention will be described with reference to the accompanying drawings. It should be noted that particularly main processes, data structures and the like relating to the present invention will be described in Embodiments 6 and 7.

(実施形態1)
図5は、本実施形態による光ディスクレコーダ200(以下「レコーダ200」と記述する)の構成を示す。レコーダ200は、MPEG2トランスポートストリーム(以下「トランスポートストリーム」と記述する)を処理の対象とする。映像信号及び音声信号の記録時は、映像信号入力部100及び音声信号入力部102から入力した信号を各々映像圧縮部101及び音声圧縮部103で圧縮し、次にシステムエンコード部104においてPAT/PMT生成部105が生成するPATを含むパケット及びPMTを含むパケットを圧縮された映像信号及び音声信号に混ぜてトランスポートストリームを作成し、記録部120及びピックアップ130を経由して相変化光ディスク131へ書き込む。この処理は、映像信号及び音声信号を受け取りながら行われる。すなわち、信号の受信と並行して記録を行うため、リアルタイム記録とも呼ばれる。上述の映像圧縮部101、音声圧縮部103、システムエンコード部104、及びPAT/PMT生成部105はMPEGエンコーダ170を構成する。
(Embodiment 1)
FIG. 5 shows a configuration of an optical disc recorder 200 (hereinafter referred to as “recorder 200”) according to the present embodiment. The recorder 200 processes an MPEG2 transport stream (hereinafter referred to as “transport stream”). When recording a video signal and an audio signal, the signals input from the video signal input unit 100 and the audio signal input unit 102 are compressed by the video compression unit 101 and the audio compression unit 103, respectively, and then the PAT / PMT in the system encoding unit 104 A packet including PAT and a packet including PMT generated by the generation unit 105 is mixed with the compressed video signal and audio signal to create a transport stream, and written to the phase change optical disc 131 via the recording unit 120 and the pickup 130. . This process is performed while receiving a video signal and an audio signal. That is, since recording is performed in parallel with signal reception, it is also called real-time recording. The above-described video compression unit 101, audio compression unit 103, system encoding unit 104, and PAT / PMT generation unit 105 constitute an MPEG encoder 170.

映像信号及び音声信号の再生時は、ピックアップ130、及び再生部121を経由して取り出したトランスポートストリームをシステムデコード部114で映像信号と音声信号に分離し、各々映像伸長部111及び音声伸長部113を介して、映像表示部110及び音声出力部112へ出力する。映像伸長部111、音声伸長部113、及びシステムデコード部114はMPEGデコーダ171を構成する。   At the time of reproduction of the video signal and the audio signal, the transport stream taken out via the pickup 130 and the reproduction unit 121 is separated into the video signal and the audio signal by the system decoding unit 114, and the video expansion unit 111 and the audio expansion unit are respectively separated. The video data is output to the video display unit 110 and the audio output unit 112 via 113. The video decompression unit 111, the audio decompression unit 113, and the system decoding unit 114 constitute an MPEG decoder 171.

映像信号及び音声信号の記録時には、記録制御部161が記録部120、連続データ領域検出部160及び論理ブロック管理部163の制御を行い、記録を実施する。このとき、連続データ領域検出部160は、記録制御部161の指示によって、論理ブロック管理部163において管理されるセクタの使用状況を調べて、物理的に連続する空き領域を検出する。   At the time of recording the video signal and the audio signal, the recording control unit 161 controls the recording unit 120, the continuous data area detection unit 160, and the logical block management unit 163 to perform recording. At this time, the continuous data area detection unit 160 checks the usage status of the sectors managed by the logical block management unit 163 according to an instruction from the recording control unit 161 and detects physically continuous free areas.

映像信号及び音声信号の再生時には、再生制御部162が再生部121の制御を行い、再生を実施する。   At the time of reproduction of the video signal and the audio signal, the reproduction control unit 162 controls the reproduction unit 121 to perform reproduction.

記録された映像ファイルをIEEE1394インタフェース部140経由のIsochronous転送モードで外部に出力する場合、再生部121を経由して読出したトランスポートストリームを出力タイミング生成部141で送出タイミングを求め、算出された送出タイミングに応じて当該トランスポートストリームを1394インタフェース部140へ渡すことになる。   When the recorded video file is output to the outside in the isochronous transfer mode via the IEEE 1394 interface unit 140, the output timing of the transport stream read out via the playback unit 121 is obtained by the output timing generation unit 141, and the calculated transmission is performed. The transport stream is transferred to the 1394 interface unit 140 according to the timing.

本実施形態による機器は、システムエンコード部104がPAT_TSP、PMT_TSP、及びPCRを挿入するタイミングに主要な特徴を有している。   The device according to the present embodiment has a main feature in the timing at which the system encoding unit 104 inserts PAT_TSP, PMT_TSP, and PCR.

図6は、レコーダ200によって記録された記録ファイルのデータ構造を示している。記録ファイルは、PAT_TSP及びPMT_TSPの記録位置を除いて、周知のVOBUから構成されるものとする。   FIG. 6 shows the data structure of a recording file recorded by the recorder 200. The recording file is assumed to be composed of a well-known VOBU except for the recording positions of PAT_TSP and PMT_TSP.

図6において、各VOBUの先頭には必ずPAT_TSP及びPMT_TSPが配置されている。さらに、次のトランスポートパケットにはPCRを有するV_TSPが配置されている。また、VOBU内においては、日本のBSデジタル放送の規格及び欧州のデジタル放送(DVB)の規格に従って100msec以内の頻度で記録するように、PAT_TSP及びPMT_TSPが挿入されている。具体的には、例えば2〜3フレームに一度の頻度でPAT_TSP及びPMT_TSPを記録する。さらに、VOBU内においては、PCRもMPEG2規格(ISO/IEC 13818−1)の規定にしたがって100msec以内の時間間隔で記録することになる。   In FIG. 6, PAT_TSP and PMT_TSP are always arranged at the head of each VOBU. Further, V_TSP having PCR is arranged in the next transport packet. In the VOBU, PAT_TSP and PMT_TSP are inserted so as to record at a frequency within 100 msec according to the Japanese BS digital broadcasting standard and the European digital broadcasting (DVB) standard. Specifically, for example, PAT_TSP and PMT_TSP are recorded once every two to three frames. Furthermore, in the VOBU, PCR is also recorded at time intervals within 100 msec in accordance with the provisions of the MPEG2 standard (ISO / IEC 13818-1).

以上の構成によって、ユーザが設定可能な再生開始点をVOBUの先頭とした場合においては、どのVOBUの先頭が指定されたとしても、必ず先頭にはPAT_TSP、及びPMT_TSPが含まれていることになることから、以降の全トランスポートパケットについて、システムデコード部114が容易に映像データと音声データとを識別することができ、容易に映像伸長部111と音声伸長部113へ振り分けて再生表示することが可能となる。これにより、指定された全てのフレームが再生開始時、及びシーン切り替え時に指定されたフレームが欠落することなく表示可能になる。さらに、PCRが映像に付加されるDTS及びPTSよりも先に到着するので、MPEGデコーダはDTS又はPTSを活用(参照)した再生表示を実施することが可能となる。   With the above configuration, when the playback start point that can be set by the user is the head of the VOBU, the head of any VOBU is always specified, so that the head always includes PAT_TSP and PMT_TSP. Therefore, the system decoding unit 114 can easily identify video data and audio data for all subsequent transport packets, and can be easily distributed to the video expansion unit 111 and the audio expansion unit 113 for reproduction display. It becomes possible. As a result, all the designated frames can be displayed at the start of reproduction and without missing the designated frames at the time of scene switching. Furthermore, since the PCR arrives before the DTS and PTS added to the video, the MPEG decoder can perform reproduction display utilizing (referring to) the DTS or PTS.

また、1394インタフェース部140を介してトランスポートストリームを外部機器へ出力する場合において、ユーザがどのVOBUの先頭を再生開始点に指定したとしても、PAT_TSP及びPMT_TSPを先頭パケットとしたトランスポートストリームを容易に出力することが可能となる。   In addition, when a transport stream is output to an external device via the 1394 interface unit 140, a transport stream having PAT_TSP and PMT_TSP as the top packet is easy regardless of which VOBU head is designated as the playback start point. Can be output.

さらに、本実施形態において、ファイルはUDFファイルシステムで管理しているものとして説明しているが、FATやその他の独自ファイルシステムで管理されている場合であっても同様の効果が期待できる。   Furthermore, in the present embodiment, the file is described as being managed by the UDF file system. However, the same effect can be expected even when the file is managed by the FAT or other unique file system.

なお、本実施形態において、VOBU内のPAT_TSP及びPMT_TSPの記録頻度は少なくとも100msecごとに1回であるものとしているが、他の規格に合わせて、異なる頻度でPAT_TSP及びPMT_TSPを配置するように挿入してもよい。   In this embodiment, the recording frequency of PAT_TSP and PMT_TSP in VOBU is assumed to be at least once every 100 msec. However, according to other standards, PAT_TSP and PMT_TSP are inserted at different frequencies. May be.

また、本実施形態において、PCRはVOBU内の先頭のV_TSPに含まれるものとしているが、PCRのみからなるトランスポートパケットがVOBU内の最初のV_TSPとPMT_TSPの間に記録されてもよい。このトランスポートパケットのPIDはV_TSPのPIDと同じでもよいし、異なってもよい。   In this embodiment, the PCR is included in the first V_TSP in the VOBU. However, a transport packet consisting only of the PCR may be recorded between the first V_TSP and the PMT_TSP in the VOBU. The PID of this transport packet may be the same as or different from the PID of V_TSP.

(実施形態2)
実施形態1では、図5に示すようにレコーダ内部でトランスポートストリームを生成して記録し、また記録再生装置内部で再生し、同時に外部へトランスポートストリームを出力していた。
(Embodiment 2)
In the first embodiment, as shown in FIG. 5, a transport stream is generated and recorded in the recorder, and is reproduced in the recording / reproducing apparatus, and at the same time, the transport stream is output to the outside.

本実施形態においては、外部から入力したトランスポートストリームを記録し、その後外部へトランスポートストリームを出力するという点において実施形態1と相違する。   The present embodiment is different from the first embodiment in that a transport stream input from the outside is recorded and then the transport stream is output to the outside.

図7は、本実施形態による光ディスクレコーダ300(以下「レコーダ300」と記述する)のブロック構成を示す。図7において、まず記録時には、1394インタフェース部301からトランスポートストリームを入力し、記録部303及びピックアップ312を介して相変化光ディスク311に対して書き込みを行う。この時、記録制御部307は、同時に連続データ領域検出部306を起動して、記録するために必要な空いた連続データ領域を検出することになる。論理ブロック管理部310は、記録制御部307から記録時に使用された論理ブロック番号の通知を受けて使用状況を管理する。   FIG. 7 shows a block configuration of an optical disc recorder 300 (hereinafter referred to as “recorder 300”) according to the present embodiment. In FIG. 7, at the time of recording, a transport stream is input from the 1394 interface unit 301, and writing is performed on the phase change optical disk 311 via the recording unit 303 and the pickup 312. At this time, the recording control unit 307 activates the continuous data area detection unit 306 at the same time, and detects an empty continuous data area necessary for recording. The logical block management unit 310 receives the notification of the logical block number used at the time of recording from the recording control unit 307 and manages the usage status.

また、管理情報生成部302は、入力されたトランスポートストリームから、シーケンスヘッダ及びその直前のPESヘッダを含むV_TSPと、PATを含むトランスポートパケットPAT_TSPと、PMTを含むトランスポートパケットPMT_TSPとを検出する。そして管理情報生成部302は、隣り合ったシーケンスヘッダを含むV_TSP及びPESヘッダ間のデータサイズ、及び再生時の時間長を管理情報として生成する。再生時の時間長は映像フレーム数を単位として生成する。また、シーケンスヘッダ直後のIピクチャのデータサイズについても管理情報として生成する。   In addition, the management information generation unit 302 detects a V_TSP including a sequence header and a PES header immediately before the sequence header, a transport packet PAT_TSP including a PAT, and a transport packet PMT_TSP including a PMT from the input transport stream. . Then, the management information generation unit 302 generates, as management information, the data size between the V_TSP and the PES header including adjacent sequence headers, and the time length during reproduction. The playback time length is generated in units of video frames. Further, the data size of the I picture immediately after the sequence header is also generated as management information.

さらに、あるシーケンスヘッダ及びPESヘッダを含むV_TSPから過去に遡って最も近い過去に入力したPMTを含むトランスポートパケットに対して、さらに過去に遡って最も近い過去に入力したPATを含むトランスポートパケットと、シーケンスヘッダ及びPESヘッダを含むトランスポートパケットとの間のデータサイズについても、トランスポートパケット数の単位で管理情報として生成する。   Further, a transport packet including a PMT inputted in the past in the past from a V_TSP including a sequence header and a PES header, and including a PAT inputted in the past in the past. The data size between the transport packet including the sequence header and the PES header is also generated as management information in units of the number of transport packets.

記録制御部307は、入力したトランスポートパケットについて、記録部303を起動して相変化光ディスク上に管理情報の書き込みを行い、管理ファイルとして生成する。   The recording control unit 307 activates the recording unit 303 for the input transport packet, writes management information on the phase change optical disc, and generates a management file.

一方、再生時には、まず再生制御部308が、相変化光ディスク311に格納された管理ファイルをピックアップ312及び再生部305を介して読み出すことになる。そして、指定された再生開始時刻に基づいて管理ファイルを参照することによって、対応するMPEG Sequence Object Unit(以下、「SOBU」という。)の記録位置と、対応するPAT_TSPの位置を割り出し、そのPAT_TSPのデータ、その位置以降に含まれる最初のPMT_TSPのデータ、及び対応するSOBU以降のデータをピックアップ312及び再生部305を介して読み出す。つまり、そのPAT_TSPと対応するSOBU先頭の間に記録されているトランスポートパケットのうち、PAT_TSP及びPMT_TSP以外のトランスポートパケットは出力しない。SOBUについては後述する。   On the other hand, at the time of reproduction, the reproduction control unit 308 first reads out the management file stored in the phase change optical disk 311 via the pickup 312 and the reproduction unit 305. Then, by referring to the management file based on the designated playback start time, the recording position of the corresponding MPEG Sequence Object Unit (hereinafter referred to as “SOBU”) and the position of the corresponding PAT_TSP are determined, and the PAT_TSP Data, the first PMT_TSP data included after that position, and the data after the corresponding SOBU are read out via the pickup 312 and the playback unit 305. That is, transport packets other than PAT_TSP and PMT_TSP among the transport packets recorded between the PAT_TSP and the corresponding SOBU head are not output. The SOBU will be described later.

また、読み出されたデータは、出力タイミング生成部304及び1394インタフェース部301を介して出力される。出力タイミング生成部304では、読み出されたデータに対してMPEG2システム規格(ISO/IEC 13818−1)で規定されるトランスポートストリームターゲットデコーダ(T_STD)のバッファシミュレーションを実施することによって適切な出力タイミングを算出し、この算出された出力タイミングに従って、1394インタフェース部301へ読み出されたデータを渡す。そして1394インタフェース部301は、そのタイミングを保持しながらトランスポートパケットを出力することになる。   Further, the read data is output via the output timing generation unit 304 and the 1394 interface unit 301. The output timing generation unit 304 performs an appropriate output timing by performing buffer simulation of the transport stream target decoder (T_STD) defined by the MPEG2 system standard (ISO / IEC 13818-1) on the read data. And the read data is passed to the 1394 interface unit 301 in accordance with the calculated output timing. The 1394 interface unit 301 outputs a transport packet while maintaining the timing.

図8は、レコーダ300によって記録された記録ファイルのデータ構造図である。図8に示すように、記録ファイルはSOBUで構成されている。   FIG. 8 is a data structure diagram of a recording file recorded by the recorder 300. As shown in FIG. 8, the recording file is composed of SOBU.

本明細書においては、SOBUとVOBU(図6)とは以下のように使い分けられている。すなわち、「VOBU」とは、主としてレコーダがアナログ信号を自ら符号化して生成したときのデータストリームの再生単位をいう。一方「SOBU」とは、主としてレコーダが外部から受け取ったトランスポートストリームのデータ構造を実質的にそのまま維持して記録媒体に書き込んだときの、データストリームの再生単位をいう。また、VOBUとSOBUのどちらの再生単位であるか、特に意識する必要がない場合は、SOBUと呼ぶものとする。これらの使い分けは便宜のためである。上述の定義によって発明が限定されることはない。   In the present specification, SOBU and VOBU (FIG. 6) are properly used as follows. That is, “VOBU” refers to a reproduction unit of a data stream when a recorder mainly generates and encodes an analog signal. On the other hand, “SOBU” refers to a data stream reproduction unit when the data structure of a transport stream received from outside by a recorder is substantially maintained and written to a recording medium. Also, when there is no particular need to be aware of which playback unit is VOBU or SOBU, it is called SOBU. These usages are for convenience. The invention is not limited by the above definition.

SOBUは、原則として映像のシーケンスヘッダ及びその直前のPESヘッダを含むV_TSPから、次のシーケンスヘッダ及びその直前のPESヘッダを含むV_TSPの1個前までを含んでいる。ただし、先頭のSOBUは、例外的に先頭にPAT_TSPを含んでいる。これは、本実施形態2において、PAT_TSPから記録を開始するからである。また、かかる構成とすることにより、最初のシーケンスヘッダを含むV_TSPとPAT_TSPの間に半端なデータを含むことになる。また、各SOBUは複数のGOPを含むものであってもよい。   In principle, the SOBU includes from the V_TSP including the sequence header of the video and the PES header immediately before it to the previous V_TSP including the next sequence header and the immediately preceding PES header. However, the head SOBU exceptionally includes PAT_TSP at the head. This is because in the second embodiment, recording starts from PAT_TSP. Further, with such a configuration, odd data is included between V_TSP and PAT_TSP including the first sequence header. Each SOBU may include a plurality of GOPs.

また図8では、最初のSOBU内における最後のPMT_TSPの直前のPAT_TSPの位置は、当該SOBUの末尾からM個目であるものとする。また、2個目のSOBUは先頭にシーケンスヘッダ及びその直前のPESヘッダを含むV_TSPを含み、さらにこのSOBU内における最後のPMT_TSPの直前のPAT_TSPの位置が、当該SOBUの末尾からN個目であるものとする。   In FIG. 8, the position of PAT_TSP immediately before the last PMT_TSP in the first SOBU is assumed to be Mth from the end of the SOBU. The second SOBU includes a V_TSP including a sequence header and a PES header immediately before the first SOBU, and the position of the PAT_TSP immediately before the last PMT_TSP in the SOBU is the Nth from the end of the SOBU. Shall.

ただし、シーケンスヘッダ及びその直前のPESヘッダを含むV_TSPは、そのデータ領域(以下、「ペイロード」という。)の先頭からPESヘッダ及びシーケンスヘッダを含んでいる必要はない。外部から入力するトランスポートストリームのシーケンスヘッダの開始位置は指定できないからである。   However, the V_TSP including the sequence header and the immediately preceding PES header does not need to include the PES header and the sequence header from the top of the data area (hereinafter referred to as “payload”). This is because the start position of the sequence header of the transport stream input from the outside cannot be specified.

極端な場合、例えばシーケンスヘッダが、2個のV_TSPにまたがって配置される場合も考えられる。この場合、シーケンスヘッダの先頭に配置される4バイトのシーケンスヘッダコード(0x000001B3)のうち、第1バイト目(0x00)を含むV_TSPがSOBU内の最初のV_TSPであるものとする。   In an extreme case, for example, a sequence header may be arranged across two V_TSPs. In this case, it is assumed that the V_TSP including the first byte (0x00) in the 4-byte sequence header code (0x000001B3) arranged at the head of the sequence header is the first V_TSP in the SOBU.

図9は、レコーダ300によって記録された管理ファイルのデータ構造図である。図9に示すように、管理ファイルは、TMAP_GIテーブル、複数のTM_ENTテーブル(TM_ENTs)、及び複数のSOBU_ENTテーブル(SOBU_ENTs)から構成されている。この3つのテーブルは、ファイルの先頭を時刻0(ゼロ)とし、その時刻から経過した時間と、その時刻に対応するトランスポートパケットの記録位置との関係を保持する。   FIG. 9 is a data structure diagram of the management file recorded by the recorder 300. As shown in FIG. 9, the management file includes a TMAP_GI table, a plurality of TM_ENT tables (TM_ENTs), and a plurality of SOBU_ENT tables (SOBU_ENTs). These three tables set the beginning of the file as time 0 (zero), and hold the relationship between the time elapsed from that time and the recording position of the transport packet corresponding to that time.

まず、TMAP_GIテーブルにおいては、TMAPタイプに管理ファイルのデータ構造の識別子としてタイプ番号を格納している。また、タイムエントリ数としてTM_ENTテーブルの数を格納し、SOBUエントリ数にはSOBU_ENTテーブルの数を格納している。さらに、先頭のタイムオフセットには、最初のTM_ENTテーブルが参照する時刻がファイル内の最初の映像フレームからどの程度経過した時刻であるかを、フィールド数で表した値として格納している。   First, in the TMAP_GI table, the type number is stored as the identifier of the data structure of the management file in the TMAP type. The number of TM_ENT tables is stored as the number of time entries, and the number of SOBU_ENT tables is stored as the number of SOBU entries. In addition, the head time offset stores how much time has elapsed from the first video frame in the file as the value referred to by the first TM_ENT table as a value represented by the number of fields.

次に、SOBU_ENTテーブルにおいては、SOBUの先頭におけるIピクチャのデータサイズをI−picture data sizeフィールドへ設定する。このデータサイズはトランスポートパケット数を利用して記述される。また、SOBUの表示に要する時間長についてもフィールド数SOBU時間長フィールドへ設定している。また、SOBUのデータサイズをSOBUデータサイズフィールドへトランスポートパケット数の単位で設定する。上述の構成は、従来から知られているタイムマップ情報に近似する。   Next, in the SOBU_ENT table, the data size of the I picture at the head of the SOBU is set in the I-picture data size field. This data size is described using the number of transport packets. Also, the time length required to display SOBU is set in the field number SOBU time length field. The SOBU data size is set in the SOBU data size field in units of the number of transport packets. The above-described configuration approximates conventionally known time map information.

さらに、1個前のSOBUにおける最後のPMT_TSPに対して最も近い過去に入力したPAT_TSPの位置を、1個前のSOBU末尾からのパケット数としてPAT/PMTポインタフィールドへ設定している。さらに、連続する2個のSOBUを構成するトランスポートパケットの内、各SOBUの先頭のパケットの到着時間差を27MHzのクロックによるカウンタ値を使ってTSP到着時間フィールドに設定している。   Further, the position of the PAT_TSP input in the past closest to the last PMT_TSP in the previous SOBU is set in the PAT / PMT pointer field as the number of packets from the end of the previous SOBU. Furthermore, the difference in arrival time of the leading packets of each SOBU among the transport packets constituting two consecutive SOBUs is set in the TSP arrival time field using a counter value by a 27 MHz clock.

さらに、TSP到着時間フィールドの時間長情報と、SOBU時間長フィールドの時間長情報を、単位をそろえた後で比較し、1.5倍以上(または1.5倍より大きく)異なる場合は、時間長有効フラグフィールドを‘0’とし、1.5倍未満(または1.5倍以下)の場合は時間長有効フラグフィールドを‘1’とする。この時間長有効フラグが‘1’の場合には、SOBU時間長フィールドの値が有効であり、‘0’の場合にはTSP到着時間フィールドの方が有効であることを示している。   Furthermore, when the time length information in the TSP arrival time field and the time length information in the SOBU time length field are compared after aligning the units, if the time length information differs by 1.5 times or more (or more than 1.5 times), the time The long valid flag field is set to “0”, and when it is less than 1.5 times (or 1.5 times or less), the time length valid flag field is set to “1”. When the time length valid flag is “1”, the value of the SOBU time length field is valid, and when it is “0”, the TSP arrival time field is valid.

また、TM_ENTテーブルは、10秒間隔の参照時刻に対する記録ファイル上での位置を格納している。すなわち、SOBU Entry Indexには、10秒間隔の参照時刻に対応するSOBUに対して、それに対応するSOBU_ENTテーブルの通し番号を格納している。また、Time Differenceには、10秒間隔の参照時刻に対応する映像フレームと、SOBU Entry Indexが参照するSOBUの先頭フレームとの時間差について、フィールド数を単位として表現した値を格納している。   Also, the TM_ENT table stores the position on the recording file with respect to the reference time at intervals of 10 seconds. In other words, the SOBU Entry Index stores the serial number of the SOBU_ENT table corresponding to the SOBU corresponding to the reference time at intervals of 10 seconds. In the time difference, a value representing the time difference between the video frame corresponding to the reference time at intervals of 10 seconds and the head frame of the SOBU referred to by the SOBU Entry Index in units of the number of fields is stored.

さらに、PAT/PMTポインタについては、図8に示す記録ファイルの場合を考えると、1個目、2個目、及び3個目のSOBUに対応するSOBU_ENTテーブルのPAT/PMTポインタは、それぞれ‘0(ゼロ)’、‘M’、‘N’を格納することになる。   Further, regarding the PAT / PMT pointer, in the case of the recording file shown in FIG. 8, the PAT / PMT pointer of the SOBU_ENT table corresponding to the first, second, and third SOBUs is' 0. (Zero) ',' M ', and' N 'are stored.

記録時においては、1394インタフェース部301を介して入力したトランスポートストリームを記録して記録ファイルを作成し、同時に管理ファイルも作成される。ただし、TM_ENT及びTMAP_GIは、記録ファイル及びSOBU_ENTの作成が完了した後に、SOBU_ENTを参照して作成することになる。この時、時間長有効フラグが‘0’の場合は、TSP到着時間フィールドを参照して該当するSOBUの時間長とみなして、TM_ENTを生成する。   At the time of recording, a transport file input via the 1394 interface unit 301 is recorded to create a recording file, and at the same time, a management file is also created. However, TM_ENT and TMAP_GI are created with reference to SOBU_ENT after the creation of the recording file and SOBU_ENT is completed. At this time, if the time length valid flag is “0”, TM_ENT is generated by referring to the TSP arrival time field and regarding the time length of the corresponding SOBU.

そして、再生時においては、管理ファイルを事前に読み出しておき、TM_ENTテーブルを参照して、指定された再生開始時刻に対応するSOBUのSOBU_ENTテーブルを検出する。さらに、当該SOBU_ENT内におけるPAT/PMTポインタを参照して、その位置からディスク上のトランスポートパケットを読み出し、必要なトランスポートパケットを外部へ出力する。   At the time of reproduction, the management file is read in advance, and the SOBU_ENT table of the SOBU corresponding to the designated reproduction start time is detected with reference to the TM_ENT table. Further, referring to the PAT / PMT pointer in the SOBU_ENT, the transport packet on the disk is read from the position, and the necessary transport packet is output to the outside.

以上の構成により、指定された再生開始時刻に対応するSOBU以降のデータについて、適切なPAT及びPMTを含んだ形で出力することが可能となる。より具体的には、再生開始時刻として特定のSOBUの先頭を指定した場合においても、SOBU以降の再生に必要なデータが欠けることなく、全て出力することが可能となる。これによって、1394インタフェース部301に接続されたDTVやSTB等の外部機器に対して、SOBUの単位による時刻指定であれば、どのタイミングであっても再生可能な形態で出力することが可能となる。   With the above configuration, data after SOBU corresponding to the designated playback start time can be output in a form including an appropriate PAT and PMT. More specifically, even when the head of a specific SOBU is designated as the playback start time, all data necessary for playback after SOBU can be output without being lost. This makes it possible to output to an external device such as a DTV or STB connected to the 1394 interface unit 301 in a reproducible form at any timing as long as the time is specified in SOBU units. .

また、SOBUの先頭を検出する際には、シーケンスヘッダコードの第4バイト目を含むV_TSPを検出し、そのV_TSPをSOBUの先頭として管理データを作成してもよい。この方法は、シーケンスヘッダコードの直前のPESヘッダの第1バイトを含むV_TSPを検出し、そのV_TSPをSOBUの先頭として管理データを作成する場合と比較して、検出処理を簡略化できる。なぜなら、シーケンスヘッダ又は直前のPESヘッダが2個のV_TSPにまたがっていた場合、SOBUの先頭位置をシーケンスヘッダの第4バイト目を検出してから、1つ前のV_TSPまで遡って算出する必要があるからである。この時、この2個のV_TSP間に挟まれるトランスポートパケットの個数は一定ではないことから、挟まれる個数を毎回算出する必要がある。これに較べて、本実施形態の方法では挟まれる個数は0(ゼロ)であり、毎回算出する必要がないからである。   Further, when detecting the head of SOBU, V_TSP including the fourth byte of the sequence header code may be detected, and management data may be created with the V_TSP as the head of SOBU. This method can detect the V_TSP including the first byte of the PES header immediately before the sequence header code, and can simplify the detection process as compared with the case where management data is created using the V_TSP as the head of SOBU. This is because if the sequence header or the immediately preceding PES header spans two V_TSPs, the SOBU head position needs to be calculated retroactively to the previous V_TSP after detecting the fourth byte of the sequence header. Because there is. At this time, since the number of transport packets sandwiched between the two V_TSPs is not constant, it is necessary to calculate the number of sandwiched packets every time. Compared to this, the number of sandwiched in the method of the present embodiment is 0 (zero), and there is no need to calculate every time.

第4バイト目を含むV_TSPをSOBU内の最初のV_TSPとする場合、再生時において、PAT/PMTポインタの指すPAT_TSPとSOBU先頭との間に存在するシーケンスヘッダの第1バイト目を含むV_TSPも送出する必要がある。または、シーケンスヘッダの第1バイト目を含むV_TSPを新規に生成して挿入する必要がある。または、受信側のMPEGデコーダにおいてペイロード先頭が0xB3であった場合は、シーケンススタートコードと見なして再生を行う必要がある。   When V_TSP including the fourth byte is the first V_TSP in SOBU, V_TSP including the first byte of the sequence header existing between PAT_TSP pointed to by the PAT / PMT pointer and the SOBU head is also transmitted during playback. There is a need to. Alternatively, it is necessary to newly generate and insert V_TSP including the first byte of the sequence header. Or, if the beginning of the payload is 0xB3 in the MPEG decoder on the receiving side, it is necessary to perform reproduction by regarding it as a sequence start code.

また、TSP到着時間及び時間長有効フラグを設けたことにより、入力するトランスポートストリームが特殊再生用のものだった場合においても、SOBUによる1秒弱の単位の時間管理及びTM_ENTによる10秒間隔の時間管理も適切な時間間隔を保持可能になる。特殊再生用のトランスポートストリームとしては、例えば1秒間に5フレーム程度の表示速度を有するスロー再生用のトランスポートストリームを記録する場合がある。この時のトランスポートストリームはIBBPBB・・・のように各ピクチャを順に入力することになる。この場合、SOBU内のフレーム数は‘5’となり、すなわち約1/3秒分であるが、TSP到着時間は1秒となる。このような入力に対しても表示時間長に等しい1秒分のSOBUとして管理可能となる。   In addition, by providing the TSP arrival time and time length valid flag, even when the input transport stream is for special playback, the time management in units of less than 1 second by SOBU and the interval of 10 seconds by TM_ENT Time management can also hold an appropriate time interval. As a transport stream for special playback, for example, a transport stream for slow playback having a display speed of about 5 frames per second may be recorded. At this time, each picture is input in order as a transport stream such as IBBPBB. In this case, the number of frames in the SOBU is '5', that is, about 1/3 second, but the TSP arrival time is 1 second. Even for such an input, it can be managed as an SOBU of one second equal to the display time length.

一方、1秒間に5フレーム程度の表示速度を有する高速再生用のトランスポートストリームを有する場合もある。この時のトランスポートストリームはIIII・・・のようにIピクチャを順に入力することになる。このような入力に対しても表示時間に等しい1秒分のSOBUとして管理可能となる。   On the other hand, there may be a transport stream for high-speed playback having a display speed of about 5 frames per second. In this case, the I-pictures are sequentially input as the transport stream IIII. Even for such an input, it can be managed as an SOBU of one second equal to the display time.

なお、本実施形態では、記録時においてSOBUの先頭から過去に遡って最も近い過去に入力したPAT/PMTへのポインタをSOBU_ENTに登録しているが、SOBUの直後のPAT及びPMTへのポインタを格納するものであってもよい。ただし、この場合には、再生時において、当該PAT/PMTポインタによって参照されているPAT及びPMTの連続性カウンタ(Continuity Counter)のカウンタ値を‘1’だけ減算したトランスポートパケットをSOBUに先だって出力する必要がある。さらに、PAT又はPMTを含むトランスポートパケットにプログラムクロックリファレンス(PCR)フィールドが含まれている場合には、この値についてもPCR値を先立って出力する時間分だけ減らすように修正する必要がある。また、PCRが含まれている場合には、別途PCRを含むトランスポートパケットを送出するのが望ましい。   In this embodiment, the pointer to the PAT / PMT input in the past in the past from the beginning of the SOBU at the time of recording is registered in SOBU_ENT. However, the pointer to the PAT and PMT immediately after the SOBU is registered. It may be stored. However, in this case, at the time of playback, a transport packet obtained by subtracting the counter value of the continuity counter (Continuity Counter) of the PAT and PMT referred to by the PAT / PMT pointer by “1” is output prior to SOBU. There is a need to. Furthermore, when a program clock reference (PCR) field is included in a transport packet including PAT or PMT, it is necessary to correct this value so that the PCR value is reduced by the time to be output in advance. When PCR is included, it is desirable to send a transport packet including PCR separately.

本実施形態においては、再生時にSOBU_ENTテーブルのPAT/PMTポインタを参照するとしたが、参照しなくてもよい。そのときには、SOBUの直前のデータを所定量だけ読み出し、SOBU先頭から過去に入力したトランスポートパケットの方向へ検索し、最初に検出したPMT_TSPと、続けて検出したPAT_TSPとをSOBUの出力前に出力すればよい。特にデジタル放送規格に準拠したトランスポートストリームの場合には、PAT_TSPとPMT_TSPの挿入頻度が規定されている場合も考えられることから、この挿入頻度に対応した所定量を読み出せば、必ずPAT_TSP及びPMT_TSPが含まれることになる。例えば、15Mbpsのストリーム内に100msec以下の頻度で存在する場合には、所定量は187.5キロバイトとなる。ただし、この場合には、パケットの検索処理時間が余計に必要になることは言うまでもない。   In the present embodiment, the PAT / PMT pointer in the SOBU_ENT table is referred to at the time of reproduction. At that time, the data immediately before the SOBU is read by a predetermined amount, searched in the direction of the transport packet input in the past from the head of the SOBU, and the first detected PMT_TSP and subsequently detected PAT_TSP are output before the SOBU output do it. In particular, in the case of a transport stream compliant with the digital broadcasting standard, it is possible that the insertion frequency of PAT_TSP and PMT_TSP is defined. Therefore, if a predetermined amount corresponding to this insertion frequency is read, PAT_TSP and PMT_TSP must be read. Will be included. For example, in the case where the frequency of 100 msec or less exists in a 15 Mbps stream, the predetermined amount is 187.5 kilobytes. In this case, however, it goes without saying that an extra packet search processing time is required.

さらに、本実施形態においては、再生時にSOBU_ENTテーブルのPAT/PMTポインタを参照するものとしているが、参照することなくSOBUの先頭以降のデータを所定量だけ読み出し、そのデータの中から必要なトランスポートパケットを検索することで、SOBUの先頭に最も近いPAT_TSPと、SOBUの先頭に最も近いPMT_TSPと、SOBUの先頭に最も近いPCRを含むトランスポートパケットを抽出し、内部のデータを変更してSOBUの前に出力するものであってもよい。特にデジタル放送規格に準拠したトランスポートストリームの場合には、PAT_TSPとPMT_TSPの挿入頻度が規定されている場合も考えられることから、この挿入頻度に対応した所定量を読み出せば、必ずPAT_TSP及びPMT_TSPが含まれることになる。例えば、15Mbpsのストリーム内に100msecの頻度で存在する場合には、所定量は187.5キロバイトとなる。ただし、この場合には、パケットの検索処理時間が余計に必要になることは言うまでもない。   Furthermore, in this embodiment, the PAT / PMT pointer in the SOBU_ENT table is referred to during playback. However, a predetermined amount of data after the beginning of the SOBU is read without reference, and the necessary transport is read from the data. By searching for packets, the PAT_TSP closest to the beginning of the SOBU, the PMT_TSP closest to the beginning of the SOBU, and the transport packet including the PCR closest to the beginning of the SOBU are extracted, and the internal data is changed to change the SOBU It may be output before. In particular, in the case of a transport stream compliant with the digital broadcasting standard, it is possible that the insertion frequency of PAT_TSP and PMT_TSP is defined. Will be included. For example, in the case where there is a frequency of 100 msec in a 15 Mbps stream, the predetermined amount is 187.5 kilobytes. In this case, however, it goes without saying that extra packet search processing time is required.

なお、この場合も同様に、PAT_TSP、PMT_TSP、及びPCRが含まれるトランスポートパケットの連続性カウンタ(Continuity Counter)を‘1’だけ減算したトランスポートパケットをSOBUに先だって出力する必要がある。さらに、PAT又はPMTを含むトランスポートパケットにプログラムクロックリファレンス(PCR)フィールドが含まれている場合には、この値についてもPCR値を先立って出力する時間分だけ減らすように修正する必要がある。また、PCRが含まれるトランスポートパケットについては、アダプテーションフィールドを広げてペイロード部分をなくすように更新する必要も生じる。   In this case as well, the transport packet obtained by subtracting the continuity counter (Continuity Counter) of the transport packet including PAT_TSP, PMT_TSP, and PCR by “1” needs to be output prior to SOBU. Furthermore, when a program clock reference (PCR) field is included in a transport packet including PAT or PMT, it is necessary to correct this value so that the PCR value is reduced by the time to be output in advance. In addition, it is necessary to update the transport packet including the PCR so that the adaptation field is expanded to eliminate the payload portion.

なお、本実施形態の管理ファイルと同様の管理ファイルを実施形態1に示す方法で記録してもよい。また、本実施形態では、管理ファイルを別途記録するものとしているが、トランスポートパケット内に格納する形、例えば記録ファイルの末尾部分にトランスポートパケットに分割されたプライベートPESストリームの形で記録するものであってもよい。   A management file similar to the management file of this embodiment may be recorded by the method shown in the first embodiment. In the present embodiment, the management file is recorded separately. However, the management file is recorded in a transport packet, for example, in the form of a private PES stream divided into transport packets at the end of the recording file. It may be.

また、本実施形態では、PAT/PMTポインタは、SOBUから過去に遡って最も近い過去に入力したPMT_TSPに対してさらに過去に遡って最も近い過去に入力したPAT_TSPと、そのSOBU先頭との間のデータサイズであるものとしているが、SOBUから過去に遡って最も近い過去に入力したPCRを含むトランスポートパケットに対してさらに過去に遡って最も近い過去に入力したPMT_TSPに対してさらに過去に遡って最も近い過去に入力したPAT_TSPと、そのSOBUの間のデータサイズであるものとすれば一層よい。   Further, in the present embodiment, the PAT / PMT pointer is determined between the PAT_TSP input in the past closest to the past and the PUT_TSP input in the past closest to the past from the SOBU and the head of the SOBU. Although it is assumed that the data size, the transport packet including the PCR inputted in the past in the past from the SOBU is further traced back in the past in the past in the past in the PMT_TSP entered in the nearest past. It is even better if the data size is between the closest PAT_TSP input in the past and the SOBU.

この場合、再生時にはSOBUの送出の前に、SOBU先頭とPAT/PMTポインタに挟まれたPAT_TSP、PMT_TSP、及びPCRを含むトランスポートパケットのみを出力する。これにより、トランスポートストリームの受信側のMPEGデコーダは、SOBUの最初のV_TSP内のPESヘッダに記載されたPTSやDTSを参照する前にPCRの値を入手することになるので、PTSやDTSを参照した動作を実施することができる。   In this case, only the transport packet including PAT_TSP, PMT_TSP, and PCR sandwiched between the SOBU head and the PAT / PMT pointer is output before the SOBU is transmitted during reproduction. As a result, the MPEG decoder on the receiving side of the transport stream obtains the PCR value before referring to the PTS or DTS described in the PES header in the first V_TSP of SOBU. The referenced operation can be performed.

一方、本実施形態では、PTSやDTSを参照した動作を実施することができず、映像データ中のvbv_delayフィールドを参照し、SOBUの最初のV_TSPの入力時刻からの経過時間がvbv_delayフィールドの値と一致したときに映像の復号を開始する等のタイミング制御が必要となる。   On the other hand, in the present embodiment, the operation referring to the PTS or DTS cannot be performed, and the elapsed time from the input time of the first V_TSP of SOBU is referred to the value of the vbv_delay field with reference to the vbv_delay field in the video data. Timing control such as starting decoding of video when they match is required.

さらに、本実施形態では、PAT/PMTポインタは、SOBU先頭とSOBUから過去に遡って最も近い過去に入力したPMT_TSPに対してさらに過去に遡って最も近い過去に入力したPAT_TSPとの間のデータサイズであるものとしている。しかし、SOBU先頭よりも所定数だけ前に離れた位置(例えば、トランスポートパケット100個分だけ前、等)を指示するものであってもよい。この場合には、PAT/PMT/PCRの挿入頻度から、それらが必ず含まれる個数であることが望ましい。   Furthermore, in this embodiment, the PAT / PMT pointer has a data size between the SOBU head and the PAT_TSP input in the past closest to the past to the PMT_TSP input in the past closest to the past from the SOBU. It is supposed to be. However, it may indicate a position separated by a predetermined number before the SOBU head (for example, 100 transport packets before, etc.). In this case, from the insertion frequency of PAT / PMT / PCR, it is desirable that the number is always included.

また、本実施形態では、PAT/PMTポインタは、SOBU先頭とSOBUから過去に遡って最も近い過去に入力したPMT_TSPに対してさらに過去に遡って最も近い過去に入力したPAT_TSPとの間のデータサイズであるものとしているが、SOBU先頭よりも所定時間だけ過去に入力したトランスポートパケットの位置(例えば、300msec前)を指示するものであってもよい。   In this embodiment, the PAT / PMT pointer has a data size between the SOBU head and the PAT_TSP input in the past closest to the past with respect to the PMT_TSP input in the past closest to the past from the SOBU. However, the position of the transport packet (for example, 300 msec before) input in the past by a predetermined time from the head of SOBU may be indicated.

例えば300msec前であれば、日本のデジタル放送の場合及び欧州のデジタル放送(DVB)の場合は、この間にPAT_TSP、それに続くPMT_TSP、及びそれに続くPCRがこの順序で含まれる可能性が高い。これは、PAT_TSP及びPMT_TSPの送出頻度が100msec以上という運用規定があるからである。   For example, before 300 msec, in the case of Japanese digital broadcasting and European digital broadcasting (DVB), there is a high possibility that PAT_TSP, subsequent PMT_TSP, and subsequent PCR are included in this order. This is because there is an operation rule that the transmission frequency of PAT_TSP and PMT_TSP is 100 msec or more.

また、所定時間だけ過去に入力したトランスポートパケットの位置をPAT/PMTポインタで指さなくても、再生時にその位置を検索すればよい。ただし、この場合、トランスポートパケット単位で到着タイミングを別途記録していることが前提となる。   Further, the position of the transport packet input in the past for a predetermined time may be searched for at the time of reproduction without pointing to the position with the PAT / PMT pointer. However, in this case, it is assumed that the arrival timing is separately recorded for each transport packet.

なお、SOBUが特殊再生時に使用されるトリックモードフラグをPESヘッダ内に有する場合には、時間長有効フラグを‘0’としてもよい。   If the SOBU has a trick mode flag used in special playback in the PES header, the time length valid flag may be set to '0'.

また、本実施形態においては、PAT/PMTポインタを管理情報として記録しているが、実際のPATを含むトランスポートパケット及びPMTを含むトランスポートパケットを、MPEG規格の連続性を確保したSOBUのグループの単位ごとに、SOBUのグループごとの管理情報とは別に記録してもよい。また、記録ファイルごとに記録してもよい。ただし、記録ファイルごとに記録する場合には、DITを含むトランスポートパケットを検出した場合、検出前と検出後で記録ファイルを分断する必要がある。また、トランスポートパケットヘッダを含まないでPAT及びPMTのテーブルのみであってもよい。   In this embodiment, the PAT / PMT pointer is recorded as management information. However, the transport packet including the actual PAT and the transport packet including the PMT are grouped into SOBU groups that ensure the continuity of the MPEG standard. Each unit may be recorded separately from the management information for each SOBU group. Moreover, you may record for every recording file. However, when recording is performed for each recording file, when a transport packet including DIT is detected, it is necessary to divide the recording file before and after detection. Further, only the PAT and PMT tables may be included without including the transport packet header.

また、記録ファイルごとに記録する場合、PATを含むトランスポートパケット及びPMTを含むトランスポートパケットをそのまま記録しないで、図10に示すように、内部に含まれる各エレメンタリストリームの種別とPIDの対応、PMTのPID、PCRが格納されるPID等を要約して記録してもよい。   Further, when recording is performed for each recording file, the transport packet including PAT and the transport packet including PMT are not recorded as they are, and the correspondence between the types of elementary streams included therein and the PIDs as shown in FIG. The PID of the PMT, the PID storing the PCR, etc. may be summarized and recorded.

さらに、SOBU内で最初のPAT、及びPMTを含むトランスポートパケットの連続性カウンタの値を検出して含んでもよい。図11は、このようなSOBUごとの管理情報の例を示す。   Further, the continuity counter value of the transport packet including the first PAT and PMT in SOBU may be detected and included. FIG. 11 shows an example of such management information for each SOBU.

また、通常は複数のSOBUに渡ってPAT及びPMTは変化しないことから、SOBUのグループごとの管理情報として別途記録したPAT_TSP及びPMT_TSPを識別するための識別子を各SOBUのグループごとに記録してもよい。   In addition, since PAT and PMT usually do not change over a plurality of SOBUs, an identifier for identifying PAT_TSP and PMT_TSP separately recorded as management information for each SOBU group may be recorded for each SOBU group. Good.

そして、ユーザに指定された特定のSOBUを再生開始点とする場合には、そのSOBUに先だって、別に記録されたPAT及びPMTをトランスポートパケットとして構成して送出する必要がある。さらに、PCRを含むトランスポートパケットについても、PMTとSOBUの間のタイミングで送出する必要がある。   When a specific SOBU designated by the user is used as a playback start point, it is necessary to configure and send separately recorded PAT and PMT as transport packets prior to the SOBU. Furthermore, transport packets including PCR must also be transmitted at a timing between PMT and SOBU.

この時、PATを含むトランスポートパケット及びPMTを含むトランスポートパケットの連続性カウンタの値としては、管理情報として記録されたSOBU内で最初のPAT及びPMTの連続性カウンタの値から‘1’だけ減算した値を使用すればよい。このように、管理情報としてSOBU内で最初のPAT及びPMTの連続性カウンタの値を保持することにより、容易にPAT及びPMTを作成することができる。   At this time, the continuity counter value of the transport packet including the PAT and the transport packet including the PMT is only “1” from the continuity counter value of the first PAT and PMT in the SOBU recorded as the management information. The subtracted value may be used. In this way, the PAT and PMT can be easily created by holding the values of the continuity counters of the first PAT and PMT in the SOBU as management information.

なお、本実施形態では、シーケンス・スタート・コードの第1バイトを含むV_TSPを2個目以降のSOBUの先頭に配置するものとしているが、SOBUの先頭に別のトランスポートパケットが記録されてもよい。これはSOBU内の最初のV_TSPがシーケンス・スタート・コードの第1バイトと含んでいればよいからである。別のトランスポートパケットを記録する例としては、トランスポートパケットごとの到着タイミング情報を所定の数だけまとめて格納する場合である。   In this embodiment, V_TSP including the first byte of the sequence start code is arranged at the head of the second and subsequent SOBUs. However, even if another transport packet is recorded at the head of the SOBU. Good. This is because the first V_TSP in the SOBU only needs to include the first byte of the sequence start code. As an example of recording another transport packet, a predetermined number of pieces of arrival timing information for each transport packet are stored together.

また、本実施形態のレコーダはMPEGデコーダを持たないが、MPEGデコーダを設けてもよい。これにより、レコーダ内部の処理によって再生表示が可能となる。   The recorder of this embodiment does not have an MPEG decoder, but an MPEG decoder may be provided. As a result, playback and display can be performed by processing inside the recorder.

さらに、本実施形態では、シーケンスヘッダを含むV_TSPがPESヘッダを含むものとしているが、必ずしもPESヘッダを含まなくてもよい。MPEG規格上は、映像のPESヘッダがストリームの先頭に1回しかない場合も許されているからである。   Furthermore, in this embodiment, V_TSP including a sequence header is assumed to include a PES header, but it is not always necessary to include a PES header. This is because, according to the MPEG standard, the PES header of video is allowed only once at the beginning of the stream.

また、本実施形態では、SOBU先頭のV_TSPの前に送出するPAT_TSP、PMT_TSP、及びPCRを含むトランスポートパケットの送出タイミングについては触れていないが、受信側の処理速度を考慮して時間的な間隔をあけて送出するようにしてもよい。   In this embodiment, the transmission timing of the transport packet including PAT_TSP, PMT_TSP, and PCR transmitted before the SOBU head V_TSP is not mentioned, but the time interval is considered in consideration of the processing speed on the receiving side. You may make it send out with a gap.

さらに、本実施形態では、1個目のSOBUはPAT_TSPから記録するものとしているが、他の種類のトランスポートパケットから記録を開始してもよい。例えば、最初のPAT_TSPが到着するまでのトランスポートパケットをすべて記録してもよい。   Furthermore, in the present embodiment, the first SOBU is recorded from the PAT_TSP, but recording may be started from other types of transport packets. For example, all transport packets until the first PAT_TSP arrives may be recorded.

また、本実施形態では、SOBUごとにSOBU時間長とTSP到着時間を記録するものとしているが、TSP到着時間のみを記録するものであってもよい。この場合、シーケンスヘッダの検出処理やフィールド数のカウント処理が不要になることから、管理情報生成部を簡略化することが可能となる。   In this embodiment, the SOBU time length and the TSP arrival time are recorded for each SOBU. However, only the TSP arrival time may be recorded. In this case, the process of detecting the sequence header and the process of counting the number of fields are not required, so that the management information generating unit can be simplified.

(実施形態3)
以下、本発明の実施形態3による装置を、図面を参照しながら説明する。上述した実施形態1および2は映像ファイルの記録・再生に関していたのに対し、本実施形態は音声ファイルの記録・再生に関する。
(Embodiment 3)
Hereinafter, an apparatus according to Embodiment 3 of the present invention will be described with reference to the drawings. While the first and second embodiments described above relate to recording / playback of a video file, the present embodiment relates to recording / playback of an audio file.

まず、本実施形態による音声ファイルを記録再生するレコーダの構成は、図5に示すレコーダ200と同じである。レコーダ200の構成は実施形態1において説明したので、以下では詳細な説明は省略する。   First, the configuration of a recorder that records and reproduces an audio file according to the present embodiment is the same as that of the recorder 200 shown in FIG. Since the configuration of the recorder 200 has been described in the first embodiment, a detailed description thereof will be omitted below.

図12は、音声ファイルのデータ構造図である。図12に示すように、音声ファイルは、データサイズが固定長(例えば約2キロバイト)のヘッダ、及びオーディオオブジェクト(以下、「AOB」という。)から構成され、AOBは複数のオーディオオブジェクトユニット(以下、「AOBU」という。)から構成されている。   FIG. 12 is a data structure diagram of an audio file. As shown in FIG. 12, the audio file is composed of a header having a fixed data size (for example, about 2 kilobytes) and an audio object (hereinafter referred to as “AOB”), and the AOB includes a plurality of audio object units (hereinafter referred to as “AOB”). , “AOBU”).

ヘッダには、音声ファイルに関する管理情報が格納されている。各AOBUには、所定数(例えば4個)の音声フレームが含まれており、先頭にはPAT_TSP及びPMT_TSPが含まれている。また、1音声フレームは、所定数(例えば3個)のトランスポートパケットA_TSPにより構成されている。図12においては、各音声フレームが固定ビットレートとなることを前提としている。   The header stores management information related to the audio file. Each AOBU includes a predetermined number (for example, four) of audio frames, and includes PAT_TSP and PMT_TSP at the head. One audio frame is composed of a predetermined number (for example, three) of transport packets A_TSP. In FIG. 12, it is assumed that each audio frame has a fixed bit rate.

図12に示す音声ファイルのデータ構造を採用することにより、途中のAOBUから再生を開始する場合において、確実にPAT_TSP及びPMT_TSPを含むようになる。したがって、音声ファイルのどのAOBUから再生する場合であっても、確実に先頭音声フレームから再生することが可能となる。   By adopting the data structure of the audio file shown in FIG. 12, PAT_TSP and PMT_TSP are surely included when reproduction is started from an intermediate AOBU. Therefore, regardless of the AOBU of the audio file, it is possible to reliably reproduce from the first audio frame.

また、本実施形態に示すように、AOBUに含まれる音声フレームを4個にすれば、PAT/PMTの挿入タイミングを100msecごと以内にすることができる。こうすることで、日本のBSデジタル放送に対応した1394の伝送規格が定める100msec以内に収めることができる。具体的には、ISO/IEC 13818−7 Advanced Audio Coding圧縮を48KHzサンプリング、1024サンプルで使用する場合がこれに該当する。   Further, as shown in the present embodiment, if the number of audio frames included in the AOBU is 4, the PAT / PMT insertion timing can be set within 100 msec. By doing so, it can be kept within 100 msec determined by the 1394 transmission standard corresponding to Japanese BS digital broadcasting. Specifically, this is the case where ISO / IEC 13818-7 Advanced Audio Coding compression is used with 48 KHz sampling and 1024 samples.

また、図12に示すように、PAT_TSP及びPMT_TSPの挿入タイミング、AOBUを構成する音声フレーム数、及び音声フレームを構成するトランスポートパケット数を固定化することにより、時刻指定により途中のAOBUから再生する場合に、時刻と対応するAOBUの位置が単純な計算のみで求まることから、実施形態2のようにTM_ENTテーブルやSOBU_ENTテーブルに相当するテーブルを記録しておく必要がなくなる。必要な情報としては、1音声フレームのフレーム時間、1音声フレームを構成するトランスポートパケット数、及び1AOBUを構成する音声フレーム数で十分である。これらの情報を、例えば音声ファイルのヘッダ部分に記録しておけばよい。   In addition, as shown in FIG. 12, by fixing the PAT_TSP and PMT_TSP insertion timing, the number of audio frames constituting the AOBU, and the number of transport packets constituting the audio frame, playback is started from an AOBU in the middle by specifying the time. In this case, since the position of the AOBU corresponding to the time can be obtained only by simple calculation, it is not necessary to record a table corresponding to the TM_ENT table or the SOBU_ENT table as in the second embodiment. As necessary information, the frame time of one voice frame, the number of transport packets constituting one voice frame, and the number of voice frames constituting one AOBU are sufficient. Such information may be recorded, for example, in the header portion of the audio file.

なお、本実施形態では、PAT_TSP及びPMT_TSPの挿入タイミング、AOBUを構成する音声フレーム数、及び音声フレームを構成するトランスポートパケット数を固定化するものとして説明しているが、AOBUを構成する音声フレーム数、及び音声フレームを構成するトランスポートパケット数を所定数以下でもよいものとしてもよい。ただし、この場合には実施形態2のようなTM_ENTテーブルやSOBU_ENTテーブルに相当するテーブルをファイルフッタまたは別の管理ファイルとして記録した方がよい。   In this embodiment, it is described that the insertion timing of PAT_TSP and PMT_TSP, the number of audio frames constituting the AOBU, and the number of transport packets constituting the audio frame are fixed, but the audio frames constituting the AOBU The number and the number of transport packets constituting the audio frame may be a predetermined number or less. However, in this case, it is better to record a table corresponding to the TM_ENT table or SOBU_ENT table as in the second embodiment as a file footer or another management file.

また、実施形態1および3では、PAT_TSP及びPMT_TSPをVOBUまたはAOBUの先頭に配置するものとしているが、PAT_TSP及びPMT_TSPの直前に別のトランスポートパケットが記録され、続いてPAT_TSP、PMT_TSPが記録されてもよい。これはVOBU又はAOBU内の最初のV_TSP又はA_TSPよりも前に、PAT_TSP及びPMT_TSPが記録されていればよいからである。別のトランスポートパケットを記録する例としては、トランスポートパケットごとの到着タイミング情報を所定の数だけまとめて格納する場合である。   In the first and third embodiments, PAT_TSP and PMT_TSP are arranged at the head of VOBU or AOBU. However, another transport packet is recorded immediately before PAT_TSP and PMT_TSP, and then PAT_TSP and PMT_TSP are recorded. Also good. This is because PAT_TSP and PMT_TSP need only be recorded before the first V_TSP or A_TSP in VOBU or AOBU. As an example of recording another transport packet, a predetermined number of pieces of arrival timing information for each transport packet are stored together.

なお、AOBU内の最初のA_TSP内にはトランスポートパケットヘッダ内にPCRが含まれることが望ましい。A_TSP内の音声データよりも先にPAT_TSP、PMT_TSP、及びPCRを送出できるからである。   In the first A_TSP in the AOBU, it is desirable that the PCR is included in the transport packet header. This is because PAT_TSP, PMT_TSP, and PCR can be sent before audio data in A_TSP.

(実施形態4)
図13は、本実施形態によるプレーヤ400の構成を示す。プレーヤ400は、例えばレコーダ200(図5)の1394インタフェース部と1394ケーブルを介して接続される。
(Embodiment 4)
FIG. 13 shows a configuration of the player 400 according to the present embodiment. The player 400 is connected to, for example, a 1394 interface unit of the recorder 200 (FIG. 5) via a 1394 cable.

1394インタフェース部401から入力されたトランスポートストリームは、PAT/PMT/PCR解析部402によりPAT、PMT、及びPCRフィールドが抽出される。解析部402は、解析後、復号に必要な映像及び音声のPIDとPCRを再生部403に送る。再生部403は映像のPID、音声のPID、及びPCRを受け取るとすぐに、入力されたトランスポートストリームの蓄積を開始する。そして受け取った情報を利用してトランスポートストリームの復号処理を開始する。再生部403は、復号した映像信号及び音声信号を表示部404へ渡す。   A PAT / PMT / PCR analysis unit 402 extracts PAT, PMT, and PCR fields from the transport stream input from the 1394 interface unit 401. After the analysis, the analysis unit 402 sends the video and audio PID and PCR necessary for decoding to the reproduction unit 403. As soon as the playback unit 403 receives the video PID, the audio PID, and the PCR, the playback unit 403 starts storing the input transport stream. Then, the transport stream decoding process is started using the received information. The playback unit 403 passes the decoded video signal and audio signal to the display unit 404.

復号処理の開始時においては、PCRを含むトランスポートパケットが蓄積及び復号のきっかけ(トリガ)となる場合は、当該トランスポートパケット自体以降のトランスポートパケットが蓄積及び復号の対象となるとする。以降、PAT/PMT/PCR解析部402は、PAT/PMT/PCRを検出するごとに、再生部403へPIDとPCRを渡すことになる。   At the start of the decoding process, if a transport packet including a PCR is a trigger (trigger) for accumulation and decoding, it is assumed that the transport packet after the transport packet itself is to be accumulated and decoded. Thereafter, each time the PAT / PMT / PCR analysis unit 402 detects PAT / PMT / PCR, it passes the PID and PCR to the reproduction unit 403.

以上の構成により、実施形態1〜3にかかるレコーダの1394インタフェース部から出力されるトランスポートストリームを、図13に示すプレーヤの1394インタフェース部401において受け取ることにより、確実にトランスポートストリームの先頭から再生することができる。   With the above configuration, the transport stream output from the 1394 interface unit of the recorder according to the first to third embodiments is received by the 1394 interface unit 401 of the player shown in FIG. can do.

PAT/PMT/PCRの解析処理のために必要な処理時間は、各機器によって異なる。例えば処理時間が0.5秒の機種もあれば、1.0秒の機種もある。しかし、これらの処理時間に依存することなく、本実施形態1、2及び3による送出側機器が統一的なトランスポートストリームを出力すれば、実施形態4による受信側のプレーヤはPAT/PMT/PCRの解析処理が終了するとすぐに映像等の再生を開始できる。   The processing time required for the PAT / PMT / PCR analysis process varies depending on each device. For example, there are models with a processing time of 0.5 seconds and models with a processing time of 1.0 seconds. However, if the sending side device according to the first, second, and third embodiments outputs a unified transport stream without depending on these processing times, the receiving side player according to the fourth embodiment can perform the PAT / PMT / PCR. As soon as the analysis process is completed, playback of the video or the like can be started.

この方法によれば、送信側機器が解析処理時間の最大値を見積もり、PAT/PMT/PCRを含むトランスポートパケットのみを送出し、かつ、解析処理時間の最大値の間だけトランスポートストリームの出力を停止する方法よりも、映像及び音声出力までの遅延時間を短縮することができる。さらに、特定のシーンを選択して、選択した複数のシーンを連続して再生する場合においても、シーンの切り換え時間を短縮化することもできる。   According to this method, the transmission side apparatus estimates the maximum value of the analysis processing time, sends only the transport packet including PAT / PMT / PCR, and outputs the transport stream only during the maximum value of the analysis processing time. The delay time until video and audio output can be shortened compared to the method of stopping the transmission. Furthermore, even when a specific scene is selected and a plurality of selected scenes are continuously reproduced, the scene switching time can be shortened.

また、このようなシーンの切り換えが発生するとき、シーンの切換タイミングを事前に機器に通知してもよい。通知内容としては、例えば前のシーンに使用されたSTC(システムタイムクロック)の値として表現して、次のシーンの最初のフレームが再生されるタイミングを通知してもよい。通知方法としては、例えば1394におけるAVCコマンドを使うものであってもよい。また、特別のトランスポートパケットにより通知してもよい。   Further, when such scene switching occurs, the timing of scene switching may be notified to the device in advance. For example, the notification content may be expressed as an STC (system time clock) value used in the previous scene to notify the timing at which the first frame of the next scene is reproduced. As a notification method, for example, an AVC command in 1394 may be used. Moreover, you may notify by a special transport packet.

また、次のシーンのPAT/PMTに関する情報をトランスポートストリームの切り替え点よりも少し前に機器に通知してもよい。通知するために、PAT及びPMTのバージョン番号(version_number)フィールド及びカレント_ネックスト_識別子(current_next_indicator)フィールドを使用してもよい。   Further, information regarding the PAT / PMT of the next scene may be notified to the device slightly before the switching point of the transport stream. The PAT and PMT version number (version_number) field and the current_next_identifier (current_next_indicator) field may be used for notification.

また、シーンの切換点において、送出側がDIT(Discontinuity Information Table)を含むトランスポートパケットを挿入することにより、トランスポートストリーム内における切換タイミングを入力ストリームの監視によって確認できるようにしてもよい。   Further, at the scene switching point, the transmission side may check the switching timing in the transport stream by inserting the transport packet including the DIT (Discontinuity Information Table) by monitoring the input stream.

なお、本実施形態では、PAT/PMT/PCR解析部402はPAT、PMT、PCRの順に入力する場合を想定しているが、異なる順序で入力した場合であっても、そのPAT、PMT、及びPCRに含まれる映像及び音声のPIDとPCR等の情報を再生部403へ渡してもよい。   In the present embodiment, it is assumed that the PAT / PMT / PCR analysis unit 402 inputs in the order of PAT, PMT, and PCR. However, even if input in a different order, the PAT, PMT, and Information such as video and audio PID and PCR included in the PCR may be passed to the reproduction unit 403.

このような処理を前提とすることにより、実施形態3において、シーケンスヘッダを含むトランスポートパケットよりも100msec以内の過去に入力したトランスポートパケットの中からPAT_TSP、PMT_TSP、及びPCRを含むトランスポートパケットを抽出して、そのままの順序で送出してもよい。このとき、PAT_TSP、PMT_TSP、及びPCRを含むトランスポートパケットの送出順序がどのようになっていたとしても、受信側でPAT_TSP、PMT_TSP、及びPCRを含むトランスポートパケットの順序に直して解釈される。これによって、300msec前に入力したトランスポートストリームの中からこれらのトランスポートパケットを抽出する必要がなくなる。   By assuming such processing, in the third embodiment, transport packets including PAT_TSP, PMT_TSP, and PCR among transport packets input in the past within 100 msec from the transport packet including the sequence header are used. It may be extracted and sent out in the same order. At this time, whatever the order of transmission of transport packets including PAT_TSP, PMT_TSP, and PCR is, the receiving side interprets the transport packets including PAT_TSP, PMT_TSP, and PCR in the same order. This eliminates the need to extract these transport packets from the transport stream input before 300 msec.

また、このような処理を前提とすれば、実施形態1及び2において、PAT_TSP、PMT_TSP、及びPCRを含むトランスポートパケットの送出順序及び記録順序はこの順番が守られていなくてもよい。また、実施形態3におけるPAT/PMTポインタは、PAT_TSP、PMT_TSP、又はPCRを含むトランスポートパケットのうち最も過去に入力されたトランスポートパケットの位置情報を参照すればよい。その位置からSOBUの先頭までにこの3種類のトランスポートパケットが存在することになるからである。   If such processing is assumed, in the first and second embodiments, the order of sending and recording of transport packets including PAT_TSP, PMT_TSP, and PCR may not be maintained. In addition, the PAT / PMT pointer in the third embodiment may refer to the position information of the transport packet that has been input most recently among transport packets including PAT_TSP, PMT_TSP, or PCR. This is because these three types of transport packets exist from that position to the beginning of the SOBU.

(実施形態5)
図14は、ARIB(Association of Radio Industries Businesses:社団法人電波産業会)規格のマルチビュー放送に利用されるトランスポートストリームの管理情報のデータ構造を示している。マルチビュー放送は、1つのトランスポートストリーム内に最大3つの番組が多重化される。このようなトランスポートストリームの場合、その番組ごとにSOBU_ENTテーブル及びTM_ENTテーブルを作成することになる。
(Embodiment 5)
FIG. 14 shows a data structure of management information of a transport stream used for multi-view broadcasting of ARIB (Association of Radio Industries Businesses) standard. In multi-view broadcasting, a maximum of three programs are multiplexed in one transport stream. In the case of such a transport stream, an SOBU_ENT table and a TM_ENT table are created for each program.

そして、表示時間が近接している番組1、番組2、及び番組3のそれぞれのSOBU_ENTテーブルを1、2、3、1、2、3、…の様に順番に繰り返し記録する。TM_ENTテーブルも同様に記録する。なお、それぞれのSOBU_ENTテーブル及びTM_ENTテーブルは、実施形態2と同じデータ構造であるものとする。また、TMAP_GI内に番組の多重数を記録するものとする。その他の構成は実施形態2と同様である。   Then, the SOBU_ENT tables of program 1, program 2, and program 3 whose display times are close to each other are repeatedly recorded in order as 1, 2, 3, 1, 2, 3,. The TM_ENT table is recorded in the same manner. It is assumed that each SOBU_ENT table and TM_ENT table have the same data structure as in the second embodiment. Also, it is assumed that the number of multiplexed programs is recorded in TMAP_GI. Other configurations are the same as those of the second embodiment.

以上の構成により、マルチビュー放送であっても、任意の番組における任意のシーケンスヘッダよりPAT、PMT、及びPCRを含んだ形でトランスポートストリームの送出が可能となる。   With the above configuration, even in multi-view broadcasting, it is possible to transmit a transport stream including PAT, PMT, and PCR from an arbitrary sequence header in an arbitrary program.

なお、番組2及び番組3に対応するSOBU_ENTテーブルを、番組1のSOBU_ENTテーブルの後に直列に記録してもよい。また、同様に番組2及び番組3に対応するTM_ENTテーブルを、番組1のTM_ENTテーブルの後に直列に記録してもよい。   Note that the SOBU_ENT table corresponding to the program 2 and the program 3 may be recorded in series after the SOBU_ENT table of the program 1. Similarly, TM_ENT tables corresponding to program 2 and program 3 may be recorded in series after the TM_ENT table of program 1.

(実施形態6)
以下では、データストリームの2種類の管理ファイルを説明する。その後、いずれの管理ファイルへも容易に変換可能な、本実施形態による管理ファイルを説明する。あわせて、そのような管理ファイルを生成する本実施形態による装置を説明する。
(Embodiment 6)
Hereinafter, two types of management files of the data stream will be described. Thereafter, the management file according to the present embodiment, which can be easily converted into any management file, will be described. In addition, the apparatus according to the present embodiment for generating such a management file will be described.

なお、以下に説明する実施形態においては、記録装置が自ら符号化して動画ストリームを生成していても、動画ストリームの再生単位をSOBUと呼ぶ。説明の便宜のためSOBUとVOBUとを区別しないことに留意されたい。   In the embodiment described below, a playback unit of a video stream is referred to as SOBU even if the recording apparatus encodes itself to generate a video stream. Note that for convenience of explanation, SOBU and VOBU are not distinguished.

図15は、第1の管理ファイル1のデータ構造を示す。   FIG. 15 shows the data structure of the first management file 1.

光ディスクレコーダ等の記録機器は、1以上のSOBUを生成してストリームファイルとして記録する。その後、そのストリームファイルに関する管理情報を格納した管理ファイルを記録する。ストリームファイルと管理ファイルは、相変化光ディスク131上の同一のディレクトリに配置される。また、ファイル名は、ファイル拡張子のみを相違させ、ファイル拡張子以外は同じ名前を割り当てる。例えば、MOVIE001.MPG(ストリームファイル)とMOVIE001.CTL(管理ファイル)のように、1:1の対応関係を保持させて記録する。管理ファイルの管理情報は、例えばストリームファイル中の任意の箇所から映像、音声を再生するために利用される。再生時において、機器は、ユーザが指定した再生開始箇所の先頭からの経過時間からに基づいて、再生すべきSOBUの格納先アドレスを管理ファイルから導出し、そのアドレスに格納されているストリームファイルのデータを用いて映像等を再生する。   A recording device such as an optical disk recorder generates one or more SOBUs and records them as a stream file. Thereafter, a management file storing management information regarding the stream file is recorded. The stream file and the management file are arranged in the same directory on the phase change optical disk 131. Also, the file names are different only in the file extension, and the same name is assigned except for the file extension. For example, MOVIE001. MPG (stream file) and MOVIE001. Like a CTL (management file), a 1: 1 correspondence is maintained and recorded. The management information of the management file is used, for example, for reproducing video and audio from an arbitrary location in the stream file. At the time of playback, the device derives the storage destination address of the SOBU to be played back from the management file based on the elapsed time from the beginning of the playback start point designated by the user, and the stream file stored at that address. Play video etc. using data.

図15に示す管理ファイル1は、TMAP_GIテーブル2、及び複数のSOBU_ENTテーブル(SOBU_ENTs)3から構成されている。   The management file 1 shown in FIG. 15 includes a TMAP_GI table 2 and a plurality of SOBU_ENT tables (SOBU_ENTs) 3.

まず、TMAP_GIテーブル2においては、TMAPタイプに管理ファイルのデータ構造の識別子としてタイプ番号が格納されている。また、SOBUエントリ数にはSOBU_ENTテーブルの個数が格納されている。   First, in the TMAP_GI table 2, the type number is stored as the identifier of the data structure of the management file in the TMAP type. The number of SOBU_ENT tables is stored in the number of SOBU entries.

次に、SOBU_ENTテーブル3を説明する。まず、SOBUの先頭に記録されたIピクチャのデータサイズが“I−picture data size”フィールド4に設定される。設定される値は、Iピクチャのデータの先頭が格納されたトランスポートパケットから、そのデータの末尾が格納されたトランスポートパケットまでの個数である。なお、各トランスポートパケットの間には、例えばオーディオデータを格納したトランスポートパケットパケットもインターリーブされ得る。このときは、Iピクチャのデータを格納していないトランスポートパケットの数も含めて値が設定される。   Next, the SOBU_ENT table 3 will be described. First, the data size of the I picture recorded at the head of the SOBU is set in the “I-picture data size” field 4. The set value is the number from the transport packet storing the head of the I picture data to the transport packet storing the end of the data. Note that, for example, transport packet packets storing audio data may be interleaved between the transport packets. At this time, a value including the number of transport packets that do not store I picture data is set.

また、各SOBUに含まれるピクチャの総再生時間はSOBU時間長フィールド5に設定される。設定される値は、そのSOBUが再生されたときの映像フィールド数である。また、各SOBUのデータサイズが、SOBUデータサイズフィールド6に設定される。設定される値は、SOBUに含まれるトランスポートパケットの数である。トランスポートパケットのデータ長は188バイトに固定されているため、パケット数を記述すれば容易にそのSOBUのデータ長を特定できる。   The total playback time of pictures included in each SOBU is set in the SOBU time length field 5. The set value is the number of video fields when the SOBU is played back. The data size of each SOBU is set in the SOBU data size field 6. The set value is the number of transport packets included in the SOBU. Since the data length of the transport packet is fixed at 188 bytes, the data length of the SOBU can be easily specified by describing the number of packets.

また、1394インタフェース部640を介して入力したトランスポートストリームを記録する場合にもストリームファイルを作成し、同時に管理ファイルを生成すればよい。   In addition, when a transport stream input via the 1394 interface unit 640 is recorded, a stream file is generated and a management file is generated at the same time.

図16は、第2の管理ファイル11のデータ構造を示す。管理ファイル11は、例えばブルーレイディスクにおいて採用されている。   FIG. 16 shows the data structure of the second management file 11. The management file 11 is employed in, for example, a Blu-ray disc.

管理ファイル11は、TMAP_GIテーブル12、及び複数のSOBU_ENTテーブル(SOBU_ENTs)13から構成されている。   The management file 11 includes a TMAP_GI table 12 and a plurality of SOBU_ENT tables (SOBU_ENTs) 13.

まず、TMAP_GIテーブル12においては、TMAPタイプに管理ファイルのデータ構造の識別子としてタイプ番号が格納されている。また、SOBUエントリ数にはSOBU_ENTテーブルの個数が格納されている。   First, in the TMAP_GI table 12, a type number is stored as an identifier of the data structure of the management file in the TMAP type. The number of SOBU_ENT tables is stored in the number of SOBU entries.

次に、SOBU_ENTテーブル13においては、 “I−picture data size”フィールド14、PTS差分フィールド15およびSOBUデータサイズフィールド16が設けられる。フィールド14および16には、それぞれ管理ファイル1における同名のフィールド4および6と同等の情報が記述される。   Next, in the SOBU_ENT table 13, an “I-picture data size” field 14, a PTS difference field 15, and an SOBU data size field 16 are provided. In the fields 14 and 16, information equivalent to the fields 4 and 6 having the same name in the management file 1 is described, respectively.

一方、PTS差分フィールド15には、データストリーム中で隣接する2つのSOBUの先頭に記録されたIピクチャ同士のPTSの差分が設定される。   On the other hand, the PTS difference field 15 is set with the PTS difference between the I pictures recorded at the head of two adjacent SOBUs in the data stream.

以下、図17(a)および(b)を参照しながら、上述のPTSの差分をより詳しく説明する。図17(a)は、SOBU、SOBU先頭のIピクチャのPTS差分の定義、およびSOBU時間長の関係を示す。記号“B”、“I”および“P”は、それぞれMPEG規格におけるBピクチャ、IピクチャおよびPピクチャを示す。各ピクチャは、再生される順序で図示されている。   Hereinafter, the above-described PTS difference will be described in more detail with reference to FIGS. 17 (a) and 17 (b). FIG. 17A shows the relationship between the SOBU, the definition of the PTS difference of the SOBU leading I picture, and the SOBU time length. Symbols “B”, “I”, and “P” indicate a B picture, an I picture, and a P picture in the MPEG standard, respectively. Each picture is illustrated in the order in which it is played.

図17(a)に示す各SOBU内の各ピクチャの表示順は、BBIBBP、IBBP、BBIである。図中のSOBU時間長は、各SOBUに含まれる映像フレームの再生時間長を示し、映像フィールド数を単位として定義する。また、Iピクチャ間のPTS差分は、あるSOBUの先頭フレームであるIフレームの表示タイミング(PTS)と直後のSOBUの先頭フレームであるIフレームの表示タイミング(PTS)との時間差で定義される。ただし、本実施形態においては、現実に付加されているPTS値ではなく映像フィールド数が設定されるとする。   The display order of each picture in each SOBU shown in FIG. 17A is BBIBBP, IBBP, and BBI. The SOBU time length in the figure indicates the playback time length of the video frame included in each SOBU, and is defined with the number of video fields as a unit. Also, the PTS difference between I pictures is defined by the time difference between the display timing (PTS) of the I frame that is the first frame of a certain SOBU and the display timing (PTS) of the I frame that is the first frame of the immediately following SOBU. However, in the present embodiment, it is assumed that the number of video fields is set instead of the actually added PTS value.

一方、図17(b)は各ピクチャのデータがトランスポートストリーム内で配置される順序を示す。各ピクチャのデータはこの順序で記録媒体に書き込まれる。図17(b)に示されたIBBPBB、IPBB、IBB・・・は、SOBU#i、SOBU#(i+1)、SOBU#(i+2)の中に、映像フレームを圧縮したIBBPBB、IPBB、IBBの各ピクチャが含まれることを示す。なお、図17(a)および(b)において、1個のSOBUを構成する映像フレーム数は例である。より多くのピクチャが含まれてもよい。   On the other hand, FIG. 17B shows the order in which the data of each picture is arranged in the transport stream. The data of each picture is written on the recording medium in this order. IBBPBB, IPBB, IBB... Shown in FIG. 17 (b) are the IBBPBB, IPBB, and IBB compressed video frames in SOBU # i, SOBU # (i + 1), SOBU # (i + 2). Indicates that a picture is included. In FIGS. 17A and 17B, the number of video frames constituting one SOBU is an example. More pictures may be included.

本明細書においては、HDDおよび相変化光ディスクには図15に示すデータ構造を有する管理ファイルが記録され、メモリカードには図16に示すデータ構造を有する管理ファイルが記録されるとする。一方、ストリームファイルのデータ構造は、記録媒体の種類によらず同じであるとする。すなわち、HDDおよび相変化光ディスクのいずれにおいても、ストリームファイルはトランスポートストリームを格納しているとする。なお、ストリームファイルおよび管理ファイルのデータ構造は、記録媒体の規格で規定されていることもあるし、または任意に決定されることもある。   In this specification, it is assumed that a management file having the data structure shown in FIG. 15 is recorded on the HDD and the phase change optical disk, and a management file having the data structure shown in FIG. 16 is recorded on the memory card. On the other hand, the data structure of the stream file is the same regardless of the type of recording medium. That is, it is assumed that the stream file stores the transport stream in both the HDD and the phase change optical disk. The data structure of the stream file and the management file may be defined by the recording medium standard or may be arbitrarily determined.

本実施形態においては、図15に示す管理ファイル1、および、図16に示す管理ファイル11のいずれにも容易に変換可能な、新たな管理ファイルを規定する。そのような管理ファイルは、ストリームファイルの生成とともに生成される。本実施形態による管理ファイルを利用することにより、レコーダから他の機器にデータストリームを転送する際には、その管理ファイルを転送先の機器に適合する管理ファイルに変換すればよい。データストリームを全て解析して管理ファイルを生成する必要がないため、データストリームおよび管理ファイルの転送が高速で完了する。   In the present embodiment, a new management file that can be easily converted into either the management file 1 shown in FIG. 15 or the management file 11 shown in FIG. 16 is defined. Such a management file is generated together with the generation of the stream file. By using the management file according to the present embodiment, when the data stream is transferred from the recorder to another device, the management file may be converted into a management file suitable for the transfer destination device. Since it is not necessary to generate the management file by analyzing the entire data stream, the transfer of the data stream and the management file is completed at high speed.

以下、本実施形態による管理ファイルを生成するレコーダの構成および動作と、管理ファイルのデータ構造とを説明する。   The configuration and operation of the recorder that generates the management file according to the present embodiment and the data structure of the management file will be described below.

図18は、本実施形態によるHDD内蔵光ディスクレコーダ500の主要な機能ブロックの構成を示す。HDD内蔵光ディスクレコーダ500(以下「レコーダ500」と記述する)は、映像信号および音声信号を記録再生部540によって符号化してトランスポートストリームおよびその管理情報を生成する。そしてトランスポートストリームおよび管理情報をストリームファイルおよび管理ファイルとして、HDD(ハードディスクドライブ)部520および/または光ディスクドライブ部530を介して各記録媒体に記録する。この管理ファイルは、図15に示すようなSOBU時間長フィールドを含むが、図15に示すデータ構造とは異なる。詳細なデータ構造は、後に図20を参照しながら説明する。   FIG. 18 shows a configuration of main functional blocks of the HDD built-in optical disc recorder 500 according to the present embodiment. The HDD built-in optical disc recorder 500 (hereinafter referred to as “recorder 500”) encodes a video signal and an audio signal by the recording / reproducing unit 540 to generate a transport stream and its management information. The transport stream and management information are recorded as stream files and management files on each recording medium via the HDD (hard disk drive) unit 520 and / or the optical disc drive unit 530. This management file includes an SOBU time length field as shown in FIG. 15, but is different from the data structure shown in FIG. A detailed data structure will be described later with reference to FIG.

図19は、レコーダ500の記録再生部540の詳細な構成を示す。映像信号および音声信号を受信して自ら符号化する(すなわちセルフエンコードする)場合には、図5に示すレコーダ200のストリームの記録処理、および図15に示したSOBU時間長を含む管理情報の記録処理と基本的には同様の処理を行う。   FIG. 19 shows a detailed configuration of the recording / playback unit 540 of the recorder 500. When the video signal and the audio signal are received and encoded (that is, self-encoded), the recording process of the stream of the recorder 200 shown in FIG. 5 and the recording of the management information including the SOBU time length shown in FIG. Basically the same processing as the processing is performed.

記録再生部540のフォーマット変換部510は、HDDまたは相変化光ディスクに記録されたストリームファイルを読み取り、メモリカードドライブ部550を介してメモリカードへ書き込むことができる。また、フォーマット変換部510は、HDDまたは相変化光ディスクに記録された管理ファイルを読み取り、フォーマット変換してメモリカードドライブ部550のメモリカードへ書き込むことができる。   The format conversion unit 510 of the recording / playback unit 540 can read the stream file recorded on the HDD or the phase change optical disk and write it to the memory card via the memory card drive unit 550. Further, the format conversion unit 510 can read a management file recorded on the HDD or the phase change optical disc, convert the format, and write it to the memory card of the memory card drive unit 550.

さらに記録再生部540は、他の装置から1394インタフェースを介してトランスポートストリームを受け取り、記録すること(すなわちインポートすること)ができる。また記録再生部540は、1394インタフェースを介して、他の装置へトランスポートストリームを送出し、その装置に記録させること(すなわちエクスポートすること)ができる。これらのインポート/エクスポート処理は、実施形態2におけるストリームのインポート/エクスポート処理と同じである。また、管理情報を管理ファイルとして記録する処理も図16に示す管理情報の記録処理と同様に行われる。   Further, the recording / reproducing unit 540 can receive and record (that is, import) a transport stream from another device via the 1394 interface. The recording / playback unit 540 can send a transport stream to another device via the 1394 interface and record (i.e., export) the transport stream to that device. These import / export processes are the same as the stream import / export processes in the second embodiment. Further, the process of recording the management information as a management file is performed in the same manner as the management information recording process shown in FIG.

図20は、本実施形態による管理ファイル21のデータ構造を示す。管理ファイル21は、TMAP_GIテーブル22、及び複数のSOBU_ENTテーブル(SOBU_ENTs)23から構成されている。   FIG. 20 shows the data structure of the management file 21 according to this embodiment. The management file 21 includes a TMAP_GI table 22 and a plurality of SOBU_ENT tables (SOBU_ENTs) 23.

この管理ファイル21が図15に示す管理ファイル1と相違する点は、管理ファイル21のSOBU_ENTテーブル23が新たに先行表示枚数フィールド27を有することである。先行表示枚数フィールド27には、SOBU内の先頭Iフレームよりも前に表示される映像フレームの情報が記述される。その他のフィールドには、図15に示す管理ファイル1の対応するフィールドと同等の情報が記述される。   The management file 21 is different from the management file 1 shown in FIG. 15 in that the SOBU_ENT table 23 of the management file 21 newly has a preceding display number field 27. In the preceding display number field 27, information on a video frame to be displayed before the first I frame in the SOBU is described. In other fields, information equivalent to the corresponding fields of the management file 1 shown in FIG. 15 is described.

なお、対応するSOBU時間長フィールド25とSOBUのデータサイズ(またはSOBUの記録位置)フィールド26とが各SOBU_ENTテーブル23に格納されている。これらは、各SOBU固有の情報として位置づけられる。   A corresponding SOBU time length field 25 and SOBU data size (or SOBU recording position) field 26 are stored in each SOBU_ENT table 23. These are positioned as information unique to each SOBU.

以下、図21(a)および(b)を参照しながら、先行表示枚数フィールドに記述される情報が示す意味を説明する。   Hereinafter, the meaning indicated by the information described in the preceding display number field will be described with reference to FIGS. 21 (a) and 21 (b).

図21(a)および(b)は、管理ファイルに記録される先行表示枚数の定義を模式的に示す。   FIGS. 21A and 21B schematically show the definition of the preceding display number recorded in the management file.

まず図21(b)は各フレームのデータが記録される順序を示す。トランスポートストリーム中のSOBU#i、SOBU#(i+1)、SOBU#(i+2)には、それぞれIBBPB・・・B、IPBBPB・・・B、IBI・・・の順序でピクチャのデータが記録されている。   FIG. 21B shows the order in which the data of each frame is recorded. SOBU # i, SOBU # (i + 1), SOBU # (i + 2) in the transport stream are recorded with picture data in the order of IBBPB... B, IPBBPB... B, IBI. Yes.

一方の図21(a)は、各フレームが表示される順序を示している。この例では、表示順は、それぞれのSOBUに関してBBIBB・・・P、IBBPBB・・・P、BIB・・・である。SOBU#iにおいて、図21(a)によれば、Iフレームの前の2枚のBフレームはIフレームよりも前に表示される。よって先行表示枚数は2フレーム(4フィールド)である。   On the other hand, FIG. 21A shows the order in which the frames are displayed. In this example, the display order is BBIBB ... P, IBBPBB ... P, BIB ... for each SOBU. In SOBU # i, according to FIG. 21A, the two B frames before the I frame are displayed before the I frame. Therefore, the preceding display number is 2 frames (4 fields).

続くSOBU#(i+1)では、その先頭のIフレームよりも前に表示されるフレームは存在しない。よって先行表示枚数は0フレーム(0フィールド)である。   In the subsequent SOBU # (i + 1), there is no frame displayed before the first I frame. Therefore, the preceding display number is 0 frame (0 field).

そして、SOBU#(i+2)では、1枚のBフレームのみが先頭のIフレームより前に表示される。よって先行表示枚数は1フレーム(2フィールド)である。   In SOBU # (i + 2), only one B frame is displayed before the first I frame. Therefore, the preceding display number is 1 frame (2 fields).

レコーダ500は、映像信号を受け取った後自ら符号化処理を行ってトランスポートストリームを生成する。そのため、各SOBUを生成するごとに、各SOBU内の先頭Iフレームよりも前に表示されるフレームの時間長を特定することができる。   After receiving the video signal, the recorder 500 performs an encoding process by itself to generate a transport stream. Therefore, the time length of the frame displayed before the first I frame in each SOBU can be specified each time each SOBU is generated.

上述のように特定される各SOBU内の先頭Iフレームよりも前に表示されるフレームの時間長が、映像のフィールド数を単位としてSOBU_ENTテーブルの先行表示枚数フィールドに記述される。1秒間に30枚のフレーム画像が表示される映像システムにおいては、1フィールド画像は1/60秒の時間長に対応する。よって2枚のフレーム画像がIフレームよりも先に表示されるときには、先行表示枚数フィールドには「4」が記述される。   The time length of the frame displayed before the first I frame in each SOBU specified as described above is described in the preceding display number field of the SOBU_ENT table in units of video fields. In a video system in which 30 frame images are displayed per second, one field image corresponds to a time length of 1/60 seconds. Therefore, when two frame images are displayed before the I frame, “4” is described in the preceding display number field.

なお、映像のフィールド数を利用して先行表示枚数を記述する理由は以下のとおりである。例えば、実質24フレームのフィルム素材を毎秒60フィールドへ3:2プルダウン変換して記録する場合、記録される1枚の映像フレームが2フィールドまたは3フィールド分の再生時間長を有する場合がある。よってフィールドを単位とするほうが好ましい。仮にこの様なケースを想定しない場合、単位を映像フレーム数としてもよいことは言うまでもない。   The reason why the preceding display number is described using the number of video fields is as follows. For example, when a film material of substantially 24 frames is recorded with 3: 2 pull-down conversion to 60 fields per second, one recorded video frame may have a playback time length of 2 fields or 3 fields. Therefore, it is preferable to use the field as a unit. Needless to say, if such a case is not assumed, the unit may be the number of video frames.

図22は、レコーダ500が管理ファイル21を生成する処理の手順を示す。説明を簡単にするため、以下では映像信号に関する処理に絞って説明する。   FIG. 22 shows a processing procedure for the recorder 500 to generate the management file 21. In order to simplify the description, the following description will focus on processing related to video signals.

ステップS211において、MPEGエンコーダ670は映像信号に基づいて映像フレーム単位で符号化処理を行う。そしてステップS212において、MPEGエンコーダ670はSOBU先頭のIピクチャ(Iフレーム)よりも先に表示される映像フレームを特定する。具体的には、MPEGエンコーダ670は、先のSOBUの末尾の映像フレーム以降に入力された映像フレームの中から、どの映像フレームを最初のIフレームとして符号化したかを特定すればよい。それにより、その映像フレームよりも前に入力された映像フレーム(すなわちIフレームよりも先に表示されるBフレーム)を特定できる。MPEGエンコーダ670は、Iフレームよりも先に表示される映像フレームの数に関する情報を出力する。なお、映像フレームの数に関する情報に代えて、映像フレームが生成されたことを個別に通知してもよい。   In step S211, the MPEG encoder 670 performs an encoding process for each video frame based on the video signal. In step S212, the MPEG encoder 670 specifies a video frame to be displayed before the first SOBU I picture (I frame). Specifically, the MPEG encoder 670 may specify which video frame is encoded as the first I frame from the video frames input after the last video frame of the previous SOBU. Thereby, a video frame input before the video frame (that is, a B frame displayed before the I frame) can be specified. The MPEG encoder 670 outputs information regarding the number of video frames displayed before the I frame. Note that instead of the information regarding the number of video frames, it may be notified individually that video frames have been generated.

このとき、MPEGエンコーダ670は、Iピクチャのデータサイズ、SOBU時間長およびSOBUデータサイズに関する情報もあわせて出力する。MPEGエンコーダ670が符号化処理およびパケットの配列処理を行うため、これらのすべての情報は各SOBUが生成されるたびに特定される。   At this time, the MPEG encoder 670 also outputs information on the data size of the I picture, the SOBU time length, and the SOBU data size. Since the MPEG encoder 670 performs encoding processing and packet arrangement processing, all these pieces of information are specified for each SOBU generated.

ステップS213において、管理情報生成部642は特定した映像フレームの数に対応する表示時間をフィールド数で算出する。そしてステップS214において、管理情報生成部642は、算出したフィールド数の値をSOBU_ENTテーブル23内の先行表示枚数フィールド27に記述する。管理情報生成部642は、Iピクチャのデータサイズ、SOBU時間長およびSOBUデータサイズの情報もSOBUが生成されるたびにテーブルに書き込む。   In step S213, the management information generation unit 642 calculates the display time corresponding to the specified number of video frames as the number of fields. In step S214, the management information generation unit 642 describes the calculated field number value in the preceding display number field 27 in the SOBU_ENT table 23. The management information generating unit 642 also writes information on the data size of the I picture, the SOBU time length, and the SOBU data size in the table every time an SOBU is generated.

上述の処理の結果、各SOBU_ENTテーブル(SOBU_ENTs)23が生成される。なお、すべてのSOBUが取得されると、TMAP_GIテーブル22の内容も確定する。   As a result of the above processing, each SOBU_ENT table (SOBU_ENTs) 23 is generated. When all SOBUs are acquired, the contents of the TMAP_GI table 22 are also determined.

その後は、記録制御部661はその管理情報を受け取って、HDDおよび/または相変化光ディスクに書き込むよう、HDD部520および/または光ディスクドライブ部530に送信する。この結果、管理ファイル21が得られる。   Thereafter, the recording control unit 661 receives the management information and transmits the management information to the HDD unit 520 and / or the optical disc drive unit 530 so as to be written on the HDD and / or the phase change optical disc. As a result, the management file 21 is obtained.

なお、HDDはレコーダ500に内蔵されているため、書き込むデータのデータ構造に関しては外部機器との整合を考慮しなくてもよい。よって本実施形態による管理ファイル21のデータ構造を書き込んでも問題は生じない。管理ファイル21のデータ構造に対応していない外部機器に出力する際には、図23を参照しながら説明する変換処理によって、図15に示す管理ファイル1または図16に示す管理ファイル11に変換すればよい。   Since the HDD is built in the recorder 500, the data structure of the data to be written does not need to be considered for matching with the external device. Therefore, no problem occurs even if the data structure of the management file 21 according to the present embodiment is written. When outputting to an external device that does not support the data structure of the management file 21, it is converted into the management file 1 shown in FIG. 15 or the management file 11 shown in FIG. 16 by the conversion process described with reference to FIG. That's fine.

一方、相変化光ディスクはリムーバブルであるため、管理ファイル21に対応していない機器に装填されると処理できずにエラーを生じる可能性がある。しかし、管理ファイル21の各データ構造が規格化されること等の事情によっては、相変化光ディスクに管理ファイル21を記録することに問題はない。   On the other hand, since the phase change optical disk is removable, if it is loaded in a device that does not support the management file 21, it may not be processed and an error may occur. However, there is no problem in recording the management file 21 on the phase change optical disk depending on circumstances such as the standardization of each data structure of the management file 21.

本実施形態によるレコーダ500は、管理ファイル21を利用して映像および音声を再生することができる。例えば管理ファイル21を参照して、指定されたストリームの先頭から10秒目以降を再生する処理も容易に実現できる。   The recorder 500 according to the present embodiment can reproduce video and audio using the management file 21. For example, referring to the management file 21, it is possible to easily realize the process of reproducing the 10th and subsequent seconds from the head of the designated stream.

具体的には以下のとおりである。まず管理情報生成部642は、10秒を超えるまでSOBU時間長フィールド25の値を加算する。10秒を超えたときは、最後に加算したSOBU時間長に対応するSOBU内に10秒目の映像フレームデータが格納されているといえる。管理情報生成部642によってSOBUが特定されると、再生制御部662の指示に基づいて再生部621はそのSOBUを読み出し、MPEGデコーダ671に送る。MPEGデコーダ671は、そのSOBUを復号化して、ストリームの先頭から10秒目の映像フレーム以降を出力する。この結果、指定された時刻の映像から再生が開始される。なお、上述の処理は再生時のみならず、1394インタフェースを介して映像を出力する場合にも同様に行われる。   Specifically, it is as follows. First, the management information generation unit 642 adds the value of the SOBU time length field 25 until it exceeds 10 seconds. When it exceeds 10 seconds, it can be said that the 10th second video frame data is stored in the SOBU corresponding to the last added SOBU time length. When the management information generation unit 642 identifies the SOBU, the playback unit 621 reads the SOBU based on an instruction from the playback control unit 662 and sends the SOBU to the MPEG decoder 671. The MPEG decoder 671 decodes the SOBU, and outputs the video frame after the 10th second from the beginning of the stream. As a result, playback starts from the video at the designated time. Note that the above-described processing is performed not only at the time of reproduction but also when outputting video via the 1394 interface.

次に、レコーダ500が、管理ファイル21を、図15に示す管理ファイル1または図16に示す管理ファイル11に変換する処理を説明する。以下では、レコーダ500のHDDに記録されたストリームファイルおよび管理ファイルを他の記録媒体に転送するとして変換処理を説明する。   Next, a process in which the recorder 500 converts the management file 21 into the management file 1 shown in FIG. 15 or the management file 11 shown in FIG. Hereinafter, the conversion process will be described on the assumption that the stream file and the management file recorded on the HDD of the recorder 500 are transferred to another recording medium.

図23は、管理ファイルの変換処理の手順を示す。   FIG. 23 shows the procedure of management file conversion processing.

まずステップS221において、レコーダ500は、リモコンまたはレコーダ500本体のボタン(いずれも図示せず)を介して、ユーザから転送指示を受け取る。このとき、転送指示とともに、転送先の記録媒体やその記録機器が特定される。するとステップS222において、まずレコーダ500の再生制御部662は、ストリームファイルをHDDから読み出すよう指示する。そして再生部621によって読み出されたストリームファイルは、例えば光ディスクドライブ部530や、メモリカードドライブ部550に転送され、特定された記録媒体に書き込まれる。上述のように、記録媒体の種類にかかわらず、トランスポートストリームがそのまま転送される。   First, in step S221, the recorder 500 receives a transfer instruction from the user via a remote controller or a button (both not shown) of the recorder 500 main body. At this time, the transfer destination recording medium and its recording device are specified together with the transfer instruction. In step S222, the playback control unit 662 of the recorder 500 first instructs the stream file to be read from the HDD. Then, the stream file read by the playback unit 621 is transferred to, for example, the optical disc drive unit 530 or the memory card drive unit 550, and written to the specified recording medium. As described above, the transport stream is transferred as it is regardless of the type of the recording medium.

次のステップS223以降は、管理情報の変換処理が行われる。まずステップS223においては、フォーマット変換部510は、転送先はメモリカードか否かを判定する。その理由は、メモリカードであれば図16の管理ファイル11に変換することを要し、メモリカード以外の記録媒体(例えば光ディスク)であれば図15の管理ファイル1に変換することを要するからである。転送先がメモリカードであれば処理はステップS224に進み、転送先がメモリカード以外の記録媒体であれば処理はステップS226に進む。   In the next step S223 and thereafter, management information conversion processing is performed. First, in step S223, the format conversion unit 510 determines whether or not the transfer destination is a memory card. The reason is that if it is a memory card, it is necessary to convert it to the management file 11 of FIG. 16, and if it is a recording medium (for example, an optical disk) other than the memory card, it is necessary to convert it to the management file 1 of FIG. is there. If the transfer destination is a memory card, the process proceeds to step S224, and if the transfer destination is a recording medium other than the memory card, the process proceeds to step S226.

なお「メモリカード」には、レコーダ500に装填されたメモリカードのみならず、レコーダ500に接続された外部機器のメモリカードも含まれる。また、「メモリカード以外の記録媒体」には、レコーダ500の光ディスクや、レコーダ500に接続された外部機器の光ディスクまたはHDDが含まれる。   The “memory card” includes not only a memory card loaded in the recorder 500 but also a memory card of an external device connected to the recorder 500. Further, the “recording medium other than the memory card” includes the optical disk of the recorder 500 and the optical disk or HDD of an external device connected to the recorder 500.

次にステップS224において、再生制御部662の指示に基づいて再生部621は管理ファイル21を読み出す。フォーマット変換部510は、管理ファイル21を受け取り、各テーブルの先行表示枚数フィールド27を参照して、IピクチャのPTS差分を算出する。   In step S224, the playback unit 621 reads the management file 21 based on an instruction from the playback control unit 662. The format conversion unit 510 receives the management file 21 and calculates the PTS difference of the I picture with reference to the preceding display number field 27 of each table.

このPTS差分は、図17に示すSOBU_ENTテーブルのSOBU時間長および先行表示枚数の関係を利用すると、以下の式1により算出できる。   This PTS difference can be calculated by the following equation 1 using the relationship between the SOBU time length and the preceding display number in the SOBU_ENT table shown in FIG.

(式1)
SOBU_ENTテーブル#j(図16)のIピクチャのPTS差分
=SOBU_ENTテーブル#j(図20)のSOBU時間長
−SOBU_ENTテーブル#j(図20)の先行表示枚数
+SOBU_ENTテーブル#(j+1)(図20)の先行表示枚数
(Formula 1)
PTS difference of I picture of SOBU_ENT table #j (FIG. 16) = SOBU time length of SOBU_ENT table #j (FIG. 20) -Previous display number of SOBU_ENT table #j (FIG. 20) + SOBU_ENT table # (j + 1) (FIG. 20) Preceding display number of

次のステップS225において、管理情報生成部642は、各テーブル23のSOBU時間長フィールド25の値を、算出した各PTS差分値に置き換える。これにより、図16のPTS差分フィールド15が生成される。   In the next step S225, the management information generation unit 642 replaces the value of the SOBU time length field 25 of each table 23 with each calculated PTS difference value. Thereby, the PTS difference field 15 of FIG. 16 is generated.

ステップS226において、フォーマット変換部510は、各テーブル23の先行表示枚数フィールド27を削除する。以上の処理により、図20に示す管理ファイル21から、図16に示す管理ファイル11を得ることができる。   In step S226, the format conversion unit 510 deletes the preceding display number field 27 of each table 23. By the above processing, the management file 11 shown in FIG. 16 can be obtained from the management file 21 shown in FIG.

なお、ステップS223において、転送先がメモリカード以外であると判断されたときは、管理ファイル21の先行表示枚数フィールド27を削除するのみで、管理ファイル1が得られる。これは図20の管理ファイル21と図15の管理ファイル1との関係から明らかである。   If it is determined in step S223 that the transfer destination is other than a memory card, the management file 1 is obtained simply by deleting the preceding display number field 27 of the management file 21. This is apparent from the relationship between the management file 21 in FIG. 20 and the management file 1 in FIG.

上述の処理において言及したフィールド以外のフィールドは、特に変換する必要はない。得られた管理ファイルは、特定された記録媒体に転送され、記録される。   Fields other than those mentioned in the above process need not be converted. The obtained management file is transferred to the specified recording medium and recorded.

なお、上述の処理においては、ストリームの転送指示を受けた時に変換処理を実行するとした。しかしレコーダ500は、任意のタイミングで上述の変換処理を実行してもよい。例えば、転送指示を受けていない時点で予め変換処理を行って管理ファイル1および/または管理ファイル11を保持しておき、転送指示を受けたあとにすぐ転送を開始できるようにしていてもよい。また、上述の変換処理においては、ストリームファイルの転送を管理ファイルの変換前に行っているが、管理ファイルの変換後、すなわちステップS226の後にストリームファイルを転送してもよい。   In the above-described processing, the conversion processing is executed when a stream transfer instruction is received. However, the recorder 500 may execute the above-described conversion process at an arbitrary timing. For example, the management file 1 and / or the management file 11 may be stored in advance when the transfer instruction is not received, so that the transfer can be started immediately after the transfer instruction is received. In the above conversion process, the stream file is transferred before the management file is converted. However, the stream file may be transferred after the management file is converted, that is, after step S226.

以上の構成により、本実施形態によるレコーダ500により記録された映像ストリームおよびそのストリームの管理情報を、メモリカード等の他の記録媒体へエクスポートする際に、記録された映像ストリームの全てのSOBUを読み込み、解析して管理情報を変換する必要がないので、高速に変換処理が可能となる。   With the above configuration, when the video stream recorded by the recorder 500 according to the present embodiment and the management information of the stream are exported to another recording medium such as a memory card, all the SOBUs of the recorded video stream are read. Since there is no need to analyze and convert management information, conversion processing can be performed at high speed.

なお、本実施形態の管理ファイル21は、SOBU_ENTテーブルにSOBU時間長フィールド25を含むものとした。しかしそのフィールドに代えて、図15のフィールド15に対応するIピクチャ間のPTS差分フィールドを含んでもよい。PTS差分フィールドを設けたときは、対応するIピクチャデータサイズとPTS差分フィールドとが各SOBU_ENTテーブル23に格納される。これらはいずれも、各SOBUのIピクチャに関する情報である。   Note that the management file 21 of this embodiment includes the SOBU time length field 25 in the SOBU_ENT table. However, instead of this field, a PTS difference field between I pictures corresponding to the field 15 in FIG. 15 may be included. When the PTS difference field is provided, the corresponding I picture data size and the PTS difference field are stored in each SOBU_ENT table 23. Each of these is information regarding the I picture of each SOBU.

PTS差分フィールドを設けたとしても、SOBU時間長を得ることは容易である。すなわち式1の右辺第1項を左辺に移項し、左辺の項を右辺に移項すれば、SOBU時間長を得ることができる。   Even if the PTS difference field is provided, it is easy to obtain the SOBU time length. In other words, the SOBU time length can be obtained by shifting the first term on the right side of Equation 1 to the left side and the term on the left side to the right side.

また、先行表示枚数を記録せず、Iピクチャのデータサイズ、SOBU時間長、SOBUデータサイズ、Iピクチャ間のPTS差分を含んでもよい。それらのフィールドを利用しても、変換後の管理ファイルを容易に得ることができる。   Further, the preceding display number may not be recorded, and the data size of the I picture, the SOBU time length, the SOBU data size, and the PTS difference between the I pictures may be included. Even if these fields are used, the converted management file can be easily obtained.

なお、1394インタフェースを備えた機器との間でインポート/エクスポートを行う場合に、ストリームのみならず、管理ファイル21も転送し、さらに、管理ファイルを所定の形式(例えば管理ファイル1もしくはまたは管理ファイル21の形式)にデータ変換しても良い。ただし、管理ファイルは1394規格の非同期通信モードで伝送する必要があることに留意されたい。   When import / export is performed with a device having a 1394 interface, not only the stream but also the management file 21 is transferred, and the management file is further converted into a predetermined format (for example, the management file 1 or the management file 21). Data format). However, it should be noted that the management file needs to be transmitted in the asynchronous communication mode of the 1394 standard.

(実施形態7)
実施形態6においては、HDDまたは相変化光ディスク上のストリームファイルおよび管理ファイルを、他のHDD、相変化光ディスクまたはメモリカードへエクスポートする処理を説明した。
(Embodiment 7)
In the sixth embodiment, the process of exporting the stream file and management file on the HDD or phase change optical disk to another HDD, phase change optical disk or memory card has been described.

本実施形態においては、ストリームファイルおよび管理ファイルを、HDD、相変化光ディスクまたはメモリカードへインポートする処理を説明する。この処理において利用される管理情報のデータ構造は、実施形態6におけるデータ構造とは異なっている。以下、機器の動作とともにそのような処理およびデータ構造を説明する。なお、本実施形態によるレコーダ500は、実施形態6によるエクスポート処理を行うこともできる。その処理は実施形態6において説明した処理と同じであるため、説明は省略する。   In the present embodiment, a process for importing a stream file and a management file into an HDD, a phase change optical disk, or a memory card will be described. The data structure of management information used in this processing is different from the data structure in the sixth embodiment. Hereinafter, such processing and data structure will be described along with the operation of the device. Note that the recorder 500 according to the present embodiment can also perform the export process according to the sixth embodiment. Since the processing is the same as the processing described in the sixth embodiment, description thereof is omitted.

本実施形態による機器のハードウェアの構成は、レコーダ500(図18および図19)の構成と同じである。よってその説明は省略する。以下においては、レコーダ500を本実施形態による機器として説明する。   The hardware configuration of the device according to the present embodiment is the same as that of the recorder 500 (FIGS. 18 and 19). Therefore, the description is omitted. Hereinafter, the recorder 500 will be described as a device according to the present embodiment.

フォーマット変換部510はメモリカードドライブ部550から記録済みのストリームファイルを読み取り、HDDまたは光ディスクへ書き込む。またさらに、フォーマット変換部510は、メモリカードに書き込まれた管理ファイルを読み取り、フォーマット変換してHDDまたは光ディスクに書き込む。インポートされたストリームファイルと管理情報とは1:1で対応する。   The format conversion unit 510 reads the recorded stream file from the memory card drive unit 550 and writes it to the HDD or the optical disc. Furthermore, the format conversion unit 510 reads the management file written in the memory card, converts the format, and writes it in the HDD or the optical disc. The imported stream file and management information correspond 1: 1.

図24は、本実施形態による管理ファイル31のデータ構造を示す。   FIG. 24 shows the data structure of the management file 31 according to this embodiment.

管理ファイル31のデータ構造が実施形態6の管理ファイル21のデータ構造と相違する点は、図20におけるSOBU_ENTテーブル23のSOBU時間長フィールド25に代えて、「SOBU時間長またはIピクチャ間のPTS差分」フィールド37を有することである。   The data structure of the management file 31 is different from the data structure of the management file 21 of the sixth embodiment in that, instead of the SOBU time length field 25 in the SOBU_ENT table 23 in FIG. ”Field 37.

さらに相違する点は、TMAP_GIテーブル32に、2つのフラグフィールド34および35を設けたことにある。フラグフィールド34には、SOBU_ENTテーブル33内のフィールド37に、SOBU時間長の数値およびPTS差分の数値のいずれが記述されているかを示す切替えフラグが書き込まれる。また、フラグフィールド35には、SOBU_ENTテーブル33に先行表示枚数が記録されているかどうかを示す有効性フラグを記録する点である。各フラグの詳細は後述する。上述の相違点を除く他のフィールド(フィールド36、38等)は、図20に示す同名のフィールドと同じである。   A further difference is that the TMAP_GI table 32 is provided with two flag fields 34 and 35. In the flag field 34, a switching flag indicating which one of the numerical value of the SOBU time length and the numerical value of the PTS difference is written in the field 37 in the SOBU_ENT table 33 is written. The flag field 35 is a point where an validity flag indicating whether or not the preceding display number is recorded in the SOBU_ENT table 33 is recorded. Details of each flag will be described later. Other fields (fields 36, 38, etc.) excluding the above-described differences are the same as the fields having the same names shown in FIG.

セルフエンコード時においては、記録再生部540の管理情報生成部642は、フィールド37にはSOBU時間長の数値を記述する。そして、MPEGエンコーダ670の出力に基づいて先行表示枚数を特定し、その値をフィールド39に設定する。このとき、TMAP_GI32のフィールド34の切替えフラグの値を0とする。あわせてフィールド35の有効性フラグの値を1とする。これにより、フィールド37にはSOBU時間長の数値が記述され、フィールド39には先行表示枚数値が記述されていることが示される。   At the time of self-encoding, the management information generating unit 642 of the recording / reproducing unit 540 describes the numerical value of the SOBU time length in the field 37. Then, the preceding display number is specified based on the output of the MPEG encoder 670, and the value is set in the field 39. At this time, the value of the switching flag in the field 34 of TMAP_GI 32 is set to 0. In addition, the validity flag value in the field 35 is set to 1. As a result, a numerical value of the SOBU time length is described in the field 37, and a preceding display number value is described in the field 39.

図25は、本実施形態のレコーダ500において、メモリカードへのエクスポート時と、メモリカードからのインポート時における、管理ファイルのSOBU_ENTテーブルの各フィールドの対応関係を示す。このうちエクスポート時には、フォーマット変換部510によって、セルフエンコード時の管理ファイル内のSOBU_ENTテーブル33は、SOBU_ENTテーブル13に変換される。メモリカード上の管理ファイルのIピクチャ間のPTS差分フィールド15の値は、SOBU_ENTテーブル33のSOBU時間長フィールド37および先行表示枚数フィールド39の両方の値を利用して生成される。   FIG. 25 shows the correspondence between the fields of the SOBU_ENT table of the management file when exporting to the memory card and importing from the memory card in the recorder 500 of this embodiment. Among these, at the time of export, the format conversion unit 510 converts the SOBU_ENT table 33 in the management file at the time of self-encoding into the SOBU_ENT table 13. The value of the PTS difference field 15 between I pictures of the management file on the memory card is generated by using the values of both the SOBU time length field 37 and the preceding display number field 39 of the SOBU_ENT table 33.

またインポート時には、フォーマット変換部510は、メモリカード上の管理ファイル内のSOBU_ENTテーブル13を、SOBU_ENTテーブル43に変換する。メモリカード上のPTS差分フィールド15の値は、SOBU時間長またはIピクチャ間のPTS差分フィールド44へコピーされる。ただしこのとき、SOBU時間長/PTS差分の切替えフラグ34(図24)は、PTS差分値が記述されていることを示す値1が選択されて記述される。そして、先行表示枚数の有効性フラグ35の値は、無効であること示す値0が選択されて記述される。   At the time of import, the format conversion unit 510 converts the SOBU_ENT table 13 in the management file on the memory card into the SOBU_ENT table 43. The value of the PTS difference field 15 on the memory card is copied to the PTS difference field 44 between the SOBU time length or I picture. However, at this time, the SOBU time length / PTS difference switching flag 34 (FIG. 24) is described by selecting the value 1 indicating that the PTS difference value is described. As the value of the validity flag 35 of the preceding display number, the value 0 indicating invalid is selected and described.

本実施形態によるレコーダ500は、HDD部または光ディスク部に記録されたストリームファイルを再生する場合に、そのストリームに対する管理ファイルを参照して、再生開始点を決定できる。例えば、ストリームの先頭から10秒目の開始点から再生を開始する場合には、ストリーム中の再生開始点を特定する必要がある。管理ファイルには、SOBU時間長、または2つの隣接するSOBUの先頭のIピクチャ間のPTS差分が格納されている。再生制御部662はSOBU時間長、とPTS差分のうち、どちらの値が記述されていても、再生開始点となるトランスポートパケットを特定できる。詳細は実施形態6に関連して説明したとおりである。   When the recorder 500 according to the present embodiment reproduces a stream file recorded on the HDD unit or the optical disc unit, it can determine the reproduction start point with reference to the management file for the stream. For example, when starting playback from the start point of the 10th second from the beginning of the stream, it is necessary to specify the playback start point in the stream. The management file stores the SOBU time length or the PTS difference between the leading I pictures of two adjacent SOBUs. The playback control unit 662 can specify the transport packet that is the playback start point regardless of which value is described between the SOBU time length and the PTS difference. Details are as described in connection with the sixth embodiment.

以上の構成により、本実施形態のレコーダは、外部からトランスポートストリームファイルおよびその管理ファイルをインポートする際に、ストリームを解析することなく管理ファイルを生成できる。さらに、外部へトランスポートストリームのファイルおよびその管理ファイルエクスポートする際にも、ストリームを解析することなく管理ファイルを生成できる。   With the above configuration, the recorder of this embodiment can generate a management file without analyzing a stream when importing a transport stream file and its management file from the outside. Furthermore, when exporting a transport stream file and its management file to the outside, a management file can be generated without analyzing the stream.

これにより、メモリカードのような別の種類の記録媒体との間でインポート/エクスポートが容易に実現できる。   Thus, import / export can be easily realized with another type of recording medium such as a memory card.

なお、本実施形態ではセルフエンコード時にSOBU時間長および先行表示枚数を記録するとした。しかし、PTS差分と先行表示枚数の方を選択して記録してもよい。このとき、例えばエクスポート先の機器に対応する管理ファイルがSOBU時間長を採用するデータ構造を有していても、以下の式2により、容易にSOBU時間長を算出できる。   In this embodiment, it is assumed that the SOBU time length and the preceding display number are recorded during self-encoding. However, the PTS difference and the preceding display number may be selected and recorded. At this time, for example, even if the management file corresponding to the export destination device has a data structure that adopts the SOBU time length, the SOBU time length can be easily calculated by the following equation 2.

(式2)
他の管理ファイルのSOBU_ENTテーブル#jのSOBU時間長=
セルフエンコード時のSOBU_ENTテーブル#jのPTS差分
+セルフエンコード時のSOBU_ENTテーブル#jの先行表示枚数
―セルフエンコード時のSOBU_ENTテーブル#(j+1)の先行表示枚数
(Formula 2)
SOBU time length of SOBU_ENT table #j of other management file =
PTS difference of SOBU_ENT table #j at the time of self-encoding + Number of preceding display of SOBU_ENT table #j at the time of self-encoding-Number of preceding display of SOBU_ENT table # (j + 1) at the time of self-encoding

なお、本実施形態において、管理情報はSOBU時間長、またはPTS差分のいずれかを選択して値を設定するとした。しかし両者のフィールドをSOBU_ENTテーブル毎に設けてもよい。   In the present embodiment, the management information is set by selecting either the SOBU time length or the PTS difference. However, both fields may be provided for each SOBU_ENT table.

本実施形態においては、メモリカードはIピクチャ間のPTS差分を含む管理情報が記録されるとした。しかし、メモリカードの種類に応じて異なるデータ構造が採用されていてもよい。例えば図26は、本実施形態による、管理ファイルのSOBU_ENTテーブルの各フィールドの第2の対応関係を示す。図25の例と同様に、メモリカード#1の管理ファイルのテーブル13には、Iピクチャ間のPTS差分フィールドが設けられる。一方、メモリカード#2のテーブル53には、SOBU時間長フィールド54が設けられる。   In this embodiment, it is assumed that management information including a PTS difference between I pictures is recorded in the memory card. However, different data structures may be employed depending on the type of memory card. For example, FIG. 26 shows the second correspondence of each field of the SOBU_ENT table of the management file according to this embodiment. Similar to the example of FIG. 25, the management file table 13 of the memory card # 1 is provided with a PTS difference field between I pictures. On the other hand, the SOBU time length field 54 is provided in the table 53 of the memory card # 2.

レコーダ500は、図26のメモリカード#1にエクスポートしたストリームファイルおよび管理ファイルを、再びレコーダ500にインポートし、その後メモリカード#2へエクスポートすることもできる。最初にエクスポートする前の管理ファイルに含まれていた先行表示枚数の情報が失われるため、メモリカード#2へのエクスポート後には、管理ファイルのテーブル53は先行表示枚数の情報が含まれない。   The recorder 500 can also import the stream file and management file exported to the memory card # 1 in FIG. 26 into the recorder 500 again, and then export them to the memory card # 2. Since the information on the preceding display number included in the management file before the first export is lost, the management file table 53 does not include the information on the preceding display number after the export to the memory card # 2.

仮にメモリカード#2においても先行表示枚数の情報を記述するときは、フォーマット変換部510がトランスポートストリームを解析して、管理ファイルのSOBU時間長を検出する必要がある。または、メモリカード#1のストリームファイルを一旦ハードディスクに記録した後で、次にハードディスク上のトランスポートストリームを復号して再度圧縮符号化してもよい。この処理はセルフエンコード処理と同等であるため、レコーダ500は管理ファイルに記述すべき管理情報を生成することができる。その後、メモリカード#2へそのトランスポートストリームおよび管理情報を保存してもよい。このように再度圧縮および符号化すると同時に、管理ファイルの各フィールドを新規に生成して、メモリカード#2の管理データとして保存する。   If the information of the preceding display number is described also in the memory card # 2, the format conversion unit 510 needs to analyze the transport stream and detect the SOBU time length of the management file. Alternatively, after the stream file of the memory card # 1 is once recorded on the hard disk, the transport stream on the hard disk may be decoded and compressed and encoded again. Since this process is equivalent to the self-encoding process, the recorder 500 can generate management information to be described in the management file. Thereafter, the transport stream and management information may be stored in the memory card # 2. In this way, simultaneously with compression and encoding again, each field of the management file is newly generated and stored as management data of the memory card # 2.

また、レコーダ500のハードディスク520を介して、ストリームファイルおよび管理ファイルをメモリカード#2からメモリカード#1へダビングするときにも、上述の処理と同様の解析処理または再度圧縮符号化が必要となる。メモリカード#2からレコーダ500にインポートされたときには、メモリカード#2には先行表示枚数フィールドは存在しない。よって、インポート後の管理ファイルにおいては、先行表示枚数フィールド65が無効とされるように、有効性フラグ35の値は、無効であること示す値0が選択されて記述される。   Also, when the stream file and the management file are dubbed from the memory card # 2 to the memory card # 1 via the hard disk 520 of the recorder 500, analysis processing similar to the above processing or compression coding is required again. . When imported from the memory card # 2 to the recorder 500, the memory card # 2 has no preceding display number field. Therefore, in the management file after the import, the value 0 of the validity flag 35 is selected and described so that the preceding display number field 65 is invalidated.

実施形態6および7においては、セルフエンコード時にMPEGエンコーダはSOBUのデータ形式でデータを生成するとした。しかし実施形態1において言及したVOBUのデータ形式であってもよい。すなわち、VOBUのように、先頭のパケットがPAT_TSP、PMT_TSPから始まってもよい。   In the sixth and seventh embodiments, the MPEG encoder generates data in the SOBU data format during self-encoding. However, the VOBU data format mentioned in the first embodiment may be used. That is, like VOBU, the leading packet may start from PAT_TSP and PMT_TSP.

なお、実施形態6および7において、MPEGシステムストリームはトランスポートストリームであるとしたが、プログラムストリームであってもよい。この時、IピクチャのデータサイズフィールドやSOBUのデータサイズは、トランスポートパケット数ではなく、パック数に読み替える必要がある。   In the sixth and seventh embodiments, the MPEG system stream is a transport stream, but may be a program stream. At this time, the data size field of the I picture and the data size of the SOBU need to be read as the number of packs, not the number of transport packets.

なお、実施形態6および7において、MPEGシステムストリームはトランスポートストリームであるとしたが、QuickTimeストリーム、ISO Base Mediaファイルストリーム、MP4ファイルストリームであってもよい。またはAVCファイルストリームのストリーム部分であってもよい。ただし、後者の場合、管理ファイルの各フィールドはファイルヘッダ内のそれぞれのデータフィールドにマッピングされて格納される。   In Embodiments 6 and 7, the MPEG system stream is a transport stream, but it may be a QuickTime stream, an ISO Base Media file stream, or an MP4 file stream. Alternatively, it may be a stream portion of an AVC file stream. However, in the latter case, each field of the management file is mapped and stored in each data field in the file header.

なお、実施形態6および7において、SOBUデータサイズは、各SOBUのストリーム先頭を零としたアドレス値であっても良い。   In the sixth and seventh embodiments, the SOBU data size may be an address value with the stream head of each SOBU set to zero.

本実施形態6および7においては、フォーマット変換部は管理情報ファイルのみデータ変換して、ストリームファイルはデータ変換しないとした。しかし必要に応じてストリームファイルをデータ変換してもよい。   In the sixth and seventh embodiments, the format conversion unit converts only the management information file and does not convert the stream file. However, the stream file may be converted as necessary.

本発明の本実施形態6および7においては、ストリームおよびストリームの管理ファイルは、はじめに相変化光ディスクまたはHDD上に記録されるとした。しかし、はじめに半導体メモリに記録されてもよい。このときは、レコーダは、ストリームを相変化光ディスクまたはメモリにコピーした後で、さらに管理ファイルのデータ変換を行う。   In the sixth and seventh embodiments of the present invention, the stream and the stream management file are first recorded on the phase change optical disk or HDD. However, it may be recorded in the semiconductor memory first. At this time, the recorder further performs data conversion of the management file after copying the stream to the phase change optical disk or the memory.

なお、実施形態6および7において、ストリーム中に音声データが含まれるものとしたが、存在しなくてもよい。また、ストリームの管理情報は実施形態2で示したPAT/PMTポインタ、TSP到着時間、および時間長有効フラグフィールドを含まないとしたが、必要に応じて含んでもよい。   In the sixth and seventh embodiments, the audio data is included in the stream, but may not be present. The stream management information does not include the PAT / PMT pointer, the TSP arrival time, and the time length valid flag fields described in the second embodiment, but may include them as necessary.

なお、実施形態6および7において、TMAP_GIには、先頭SOBUのIフレームのPTS絶対値が記録されても良い。これにより、PTS差分と合わせて、PTSの絶対値を導出できる。このPTS絶対値を使うことにより、MPEGデコーダの表示開始箇所を細かく制御できる。   In the sixth and seventh embodiments, the PTS absolute value of the I frame of the first SOBU may be recorded in TMAP_GI. Thereby, the absolute value of PTS can be derived together with the PTS difference. By using this PTS absolute value, the display start location of the MPEG decoder can be finely controlled.

実施形態6および7において、SOBU_ENT内の各データフィールドは、それぞれが独立したテーブルとして設けられてもよい。独立した各テーブルは、例えば独立した管理ファイルとして存在し、管理情報を構成する。   In the sixth and seventh embodiments, each data field in SOBU_ENT may be provided as an independent table. Each independent table exists, for example, as an independent management file, and constitutes management information.

また、例えば先行表示枚数のフィールドのみを別のテーブルとして設けてもよい。この例によれば、実施形態6および7による管理ファイルのデータ構造構成は管理ファイル11のデータ構造と近似するため、管理ファイル11との親和性が向上する。   Further, for example, only the field of the preceding display number may be provided as a separate table. According to this example, since the data structure configuration of the management file according to the sixth and seventh embodiments approximates the data structure of the management file 11, the affinity with the management file 11 is improved.

なお、上述の実施形態において、ストリームおよびその管理情報はレコーダの内蔵ドライブを介して記録媒体へ記録されるとした。しかし、レコーダとネットワークを介して接続されたドライブ装置によって、記録媒体に記録されてもよい。   In the above-described embodiment, the stream and its management information are recorded on the recording medium via the built-in drive of the recorder. However, it may be recorded on a recording medium by a drive device connected to the recorder via a network.

上述の実施形態においては、光ディスクファイルシステムはUDFであるものとしたが、NTFS、FAT、UFS(Unix(登録商標) File System)等であってもよい。また、デジタルインタフェースは1394インタフェースを例示した。しかし他にUSB2.0やHDMI等のデジタルインタフェースであってもよい。   In the above-described embodiment, the optical disk file system is UDF, but may be NTFS, FAT, UFS (Unix (registered trademark) File System), or the like. The digital interface is exemplified by a 1394 interface. However, other digital interfaces such as USB 2.0 and HDMI may be used.

上述の実施形態においては、MPEG−2ビデオ規格に従ってピクチャは1枚のプログレッシブ映像フレーム、トップフィールドおよびボトムフィールドの2枚のインターレース映像の組、または1枚のインターレース映像を指す。このピクチャは例えばMPEG−4ビデオ規格のビデオオブジェクトプレーン(VOP)に対応する。   In the above-described embodiment, a picture refers to one progressive video frame, a set of two interlaced videos of top field and bottom field, or one interlaced video according to the MPEG-2 video standard. This picture corresponds to a video object plane (VOP) of the MPEG-4 video standard, for example.

また、記憶媒体は相変化光ディスクであるとして説明しているが、特にこれに限定するものではない。他には、例えばDVD−RAM、MO、DVD−R、DVD−RW、DVD+RW、CD−R、CD−RW等の光ディスクやハードディスク等のディスク形状を有する記録媒体やメモリカードのようなディスク形状を有さない記録媒体であってもよい。また、フラッシュメモリ、MRAM、FeRAM等の半導体メモリであってもよい。また、読み書きヘッドはピックアップとしたが、記録媒体がMOであればピックアップ及び磁気ヘッドとなり、またハードディスクであれば磁気ヘッドとなる。   Further, although the storage medium is described as being a phase change optical disk, the present invention is not particularly limited to this. In addition, for example, a recording medium having a disk shape such as an optical disk such as DVD-RAM, MO, DVD-R, DVD-RW, DVD + RW, CD-R, CD-RW, or hard disk, or a disk shape such as a memory card. The recording medium which does not have may be sufficient. Further, it may be a semiconductor memory such as flash memory, MRAM, or FeRAM. The read / write head is a pickup, but if the recording medium is an MO, it becomes a pickup and a magnetic head, and if it is a hard disk, it becomes a magnetic head.

なお、図19等の各機能ブロックは典型的には複数の1以上の集積回路(Large Scale Integrated Circuit;LSI)のチップとして実現される。これらは個別に1チップ化されてもよいし、一部または全てを含むように1チップ化されてもよい。例えば、エンコーダ670および管理情報生成部642を1チップ化し、記録再生部540に実装してもよい。このチップは、HDDドライブ部520、光ディスクドライブ部530および/またはメモリカードドライブ部550を介して、データストリームおよび管理情報の各ファイルを記録媒体に書き込むことができる。   Each functional block in FIG. 19 and the like is typically realized as a plurality of one or more integrated circuit (Large Integrated Circuits; LSI) chips. These may be individually made into one chip, or may be made into one chip so as to include a part or all of them. For example, the encoder 670 and the management information generating unit 642 may be integrated into one chip and mounted on the recording / reproducing unit 540. This chip can write data stream and management information files to a recording medium via the HDD drive unit 520, the optical disk drive unit 530, and / or the memory card drive unit 550.

なお、エンコーダ670およびデコーダ671を1チップ化し、管理情報生成部642を他のチップとして実現してもよい。このとき管理情報生成部642は、上述した管理情報生成部が有する機能を実現するコンピュータプログラムを実行する専用プロセッサまたは汎用プロセッサ等として実装される。   The encoder 670 and the decoder 671 may be integrated into one chip, and the management information generation unit 642 may be realized as another chip. At this time, the management information generation unit 642 is mounted as a dedicated processor or a general-purpose processor that executes a computer program that implements the functions of the management information generation unit described above.

本実施形態において、論理ブロックは32Kバイト、セクタは2Kバイトとしているが、論理ブロックサイズがセクタサイズの整数倍であれば特に限定されるものではない。例えば論理ブロックが16Kバイト、セクタが2Kバイトであってもよい。また、論理ブロック、セクタ共に2Kバイトであってもよい。   In this embodiment, the logical block is 32 Kbytes and the sector is 2 Kbytes, but there is no particular limitation as long as the logical block size is an integral multiple of the sector size. For example, the logical block may be 16K bytes and the sector may be 2K bytes. Further, both the logical block and the sector may be 2K bytes.

また、本実施形態において、映像圧縮符号及び音声圧縮符号は、それぞれMPEG2映像圧縮符号及びAAC圧縮符号であるものとして説明した。しかし、MPEG1映像圧縮符号、MPEG4映像圧縮符号等、MPEG4AVC符号(H.264符号)や、MPEG−Audio圧縮符号、Dolby AC3圧縮符号、またはTwin−VQ圧縮符号等であってもよい。   In the present embodiment, the video compression code and the audio compression code have been described as the MPEG2 video compression code and the AAC compression code, respectively. However, MPEG4 AVC code (H.264 code) such as MPEG1 video compression code, MPEG4 video compression code, MPEG-Audio compression code, Dolby AC3 compression code, or Twin-VQ compression code may be used.

なお、図25および図26の例では、管理情報生成部は記録媒体の種類に応じてSOBU_ENTテーブルの各項目の情報を生成していた。しかし、管理情報生成部は記録媒体の記録フォーマットのみに応じて各情報を生成してもよい。または、記録媒体の種類および記録フォーマットに応じて各情報を生成してもよい。   In the example of FIGS. 25 and 26, the management information generation unit generates information of each item of the SOBU_ENT table according to the type of the recording medium. However, the management information generation unit may generate each information according to only the recording format of the recording medium. Alternatively, each piece of information may be generated according to the type of recording medium and the recording format.

上述の実施形態においては、トランスポートストリームの送信タイミングは出力タイミング生成部によって決定されるとした。しかし、記録時にシステムエンコード部104が出力するトランスポートパケットの送信タイミングをトランスポートパケットと同時に記録しておき、この送信タイミング情報を1394出力時に利用してもよい。この場合、例えばトランスポートパケットの直前に4バイトの送信タイミング情報を記録し、合計192バイトのパケット形式で記録しておくことにより実現できる。ただしこの場合、SOBUデータ長として192バイトのパケット数でカウントする必要がある。また、複数の送信タイミング情報を送信タイミング情報格納用の専用のトランスポートパケットに格納し、そのトランスポートパケットの直後に対応するトランスポートパケットを記録するようにしてもよい。この場合、パケットのデータサイズは188バイトのままとなる。   In the above-described embodiment, the transmission timing of the transport stream is determined by the output timing generation unit. However, the transmission timing of the transport packet output from the system encoding unit 104 at the time of recording may be recorded at the same time as the transport packet, and this transmission timing information may be used at the time of 1394 output. In this case, for example, it can be realized by recording transmission timing information of 4 bytes immediately before the transport packet and recording it in a packet format of a total of 192 bytes. However, in this case, it is necessary to count the number of packets of 192 bytes as the SOBU data length. Further, a plurality of transmission timing information may be stored in a dedicated transport packet for storing transmission timing information, and the corresponding transport packet may be recorded immediately after the transport packet. In this case, the data size of the packet remains 188 bytes.

上述の実施形態においては、ストリームの管理情報は、連続したストリームを前提として説明したが、ストリームは所定のパケットを境にPCR、PTS、または送信タイミング情報等のタイムスタンプが不連続となってもよい。ただし、この場合、管理情報はストリームの連続している範囲毎に、分けて管理して記録すればよい。   In the above-described embodiment, the management information of the stream has been described on the assumption that the stream is a continuous stream. However, even if the time stamp such as PCR, PTS, or transmission timing information becomes discontinuous with a predetermined packet as a boundary, Good. However, in this case, management information may be managed and recorded separately for each continuous range of streams.

本発明によるレコーダ(データ処理装置)は、図22および図23に示す処理手順を規定したコンピュータプログラムに基づいて動作する。データ処理装置のコンピュータ(例えばCPU)は、そのようなコンピュータプログラムを実行することによって装置内の各構成要素を動作させ、上述した処理を実現することができる。コンピュータプログラムはCD−ROM等の記録媒体に記録されて製品として市場に流通され、またはインターネット等の電器通信回線を通じて伝送される。これにより、コンピュータシステムを、上述のデータ処理装置と同等の機能を有する機器として動作させることができる。   The recorder (data processing apparatus) according to the present invention operates based on a computer program that defines the processing procedure shown in FIGS. A computer (for example, CPU) of the data processing apparatus can execute the above-described processing by operating each component in the apparatus by executing such a computer program. The computer program is recorded on a recording medium such as a CD-ROM and distributed as a product to the market or transmitted through an electric communication line such as the Internet. As a result, the computer system can be operated as a device having a function equivalent to that of the above-described data processing apparatus.

以上のように本発明によれば、外部の記録媒体上に記録された映像ストリームと管理情報とをインポートする処理や、外部の記録媒体に対してストリームと管理情報とを高速にエクスポートする処理を実現可能なデータ処理装置を得ることができる。   As described above, according to the present invention, processing for importing a video stream and management information recorded on an external recording medium and processing for high-speed export of the stream and management information to an external recording medium are performed. A feasible data processing apparatus can be obtained.

記録ファイルのデータ構造を示す図である。It is a figure which shows the data structure of a recording file. (a)〜(e)は、種々のトランスポートパケットのデータ構造を示す図である。(A)-(e) is a figure which shows the data structure of various transport packets. UDFファイルシステム上で管理されている光ディスク上のデータの例を示す図である。It is a figure which shows the example of the data on the optical disk managed on the UDF file system. VOBU及びトランスポートパケットと、ビデオ・エレメンタリ・ストリーム及びオーディオ・エレメンタリ・ストリームとの関係を示す図である。It is a figure which shows the relationship between VOBU and a transport packet, and a video elementary stream and an audio elementary stream. 実施形態1による光ディスクレコーダ200のブロック構成図である。1 is a block configuration diagram of an optical disc recorder 200 according to Embodiment 1. FIG. レコーダ200によって記録された記録ファイルのデータ構造を示す図である。It is a figure which shows the data structure of the recording file recorded by the recorder. 実施形態2による光ディスクレコーダ300のブロック構成図である。6 is a block configuration diagram of an optical disc recorder 300 according to Embodiment 2. FIG. レコーダ300によって記録された記録ファイルのデータ構造図である。3 is a data structure diagram of a recording file recorded by a recorder 300. FIG. レコーダ300によって記録された管理ファイルのデータ構造図である。4 is a data structure diagram of a management file recorded by a recorder 300. FIG. 連続するSOBUグループごとに設けられる管理データのデータ構造図である。It is a data structure figure of the management data provided for every continuous SOBU group. 管理ファイルの他の例によるデータ構造図である。It is a data structure figure by the other example of a management file. 実施形態3による音声ファイルのデータ構造図である。It is a data structure figure of the audio | voice file by Embodiment 3. 実施形態4によるプレーヤ400のブロック構成図である。FIG. 6 is a block configuration diagram of a player 400 according to a fourth embodiment. 実施形態5による管理ファイルのデータ構造図である。FIG. 10 is a data structure diagram of a management file according to a fifth embodiment. 管理ファイルのデータ構造の第1の例を示す図である。It is a figure which shows the 1st example of the data structure of a management file. 管理ファイルのデータ構造の第2の例を示す図である。It is a figure which shows the 2nd example of the data structure of a management file. SOBU、SOBU先頭のIピクチャのPTS差分、およびSOBU時間長の関係を示す図である。It is a figure which shows the relationship between PTS difference of SOBU, SOBU head I picture, and SOBU time length. 実施形態6によるHDD内蔵光ディスクレコーダ500の主要なブロック構成図である。FIG. 10 is a main block configuration diagram of an HDD built-in optical disc recorder 500 according to Embodiment 6. 実施形態6による記録再生部540の構成を示す図である。FIG. 10 is a diagram illustrating a configuration of a recording / reproducing unit 540 according to a sixth embodiment. 実施形態6による管理ファイルのデータ構造を示す図である。It is a figure which shows the data structure of the management file by Embodiment 6. 実施形態6による管理ファイルに記録される先行表示枚数の定義を示す図である。It is a figure which shows the definition of the prior | preceding display number recorded on the management file by Embodiment 6. FIG. レコーダ500が管理ファイル21を生成する処理の手順を示すフローチャートである。5 is a flowchart showing a procedure of processing for generating a management file 21 by a recorder 500. 管理ファイルの変換処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the conversion process of a management file. 実施形態7による管理ファイルのデータ構造を示す図である。It is a figure which shows the data structure of the management file by Embodiment 7. メモリカードへのエクスポート時とメモリカードからのインポート時における、管理ファイルのSOBU_ENTテーブルにおける各フィールドの対応関係を示す図である。It is a figure which shows the correspondence of each field in the SOBU_ENT table of a management file at the time of the export to a memory card, and the import from a memory card. 種々の記録媒体のSOBU_ENTテーブルに関する、各フィールドの対応関係を示す図である。It is a figure which shows the correspondence of each field regarding the SOBU_ENT table of various recording media.

符号の説明Explanation of symbols

500 HDD内蔵光ディスクレコーダ
510 フォーマット変換部
520 HDD部
530 光ディスクドライブ部
540 記録再生部
550 メモリカードドライブ部
642 管理情報生成部
661 記録制御部
670 MPEGエンコーダ
671 MPEGデコーダ



500 HDD built-in optical disk recorder 510 format conversion unit 520 HDD unit 530 optical disk drive unit 540 recording / playback unit 550 memory card drive unit 642 management information generation unit 661 recording control unit 670 MPEG encoder 671 MPEG decoder



Claims (12)

映像信号に符号化処理を行ってデータストリームを生成するエンコーダと、
前記データストリームから映像を再生するための管理情報を生成する管理情報生成部と、
前記データストリームおよび前記管理情報を記録媒体に書き込むドライブと
を備えたデータ処理装置であって、
前記エンコーダは、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成し、配列して、前記データストリームを生成し、
前記管理情報生成部は、前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成し、さらに、前記再生単位内のピクチャの再生時間長に関する時間長情報を生成して、生成された各情報を管理情報として前記再生単位ごとの1以上のテーブルに格納する、データ処理装置。
An encoder that encodes a video signal to generate a data stream;
A management information generating unit for generating management information for reproducing video from the data stream;
A data processing apparatus comprising: a drive for writing the data stream and the management information to a recording medium;
The encoder generates a plurality of reproduction units including data of a reference picture that can be decoded independently, data of one or more reference pictures that need to be decoded from the reference picture, and time information indicating a reproduction time of each picture. Sequence to generate the data stream;
The management information generation unit, according to the type and recording format of the recording medium, reference picture information in which a reproduction time of a reference picture recorded first in each reproduction unit is associated with a recording position of the reference picture; Generating one piece of reproduction unit information for associating the reproduction time length of the reproduction unit with the recording position of the reference picture, and further generating and generating time length information related to the reproduction time length of the picture in the reproduction unit A data processing apparatus for storing each piece of information as management information in one or more tables for each reproduction unit.
前記符号化処理に起因して、各ピクチャのデータが配列されている順序は、各ピクチャが表示される順序と相違しており、
前記エンコーダは、前記再生単位中のデータの配列に関して最初の基準ピクチャよりも後に配列された1以上の参照ピクチャであって、前記最初の基準ピクチャよりも先に表示される1以上の参照ピクチャを特定する情報を出力し、
前記管理情報生成部は、特定された前記1以上の参照ピクチャの再生時間長に関する時間長情報を生成し、前記再生単位ごとの1以上のテーブルにさらに格納する、請求項1に記載のデータ処理装置。
Due to the encoding process, the order in which the data of each picture is arranged is different from the order in which each picture is displayed,
The encoder includes one or more reference pictures arranged after the first reference picture with respect to the arrangement of data in the reproduction unit, wherein the one or more reference pictures displayed before the first reference picture are displayed. Output information to identify,
2. The data processing according to claim 1, wherein the management information generation unit generates time length information related to the playback time length of the identified one or more reference pictures, and further stores the time length information in one or more tables for each playback unit. apparatus.
前記管理情報生成部は、生成された前記基準ピクチャ情報および前記再生単位情報の一方を特定する第1フラグ、および、前記時間長情報が含まれていることを示す第2フラグを生成し、前記再生単位ごとの1以上のテーブルにさらに格納する、請求項1に記載のデータ処理装置。   The management information generation unit generates a first flag for specifying one of the generated reference picture information and the reproduction unit information, and a second flag indicating that the time length information is included, The data processing apparatus according to claim 1, further storing in one or more tables for each reproduction unit. 前記管理情報の形式を変換する変換部をさらに備え、
前記管理情報生成部が前記基準ピクチャ情報を生成したときにおいて、前記変換部は、前記基準ピクチャ情報および前記時間長情報に基づいて前記再生単位情報をさらに生成する、請求項1に記載のデータ処理装置。
A conversion unit for converting the format of the management information;
The data processing according to claim 1, wherein when the management information generation unit generates the reference picture information, the conversion unit further generates the reproduction unit information based on the reference picture information and the time length information. apparatus.
前記変換部は、生成した前記再生単位情報を前記基準ピクチャ情報に置き換えて、新たな管理情報を生成する、請求項4に記載のデータ処理装置。   The data processing apparatus according to claim 4, wherein the conversion unit generates new management information by replacing the generated reproduction unit information with the reference picture information. 外部機器との間でデータ通信を行うためのインタフェース部をさらに備え、
前記インタフェース部は、前記新たな管理情報および前記データストリームを前記外部機器に出力する、請求項5に記載のデータ処理装置。
It further includes an interface unit for performing data communication with an external device,
The data processing apparatus according to claim 5, wherein the interface unit outputs the new management information and the data stream to the external device.
前記管理情報の形式を変換する変換部をさらに備え、
前記管理情報生成部が前記再生単位情報を生成したときにおいて、前記変換部は、前記再生単位情報および前記時間長情報に基づいて前記基準ピクチャ情報をさらに生成する、請求項1に記載のデータ処理装置。
A conversion unit for converting the format of the management information;
The data processing according to claim 1, wherein when the management information generation unit generates the reproduction unit information, the conversion unit further generates the reference picture information based on the reproduction unit information and the time length information. apparatus.
前記変換部は、生成した前記基準ピクチャ情報を前記再生単位情報に置き換えて、新たな管理情報を生成する、請求項7に記載のデータ処理装置。   The data processing apparatus according to claim 7, wherein the conversion unit generates new management information by replacing the generated reference picture information with the reproduction unit information. 外部機器との間でデータ通信を行うためのインタフェース部をさらに備え、
前記インタフェース部は、前記新たな管理情報および前記データストリームを前記外部機器に出力する、請求項8に記載のデータ処理装置。
It further includes an interface unit for performing data communication with an external device,
The data processing apparatus according to claim 8, wherein the interface unit outputs the new management information and the data stream to the external device.
映像のデータストリーム、および、前記データストリームから前記映像を再生するための管理情報を記録媒体に書き込むためのデータ処理方法であって、
映像信号に符号化処理を行って、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成するステップと、
複数の前記再生単位を配列してデータストリームを生成するステップと、
前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成するステップと、
前記再生単位内のピクチャの再生時間長に関する時間長情報を生成するステップと、
生成された前記基準ピクチャ情報および前記再生単位情報の一方、および前記時間長情報を、管理情報として再生単位ごとの1以上のテーブルに格納するステップと、
前記データストリームおよび前記管理情報を前記記録媒体に書き込むステップと
を包含する、データ処理方法。
A data processing method for writing a video data stream, and management information for reproducing the video from the data stream to a recording medium,
Data of a reference picture that can be decoded independently by performing an encoding process on a video signal, data of one or more reference pictures that need to be decoded from the reference picture, and time information that indicates the reproduction time of each picture Generating multiple playback units;
Arranging a plurality of playback units to generate a data stream;
In accordance with the type and recording format of the recording medium, reference picture information in which the reproduction time of the reference picture that is first recorded in each reproduction unit is associated with the recording position of the reference picture, and reproduction of the reproduction unit Generating one piece of reproduction unit information for associating a time length with a recording position of the reference picture;
Generating time length information relating to a playback time length of a picture in the playback unit;
Storing one of the generated reference picture information and the reproduction unit information, and the time length information as management information in one or more tables for each reproduction unit;
A data processing method comprising: writing the data stream and the management information to the recording medium.
映像信号に符号化処理を行ってデータストリームを生成するエンコーダと、
前記データストリームから映像を再生するための管理情報を生成する管理情報生成部と
を備え、ドライブに指示して前記データストリームおよび前記管理情報を記録媒体に書き込ませる回路チップであって、
前記エンコーダは、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成し、配列して、前記データストリームを生成し、
前記管理情報生成部は、前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成し、さらに、前記再生単位内のピクチャの再生時間長に関する時間長情報を生成して、管理情報として前記再生単位ごとの1以上のテーブルに格納する、回路チップ。
An encoder that encodes a video signal to generate a data stream;
A management information generating unit that generates management information for reproducing video from the data stream, and instructing a drive to write the data stream and the management information to a recording medium,
The encoder generates a plurality of reproduction units including data of a reference picture that can be decoded independently, data of one or more reference pictures that need to be decoded from the reference picture, and time information indicating a reproduction time of each picture. Sequence to generate the data stream;
The management information generation unit, according to the type and recording format of the recording medium, reference picture information in which a reproduction time of a reference picture recorded first in each reproduction unit is associated with a recording position of the reference picture; And generating one piece of reproduction unit information for associating the reproduction time length of the reproduction unit with the recording position of the reference picture, and further generating and managing time length information related to the reproduction time length of the picture in the reproduction unit A circuit chip that stores information in one or more tables for each reproduction unit.
映像のデータストリーム、および、前記データストリームから前記映像を再生するための管理情報を生成するために用いられる、コンピュータにおいて実行可能なコンピュータプログラムであって、
前記コンピュータプログラムは、前記コンピュータに、
映像信号に符号化処理を行って、単独で復号化が可能な基準ピクチャのデータ、前記基準ピクチャからの復号化を要する1以上の参照ピクチャのデータおよび各ピクチャの再生時刻を示す時刻情報を含む再生単位を複数生成するステップと、
複数の前記再生単位を配列してデータストリームを生成するステップと、
前記記録媒体の種類および記録フォーマットに応じて、各再生単位中で最初に記録される基準ピクチャの再生時刻と前記基準ピクチャの記録位置とを対応付けた基準ピクチャ情報、および、前記再生単位の再生時間長と前記基準ピクチャの記録位置とを対応付ける再生単位情報の一方を生成するステップと、
前記再生単位内のピクチャの再生時間長に関する時間長情報を生成するステップと、
生成された前記基準ピクチャ情報および前記再生単位情報の一方、および前記時間長情報を、管理情報として再生単位ごとの1以上のテーブルに格納するステップと、
前記データストリームおよび前記管理情報を前記記録媒体に書き込むステップと
を実行させる、コンピュータプログラム。

A computer-executable computer program used to generate a video data stream and management information for reproducing the video from the data stream,
The computer program is stored in the computer.
Data of a reference picture that can be decoded independently by performing an encoding process on a video signal, data of one or more reference pictures that need to be decoded from the reference picture, and time information that indicates the reproduction time of each picture Generating multiple playback units;
Arranging a plurality of playback units to generate a data stream;
In accordance with the type and recording format of the recording medium, reference picture information in which the reproduction time of the reference picture that is first recorded in each reproduction unit is associated with the recording position of the reference picture, and reproduction of the reproduction unit Generating one piece of reproduction unit information for associating a time length with a recording position of the reference picture;
Generating time length information relating to a playback time length of a picture in the playback unit;
Storing one of the generated reference picture information and the reproduction unit information, and the time length information as management information in one or more tables for each reproduction unit;
A computer program causing the data stream and the management information to be written to the recording medium.

JP2005294700A 2004-10-12 2005-10-07 Data processing device Expired - Fee Related JP4616144B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005294700A JP4616144B2 (en) 2004-10-12 2005-10-07 Data processing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004297435 2004-10-12
JP2005294700A JP4616144B2 (en) 2004-10-12 2005-10-07 Data processing device

Publications (2)

Publication Number Publication Date
JP2006140992A true JP2006140992A (en) 2006-06-01
JP4616144B2 JP4616144B2 (en) 2011-01-19

Family

ID=36621438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005294700A Expired - Fee Related JP4616144B2 (en) 2004-10-12 2005-10-07 Data processing device

Country Status (1)

Country Link
JP (1) JP4616144B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159238A (en) * 2006-11-30 2008-07-10 Matsushita Electric Ind Co Ltd Voice data transmitting device and voice data receiving device
JP2020162171A (en) * 2015-03-24 2020-10-01 ソニー株式会社 Transmission device, transmission method, reception device, and reception method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000049803A1 (en) * 1999-02-18 2000-08-24 Kabushiki Kaisha Toshiba Medium on which stream data is recorded, its recording method, and its reproducing method
WO2002080541A1 (en) * 2001-03-29 2002-10-10 Matsushita Electric Industrial Co., Ltd. Av data recording/reproducing apparatus and method and disc on which data is recorded by the av data recording/reproducing apparatus or method
JP2003022604A (en) * 2001-07-06 2003-01-24 Toshiba Corp Digital recording and reproducing apparatus
EP1463340A2 (en) * 2003-03-25 2004-09-29 Kabushiki Kaisha Toshiba Information recording medium, information recording/playback method, and information recording/playback apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000049803A1 (en) * 1999-02-18 2000-08-24 Kabushiki Kaisha Toshiba Medium on which stream data is recorded, its recording method, and its reproducing method
WO2002080541A1 (en) * 2001-03-29 2002-10-10 Matsushita Electric Industrial Co., Ltd. Av data recording/reproducing apparatus and method and disc on which data is recorded by the av data recording/reproducing apparatus or method
JP2003022604A (en) * 2001-07-06 2003-01-24 Toshiba Corp Digital recording and reproducing apparatus
EP1463340A2 (en) * 2003-03-25 2004-09-29 Kabushiki Kaisha Toshiba Information recording medium, information recording/playback method, and information recording/playback apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159238A (en) * 2006-11-30 2008-07-10 Matsushita Electric Ind Co Ltd Voice data transmitting device and voice data receiving device
JP2020162171A (en) * 2015-03-24 2020-10-01 ソニー株式会社 Transmission device, transmission method, reception device, and reception method

Also Published As

Publication number Publication date
JP4616144B2 (en) 2011-01-19

Similar Documents

Publication Publication Date Title
JP2008178112A (en) Av data recording/reproducing apparatus and method and disc on which data is recorded by the av data recording/reproducing apparatus or method
US7373079B2 (en) Method and an apparatus for stream conversion, a method and an apparatus for data recording, and data recording medium
JP4593679B2 (en) Information recording medium, data sorting device, and data reproducing device
JP4481991B2 (en) Information recording medium, data sorting device, data reproducing device and recording method
US7386223B2 (en) Method and an apparatus for stream conversion a method and an apparatus for data recording and data recording medium
JP4299836B2 (en) Data processing device
JP3900050B2 (en) Data processing apparatus, video camera, and data processing method
JP2011050082A (en) Information processor and method, recording medium, and program
CN106104689B (en) Recording medium, reproduction device, and reproduction method
WO2006054590A1 (en) Data processing apparatus
US8306383B2 (en) Data processor and hierarchy for recording moving and still picture files
US20060245729A1 (en) Data processing device and data processing method
WO2001010119A1 (en) Method of determining access position on recording medium and method of managing recording medium
US7835615B2 (en) Data processing apparatus
CN111276170B (en) Decoding system and decoding method
JP4616144B2 (en) Data processing device
KR101025088B1 (en) Data recording method
US20040151473A1 (en) Audio/video data recording/reproduction apparatus, system, and method, recording medium recorded by them, audio/video data reproduction apparatus, and data structure
JP3889338B2 (en) DATA RECORDING METHOD, DATA RECORDING DEVICE, DATA CONVERSION METHOD, DATA CONVERSION DEVICE, DATA RECORDING MEDIUM, DATA RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2003052017A (en) Av data recorder and its method, disk recorded thereby, av data reproducer and its method for reproducing the same disk and av data recorder/reproducer and its method
JP2004236077A (en) Recording and reproducing device having automatic chapter creation function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100706

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100906

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101021

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

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees