JP2008052761A - Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method - Google Patents

Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method Download PDF

Info

Publication number
JP2008052761A
JP2008052761A JP2004361190A JP2004361190A JP2008052761A JP 2008052761 A JP2008052761 A JP 2008052761A JP 2004361190 A JP2004361190 A JP 2004361190A JP 2004361190 A JP2004361190 A JP 2004361190A JP 2008052761 A JP2008052761 A JP 2008052761A
Authority
JP
Japan
Prior art keywords
information
packet
stream
data
dvd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004361190A
Other languages
Japanese (ja)
Inventor
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 JP2004361190A priority Critical patent/JP2008052761A/en
Priority to PCT/JP2005/022945 priority patent/WO2006064838A1/en
Publication of JP2008052761A publication Critical patent/JP2008052761A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • H04N9/80Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N9/804Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving pulse code modulation of the colour picture signal components
    • H04N9/8042Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving pulse code modulation of the colour picture signal components involving data reduction
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • G11B20/1262Formatting, e.g. arrangement of data block or words on the record carriers with more than one format/standard, e.g. conversion from CD-audio format to R-DAT format
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • G11B27/034Electronic editing of digitised analogue information signals, e.g. audio or video signals on discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/102Programmed access in sequence to addressed parts of tracks of operating record carriers
    • G11B27/105Programmed access in sequence to addressed parts of tracks of operating record carriers of operating discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
    • G11B27/28Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
    • G11B27/30Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on the same track as the main recording
    • G11B27/3027Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on the same track as the main recording used signal is digitally coded
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
    • G11B27/28Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
    • G11B27/32Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on separate auxiliary tracks of the same or an auxiliary record carrier
    • G11B27/327Table of contents
    • G11B27/329Table of contents on a disc [VTOC]
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/21Disc-shaped record carriers characterised in that the disc is of read-only, rewritable, or recordable type
    • G11B2220/215Recordable discs
    • G11B2220/216Rewritable discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2537Optical discs
    • G11B2220/2562DVDs [digital versatile discs]; Digital video discs; MMCDs; HDCDs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2537Optical discs
    • G11B2220/2562DVDs [digital versatile discs]; Digital video discs; MMCDs; HDCDs
    • G11B2220/2575DVD-RAMs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2537Optical discs
    • G11B2220/2583Optical discs wherein two standards are used on a single disc, e.g. one DVD section and one CD section

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information recording medium wherein an external AV (Audio Video) input signal can be converted into an MPEG-PS (program stream) conforming to a DVD specification at high speed when the AV input signal is encoded into an MPEG-TS (transport stream) and to provide a device/method for recording information to the information recording medium. <P>SOLUTION: Flag information showing that recording is performed by using a constrained format which enables conversion from a first stream (for example, MPEG-TS) to a second stream (for example, MPEG-PS) is recorded in management information (VOBI) (Video Object Information). By referring to the management information, whether recorded data are recorded by using the constrained format can be easily identified without analyzing data recorded in the information recording medium and conversion including a seamless connection point can be also easily performed. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は読み書き可能な情報記録媒体であって、特に、動画像データおよび静止画データおよびオーディオデータおよびデータ放送等の種々のフォーマットのデータを含むマルチメディアデータが記録される情報記録媒体に関する。さらに、本発明はそのような情報記録媒体に対して情報の記録、再生を行なう装置及び方法に関する。   The present invention relates to a readable / writable information recording medium, and more particularly to an information recording medium on which multimedia data including data of various formats such as moving image data, still image data, audio data, and data broadcasting is recorded. Furthermore, the present invention relates to an apparatus and method for recording and reproducing information on such an information recording medium.

特に、マルチメディアデータが記録されたストリームを異なる形式に高速に変換する符号化、変換装置及び方法に関するものである。   In particular, the present invention relates to an encoding and conversion apparatus and method for converting a stream in which multimedia data is recorded into a different format at high speed.

650MB程度が上限であった書き換え型光ディスクの分野で数GBの容量を有する相変化型ディスクDVD−RAMが出現した。ディジタルAVデータの符号化規格であるMPEG(MPEG2)の実用化とあいまってDVD−RAMは、コンピュータ用途だけでなくオーディオ・ビデオ(AV)技術分野における記録・再生メディアとして期待されている。   In the field of rewritable optical discs, the upper limit of which is about 650 MB, a phase change disc DVD-RAM having a capacity of several GB has appeared. Combined with the practical application of MPEG (MPEG2), which is an encoding standard for digital AV data, DVD-RAM is expected as a recording / reproducing medium not only for computer use but also in the audio / video (AV) technical field.

昨今、日本においてもデジタル放送が開始され、MPEGトランスポートストリーム(以下「MPEG−TS」と称す。)にのせて、複数番組の映像、音声、データを同時に多重化して送出することが可能となり、HDDやDVDを利用したデジタル放送記録装置が普及しつつある。   Recently, digital broadcasting has been started in Japan, and it is possible to simultaneously multiplex and send video, audio and data of multiple programs on an MPEG transport stream (hereinafter referred to as “MPEG-TS”). Digital broadcast recording devices using HDD and DVD are becoming widespread.

このような次世代型のデジタル放送レコーダ(Blu−ray Discレコーダ)は、デジタル放送の形態に合わせて、放送のままのMPEG−TSを変換することなくそのままの形式で記録することが多く、外部入力のAVデータを自己記録する場合においても、レコーダ内部でMPEGプログラムストリーム(以下「MPEG−PS」と称す。)とMPEG−TSの両者を扱う必要がないように、MPEG−TSで記録する。   Such next-generation digital broadcast recorders (Blu-ray Disc recorders) often record MPEG-TS as it is without conversion, in accordance with the form of digital broadcast, Even when the input AV data is self-recorded, it is recorded in MPEG-TS so that it is not necessary to handle both the MPEG program stream (hereinafter referred to as “MPEG-PS”) and MPEG-TS inside the recorder.

一方、現在のDVD論理規格(DVD−Video規格、DVD−Audio規格、DVD Video Recording規格、DVD Stream Recording規格等)では、AVストリームの記録方式に、MPEG−PS形式を用いているため、上記のデジタル放送対応レコーダのようにMPEG−TS形式で記録を行ったコンテンツを、例えばDVD−Video形式に変換する場合には、MPEG−TSからMPEG−PS形式への変換(TS2PS変換)が必須となる。   On the other hand, the current DVD logic standard (DVD-Video standard, DVD-Audio standard, DVD Video Recording standard, DVD Stream Recording standard, etc.) uses the MPEG-PS format for the recording method of the AV stream. When converting content recorded in MPEG-TS format, such as a digital broadcast compatible recorder, to DVD-Video format, for example, conversion from MPEG-TS to MPEG-PS format (TS2PS conversion) is essential. .

しかしながら、MPEG−TSで多重化されたストリームをMPEG−PSへ変換するには、デコーダの複雑なバッファマネージメントを再計算する必要があり、TS2PS変換に時間がかかったり、エレメンタリーストリームを再エンコードする等して、画質・音質に劣化を生じるケースがあり扱いにくいものであった。   However, in order to convert a stream multiplexed by MPEG-TS to MPEG-PS, it is necessary to recalculate the complicated buffer management of the decoder, and it takes time to convert TS2PS, and the elementary stream is re-encoded. As a result, the image quality and sound quality may be deteriorated, which is difficult to handle.

これらの問題に対して、いくつかの方法が公開されているが、シームレス接続点を含んで変換する場合等には対応していなかった。例えば特許文献1参照。
特開2003−228922号公報
Several methods have been disclosed for these problems, but they have not been dealt with when converting including seamless connection points. For example, see Patent Document 1.
JP 2003-228922 A

本発明は上記課題を解決すべくなされたものであり、その目的は、MPEG−TS形式で記録したコンテンツを、MPEG−PS形式に変換するときに、簡単にかつ高速に変換可能なMPEG−TS形式で記録した情報記録媒体と、そのような情報記録媒体に対してデータの記録、変換、再生を行なう装置及び方法を提供することにある。   The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide an MPEG-TS that can be easily and quickly converted when the content recorded in the MPEG-TS format is converted into the MPEG-PS format. It is an object of the present invention to provide an information recording medium recorded in a format, and an apparatus and method for recording, converting and reproducing data on such an information recording medium.

請求項1に係る発明は、映像情報と音声情報をシステムストリームに符合化して、その管理情報と共に情報記録媒体に記録する情報記録装置であって、第一の排他的な符合化規則にて符合化された第一のシステムストリームと、第一とは異なる第二の排他的な符合化規則にて符合化された第二のシステムストリームから、第三のシステムストリームを生成する符合化手段と、前記管理情報に前記システムストリームの符合化規則を示す情報を格納する管理情報生成手段とを具備し、前記符合化手段は、第三のシステムストリームが、1つの排他的な符合化規則にて符合化された区間を2つ以上連続させたように生成することを特徴とする情報記録装置とした。   The invention according to claim 1 is an information recording apparatus that encodes video information and audio information into a system stream and records the information together with the management information on an information recording medium, and the encoding is performed according to the first exclusive encoding rule. Encoding means for generating a third system stream from the encoded first system stream and the second system stream encoded by a second exclusive encoding rule different from the first, Management information generating means for storing information indicating a coding rule of the system stream in the management information, wherein the coding means is configured such that a third system stream is coded according to one exclusive coding rule. The information recording apparatus is characterized in that two or more converted sections are generated continuously.

請求項2に係る発明は、請求項1に記載の情報記録装置であって、前記管理情報生成手段は前記第三のシステムストリームの符合化規則を示す情報として、参照元のシステムストリームと同じであるという情報と、前記第三のシステムストリームが、前記第一および第二のシステムストリームから生成されたことを示す情報とを、前記管理情報に格納することを特徴とする情報記録装置とした。   The invention according to claim 2 is the information recording apparatus according to claim 1, wherein the management information generation means is the same as the system stream of the reference source as information indicating the encoding rule of the third system stream. The information recording apparatus is characterized in that information indicating that the third system stream is generated from the first and second system streams is stored in the management information.

本発明によって開示される制限のある符号化方法を用いることで、MPEG−TS形式の多重化処理がなされたコンテンツを、MPEG−PS形式の多重化処理がなされたコンテンツに高速に変換可能となる。   By using the limited encoding method disclosed by the present invention, content that has been subjected to MPEG-TS format multiplexing processing can be rapidly converted to content that has been subjected to MPEG-PS format multiplexing processing. .

また、MPEG−TS形式のコンテンツをシームレス再生可能なように編集する場合、そのシームレス編集処理自体が容易であり、その編集結果通りのシームレス再生可能なMPEG−PS形式のコンテンツへ高速に変換することが可能となる。   Also, when editing MPEG-TS format content so that it can be seamlessly reproduced, the seamless editing process itself is easy, and the content can be converted to MPEG-PS format content that can be seamlessly reproduced according to the edited result. Is possible.

以下、添付の図面を用いて本発明に係る情報記録媒体、記録装置及び再生装置の実施形態であるDVDディスク、DVDレコーダ及びDVDプレーヤについて下記の順序で説明する。   Hereinafter, a DVD disk, a DVD recorder, and a DVD player, which are embodiments of an information recording medium, a recording apparatus, and a reproducing apparatus according to the present invention, will be described in the following order with reference to the accompanying drawings.

特に、発明のポイントは「8.詳細な実施形態」で説明する。なお、関連の度合いは異なるが、全て本発明の実施形態である。   In particular, the points of the invention will be described in “8. Detailed Embodiment”. Although the degree of association is different, all are embodiments of the present invention.

1.DVDレコーダ装置のシステム概要
2.DVDレコーダ装置の機能概要
3.DVDディスクの概要
4.再生されるAV情報の概要
5.AV情報の管理情報と再生制御の概要
6.再生機能の基本動作
7.記録機能の基本動作
8.詳細な実施形態
なお、以下では、説明の便宜上、MPEGトランスポートストリーム(MPEG−TS)からMPEGプログラムストリーム(MPEG−PS)への変換を「TS2PS変換」と称する。また、MPEG−PS形式である、DVD−Video規格フォーマット、DVD−Video Recoriding規格フォーマットを総称して「DVDフォーマット」と称する。
(1.DVDレコーダ装置のシステム概要)
図1は、DVDレコーダ装置の外観と関連機器とのインターフェースの一例を説明する図である。
1. 1. System overview of DVD recorder device 2. Functional overview of the DVD recorder device Overview of DVD disc 4. 4. Outline of reproduced AV information Overview of AV information management information and playback control 6. 6. Basic operation of playback function Basic operation of recording function 8. Detailed Embodiment In the following, for convenience of explanation, conversion from an MPEG transport stream (MPEG-TS) to an MPEG program stream (MPEG-PS) is referred to as “TS2PS conversion”. In addition, the DVD-Video standard format and the DVD-Video Recording standard format, which are MPEG-PS formats, are collectively referred to as “DVD format”.
(1. System overview of DVD recorder device)
FIG. 1 is a diagram for explaining an example of an interface between an external appearance of a DVD recorder device and related devices.

図1に示すように、DVDレコーダには光ディスクであるDVDが装填され、ビデオ情報の記録再生を行う。操作は一般的にはリモコンで行われる。   As shown in FIG. 1, a DVD, which is an optical disk, is loaded on a DVD recorder, and video information is recorded and reproduced. The operation is generally performed with a remote controller.

DVDレコーダに入力されるビデオ情報にはアナログ信号とデジタル信号の両者があり、アナログ信号としてはアナログ放送があり、デジタル信号としてデジタル放送がある。一般的にはアナログ放送は、テレビジョン装置に内蔵された受信機により受信、復調され、NTSC等のアナログビデオ信号としてDVDレコーダに入力され、デジタル放送は、受信機であるSTB(Set Top Box)でデジタル信号に復調され、DVDレコーダに入力され記録される。   The video information input to the DVD recorder includes both an analog signal and a digital signal. The analog signal includes analog broadcast, and the digital signal includes digital broadcast. In general, an analog broadcast is received and demodulated by a receiver built in the television apparatus and input to a DVD recorder as an analog video signal such as NTSC, and a digital broadcast is an STB (Set Top Box) which is a receiver. Are demodulated into digital signals and input to a DVD recorder for recording.

一方、ビデオ情報が記録されたDVDディスクはDVDレコーダにより再生され外部に出力される。出力も入力同様に、アナログ信号とデジタル信号の両者があり、アナログ信号であれば直接テレビジョン装置に入力され、デジタル信号であればSTBを経由し、アナログ信号に変換された後にテレビジョン装置に入力されテレビジョン装置で映像表示される。   On the other hand, a DVD disc on which video information is recorded is reproduced by a DVD recorder and output to the outside. Similarly to the input, both the analog signal and the digital signal are output. If the signal is an analog signal, the signal is directly input to the television device. If the signal is a digital signal, the signal is input to the television device via the STB and then converted to the analog signal. The video is input and displayed on the television device.

また、DVDディスクにはDVDレコーダ以外のDVDカムコーダや、パーソナルコンピュータでビデオ情報が記録再生される場合がある。DVDレコーダ外でビデオ情報が記録されたDVDディスクであっても、DVDレコーダに装填されれば、DVDレコーダはこれを再生する。   Further, video information may be recorded / reproduced on / from a DVD disc by a DVD camcorder other than the DVD recorder or a personal computer. Even if it is a DVD disc on which video information is recorded outside the DVD recorder, the DVD recorder reproduces it if it is loaded in the DVD recorder.

なお、上述したアナログ放送やデジタル放送のビデオ情報には通常、音声情報が付随している。付随している音声情報も同様にDVDレコーダで記録再生される。またビデオ情報は一般的には動画であるが、静止画の場合もある。例えば、DVDカムコーダの写真機能で静止画が記録される場合がそうなる。   Note that audio information is usually attached to the video information of the above-described analog broadcast and digital broadcast. The accompanying audio information is similarly recorded and reproduced by the DVD recorder. The video information is generally a moving image, but may be a still image. For example, this is the case when a still image is recorded by the photo function of a DVD camcorder.

なお、STBとDVDレコーダの間のデジタルI/FはIEEE1394、ATAPI、SCSI等がありうる。   The digital I / F between the STB and the DVD recorder can be IEEE 1394, ATAPI, SCSI, or the like.

なお、DVDレコーダとテレビジョン装置との間はコンポジットビデオ信号であるNTSCと例示したが、輝度信号と色差信号を個別に伝送するコンポーネント信号でもよい。さらには、AV機器とテレビジョン装置の間の映像伝送I/FはアナログI/FをデジタルI/F、例えば、DVIに置きかえる研究開発が進められており、DVDレコーダとテレビジョン装置がデジタルI/Fで接続されることも当然予想される。
(2.DVDレコーダ装置の機能概要)
図2は、DVDレコーダ装置の機能を示すブロック図である。ドライブ装置は、DVD−RAMディスク100のデータを読み出す光ピックアップ101、ECC(Error Correcting Code)処理部102、トラックバッファ103、トラックバッファへ103の入出力を切り替えるスイッチ104、エンコーダ部105及びデコーダ部106を備える。
In addition, although NTSC which is a composite video signal was illustrated between a DVD recorder and a television apparatus, the component signal which transmits a luminance signal and a color difference signal separately may be sufficient. Furthermore, the video transmission I / F between the AV equipment and the television apparatus has been researched and developed to replace the analog I / F with a digital I / F, for example, DVI, and the DVD recorder and the television apparatus are digital I / F. Of course, it is expected to be connected by / F.
(2. Function overview of DVD recorder device)
FIG. 2 is a block diagram showing functions of the DVD recorder device. The drive device includes an optical pickup 101 that reads data from the DVD-RAM disc 100, an ECC (Error Correcting Code) processing unit 102, a track buffer 103, a switch 104 that switches input / output of the track buffer 103, an encoder unit 105, and a decoder unit 106. Is provided.

図に示すように、DVD−RAMディスク100には、1セクタ=2KBを最小単位としてデータが記録される。 また、16セクタ=1ECCブロックとして、ECCブロックを単位としてECC処理部102でエラー訂正処理が施される。   As shown in the figure, data is recorded on the DVD-RAM disc 100 with 1 sector = 2 KB as a minimum unit. Further, as 16 sectors = 1 ECC block, the ECC processing unit 102 performs error correction processing in units of ECC blocks.

なお、DVDレコーダ装置はデータの蓄積媒体として、DVDディスクに加え、半導体メモリカードやハードディスクドライブ装置を備えても良い。図4は、半導体メモリカードとハードディスクドライブ装置を備える場合のDVDレコーダのブロック図を示す。   Note that the DVD recorder device may include a semiconductor memory card or a hard disk drive as a data storage medium in addition to the DVD disk. FIG. 4 shows a block diagram of a DVD recorder provided with a semiconductor memory card and a hard disk drive device.

なお、1セクタは512Bでも良いし、8KB等でも良い。また、ECCブロックも1セクタ、16セクタ、32セクタ等でも良い。記録できる情報容量の増大に伴い、セクタサイズ及びECCブロックを構成するセクタ数は増大すると予想される。   One sector may be 512B, 8KB, or the like. The ECC block may be 1 sector, 16 sectors, 32 sectors, or the like. As the information capacity that can be recorded increases, the sector size and the number of sectors constituting the ECC block are expected to increase.

トラックバッファ103は、DVD−RAMディスク100にAVデータをより効率良く記録するため、AVデータを可変ビットレート(VBR)で記録するためのバッファである。DVD−RAM100への読み書きレート(Va)が固定レートであるのに対して、AVデータはその内容(ビデオであれば画像)の持つ複雑さに応じてビットレート(Vb)が変化するため、このビットレートの差を吸収するためのバッファである。   The track buffer 103 is a buffer for recording AV data at a variable bit rate (VBR) in order to record AV data on the DVD-RAM disk 100 more efficiently. Since the read / write rate (Va) to the DVD-RAM 100 is a fixed rate, the bit rate (Vb) of AV data changes according to the complexity of the content (image if video). It is a buffer for absorbing the bit rate difference.

このトラックバッファ103を更に有効利用すると、ディスク100上にAVデータを離散配置することが可能になる。図3A、図3Bを用いてこれを説明する。   If this track buffer 103 is used more effectively, AV data can be discretely arranged on the disk 100. This will be described with reference to FIGS. 3A and 3B.

図3Aは、ディスク上のアドレス空間を示す図である。図3Aに示す様にAVデータが[a1、a2]の連続領域と[a3、a4]の連続領域に分かれて記録されている場合、a2からa3へシークを行っている間、トラックバッファに蓄積してあるデータをデコーダ部106へ供給することでAVデータの連続再生が可能になる。この時の状態を示したのが図3Bである。   FIG. 3A shows an address space on the disk. As shown in FIG. 3A, when AV data is recorded separately in a continuous area of [a1, a2] and a continuous area of [a3, a4], it is stored in the track buffer while seeking from a2 to a3. By supplying the data to the decoder unit 106, AV data can be continuously reproduced. FIG. 3B shows the state at this time.

位置a1で読み出しを開始したAVデータは、時刻t1からトラックバッファへ103入力されるとともに、トラックバッファ103からデータの出力が開始される。これにより、トラックバッファへの入力レート(Va)とトラックバッファからの出力レート(Vb)のレート差(Va−Vb)の分だけトラックバッファへデータが蓄積されていく。この状態が、検索領域がa2に達するまで、すなわち、時刻t2に達するまで継続する。この間にトラックバッファ103に蓄積されたデータ量をB(t2)とすると、時間t2から、領域a3のデータの読み出しを開始する時刻t3までの間、トラックバッファ103に蓄積されているB(t2)を消費してデコーダ106へ供給しつづけられれば良い。   The AV data that has been read out at the position a1 is input to the track buffer 103 from time t1, and data output from the track buffer 103 is started. As a result, data is accumulated in the track buffer by the rate difference (Va−Vb) between the input rate (Va) to the track buffer and the output rate (Vb) from the track buffer. This state continues until the search area reaches a2, that is, until time t2. Assuming that the amount of data stored in the track buffer 103 during this time is B (t2), B (t2) stored in the track buffer 103 from time t2 to time t3 when reading of data in the area a3 is started. As long as it is continuously supplied to the decoder 106.

言い方を変えれば、シーク前に読み出すデータ量([a1、a2])が一定量以上確保されていれば、シークが発生した場合でも、AVデータの連続供給が可能である。   In other words, if a certain amount or more of data to be read before seeking ([a1, a2]) is secured, AV data can be continuously supplied even if a seek occurs.

AVデータの連続供給が可能な連続領域のサイズはECCブロック数(N_ecc)に換算すると次の式で示される。式において、N_secはECCブロックを構成するセクタ数であり、S_sizeはセクタサイズ、Tjはシーク性能(最大シーク時間)である。   The size of a continuous area in which AV data can be continuously supplied is expressed by the following equation when converted into the number of ECC blocks (N_ecc). In the equation, N_sec is the number of sectors constituting the ECC block, S_size is the sector size, and Tj is the seek performance (maximum seek time).

N_ecc = Vb*Tj/((N_sec*8*S_size)*(1-Vb/Va))
また、連続領域の中には欠陥セクタが生じる場合がある。この場合も考慮すると連続領域は次の式で示される。式において、dN_eccは容認する欠陥セクタのサイズであり、Tsは連続領域の中で欠陥セクタをスキップするのに要する時間である。このサイズもECCブロック数で表される。
N_ecc = Vb * Tj / ((N_sec * 8 * S_size) * (1-Vb / Va))
In addition, a defective sector may occur in the continuous area. Considering this case as well, the continuous region is expressed by the following equation. In the equation, dN_ecc is the size of the defective sector that is tolerated, and Ts is the time required to skip the defective sector in the continuous region. This size is also expressed by the number of ECC blocks.

N_ecc = dN_ecc+Vb*Tj/((N_sec*8*S_size)*(1-Vb/Va))
なお、ここでは、DVD−RAMからデータを読み出す、即ち再生の場合の例を説明したが、DVD−RAMへのデータの書き込み、即ち録画の場合も同様に考えることができる。
N_ecc = dN_ecc + Vb * Tj / ((N_sec * 8 * S_size) * (1-Vb / Va))
Here, an example of reading data from a DVD-RAM, that is, a case of reproducing has been described, but writing data to a DVD-RAM, that is, a case of recording can be considered similarly.

上述したように、DVD−RAMでは一定量以上のデータが連続記録さえされていればディスク上にAVデータを分散記録しても連続再生/録画が可能である。DVDでは、この連続領域をCDAと称する。
(3.DVDディスクの概要)
図5A、図5Bは、記録可能な光ディスクであるDVD−RAMディスクの外観と物理構造を表した図である。なお、DVD−RAMは一般的にはカートリッジに収納された状態でDVDレコーダに装填される。記録面を保護するのが目的である。但し、記録面の保護が別の構成で行われたり、容認できる場合にはカートリッジに収納せずに、DVDレコーダに直接装填できるようにしてももちろん良い。
As described above, in a DVD-RAM, as long as a certain amount or more of data is continuously recorded, continuous reproduction / recording is possible even if AV data is distributedly recorded on the disc. In DVD, this continuous area is called CDA.
(3. Overview of DVD disc)
5A and 5B are views showing the appearance and physical structure of a DVD-RAM disc that is a recordable optical disc. Note that the DVD-RAM is generally loaded in a DVD recorder while being stored in a cartridge. The purpose is to protect the recording surface. However, if the recording surface is protected by another configuration or is acceptable, it is of course possible to directly load the DVD recorder without storing it in the cartridge.

DVD−RAMディスクは相変化方式によりデータを記録する。ディスク上の記録データはセクタ単位で管理され、アクセス用のアドレスが付随する。16個のセクタは誤り訂正の単位となり、誤り訂正コードが付与され、ECCブロックと呼称される。   DVD-RAM discs record data by the phase change method. The recording data on the disc is managed in units of sectors and accompanied with an access address. The 16 sectors are units for error correction, and are given an error correction code and are called ECC blocks.

図5Aは、記録可能な光ディスクであるDVD−RAMディスクの記録領域を表した図である。同図のように、DVD−RAMディスクは、最内周にリードイン領域を、最外周にリードアウト領域を、その間にデータ領域を配置している。リードイン領域は、光ピックアップのアクセス時においてサーボを安定させるために必要な基準信号や他のメディアとの識別信号などが記録されている。リードアウト領域もリードイン領域と同様の基準信号などが記録される。データ領域は、最小のアクセス単位であるセクタ(2048バイトとする)に分割されている。 また、DVD−RAMは、記録・再生時においてZ−CLV(Zone Constant Linear Velocity)と呼ばれる回転制御を実現するために、データ領域が複数のゾーン領域に分割されている。   FIG. 5A is a diagram showing a recording area of a DVD-RAM disc which is a recordable optical disc. As shown in the figure, the DVD-RAM disc has a lead-in area on the innermost periphery, a lead-out area on the outermost periphery, and a data area therebetween. In the lead-in area, a reference signal necessary for stabilizing the servo at the time of accessing the optical pickup, an identification signal with other media, and the like are recorded. In the lead-out area, the same reference signal as the lead-in area is recorded. The data area is divided into sectors (2048 bytes) which are the minimum access unit. Further, in the DVD-RAM, a data area is divided into a plurality of zone areas in order to realize rotation control called Z-CLV (Zone Constant Linear Velocity) during recording / reproduction.

図5Aは、DVD−RAMに同心円状に設けられた複数のゾーン領域を示す図である。同図のように、DVD−RAMは、ゾーン0〜ゾーン23の24個のゾーン領域に分割されている。DVD−RAMの回転角速度は、内周側のゾーン程速くなるようにゾーン領域毎に設定され、光ピックアップが1つのゾーン内でアクセスする間は一定に保たれる。これにより、DVD−RAMの記録密度を高めるとともに、記録・再生時における回転制御を容易にしている。   FIG. 5A is a diagram showing a plurality of zone regions provided concentrically on the DVD-RAM. As shown in the figure, the DVD-RAM is divided into 24 zone areas, zone 0 to zone 23. The rotational angular velocity of the DVD-RAM is set for each zone region so as to be faster in the inner peripheral zone, and is kept constant while the optical pickup accesses within one zone. This increases the recording density of the DVD-RAM and facilitates rotation control during recording / reproduction.

図5Bは、図5Aにおいて同心円状に示したリードイン領域と、リードアウト領域と、ゾーン領域0〜23を横方向に配置した説明図である。   FIG. 5B is an explanatory diagram in which the lead-in area, the lead-out area, and the zone areas 0 to 23 shown concentrically in FIG. 5A are arranged in the horizontal direction.

リードイン領域とリードアウト領域は、その内部に欠陥管理領域(DMA:Defect Management Area)を有する。欠陥管理領域とは、欠陥が生じたセクタの位置を示す位置情報と、その欠陥セクタを代替するセクタが上記代替領域の何れに存在するかを示す代替位置情報とが記録されている領域をいう。   The lead-in area and the lead-out area have a defect management area (DMA: Defect Management Area) therein. The defect management area refers to an area in which position information indicating the position of a sector in which a defect has occurred and replacement position information indicating in which of the replacement areas a sector that replaces the defective sector exists. .

各ゾーン領域はその内部にユーザ領域を有すると共に、境界部に代替領域及び未使用領域を有している。ユーザ領域は、ファイルシステムが記録用領域として利用することができる領域をいう。代替領域は、欠陥セクタが存在する場合に代替使用される領域である。未使用領域は、データ記録に使用されない領域である。未使用領域は、2トラック分程度設けられる。未使用領域を設けているのは、ゾーン内では隣接するトラックの同じ位置にセクタアドレスが記録されているが、Z−CLVではゾーン境界に隣接するトラックではセクタアドレスの記録位置が異なるため、それに起因するセクタアドレス誤判別を防止するためである。   Each zone area has a user area therein, and an alternative area and an unused area at the boundary. The user area is an area that can be used as a recording area by the file system. The replacement area is an area that is used instead when a defective sector exists. The unused area is an area that is not used for data recording. Unused areas are provided for about two tracks. The unused area is provided because the sector address is recorded at the same position in the adjacent track in the zone, but in Z-CLV, the recording position of the sector address is different in the track adjacent to the zone boundary. This is to prevent erroneous sector address discrimination.

このようにゾーン境界にはデータ記録に使用されないセクタが存在する。そのためデータ記録に使用されるセクタのみを連続的に示すように、DVD−RAMは、内周から順に論理セクタ番号(LSN:Logical Sector Number)をユーザ領域の物理セクタに割り当てている。   Thus, there are sectors that are not used for data recording at the zone boundaries. Therefore, the DVD-RAM assigns logical sector numbers (LSN: Logical Sector Number) sequentially to the physical sectors in the user area so that only the sectors used for data recording are shown continuously.

図6A、図6Bは、論理セクタにより構成されるDVD−RAMの論理的なデータ空間を示す。論理的なデータ空間はボリューム空間と呼称され、ユーザデータを記録する。   6A and 6B show a logical data space of a DVD-RAM configured by logical sectors. The logical data space is called a volume space and records user data.

ボリューム領域は、記録データをファイルシステムで管理する。すなわち、データを格納する1群のセクタをファイルとして、さらには1群のファイルをディレクトリとして管理するボリューム構造情報がボリューム領域の先頭と終端に記録される。本実施の形態のファイルシステムはUDFと呼称され、ISO13346規格に準拠している。   The volume area manages recording data with a file system. That is, volume structure information for managing a group of sectors for storing data as a file and further managing a group of files as a directory is recorded at the beginning and end of the volume area. The file system of this embodiment is called UDF and conforms to the ISO 13346 standard.

なお、上記1群のセクタはボリューム空間で必ずしも連続的には配置されず、部分的に離散配置される。このため、ファイルシステムは、ファイルを構成するセクタ群のうち、ボリューム空間で連続的に配置される1群のセクタをエクステントとして管理し、ファイルを関連のあるエクステントの集合として管理する。   The group of sectors is not necessarily arranged continuously in the volume space, but is partially arranged discretely. For this reason, the file system manages a group of sectors arranged continuously in the volume space among the sector groups constituting the file as extents, and manages the file as a set of related extents.

図7は、DVD−RAMに記録されるディレクトリとファイルの構造を示す。ルートの下に、VIDEO_RTディレクトリがあり、この下に、再生用のデータである各種オブジェクトのファイルと、これらの再生順序や各種属性を示す管理情報としてVIDEO Managerファイルが格納される。   FIG. 7 shows the structure of directories and files recorded on the DVD-RAM. Below the root is a VIDEO_RT directory, and below this, a file of various objects as data for reproduction, and a VIDEO Manager file as management information indicating their reproduction order and various attributes are stored.

オブジェクトはMPEG規格に準拠したデータであり、PS_VOB、TS1_VOB、TS2_VOB、AOB、POB、MNF(Manufacturer's Private Data)がある。   The object is data conforming to the MPEG standard, and includes PS_VOB, TS1_VOB, TS2_VOB, AOB, POB, and MNF (Manufacturer's Private Data).

PS_VOB、AOB、POBはMPEGのプログラムストリーム(PS)であり、TS1_VOB及びTS2_VOBはトランスポートストリーム(TS)である。プログラムストリームは、パッケージメディアにAV情報を格納することを考慮されたデータ構造を有し、一方、トランスポートストリームは通信メディアを考慮したデータ構造を有する。   PS_VOB, AOB, and POB are MPEG program streams (PS), and TS1_VOB and TS2_VOB are transport streams (TS). The program stream has a data structure that allows for storing AV information in the package media, while the transport stream has a data structure that allows for communication media.

PS_VOB、TS1_VOB、TS2_VOBは、いずれも映像情報と音声情報を共に有し映像情報が主体となるオブジェクトである。このうち、TS1_VOBは原則、DVDレコーダによりエンコードが行われ、内部のピクチャ構造が詳細に管理されているオブジェクトであり、TS2_VOBはDVDレコーダ外でエンコードされたオブジェクトであり、内部のピクチャ構造等のデータ構造が一部不明なオブジェクトである。   PS_VOB, TS1_VOB, and TS2_VOB are all objects having both video information and audio information, and mainly video information. Among these, TS1_VOB is an object in which encoding is performed by a DVD recorder and the internal picture structure is managed in detail, and TS2_VOB is an object encoded outside the DVD recorder, and data such as the internal picture structure is included. An object whose structure is partially unknown.

典型的には、TS1_VOBは外部から入力されるアナログビデオ信号をDVDレコーダがトランスポートストリームにエンコードしたオブジェクトであり、TS2_VOBは外部から入力されるデジタルビデオ信号をエンコードすることなく直接ディスクに記録したオブジェクトである。つまりデジタル放送をDVDレコーダが記録する際には、一般的にTS2_VOBである。   Typically, TS1_VOB is an object obtained by encoding an externally input analog video signal into a transport stream by a DVD recorder, and TS2_VOB is an object recorded directly on a disc without encoding an externally input digital video signal. It is. That is, when a DVD recorder records a digital broadcast, it is generally TS2_VOB.

AOB、POBはMPEGのプログラムストリームであり、AOBは音声情報が主体となるオブジェクトであり、POBは静止画が主体となるオブジェクトである。   AOB and POB are MPEG program streams, AOB is an object mainly composed of audio information, and POB is an object mainly composed of a still image.

MNF(Manufacturer's Private Data)は製造者固有の情報を格納するためのデータ領域である。   MNF (Manufacturer's Private Data) is a data area for storing information unique to the manufacturer.

上述した、映像情報主体、音声情報主体とは、ビットレートの割り当てが大きいことを意味する。VOBは映画等のアプリケーションに用いられ、AOBは音楽アプリケーションに用いられる。
(4.再生されるAV情報の概要)
図8は、DVDディスクに各種AVオブジェクトとして記録されるMPEGデータの構造を示す図である。
The above-mentioned video information main body and audio information main body means that the bit rate is largely allocated. VOB is used for applications such as movies, and AOB is used for music applications.
(4. Overview of reproduced AV information)
FIG. 8 is a diagram showing the structure of MPEG data recorded as various AV objects on a DVD disc.

図8が示すようにビデオストリーム及びオーディオストリームは、それぞれ分割され多重される。MPEG規格においては、多重化後のストリームをシステムストリームと呼称する。DVDの場合、DVD固有の情報が設定されたシステムストリームをVOB(Video Object)と呼称している。分割の単位は、パック・パケットと称され、約2KByteのデータ量を有する。   As shown in FIG. 8, the video stream and the audio stream are each divided and multiplexed. In the MPEG standard, the multiplexed stream is called a system stream. In the case of a DVD, a system stream in which information specific to the DVD is set is called a VOB (Video Object). The unit of division is called a pack packet, and has a data amount of about 2 KB.

ビデオストリームはMPEG規格で符号化されており、可変ビットレートで圧縮されており、動きが激しい等の複雑な映像であればビットレートが高くなっている。MPEG規格では、映像の各ピクチャは、Iピクチャ、Pピクチャ、Bピクチャに種類分けして符号化される。このうち、Iピクチャはフレーム内で完結する空間的な圧縮符号化が施されおり、Pピクチャ、Bピクチャはフレーム間の相関を利用した時間的な圧縮符号化が施されている。MPEGでは少なくともIピクチャを含む区間をGOP(Group of Picture)として管理する。GOPは早送り再生等の特殊再生におけるアクセスポイントになる。フレーム内圧縮されたIピクチャを有するためである。   The video stream is encoded according to the MPEG standard, is compressed at a variable bit rate, and the bit rate is high for complex video such as intense motion. In the MPEG standard, each picture of a video is encoded by being classified into an I picture, a P picture, and a B picture. Among these, the I picture is subjected to spatial compression coding that is completed within a frame, and the P picture and B picture are subjected to temporal compression coding using the correlation between frames. In MPEG, a section including at least an I picture is managed as a GOP (Group of Pictures). GOP becomes an access point for special playback such as fast-forward playback. This is because it has an I picture compressed in a frame.

一方、音声ストリームの符号化には、DVDの場合、MPEGオーディオに加え、AC―3やLPCMの符号化が用いられる。   On the other hand, in the case of DVD, AC-3 or LPCM encoding is used for encoding an audio stream in addition to MPEG audio.

図8が示すように、GOPを構成するビデオ情報とそれに付随する音声情報とを含む多重化後のデータ単位はVOBU(Video Object Unit)と称される。VOBUには、当該動画区間の管理用の情報をヘッダ情報として含ませる場合がある。   As shown in FIG. 8, a multiplexed data unit including video information constituting the GOP and accompanying audio information is called a VOBU (Video Object Unit). The VOBU may include information for managing the moving image section as header information.

図8で説明したシステムストリームには、プログラムストリーム(PS)とトランスポートストリーム(TS)がある。前者はパッケージメディアを考慮したデータ構造を有し、後者は通信メディアを考慮したデータ構造を有する。   The system stream described in FIG. 8 includes a program stream (PS) and a transport stream (TS). The former has a data structure considering a package medium, and the latter has a data structure considering a communication medium.

図9は、プログラムストリームとトランスポートストリームのデータ構造の概要を説明する図である。   FIG. 9 is a diagram for explaining the outline of the data structure of the program stream and the transport stream.

プログラムストリームは、伝送及び多重化の最小単位である固定長のパックからなり、パックはさらに、1つ以上のパケットを有する。パックもパケットもヘッダ部とデータ部を有する。MPEGではデータ部をペイロードと称する。DVDの場合はパックの固定長はセクタサイズと整合性をとり2KBになる。パックは複数のパケットを有することができるが、DVDの映像や音声を格納するパックは1パケットのみを有するため、特別な場合を除いて1パック=1パケットになる。   The program stream is composed of a fixed-length pack that is a minimum unit of transmission and multiplexing, and the pack further includes one or more packets. Both packs and packets have a header part and a data part. In MPEG, the data part is called a payload. In the case of DVD, the fixed length of the pack is 2 KB, consistent with the sector size. A pack can have a plurality of packets, but since a pack for storing video and audio of a DVD has only one packet, one pack = 1 packet except in special cases.

一方、トランスポートストリームの伝送及び多重化の単位は固定長のTSパケットからなる。TSパケットのサイズは188Bであり、通信用規格であるATM伝送との整合性をとっている。TSパケットは1つ以上が集まりPESパケットを構成する。   On the other hand, the unit of transport stream transmission and multiplexing consists of fixed-length TS packets. The size of the TS packet is 188B, which is consistent with ATM transmission, which is a communication standard. One or more TS packets gather to form a PES packet.

PESパケットはプログラムストリームとトランスポートストリームで共通する概念であり、データ構造は共通である。プログラムストリームのパックに格納されるパケットはPESパケットを直接構成し、トランスポートストリームのTSパケットは1つ以上が集まりPESパケットを構成する。   The PES packet is a concept common to the program stream and the transport stream, and the data structure is common. The packets stored in the program stream pack directly constitute a PES packet, and one or more transport stream TS packets gather to form a PES packet.

また、PESパケットは符号化の最小単位であり、符号化が共通するビデオ情報、オーディオ情報をそれぞれ格納する。すなわち、一つのPESパケット内に符号化方式の異なるビデオ情報、オーディオ情報が混在して格納されることはない。但し、同じ符号化方式であればピクチャバウンダリやオーディオフレームのバウンダリは保証せずとも良い。図9に示すように複数のPESパケットで1つのフレームを格納したり、1つのPESパケットに複数のフレームを格納するケースもありうる。   The PES packet is the minimum unit of encoding, and stores video information and audio information that are common to encoding. That is, video information and audio information with different encoding methods are not mixedly stored in one PES packet. However, picture boundaries and audio frame boundaries may not be guaranteed if the encoding method is the same. As shown in FIG. 9, there may be a case where one frame is stored in a plurality of PES packets or a plurality of frames are stored in one PES packet.

図10A〜10Cと図11A〜11Cに、トランスポートストリームとプログラムストリームの個別のデータ構造を示す。   10A to 10C and FIGS. 11A to 11C show individual data structures of the transport stream and the program stream.

図10A〜10C、図12A〜12Dに示すように、TSパケットは、TSパケットヘッダと、適用フィールドと、ペイロード部から構成される。TSパケットヘッダにはPID(Packet Identifier)が格納され、これにより、TSパケットが所属するビデオストリームまたはオーディオストリーム等の各種ストリームが識別される。   As shown in FIGS. 10A to 10C and FIGS. 12A to 12D, the TS packet includes a TS packet header, an application field, and a payload portion. The TS packet header stores a PID (Packet Identifier), thereby identifying various streams such as a video stream or an audio stream to which the TS packet belongs.

適用フィールドにはPCR(Program Clock Reference)が格納される。PCRはストリームをデコードする機器の基準クロック(STC)の参照値である。機器は典型的にはPCRのタイミングでシステムストリームをデマルチプレクスし、ビデオストリーム等の各種ストリームに再構築する。   The application field stores PCR (Program Clock Reference). PCR is a reference value of a standard clock (STC) of a device that decodes a stream. The device typically demultiplexes the system stream at the timing of PCR and reconstructs it into various streams such as a video stream.

PESヘッダには、DTS(Decoding Time Stamp)とPTS(Presentation Time Stamp)が格納される。DTSは当該PESパケットに格納されるピクチャ/オーディオフレームのデコードタイミングを示し、PTSは映像音声出力等のプレゼンテーションタイミングを示す。   In the PES header, DTS (Decoding Time Stamp) and PTS (Presentation Time Stamp) are stored. DTS indicates the decoding timing of the picture / audio frame stored in the PES packet, and PTS indicates the presentation timing such as video / audio output.

なお、全てのPESパケットヘッダにPTS、DTSを有する必要はなく、Iピクチャの先頭データが格納開始されるPESパケットのヘッダにPTS、DTSがあればデコード及び出力に支障はない。   Note that it is not necessary to have PTS and DTS in all PES packet headers. If there is a PTS and DTS in the header of a PES packet in which storage of the leading data of the I picture is started, there is no problem in decoding and output.

TSパケットの構造の詳細は図12A〜図12Dに示される。   Details of the structure of the TS packet are shown in FIGS. 12A to 12D.

図12A〜図12Dに示すように、適用フィールドにはPCRに加えて、ランダムアクセス表示フラグが格納され、当該フラグにより、対応するペイロード部にビデオ・オーディオのフレーム先頭であってアクセスポイントとなりうるデータを格納するか否かを示す。また、TSパケットのヘッダ部には前述したPIDに加えて、PESパケットの開始を示すユニット開始表示フラグ、適用フィールドが後続するか否かを示す適用フィールド制御情報も格納される。ユニット開始表示フラグは新たなPESパケットの開始を示し、PIDはストリームの種類及び属性を示す。   As shown in FIGS. 12A to 12D, in addition to PCR, a random access display flag is stored in the application field, and data corresponding to the beginning of a video / audio frame and serving as an access point can be stored in the corresponding payload portion according to the flag. Whether or not is stored. In addition to the PID described above, a unit start display flag indicating the start of the PES packet and application field control information indicating whether the application field follows are stored in the header portion of the TS packet. The unit start display flag indicates the start of a new PES packet, and the PID indicates the type and attribute of the stream.

図11A〜図11Cには、プログラムストリームを構成するパックの構造を示す。パックは、パックヘッダにSCRを有し、格納するパケットのパケットヘッダにstream_idを有している。SCRはトランスポートストリームのPCRと、stream_idはPIDと実質同じである。またPESパケットのデータ構造はトランスポートストリームと共通なため、PESヘッダにPTSとDTSが格納される。   FIG. 11A to FIG. 11C show the structure of packs that constitute a program stream. The pack has an SCR in the pack header, and a stream_id in the packet header of the packet to be stored. SCR is the PCR of the transport stream, and stream_id is substantially the same as PID. Since the data structure of the PES packet is common to the transport stream, PTS and DTS are stored in the PES header.

プログラムストリームとトランスポートストリームの大きな違いの1つに、トランスポートストリームではマルチプログラムが許される点がある。すなわち、番組という単位では1つの番組しかプログラムストリームは伝送できないが、トランスポートストリームは複数の番組を同時に伝送することを想定している。このため、トランスポートストリームでは、番組毎に番組を構成するビデオストリームとオーディオストリームがいずれかを再生装置が識別することが必要になる。   One of the major differences between a program stream and a transport stream is that multiple programs are allowed in the transport stream. That is, it is assumed that only one program can be transmitted in the unit of program, but the transport stream transmits a plurality of programs simultaneously. For this reason, in the transport stream, it is necessary for the playback device to identify either the video stream or the audio stream that constitutes the program for each program.

図13A〜13C2に、番組を構成するオーディオストリームとビデオストリームの構成情報を伝送するPATテーブル、PMAPテーブルを示す。これらの図に示すように、番組毎に使用されるビデオストリームとオーディオストリームの組み合わせに関する情報をPMAPテーブルが格納し、番組とPMAPテーブルの組み合わせに関する情報をPATテーブルが格納する。再生装置は、PATテーブル、PMAPテーブルにより出力が要求された番組を構成するビデオストリームとオーディオストリームを検出することができる。   13A to 13C2 show a PAT table and a PMAP table for transmitting the configuration information of the audio stream and video stream constituting the program. As shown in these figures, the PMAP table stores information related to the combination of the video stream and the audio stream used for each program, and the PAT table stores information related to the combination of the program and the PMAP table. The playback apparatus can detect a video stream and an audio stream that constitute a program whose output is requested by the PAT table and the PMAP table.

次に上述してきたプログラムストリームのパックと、トランスポートストリームのTSパケットのディスク上の配置に関して、図14A〜14Cを用いて説明する。   Next, the arrangement of the program stream pack and transport stream TS packet described above on the disk will be described with reference to FIGS.

図14Aに示すように、16個のセクタはECCブロックを構成する。   As shown in FIG. 14A, the 16 sectors constitute an ECC block.

プログラムストリームの形式をとるビデオオブジェクト(PS_VOB)を構成するパック(PS Pack)は、図14Bが示すように、セクタバウンダリで配置される。パックサイズもセクタサイズも2KBだからである。   A pack (PS Pack) that constitutes a video object (PS_VOB) in the form of a program stream is arranged on a sector boundary as shown in FIG. 14B. This is because the pack size and sector size are 2 KB.

一方、トランスポートストリームの形式をとるビデオオブジェクト(TS1−VOB/TS2−VOB)は8KBのサイズを有する単位でECCブロック内に配置される。この8KB単位で18Bのヘッダ領域を有し、データ領域にはATS情報が付加されたTSパケットが43個配置される。ATS情報(Arrival Time Stamp Information)は、DVDレコーダにより生成し付加される情報であって、当該パケットがDVDレコーダに外部より伝送されてきたタイミングを示す情報である。   On the other hand, a video object (TS1-VOB / TS2-VOB) in the form of a transport stream is arranged in an ECC block in units having a size of 8 KB. This 8 KB unit has an 18B header area, and 43 TS packets to which ATS information is added are arranged in the data area. ATS information (Arrival Time Stamp Information) is information generated and added by a DVD recorder, and is information indicating the timing at which the packet is transmitted from the outside to the DVD recorder.

尚、図14Cに示したように、固定バイトのATSとMPEG−TSパケットとの組で連続して記録したMPEG−TSの蓄積フォーマットも有り得る。
(5.AV情報の管理情報と再生制御の概要)
図15A、15B、16A、16Bは図7が示すところのビデオ管理情報(Video Manager)と称されるファイルのデータ構造を示す図である。
As shown in FIG. 14C, there may be an MPEG-TS storage format in which a fixed byte ATS and an MPEG-TS packet are continuously recorded.
(5. Overview of AV information management information and playback control)
15A, 15B, 16A, and 16B are diagrams showing the data structure of a file called video management information (Video Manager) shown in FIG.

ビデオ管理情報は、各種オブジェクトのディスク上の記録位置等の管理情報を示すオブジェクト情報と、オブジェクトの再生順序等を示す再生制御情報とを有する。   The video management information includes object information indicating management information such as recording positions of various objects on the disc, and reproduction control information indicating the reproduction order of the objects.

図15A、15Bはディスクに記録されるオブジェクトとして、PS−VOB#1〜PS−VOB#n、TS1−VOB#1〜TS1−VOB#n、TS2−VOB#1〜TS2−VOB#nがある場合を示す。   15A and 15B include PS-VOB # 1 to PS-VOB # n, TS1-VOB # 1 to TS1-VOB # n, and TS2-VOB # 1 to TS2-VOB # n as objects recorded on the disc. Show the case.

図15Aが示すように、これらオブジェクトの種類に応じて、PS−VOB用の情報テーブルと、TS1−VOB用の情報テーブルと、TS2−VOB用の情報テーブルが個別に存在すると共に、各情報テーブルは各オブジェクト毎のVOB情報を有している。   As shown in FIG. 15A, according to the types of these objects, an information table for PS-VOB, an information table for TS1-VOB, and an information table for TS2-VOB exist individually, and each information table Has VOB information for each object.

VOB情報は、それぞれ、対応するオブジェクトの一般情報と、オブジェクトの属性情報と、オブジェクトの再生時刻をディスク上のアドレスに変換するためのアクセスマップ、当該アクセスマップの管理情報を有している。一般情報は、対応するオブジェクトの識別情報、オブジェクトの記録時刻等を有し、属性情報は、ビデオストリームのコーディングモードをはじめとするビデオストリーム情報(V_ATR)と、オーディオストリームの本数(AST_Ns)と、オーディオストリームのコーディングモードをはじめとするオーディオストリーム情報(A_ATR)とから構成される。   Each VOB information includes general information of the corresponding object, attribute information of the object, an access map for converting the reproduction time of the object into an address on the disk, and management information of the access map. The general information includes identification information of the corresponding object, the recording time of the object, and the attribute information includes video stream information (V_ATR) including the coding mode of the video stream, the number of audio streams (AST_Ns), It consists of audio stream information (A_ATR) including the audio stream coding mode.

アクセスマップを必要とする理由は2つある。まず1つは、再生経路情報がオブジェクトのディスク上での記録位置をセクタアドレス等で直接的に参照するのを避け、オブジェクトの再生時刻で間接的に参照できるようにするためである。RAM媒体の場合、オブジェクトの記録位置が編集等で変更される場合がおこりうるが、再生経路情報がセクタアドレス等で直接的にオブジェクトの記録位置を参照している場合、更新すべき再生経路情報が多くなるためである。一方、再生時刻で間接的に参照している場合は、再生経路情報の更新は不要で、アクセスマップの更新のみ行えば良い。   There are two reasons for requiring an access map. The first is to prevent the playback path information from referring directly to the recording position of the object on the disk by the sector address or the like and to indirectly refer to the playback time of the object. In the case of a RAM medium, the object recording position may be changed by editing or the like, but when the reproduction path information directly refers to the object recording position by a sector address or the like, the reproduction path information to be updated This is because there are many. On the other hand, when referring indirectly by the playback time, it is not necessary to update the playback path information, and only the access map needs to be updated.

2つ目の理由は、AVストリームが一般に時間軸とデータ(ビット列)軸の二つの基準を有しており、この二つの基準間には完全な相関性がないためである。   The second reason is that an AV stream generally has two criteria, a time axis and a data (bit string) axis, and there is no perfect correlation between the two criteria.

例えば、ビデオストリームの国際標準規格であるMPEG−2ビデオの場合、可変ビットレート(画質の複雑さに応じてビットレートを変える方式)を用いることが主流になりつつあり、この場合、先頭からのデータ量と再生時間との間に比例関係がないため、時間軸を基準にしたランダムアクセスができない。この問題を解決するため、オブジェクト情報は、時間軸とデータ(ビット列)軸との間の変換を行なうためのアクセスマップを有している。   For example, in the case of MPEG-2 video, which is an international standard for video streams, it is becoming mainstream to use a variable bit rate (a method in which the bit rate is changed according to the complexity of the image quality). Since there is no proportional relationship between the amount of data and the playback time, random access based on the time axis is not possible. In order to solve this problem, the object information has an access map for performing conversion between the time axis and the data (bit string) axis.

図15Aが示すように再生制御情報は、ユーザ定義再生経路情報テーブル、オリジナル再生経路情報テーブル、タイトルサーチポインタを有する。   As shown in FIG. 15A, the playback control information includes a user-defined playback path information table, an original playback path information table, and a title search pointer.

図16Aが示すように、再生経路には、DVDレコーダがオブジェクト記録時に記録された全てのオブジェクトを示すように自動生成するオリジナル定義再生経路情報と、ユーザが自由に再生シーケンスを定義できるユーザ定義再生経路情報の2種類がある。再生経路はDVDではPGC情報(Program Chain Information)と統一的呼称され、また、ユーザ定義再生経路情報はU−PGC情報、オリジナル再生経路情報はO−PGC情報と呼称される。O−PGC情報、U−PGC情報はそれぞれ、オブジェクトの再生区間であるセルを示す情報であるセル情報をテーブル形式で列挙する情報である。O−PGC情報で示されるオブジェクトの再生区間はオリジナルセル(O−CELL)と呼称され、U−PGC情報で示されるオブジェクトの再生区間はユーザセル(U−CELL)と呼称される。   As shown in FIG. 16A, the playback path includes original definition playback path information automatically generated so that all objects recorded by the DVD recorder during object recording, and user-defined playback that allows the user to freely define a playback sequence. There are two types of route information. The playback path is collectively called PGC information (Program Chain Information) in the DVD, the user-defined playback path information is called U-PGC information, and the original playback path information is called O-PGC information. Each of the O-PGC information and the U-PGC information is information that lists cell information, which is information indicating cells that are playback sections of an object, in a table format. The playback section of the object indicated by the O-PGC information is called an original cell (O-CELL), and the playback section of the object shown by the U-PGC information is called a user cell (U-CELL).

セルは、オブジェクトの再生開始時刻と再生終了時刻でオブジェクトの再生区間を示し、再生開始時刻と再生終了時刻は前述したアクセスマップにより、オブジェクトの実際のディスク上の記録位置情報に変換される。   The cell indicates the object playback section by the playback start time and playback end time of the object, and the playback start time and playback end time are converted into the recording position information of the object on the actual disk by the access map described above.

図16Bが示すように、PGC情報により示されるセル群は、テーブルのエントリー順序に従って順次再生される一連の再生シーケンスを構成する。   As shown in FIG. 16B, the cell group indicated by the PGC information constitutes a series of playback sequences that are sequentially played back according to the entry order of the table.

図17は、オブジェクト、セル、PGC、アクセスマップの関係を具体的に説明する図である。   FIG. 17 is a diagram for specifically explaining the relationship among objects, cells, PGCs, and access maps.

図17に示すように、オリジナルPGC情報50は少なくとも1つのセル情報60、61、62、63を含む。 セル情報60…は再生するオブジェクトを指定し、かつ、そのオブジェクトタイプ、オブジェクトの再生区間を指定する。PGC情報50におけるセル情報の記録順序は、各セルが指定するオブジェクトが再生されるときの再生順序を示す。   As shown in FIG. 17, the original PGC information 50 includes at least one cell information 60, 61, 62, 63. The cell information 60... Designates an object to be reproduced, and designates the object type and the object reproduction period. The recording order of the cell information in the PGC information 50 indicates the reproduction order when the object designated by each cell is reproduced.

一のセル情報60には、それが指定するオブジェクトの種類を示すタイプ情報(Type)60aと、オブジェクトの識別情報であるオブジェクトID(Object ID) 60bと、時間軸上でのオブジェクト内の開始時刻情報(Start_PTM)60cと、時間軸上でのオブジェクト内の終了時刻情報(End_PTM)60dとが含まれる。   One cell information 60 includes type information (Type) 60a indicating the type of object designated by the cell information 60, an object ID (Object ID) 60b which is object identification information, and a start time in the object on the time axis. Information (Start_PTM) 60c and end time information (End_PTM) 60d in the object on the time axis are included.

データ再生時は、PCG情報50内のセル情報60が順次読み出され、各セルにより指定されるオブジェクトが、セルにより指定される再生区間分再生されることになる。   At the time of data reproduction, the cell information 60 in the PCG information 50 is sequentially read, and the object designated by each cell is reproduced for the reproduction section designated by the cell.

アクセスマップ80cは、セル情報が示す開始時刻情報と終了時刻情報とをオブジェクトのディスク上での位置情報に変換する。   The access map 80c converts the start time information and end time information indicated by the cell information into position information on the disk of the object.

上述したマップ情報であるが、オブジェクトの記録時にともに生成され記録される。マップを生成するためには、オブジェクトのデータ内のピクチャ構造を解析する必要がある。具体的には図9で示すIピクチャの位置の検出と、図10A〜10C、図11A〜11Cに示す当該Iピクチャの再生時刻であるPTS等のタイムスタンプ情報の検出が必要になる。   The map information described above is generated and recorded together with the recording of the object. In order to generate a map, it is necessary to analyze the picture structure in the data of the object. Specifically, it is necessary to detect the position of the I picture shown in FIG. 9 and time stamp information such as PTS that is the reproduction time of the I picture shown in FIGS. 10A to 10C and FIGS. 11A to 11C.

ここで、PS−VOBとTS1−VOBとTS2−VOBのマップ情報を生成する際に生じる問題について以下説明する。   Here, problems that occur when generating map information of PS-VOB, TS1-VOB, and TS2-VOB will be described below.

PS−VOB、TS−VOB1は、図1で説明したように主として、受信されたアナログ放送をDVDレコーダがMPEGストリームにエンコードすることにより生成される。このため、Iピクチャや各種タイムスタンプの情報は自らが生成しており、DVDレコーダにとってストリーム内部のデータ構造は明確であり、マップ情報の生成になんの問題も生じない。   PS-VOB and TS-VOB1 are generated mainly by encoding a received analog broadcast into an MPEG stream as described in FIG. Therefore, the information of the I picture and various time stamps is generated by itself, the data structure inside the stream is clear for the DVD recorder, and no problem occurs in the generation of map information.

次に、TS2−VOBであるが、図1で説明したように主として、受信されたデジタル放送をDVDレコーダがエンコードすることなく直接ディスクに記録する。このため、PS−VOBのようにIピクチャの位置とタイムスタンプ情報を自ら生成するわけではないため、DVDレコーダにとってストリーム内部のデータ構造は明確ではなく、記録するデジタルストリームからこれら情報を検出することが必要になる。   Next, as for TS2-VOB, as described with reference to FIG. 1, the received digital broadcast is mainly recorded directly on the disk without being encoded by the DVD recorder. For this reason, unlike the PS-VOB, the position and time stamp information of the I picture is not generated by itself, so that the data structure inside the stream is not clear for the DVD recorder, and this information is detected from the digital stream to be recorded. Is required.

このため、DVDレコーダは、レコーダ外部にてエンコードされたストリームを記録しているTS2−VOBのマップ情報については下記のようにIピクチャとタイムスタンプを検出する。   For this reason, the DVD recorder detects an I picture and a time stamp as follows for the map information of TS2-VOB recording a stream encoded outside the recorder.

まず、Iピクチャの検出は、図12A〜12Dに示すTSパケットの適用フィールドのランダムアクセス表示情報を検出することにより行う。また、タイムスタンプの検出については、PESヘッダのPTSを検出することにより行う。タイムスタンプについては、PTSの代わりに、適用フィールドのPCRや、TSパケットがDVDレコーダに伝送されてきた到着タイミングであるATSで代用することもある。いずれにせよ、DVDレコーダはMPEGストリームのビデオ層のデータ構造を解析することなく、その上位層であるシステム層の情報により、Iピクチャの位置を検出する。これは、マップ情報を生成するためにビデオ層の解析まで行うのはシステムの負荷が大きいためである。   First, the I picture is detected by detecting the random access display information in the application field of the TS packet shown in FIGS. The time stamp is detected by detecting the PTS in the PES header. For the time stamp, instead of the PTS, the PCR of the application field or the ATS that is the arrival timing at which the TS packet is transmitted to the DVD recorder may be substituted. In any case, the DVD recorder detects the position of the I picture based on the information of the system layer that is an upper layer without analyzing the data structure of the video layer of the MPEG stream. This is because the load on the system is high until the analysis of the video layer is performed in order to generate the map information.

また、システム層の検出が不可能な場合もありうるが、この場合は、マップ情報が生成できないため、有効なマップ情報が無いことを示すことが必要になる。DVDレコーダでは図15Bに示すマップ管理情報によりこれらが示される。   Further, the system layer may not be detected. In this case, map information cannot be generated, and thus it is necessary to indicate that there is no effective map information. In the DVD recorder, these are indicated by the map management information shown in FIG. 15B.

図15Bに示すようにマップ管理情報は、マップ有効性情報と自己エンコーディングフラグとを有する。自己エンコーディングフラグは、DVDレコーダ自らがエンコードしたオブジェクトであることを示し、内部のピクチャ構造が明確であり、マップ情報のタイムスタンプ情報やIピクチャの位置情報等が正確であることを示している。また、マップ有効性情報は、有効なアクセスマップの有無を示す。   As shown in FIG. 15B, the map management information includes map validity information and a self-encoding flag. The self-encoding flag indicates an object encoded by the DVD recorder itself, the internal picture structure is clear, and the time stamp information of the map information, the position information of the I picture, and the like are accurate. The map validity information indicates whether or not there is a valid access map.

なお、システム層の検出が不可能な例としては、適用フィールドが設定されていない場合や、そもそもMPEGトランスポートストリームで無いデジタルストリームの場合が考えうる。デジタル放送が世界各国で各種方式が成立しうるため、DVDレコーダがマップを生成できないオブジェクトを記録するケースも当然予想される。例えば、日本のデジタル放送を想定したDVDレコーダを米国で使用し、米国のデジタル放送を記録した場合、マップを生成できないオブジェクトを記録するケースが出てくる。   Note that examples in which the system layer cannot be detected include a case where an application field is not set or a digital stream that is not an MPEG transport stream in the first place. Since various types of digital broadcasting can be established in various countries around the world, it is naturally expected that DVD recorders record objects that cannot generate maps. For example, when a DVD recorder that assumes Japanese digital broadcasting is used in the US and US digital broadcasting is recorded, there are cases where an object that cannot generate a map is recorded.

但し、DVDレコーダはマップ情報が生成されないオブジェクトについても、先頭から順次再生することは可能である。この場合、記録されたデジタルストリームをデジタルI/Fを介して、当該ストリームに対応したSTBに出力することでこれを映像再生することができる。
(6.再生機能の基本動作)
次に、図18を用いて上記光ディスクを再生するDVDレコーダプレーヤの再生動作について説明する。
However, the DVD recorder can also sequentially reproduce objects from which no map information is generated from the top. In this case, the recorded digital stream can be reproduced by outputting it to the STB corresponding to the stream via the digital I / F.
(6. Basic operation of playback function)
Next, the reproduction operation of the DVD recorder player that reproduces the optical disk will be described with reference to FIG.

図18に示すように、プレーヤは、光ディスク100からデータを読み出す光ピックアップ201と、読み出したデータのエラー訂正等を行なうECC処理部202と、エラー訂正後の読み出しデータを一時的に格納するトラックバッファ203と、動画オブジェクト(PS_VOB)等のプログラムストリームを再生するPSデコーダ205と、デジタル放送オブジェクト(TS2_VOB)等のトランスポートストリームを再生するTSデコーダ206と、オーディオ・オブジェクト(AOB)を再生するオーディオデコーダ207と、静止画オブジェクト(POB)をデコードする静止画デコーダ208と、各デコーダ205、206…へのデータ入力を切り換える切換え手段210と、プレーヤの各部を制御する制御部211とを備える。   As shown in FIG. 18, the player has an optical pickup 201 that reads data from the optical disc 100, an ECC processing unit 202 that performs error correction of the read data, and a track buffer that temporarily stores read data after error correction. 203, a PS decoder 205 that reproduces a program stream such as a moving image object (PS_VOB), a TS decoder 206 that reproduces a transport stream such as a digital broadcast object (TS2_VOB), and an audio decoder that reproduces an audio object (AOB) 207, a still picture decoder 208 that decodes a still picture object (POB), a switching unit 210 that switches data input to each of the decoders 205, 206, and a control unit 211 that controls each part of the player. That.

光ディスク100上に記録されているデータは、光ピックアップ201から読み出され、ECC処理部202を通してトラックバッファ203に格納される。トラックバッファ203に格納されたデータは、PSデコーダ205、TSデコーダ206、オーディオデコーダ207、静止画デコーダ208の何れかに入力されデコードおよび出力される。   Data recorded on the optical disc 100 is read from the optical pickup 201 and stored in the track buffer 203 through the ECC processing unit 202. The data stored in the track buffer 203 is input to any of the PS decoder 205, TS decoder 206, audio decoder 207, and still picture decoder 208, and is decoded and output.

このとき、制御部211は読み出すべきデータを図16が示す再生経路情報(PGC)が示す再生シーケンスに基づき決定する。すなわち、図16の例であれば、制御部211は、VOB#1の部分区間(CELL#1)を最初に再生し、次いで、VOB#3の部分区間(CELL#2)を再生し、最後にVOB#2(CELL#3)と再生する制御を行う。   At this time, the control unit 211 determines data to be read based on the reproduction sequence indicated by the reproduction path information (PGC) shown in FIG. That is, in the example of FIG. 16, the control unit 211 reproduces the partial section (CELL # 1) of VOB # 1 first, and then reproduces the partial section (CELL # 2) of VOB # 3. And VOB # 2 (CELL # 3).

また、制御部211は、図17が示す再生経路情報(PGC)のセル情報により、再生するセルのタイプ、対応するオブジェクト、オブジェクトの再生開始時刻、再生終了時刻を獲得することができる。制御部211は、セル情報により特定されるオブジェクトの区間のデータを、適合するデコーダに入力する。   Also, the control unit 211 can obtain the type of cell to be played, the corresponding object, the playback start time of the object, and the playback end time based on the cell information of the playback path information (PGC) shown in FIG. The control unit 211 inputs the data of the object section specified by the cell information to a suitable decoder.

この際、制御部211は、セル情報のObject IDにより再生対象のオブジェクトを特定する。さらに、制御部211は、特定したオブジェクトの再生区間であるセルの特定を、セル情報のStartPTMとEndPTMを、対応するVOB情報のアクセスマップでディスク情報のアドレスに変換することにより行う。   At this time, the control unit 211 specifies the object to be played back based on the Object ID of the cell information. Further, the control unit 211 identifies a cell, which is a playback section of the identified object, by converting StartPTM and EndPTM of the cell information into an address of the disc information using an access map of the corresponding VOB information.

また、本実施形態のプレーヤは、さらに、AVストリームを外部に供給するためのデジタルインターフェース204を有している。これにより、AVストリームをIEEE1394やIEC958などの通信手段を介して外部に供給することも可能である。これは、特に、自らがエンコードしていないTS2−VOBについては、プレーヤ内部に該当するデコーダが存在しないケースもありうるため、デコードすることなく、直接、デジタルインターフェース204を通じて外部のSTBに出力し、そのSTBで再生させることができる。   The player according to the present embodiment further includes a digital interface 204 for supplying an AV stream to the outside. Thereby, it is also possible to supply the AV stream to the outside via communication means such as IEEE 1394 and IEC 958. This is especially true for TS2-VOB that is not encoded by itself, since there may be no corresponding decoder inside the player, so it is output directly to the external STB through the digital interface 204 without decoding, It can be played back by the STB.

外部にデジタルデータを直接出力する際には、制御部211は図15Bのマップ管理情報に基づき、ランダムアクセス再生が可能かを否か判断する。アクセスポイント情報フラグが有効であれば、アクセスマップはIピクチャの位置情報を有する。このため、制御部211は外部機器から早送り再生等の要求があればこれに応じて、Iピクチャを含むデジタルデータをデジタルI/Fを介して外部機器に出力することができる。また、タイムアクセス情報フラグが有効であれば、タイムアクセスが可能である。このため制御部211は、外部の機器からのタイムアクセスの要求に応じて、指定された再生時刻に相当するピクチャデータを含むデジタルデータをデジタルI/Fを介して外部機器に出力することができる。
(7.記録機能の基本動作)
次に、図19を用いて上記光ディスクに対して記録、再生を行なう本発明に係るDVDレコーダの構成および動作について説明する。
When outputting digital data directly to the outside, the control unit 211 determines whether or not random access reproduction is possible based on the map management information in FIG. 15B. If the access point information flag is valid, the access map has I picture position information. For this reason, if there is a request for fast-forward playback or the like from the external device, the control unit 211 can output digital data including the I picture to the external device via the digital I / F. If the time access information flag is valid, time access is possible. Therefore, the control unit 211 can output digital data including picture data corresponding to the designated reproduction time to the external device via the digital I / F in response to a time access request from the external device. .
(7. Basic operation of recording function)
Next, the configuration and operation of the DVD recorder according to the present invention for recording and reproducing with respect to the optical disc will be described with reference to FIG.

図19に示すように、DVDレコーダは、ユーザへの表示およびユーザからの要求を受け付けるユーザインターフェース部222、DVDレコーダ全体の管理および制御を司るシステム制御部212、VHFおよびUHFを受信するアナログ放送チューナ213、アナログ信号をデジタル信号に変換しMPEGプログラムストリームにエンコードするエンコーダ214、デジタル衛星放送を受信するデジタル放送チューナ215、デジタル衛星で送られるMPEGトランスポートストリームを解析する解析部216、テレビおよびスピーカなどの表示部217、AVストリームをデコードするデコーダ218とを備える。デコーダ218は、図18に示した第1及び第2のデコーダ等からなる。さらに、DVDレコーダは、デジタルインターフェース部219と、書きこみデータを一時的に格納するトラックバッファ220と、DVD−RAM100にデータを書きこむドライブ221とを備える。デジタルインターフェース部219はIEEE1394等の通信手段により外部機器にデータを出力するインターフェースである。   As shown in FIG. 19, the DVD recorder has a user interface unit 222 that accepts display to the user and requests from the user, a system control unit 212 that manages and controls the entire DVD recorder, and an analog broadcast tuner that receives VHF and UHF. 213, an encoder 214 that converts an analog signal into a digital signal and encodes it into an MPEG program stream, a digital broadcast tuner 215 that receives a digital satellite broadcast, an analysis unit 216 that analyzes an MPEG transport stream sent by the digital satellite, a television, a speaker, and the like Display unit 217 and decoder 218 for decoding the AV stream. The decoder 218 includes the first and second decoders shown in FIG. Further, the DVD recorder includes a digital interface unit 219, a track buffer 220 that temporarily stores write data, and a drive 221 that writes data to the DVD-RAM 100. The digital interface unit 219 is an interface that outputs data to an external device by communication means such as IEEE1394.

このように構成されるDVDレコーダにおいては、ユーザインターフェース部222が最初にユーザからの要求を受ける。ユーザインターフェース部222はユーザからの要求をシステム制御部212に伝え、システム制御部212はユーザからの要求を解釈すると共に各モジュールへの処理要求を行う。   In the DVD recorder configured as described above, the user interface unit 222 first receives a request from the user. The user interface unit 222 transmits a request from the user to the system control unit 212, and the system control unit 212 interprets the request from the user and makes a processing request to each module.

録画には、入力されるデジタルデータを自らエンコードするセルフエンコーディングと、エンコード済みのデジタルデータをエンコードすることなくディスクに記録するアウトサイドエンコーディングがある。
(7.1 セルフエンコーディングによる録画動作)
最初にセルフエンコーディングの録画について、アナログ放送をPS−VOBにエンコードして記録する動作を以下、具体的に説明する。
Recording includes self-encoding that encodes input digital data by itself and outside encoding that records encoded digital data on a disc without encoding.
(7.1 Recording operation by self-encoding)
First, with respect to self-encoding recording, an operation of encoding an analog broadcast into PS-VOB and recording it will be specifically described below.

システム制御部212はアナログ放送チューナ213への受信とエンコーダ部214へのエンコードを要求する。   The system control unit 212 requests reception to the analog broadcast tuner 213 and encoding to the encoder unit 214.

エンコーダ部214はアナログ放送チューナ213から送られるAVデータをビデオエンコード、オーディオエンコードおよびシステムエンコードしてトラックバッファ220に送出する。   The encoder unit 214 performs video encoding, audio encoding and system encoding on the AV data sent from the analog broadcast tuner 213 and sends the AV data to the track buffer 220.

エンコーダ部214は、エンコード開始直後に、エンコードしているMPEGプログラムストリームの先頭データが有するタイムスタンプ情報を再生開始時刻(PS_VOB_V_S_PTM)としてシステム制御部212に送り、続いてアクセスマップを作成するために必要な情報をエンコード処理と平行してシステム制御部212に送る。この値は、後に生成される図17に示すセル情報のStart_PTMに設定される。タイムスタンプ情報は、一般的にはPTSになるがSCRで代用しても良い。   Immediately after the start of encoding, the encoder unit 214 sends the time stamp information included in the head data of the encoded MPEG program stream to the system control unit 212 as the reproduction start time (PS_VOB_V_S_PTM), and is necessary for subsequently creating an access map. This information is sent to the system control unit 212 in parallel with the encoding process. This value is set in Start_PTM of the cell information shown in FIG. The time stamp information is generally PTS, but SCR may be substituted.

次にシステム制御部212は、ドライブ221に対して記録要求を出し、ドライブ221はトラックバッファ220に蓄積されているデータを取り出しDVD−RAMディスク100に記録する。この際、前述した連続領域(CDA)をディスク上の記録可能領域から検索し、検索した連続領域にデータを記録していく。   Next, the system control unit 212 issues a recording request to the drive 221, and the drive 221 extracts data stored in the track buffer 220 and records it on the DVD-RAM disk 100. At this time, the above-described continuous area (CDA) is searched from the recordable area on the disc, and data is recorded in the searched continuous area.

録画終了はユーザからのストップ要求によって指示される。ユーザからの録画停止要求は、ユーザインターフェース部222を通してシステム制御部212に伝えられ、システム制御部212はアナログ放送チューナ213とエンコーダ部214に対して停止要求を出す。   The end of recording is instructed by a stop request from the user. The recording stop request from the user is transmitted to the system control unit 212 through the user interface unit 222, and the system control unit 212 issues a stop request to the analog broadcast tuner 213 and the encoder unit 214.

エンコーダ214はシステム制御部212からのエンコード停止要求を受けエンコード処理を止め、最後にエンコードを行ったMPEGプログラムストリームの終端データが有するタイムスタンプ情報を再生終了時刻(PS_VOB_V_E_PTM)として、システム制御部212に送る。この値は、図17に示すセル情報のEnd_PTMに設定される。タイムスタンプ情報は通常PTSが設定されるが、SCRで代用しても良い。   The encoder 214 receives the encoding stop request from the system control unit 212, stops the encoding process, and sets the time stamp information included in the end data of the MPEG program stream that has been encoded last as the playback end time (PS_VOB_V_E_PTM) to the system control unit 212. send. This value is set in End_PTM of the cell information shown in FIG. The time stamp information is normally set to PTS, but may be replaced with SCR.

システム制御部212は、エンコード処理終了後、エンコーダ214から受け取った情報に基づき、図15に示すPS−VOB用のVOB情報(PS−VOBI)と再生制御情報を生成する。   After the encoding process is completed, the system control unit 212 generates PS-VOB VOB information (PS-VOBI) and playback control information shown in FIG. 15 based on the information received from the encoder 214.

ここで、生成されるVOB情報はオブジェクト種類に適合したアクセスマップとマップ管理情報とを含む。システム制御部212は、マップ管理情報のマップ有効性情報を有効に設定すると共に、自己エンコーディングフラグをONにする。   Here, the generated VOB information includes an access map suitable for the object type and map management information. The system control unit 212 sets the map validity information of the map management information to be valid, and turns on the self-encoding flag.

また、再生制御情報は、記録されるオブジェクトを再生対象の1つとする図16に示すオリジナル再生経路(O−PGC情報)が生成される。生成されたO−PGC情報はオリジナル再生経路テーブルに追記される。オリジナル再生経路(O−PGC情報)はセル情報を有する。セル情報のタイプ情報には「PS−VOB」が設定される。   Further, as the reproduction control information, an original reproduction path (O-PGC information) shown in FIG. 16 is generated, in which an object to be recorded is one of reproduction targets. The generated O-PGC information is added to the original reproduction path table. The original reproduction path (O-PGC information) has cell information. “PS-VOB” is set in the type information of the cell information.

最後にシステム制御部212は、ドライブ221に対してトラックバッファ220に蓄積されているデータの記録終了と、PS−VOB用のVOB情報(PS_VOBI)および再生制御情報の記録を要求し、ドライブ221がトラックバッファ220の残りデータと、これらの情報をDVD−RAMディスク100に記録し、録画処理を終了する。   Finally, the system control unit 212 requests the drive 221 to finish recording the data stored in the track buffer 220 and record PS-VOB VOB information (PS_VOBI) and playback control information. The remaining data in the track buffer 220 and these pieces of information are recorded on the DVD-RAM disk 100, and the recording process is terminated.

なお、アナログ放送をTS1−VOBにエンコードしてももちろん良い。この場合、エンコーダ214はアナログ信号をデジタル信号に変換しMPEGトランスポートストリームにエンコードするエンコーダである必要があり、セル情報内のタイプ情報は「TS1−VOB」に設定される。
この場合のStart_PTMおよびEnd_PTMは、PTSでも良いしPCRを用いても良い。
(7.2 アウトサイドエンコーディングによる録画動作)
次にアウトサイドエンコーディングによる録画について、デジタル放送を録画する動作を通して以下、具体的に説明する。この場合、記録されるオブジェクトの種類はTS2−VOBになる。
Of course, analog broadcasting may be encoded into TS1-VOB. In this case, the encoder 214 needs to be an encoder that converts an analog signal into a digital signal and encodes it into an MPEG transport stream, and the type information in the cell information is set to “TS1-VOB”.
In this case, Start_PTM and End_PTM may be PTS or PCR.
(7.2 Recording operation by outside encoding)
Next, recording by outside encoding will be specifically described below through an operation of recording a digital broadcast. In this case, the type of object to be recorded is TS2-VOB.

ユーザによるデジタル放送録画要求は、ユーザインターフェース部222を通してシステム制御部212に伝えられる。システム制御部212はデジタル放送チューナ215への受信と解析部216へのデータ解析を要求する。   A digital broadcast recording request by the user is transmitted to the system control unit 212 through the user interface unit 222. The system control unit 212 requests reception to the digital broadcast tuner 215 and data analysis to the analysis unit 216.

デジタル放送チューナ215から送られるMPEGトランスポートストリームは解析部216を通してトラックバッファ220へ転送される。   The MPEG transport stream sent from the digital broadcast tuner 215 is transferred to the track buffer 220 through the analysis unit 216.

解析部216は、最初にデジタル放送として受信されたエンコード済みのMPEGトランスポートストリーム(TS2−VOB)のVOB情報(TS2_VOBI)の生成に必要な情報として、トランスポートストリームの先頭データが有するタイムスタンプ情報を開始時刻情報(TS2_VOB_V_S_PTM)として抽出し、システム制御部212に送る。開始時刻情報は、後に生成される図17に示すセル情報のStart_PTMに設定される。このタイムスタンプ情報は、PCR又はPTSになる。また、オブジェクトがDVDレコーダに伝送されてくるタイミングであるATSで代用しても良い。   The analysis unit 216 obtains time stamp information included in the head data of the transport stream as information necessary for generating the VOB information (TS2_VOBI) of the encoded MPEG transport stream (TS2-VOB) that is first received as a digital broadcast. Is extracted as start time information (TS2_VOB_V_S_PTM) and sent to the system control unit 212. The start time information is set in Start_PTM of cell information shown in FIG. This time stamp information is PCR or PTS. Moreover, you may substitute with ATS which is a timing which an object is transmitted to a DVD recorder.

解析部216は、さらに、MPEGトランスポートストリームのシステム層を解析し、アクセスマップ作成に必要な情報を検出する。Iピクチャのオブジェクト内での位置については、前述したようにTSパケットヘッダ中の適用フィールド(adaptation field)内のランダムアクセスインジケータ(randam_access_indicator)をもとに検出する。   The analysis unit 216 further analyzes the system layer of the MPEG transport stream and detects information necessary for creating an access map. As described above, the position of the I picture in the object is detected based on the random access indicator (random_access_indicator) in the application field (adaptation field) in the TS packet header.

次にシステム制御部212は、ドライブ221に対して記録要求を出力し、ドライブ221はトラックバッファ220に蓄積されているデータを取り出しDVD−RAMディスク100に記録する。この時、システム制御部212はファイルシステムのアロケーション情報からディスク上のどこに記録するかをあわせてドライブ221に指示する。この際、前述した連続領域(CDA)をディスク上の記録可能領域から検索し、検索した連続領域にデータを記録していく。   Next, the system control unit 212 outputs a recording request to the drive 221, and the drive 221 extracts the data stored in the track buffer 220 and records it on the DVD-RAM disk 100. At this time, the system control unit 212 instructs the drive 221 where to record on the disk from the allocation information of the file system. At this time, the above-described continuous area (CDA) is searched from the recordable area on the disc, and data is recorded in the searched continuous area.

録画終了はユーザからのストップ要求によって指示される。ユーザからの録画停止要求は、ユーザインターフェース部222を通してシステム制御部212に伝えられ、システム制御部212はデジタルチューナ215と解析部216に停止要求を出す。   The end of recording is instructed by a stop request from the user. The recording stop request from the user is transmitted to the system control unit 212 through the user interface unit 222, and the system control unit 212 issues a stop request to the digital tuner 215 and the analysis unit 216.

解析部216はシステム制御部212からの解析停止要求を受け解析処理を止め、最後に解析を行ったMPEGトランスポートストリームの終了区間のデータが有するタイムスタンプ情報を表示終了時刻(TS2_VOB_V_E_PTM)としてシステム制御部212に送る。この値は、図17に示すセル情報のEnd_PTMに設定される。このタイムスタンプ情報は、PCR又はPTSになる。また、オブジェクトがDVDレコーダに伝送されてくるタイミングであるATSで代用しても良い。   The analysis unit 216 stops the analysis process in response to the analysis stop request from the system control unit 212, and performs system control using the time stamp information included in the data of the end section of the MPEG transport stream analyzed last as the display end time (TS2_VOB_V_E_PTM). To the unit 212. This value is set in End_PTM of the cell information shown in FIG. This time stamp information is PCR or PTS. Moreover, you may substitute with ATS which is a timing which an object is transmitted to a DVD recorder.

システム制御部212は、デジタル放送の受信処理終了後、解析部216から受け取った情報に基づき、図15に示すTS2−VOB用のVOB情報(TS2_VOBI)と再生制御情報を生成する。   The system control unit 212 generates TS2-VOB VOB information (TS2_VOBI) and playback control information shown in FIG. 15 based on the information received from the analysis unit 216 after completion of the digital broadcast reception process.

ここで、生成されるVOB情報はオブジェクト種類に適合したアクセスマップとマップ管理情報とを含む。システム制御部212は、Iピクチャのオブジェクト内での位置等を検出でき有効なアクセスマップを生成した場合にはマップ管理情報のマップ有効性情報を有効に設定する。また自己エンコーディングフラグはOFF設定をする。有効なアクセスマップを生成できなかった場合にはマップ有効性情報を無効に設定する。なお、有効なアクセスマップを生成できないケースとしては、対応していないデジタル放送を受信した場合や、適用フィールドにランダムアクセス情報が無い場合等が考えられる。また、デジタルI/Fから直接入力された場合は、MPEGトランスポートストリームでないケースもありえ、この場合も当然、マップ有効性情報は無効に設定される。   Here, the generated VOB information includes an access map suitable for the object type and map management information. When the system control unit 212 can detect the position of the I picture in the object and generates an effective access map, the system control unit 212 sets the map validity information of the map management information to be valid. The self-encoding flag is set to OFF. If a valid access map cannot be generated, the map validity information is set to invalid. In addition, as a case where a valid access map cannot be generated, a case where a non-supported digital broadcast is received or a case where there is no random access information in the application field can be considered. In addition, when input directly from the digital I / F, there may be cases where the stream is not an MPEG transport stream. In this case, naturally, the map validity information is set to invalid.

また、再生制御情報は、記録されるオブジェクトを再生対象の1つとする図16に示すオリジナル再生経路(O−PGC情報)が生成される。生成されたO−PGC情報はオリジナル再生経路テーブルに追記される。オリジナル再生経路(O−PGC情報)はセル情報を有する。セル情報のタイプ情報には「TS2−VOB」が設定される。   Further, as the reproduction control information, an original reproduction path (O-PGC information) shown in FIG. 16 is generated, in which an object to be recorded is one of reproduction targets. The generated O-PGC information is added to the original reproduction path table. The original reproduction path (O-PGC information) has cell information. “TS2-VOB” is set in the type information of the cell information.

最後にシステム制御部212は、ドライブ221に対してトラックバッファ220に蓄積されているデータの記録終了と、TS2−VOB用のVOB情報(TS2_VOBI)および再生制御情報の記録を要求し、ドライブ221がトラックバッファ220の残りデータと、これらの情報をDVD−RAMディスク100に記録し、録画処理を終了する。   Finally, the system control unit 212 requests the drive 221 to finish recording the data stored in the track buffer 220 and record the TS2-VOB VOB information (TS2_VOBI) and the reproduction control information. The remaining data in the track buffer 220 and these pieces of information are recorded on the DVD-RAM disk 100, and the recording process is terminated.

以上、ユーザからの録画開始および終了要求をもとに動作を説明したが、例えば、VTRで使用されているタイマー録画の場合では、ユーザの代わりにシステム制御部が自動的に録画開始および終了要求を発行するだけであって、本質的にDVDレコーダの動作が異なるものではない。
(8.詳細な実施形態)
第1の実施例.
本発明の情報記録/再生装置の記録/再生時の基本動作に関しては、ほぼ前述の説明の通りであるため、以下にアナログ外部入力記録時の基本動作に関してのみ図20を用いて具体的に説明する。この場合、記録されるオブジェクトの種類はTS1−VOBになる。
The operation has been described above based on the recording start and end requests from the user. For example, in the case of timer recording used in a VTR, the system control unit automatically requests recording start and end instead of the user. The operation of the DVD recorder is not essentially different.
(8. Detailed embodiment)
First embodiment.
Since the basic operation at the time of recording / reproducing of the information recording / reproducing apparatus of the present invention is almost as described above, only the basic operation at the time of analog external input recording will be specifically described below with reference to FIG. To do. In this case, the type of object to be recorded is TS1-VOB.

ユーザによる外部入力録画要求は、ユーザインターフェース部222を通してシステム制御部212に伝えられる。システム制御部212は外部入力部223への受信とエンコーダ214へのデータ符号化を要求する。   The external input recording request by the user is transmitted to the system control unit 212 through the user interface unit 222. The system control unit 212 requests reception to the external input unit 223 and data encoding to the encoder 214.

エンコーダ214から送られるMPEGトランスポートストリームはトラックバッファ220へ転送される。   The MPEG transport stream sent from the encoder 214 is transferred to the track buffer 220.

エンコーダ214は、最初にエンコード済みのMPEGトランスポートストリーム(TS1−VOB)のVOB情報(TS1_VOBI)の生成に必要な情報として、トランスポートストリームの先頭データが有するタイムスタンプ情報を開始時刻情報(TS1_VOB_V_S_PTM)として設定し、システム制御部212に送る。開始時刻情報は、後に生成される図17に示すセル情報のStart_PTMに設定される。このタイムスタンプ情報は、PCR又はPTSになる。   The encoder 214 uses the time stamp information included in the top data of the transport stream as start time information (TS1_VOB_V_S_PTM) as information necessary for generating the VOB information (TS1_VOBI) of the MPEG transport stream (TS1-VOB) that has been encoded first. And sent to the system control unit 212. The start time information is set in Start_PTM of cell information shown in FIG. This time stamp information is PCR or PTS.

エンコーダ214は、さらに、MPEGトランスポートストリームを生成しながら、アクセスマップ作成に必要な情報を生成する。   The encoder 214 further generates information necessary for creating an access map while generating an MPEG transport stream.

例えば、Iピクチャの先頭MPEGトランスポートパケットには、adaptation fieldを格納し、random_access_indicatorのビットを立て、VOBUのスタートであることをシステム制御部212に転送する。   For example, the adaptation field is stored in the first MPEG transport packet of the I picture, the random_access_indicator bit is set, and the start of the VOBU is transferred to the system control unit 212.

次にシステム制御部212は、ドライブ221に対して記録要求を出力し、ドライブ221はトラックバッファ220に蓄積されているデータを取り出しDVD−RAMディスク100に記録する。この時、システム制御部212はファイルシステムのアロケーション情報からディスク上のどこに記録するかをあわせてドライブ221に指示する。この際、前述した連続領域(CDA)をディスク上の記録可能領域から検索し、検索した連続領域にデータを記録していく。   Next, the system control unit 212 outputs a recording request to the drive 221, and the drive 221 extracts the data stored in the track buffer 220 and records it on the DVD-RAM disk 100. At this time, the system control unit 212 instructs the drive 221 where to record on the disk from the allocation information of the file system. At this time, the above-described continuous area (CDA) is searched from the recordable area on the disc, and data is recorded in the searched continuous area.

録画終了はユーザからのストップ要求によって指示される。ユーザからの録画停止要求は、ユーザインターフェース部222を通してシステム制御部212に伝えられ、システム制御部212はエンコーダ214に停止要求を出す。   The end of recording is instructed by a stop request from the user. The recording stop request from the user is transmitted to the system control unit 212 through the user interface unit 222, and the system control unit 212 issues a stop request to the encoder 214.

エンコーダ214はシステム制御部212からの記録停止要求を受け符号化処理を止め、最後に符号化を行ったMPEGトランスポートストリームの終了区間のデータが有するタイムスタンプ情報を表示終了時刻(TS1_VOB_V_E_PTM)としてシステム制御部212に送る。この値は、図17に示すセル情報のEnd_PTMに設定される。このタイムスタンプ情報は、PCR又はPTSになる。   The encoder 214 receives the recording stop request from the system control unit 212, stops the encoding process, and uses the time stamp information included in the end section data of the MPEG transport stream that has been encoded as the display end time (TS1_VOB_V_E_PTM) as a system. The data is sent to the control unit 212. This value is set in End_PTM of the cell information shown in FIG. This time stamp information is PCR or PTS.

システム制御部212は、記録処理終了後、エンコーダ214から受け取った情報に基づき、図15に示すTS1−VOB用のVOB情報(TS1_VOBI)と再生制御情報を生成する。   The system control unit 212 generates TS1-VOB VOB information (TS1_VOBI) and playback control information shown in FIG. 15 based on the information received from the encoder 214 after the recording process is completed.

ここで、生成されるVOB情報はオブジェクト種類に適合したアクセスマップとマップ管理情報とを含む。システム制御部212は、マップ管理情報のマップ有効性情報を有効に設定する。また自己エンコーディングフラグはON設定をする。   Here, the generated VOB information includes an access map suitable for the object type and map management information. The system control unit 212 sets the map validity information of the map management information to be valid. The self-encoding flag is set to ON.

また、再生制御情報は、記録されるオブジェクトを再生対象の1つとする図16に示すオリジナル再生経路(O−PGC情報)が生成される。生成されたO−PGC情報はオリジナル再生経路テーブルに追記される。オリジナル再生経路(O−PGC情報)はセル情報を有する。セル情報のタイプ情報には「TS1−VOB」が設定される。   Further, as the reproduction control information, an original reproduction path (O-PGC information) shown in FIG. 16 is generated, in which an object to be recorded is one of reproduction targets. The generated O-PGC information is added to the original reproduction path table. The original reproduction path (O-PGC information) has cell information. “TS1-VOB” is set in the type information of the cell information.

最後にシステム制御部212は、ドライブ221に対してトラックバッファ220に蓄積されているデータの記録終了と、TS1−VOB用のVOB情報(TS1_VOBI)および再生制御情報の記録を要求し、ドライブ221がトラックバッファ220の残りデータと、これらの情報をDVD−RAMディスク100に記録し、録画処理を終了する。   Finally, the system control unit 212 requests the drive 221 to finish recording the data stored in the track buffer 220, and to record TS1-VOB VOB information (TS1_VOBI) and playback control information. The remaining data in the track buffer 220 and these pieces of information are recorded on the DVD-RAM disk 100, and the recording process is terminated.

以下、エンコーダ214にて生成されるセルフエンコーディングMPEGトランスポートストリームの詳細について説明する。   Details of the self-encoding MPEG transport stream generated by the encoder 214 will be described below.

図21AにセルフエンコーディングMPEGトランスポートストリームの構造を示す。同図に示すように、セルフエンコーディングのMPEGトランスポートストリームはVOBU単位に区切られ、各VOBUの先頭にはPATパケットとPMTパケットさらにはストリームに固有の情報を埋め込んだユーザプライベートパケット(以下「UPパケット」と称す。)が続いている。または、少なくともVOBの先頭にはPATパケット、PMTパケットが配置される。   FIG. 21A shows the structure of a self-encoding MPEG transport stream. As shown in the figure, a self-encoding MPEG transport stream is divided into VOBU units, and a PAT packet, a PMT packet, and a user private packet (hereinafter referred to as an “UP packet”) in which information unique to the stream is embedded at the head of each VOBU. Followed by ")". Alternatively, a PAT packet and a PMT packet are arranged at least at the beginning of the VOB.

図21Bに示したように、それぞれのパケットにはデコーダ入力時刻情報であるATSが付与されており、個々のパケットは対応するATSで意図された時刻にデコーダへ転送される。   As shown in FIG. 21B, each packet is given an ATS which is decoder input time information, and each packet is transferred to the decoder at a time intended by the corresponding ATS.

先頭パケットのPATパケットには、セルフエンコーディングのプログラム情報(PMTパケットのPID等)が格納され、ATS1の時刻でデコーダに入力される。   Self-encoding program information (such as PID of the PMT packet) is stored in the PAT packet of the first packet, and is input to the decoder at the time of ATS1.

2番目のパケットのPMTパケットには、プログラムを構成するエレメンタリーストリームごとのPID等が格納される。ここでは、ビデオ、オーディオ、データ放送(図中の"Data")、ユーザプライベート(図中の"private")パケットのPIDを格納した例を示す。   The PMT packet of the second packet stores the PID and the like for each elementary stream constituting the program. Here, an example is shown in which PIDs of video, audio, data broadcast ("Data" in the figure), and user private ("private" in the figure) packet are stored.

3番目のパケットのUPパケットには、ストリームへの付加情報が格納される。例えば、ストリームのタイトル情報や、記録日時情報や、ストリームの符号化情報(ビットレート、ビデオ解像度、フレームレート、アスペクト比、符号化方式等)であるストリーム属性や、外部入力がアナログかデジタルか等の識別する入力源識別情報や、さらにはデジタルであった場合に入力AVデータの符号化方式を特定する情報や、コピー許可/不許可等の著作権保護情報や、VBI(Vertical Blanking Interval)信号である、クローズドキャプション(CC)やテレテキストデータ、または表示制御を指定するWSS(Wide−Screen Signaling)等や、システムエンコードの条件を示した情報や、各種DVD規格との変換性(互換性)を示す情報や、該ストリームを記録した製造業者の固有データ等を用いてユーザ利便性の高いメニュー情報や、各種DVD規格対応のMPEG−PSに変換する際に有用な様々なデータを格納することが考えられる。   Additional information to the stream is stored in the UP packet of the third packet. For example, stream title information, recording date / time information, stream encoding information such as stream encoding information (bit rate, video resolution, frame rate, aspect ratio, encoding method, etc.), whether external input is analog or digital, etc. Input source identification information to be identified, information for specifying the encoding method of input AV data in the case of digital, copyright protection information such as copy permission / non-permission, and VBI (Vertical Blanking Interval) signal Closed captioning (CC), teletext data, WSS (Wide-Screen Signaling) that specifies display control, information indicating system encoding conditions, and convertibility (compatibility) with various DVD standards Information indicating the production and the recording of the stream High and menu information of the user convenience using specific data of persons, it is conceivable to store a variety of useful data in converting various DVD standards compatible MPEG-PS.

前述のようにMPEGトランスポートストリーム内に配置され、付加情報を格納されたパケットのデコーダ入力時刻について図22A、22Bを用いて詳細に説明する。   Decoder input time of a packet arranged in the MPEG transport stream as described above and storing additional information will be described in detail with reference to FIGS. 22A and 22B.

図22Aはトランスポートストリームシステムターゲットデコーダ(T−STD)と呼ばれる基本的なデコーダの構成を示したブロック図であり、前述では触れていなかったPSIパケットを解析し、デコーダの制御を行うシステムデコーダ235も加えて示した図である。   FIG. 22A is a block diagram showing a basic decoder configuration called a transport stream system target decoder (T-STD). The system decoder 235 analyzes PSI packets not mentioned above and controls the decoder. FIG.

PSIパケットであるPAT、PMTパケットは、T−STDに入力されると、デマルチプレクサ232でパケット種別に応じて弁別され、システムコントロールに関するPSIパケットはトランスポートバッファ233に瞬時に転送される。   When PAT and PMT packets, which are PSI packets, are input to the T-STD, they are discriminated by the demultiplexer 232 according to the packet type, and the PSI packets related to system control are instantaneously transferred to the transport buffer 233.

続いて、トランスポートバッファ233に蓄積されたデータは随時システムバッファ234に1000000ビット/秒(=Rsys)のレートで転送される。   Subsequently, the data stored in the transport buffer 233 is transferred to the system buffer 234 at a rate of 1000000 bits / second (= Rsys) as needed.

PSIデータが有効になるのは、システムバッファ234に必要なPSIのデータが揃った瞬間である。   The PSI data becomes valid at the moment when necessary PSI data is prepared in the system buffer 234.

このようにMPEGのT−STDモデルでは、デコーダの動作モデルを規定し、MPEGトランスポートストリームの転送レート等の基準を定めている。   As described above, the MPEG T-STD model defines an operation model of a decoder and defines a standard such as a transfer rate of an MPEG transport stream.

情報記録装置はT−STDにて正しく復号が可能と保証されるMPEGトランスポートストリームの形式に従いセルフエンコーディングする必要があるため、PSIパケットの転送にはいくつかの制限がある。以下に図22Bを用いて、パケット転送レートを決定するATSの決定方法について説明する。   Since the information recording apparatus needs to perform self-encoding according to the format of the MPEG transport stream that is guaranteed to be correctly decoded by the T-STD, there are some restrictions on the transfer of PSI packets. The ATS determination method for determining the packet transfer rate will be described below with reference to FIG. 22B.

セルフエンコーディングストリームの再生時には、まずは先頭のPAT、PMT、UPパケットがそれぞれATS1、ATS2、ATS3が示す時刻にT−STDに入力される。   When reproducing a self-encoding stream, first, the first PAT, PMT, and UP packet are input to the T-STD at times indicated by ATS1, ATS2, and ATS3, respectively.

PMTパケットとUPパケットに注目すれば、PMTパケットで指定されたUPパケットのPIDをT−STDが解釈し、有効にするためには、TS_program_map_section(mバイト)の最後のバイトがシステムバッファ234に蓄えられている必要がある。   Focusing on the PMT packet and the UP packet, the T-STD interprets and validates the PID of the UP packet specified by the PMT packet, and the last byte of TS_program_map_section (m bytes) is stored in the system buffer 234. Need to be.

つまり、PMTが有効になるには、PMTパケット入力時刻であるATS2から、(m+n+5)×8/Rsys秒が経過しなければならない。ここで、nはPMTパケットのadaptation_fieldのバイト長である。   That is, in order for the PMT to become effective, (m + n + 5) × 8 / Rsys seconds must elapse from the ATS2 that is the PMT packet input time. Here, n is the byte length of adaptation_field of the PMT packet.

T−STDの基準クロックであるSystem Clock Frequency(SCF)は27000000Hz(誤差として±810Hzまでの許容範囲が規定されている)であるため、ATSをSystem Clock Frequencyの時刻精度で表した時刻情報だとすると、ATS3とATS2の間には以下の関係が成り立つ必要がある。   Since the system clock frequency (SCF), which is the T-STD reference clock, is 27000000 Hz (the allowable range up to ± 810 Hz is specified as an error), if the time information is represented by the time accuracy of the system clock frequency, The following relationship must be established between ATS3 and ATS2.

ATS3≧ATS2 + ((m+n+5)*8/Rsys)*SCF
さらに、ATS2とATS3の最小間隔はPMTパケット内にadaptation_fieldがなく(n=0)、かつPMTパケットには最小のTS_program_map_section(21バイト)が格納されているのみの時であるため、この場合208/Rsys×SCFの時間間隔が最小となる。
ATS3 ≧ ATS2 + ((m + n + 5) * 8 / Rsys) * SCF
Further, since the minimum interval between ATS2 and ATS3 is when there is no adaptation_field in the PMT packet (n = 0) and only the minimum TS_program_map_section (21 bytes) is stored in the PMT packet, 208 / The Rsys × SCF time interval is minimized.

同様に、PATパケットの入力時刻ATS1とPMTパケットの入力時刻ATS2に関しても、PATパケット内のProgram association
sectionのバイト長をm0とし、PATパケットのadaptation_fieldのバイト長をn0とすれば、以下の関係を満足する必要がある。
Similarly, with respect to the input time ATS1 of the PAT packet and the input time ATS2 of the PMT packet, the Program association in the PAT packet
If the byte length of the section is m0 and the byte length of the adaptation_field of the PAT packet is n0, the following relationship needs to be satisfied.

ATS2≧ATS1 + ((m0+n0+5)*8/Rsys)*SCF
さらに、ATS1とATS2の最小間隔はPATパケット内にadaptation_fieldがなく(n0=0)、かつPATパケットには最小のProgram association section(16バイト)が格納されているのみの時であるため、この場合168/Rsys×SCFの時間間隔が最小となる。
ATS2 ≧ ATS1 + ((m0 + n0 + 5) * 8 / Rsys) * SCF
In addition, since the minimum interval between ATS1 and ATS2 is the time when there is no adaptation_field in the PAT packet (n0 = 0), and the minimum Program association section (16 bytes) is stored in the PAT packet. The time interval of 168 / Rsys × SCF is minimized.

System Clock Frequency(SCF)を27MHzとして時間を27MHzの精度で表現すれば、ATS1とATS2の時間間隔およびATS2とATS3の時間間隔の最小値は、それぞれ4536と5616となる。   If the system clock frequency (SCF) is 27 MHz and the time is expressed with an accuracy of 27 MHz, the time interval between ATS1 and ATS2 and the time interval between ATS2 and ATS3 are 4536 and 5616, respectively.

続いて、図23、図24、図25、図26を用いて、User Privateパケット(UPパケット)のセルフエンコーディングトランスポートストリームへの格納方法について説明する。   Next, a method for storing a User Private packet (UP packet) in a self-encoding transport stream will be described with reference to FIGS. 23, 24, 25, and 26.

図23では、UPパケットをUser Private streamとして定義した場合のUPパケット格納方法を示している。この場合、UPパケットに対応するPMTのstream_typeには、0x80以上でかつ0xFF以下の識別番号が割り振られ、UPパケットには固有のPIDが付与され、UPパケット内部のデータ構造はMPEG規格外となる。また、ここではUPパケット内に、DVD_attribute_section()というセクション構造を持たせた例を示している。   FIG. 23 shows the UP packet storage method when the UP packet is defined as User Private stream. In this case, an identification number of 0x80 or more and 0xFF or less is assigned to the stream_type of the PMT corresponding to the UP packet, a unique PID is assigned to the UP packet, and the data structure inside the UP packet is out of the MPEG standard. . Further, here, an example is shown in which a UP_packet has a section structure called DVD_attribute_section ().

また、図24では、UPパケットをprivate_section構造を持たせ、固有のPIDを付与する場合の格納方法を示している。private_section内のsection_syntax_indicatorの値によって、private_sectionのデータ構造が若干異なるが、UPパケットの固有データはprivate_sectionのprivate_data_byteに格納される。この場合、stream_typeには、0x05の識別番号が割り振られる。   FIG. 24 shows a storage method in the case where the UP packet has a private_section structure and a unique PID is given. Although the data structure of the private_section differs slightly depending on the value of the section_syntax_indicator in the private_section, the unique data of the UP packet is stored in the private_data_byte of the private_section. In this case, an identification number of 0x05 is assigned to stream_type.

また、図25では、UPパケットをPMTと同じPIDのパケットとして格納する方法が示されている。この場合、UPパケットのデータ構造はprivate_section構造に従う。この場合、stream_typeは定義されず、UPパケットにはPMTパケットのPIDが付与される。   FIG. 25 shows a method for storing UP packets as packets having the same PID as the PMT. In this case, the data structure of the UP packet follows the private_section structure. In this case, stream_type is not defined, and the PID of the PMT packet is assigned to the UP packet.

また、図26では、UPパケットを個別に設けずに、PMTパケットに内包する方法が示されている。この場合も、UPパケットに該当する固有データはprivate_section構造となり、TS_program_map_sectionに続いてprivate_sectionが記述される。すなわち、PMTパケット内に、TS_program_map_sectionとprivate_sectionの両方を格納している。   Also, FIG. 26 shows a method of enclosing a PMT packet without providing an UP packet individually. Also in this case, the unique data corresponding to the UP packet has a private_section structure, and private_section is described following TS_program_map_section. That is, both TS_program_map_section and private_section are stored in the PMT packet.

ここで、前述の方法によってMPEG−TSに格納される固有データの詳細について、説明する。   Here, details of the specific data stored in the MPEG-TS by the above-described method will be described.

図23、図24、図25、図26にて記述されているように、固有データとしては、DVD Video Recording規格のRDI UnitのRDI_GI(Real-time Data Information General Information)と、DCI_CCI(Display Control Information and Copy Control Information)を持つ。   As described in FIG. 23, FIG. 24, FIG. 25, and FIG. 26, the specific data includes RDI_GI (Real-time Data Information General Information) of RDI Unit of DVD Video Recording standard and DCI_CCI (Display Control Information). and Copy Control Information).

RDI_GIは、該当VOBUの先頭再生開始時刻(VOBU_S_PMT)と、記録日時情報を格納し、DCI_CCIは、当該VOBU内のアスペクト比情報、サブタイトルモード情報、フィルム・カメラモード情報等の表示制御に関わる情報と、コピー世代管理情報や、APS情報、入力ソース情報等が格納されている。(RDI_GIとDCI_CCIの詳細についてはDVD Video
Recording規格を参照。)
また、V_ATRには、ビデオのビットレート情報、解像度情報、フレームレート情報(もしくはNTSC/PAL等のvideo_format情報)、アスペクト比情報、符号化方式(MPEG2−Videoや、MPEG1−Video等の識別)の情報が格納される。
RDI_GI stores the start playback start time (VOBU_S_PMT) and recording date / time information of the corresponding VOBU, and DCI_CCI includes information related to display control such as aspect ratio information, subtitle mode information, and film / camera mode information in the VOBU. , Copy generation management information, APS information, input source information, and the like are stored. (For details on RDI_GI and DCI_CCI, see DVD Video
See Recording standards. )
Also, V_ATR includes video bit rate information, resolution information, frame rate information (or video_format information such as NTSC / PAL), aspect ratio information, and encoding scheme (identification of MPEG2-Video, MPEG1-Video, etc.). Information is stored.

同様に、A_ATRにも、オーディオの本数に応じて、全部もしくは一部のオーディオのビットレート、符号化方式、チャンネル数、量子化ビット数、ダイナミックレンジコントロール等の情報が格納される。   Similarly, A_ATR also stores information such as the bit rate, coding method, number of channels, number of quantization bits, dynamic range control, etc. of all or part of the audio according to the number of audios.

また、CCには、当該VOBU内のClosed Captionデータが格納される。CCデータの格納には、PS変換の移植性を高めるために、予めextension_and_user_data(1)(GOPレイヤーでユーザデータを格納する方法)形式で記述しても良いし、CCデータを別記述方式で記述しても良い。   The CC stores the closed caption data in the VOBU. In order to improve the portability of PS conversion, CC data may be stored in advance in extension_and_user_data (1) (method for storing user data in the GOP layer) format, or CC data may be described in a separate description method. You may do it.

GOPレイヤーのユーザデータにCCデータを格納する形式で記述するのがMPEG−PS変換の効率を高めるのは、DVD−VideoやDVD Video Recording規格がそのようにしているからである。   The reason why the efficiency of MPEG-PS conversion is described in the format in which CC data is stored in the user data of the GOP layer is that the DVD-Video and DVD Video Recording standards do so.

また、C_SEには、当該VOBU(もしくはVOB)のTS2PS変換時に問題となるいくつかの問題点に対する情報が記述されている。   Also, C_SE describes information on several problems that are problematic during TS2PS conversion of the VOBU (or VOB).

例えば、CC/WSS/Teletextデータ格納位置情報には、CCデータがUPパケットにあるのか、各ピクチャヘッダのユーザデータとして記述されているのか、もしくはこのVOBU(VOB)にCCデータが無いのか等を識別するための情報である。   For example, the CC / WSS / Teletext data storage location information indicates whether CC data is in the UP packet, whether it is described as user data in each picture header, or whether there is no CC data in this VOBU (VOB), etc. This is information for identification.

WSS格納位置情報については、固有データとしてUPパケットにまとめて格納されているのか、各ピクチャヘッダのユーザデータに記述されているのか等を示す情報である。   The WSS storage location information is information indicating whether it is stored in the UP packet as unique data or is described in the user data of each picture header.

Teletext格納位置情報については、Teletextを格納したTSパケットを設けて格納されているのか、各ピクチャヘッダのユーザデータに記述されているのか等を示す情報である。   The Teletext storage position information is information indicating whether the TS packet storing the Teletext is provided and stored, or is described in the user data of each picture header.

多重化ブロック構造・転送情報については、図27A〜27Hに示す多重化ブロック(1つのエレメンタリーストリームのみが、他のエレメンタリーストリームと混在することなく格納されたデータブロック)を構成するTSパケットが固定数なのか可変数なのか、また、固定数ならばその固定数を表す情報や、PTS/DTSが多重化ブロックの先頭TSパケットに付与されているかを示す情報や、同一多重化ブロック内での転送レートについての情報等が記述されている。従来の多重化に条件を課さないMPEG−TSエンコード時には、多重化ブロックは1つのTSパケットからのみ構成される固定長サイズとして記述することも可能である。   As for the multiplexed block structure / transfer information, TS packets constituting the multiplexed block (data block in which only one elementary stream is stored without being mixed with other elementary streams) shown in FIGS. Whether it is a fixed number or a variable number, if it is a fixed number, information indicating the fixed number, information indicating whether the PTS / DTS is attached to the first TS packet of the multiplexed block, or within the same multiplexed block Information on the transfer rate is described. At the time of MPEG-TS encoding that does not impose conditions on conventional multiplexing, the multiplexed block can be described as a fixed length size composed of only one TS packet.

各デコーダバッファ制御用情報については、ビデオベリファイングバッファのパラメータであるvbv_delayや、vbv_buffer_size等のビデオバッファの余裕量を示す情報や(この情報を用いてビデオデータをATSの入力時刻からどれだけ先読みして良いのか判断することができる)、当該VOBU内のフレームでバッファ入力時刻が最もそのフレームのデコード時刻に近いフレームの入力完了時刻とデコード時刻との時刻差情報(この情報を用いてビデオ・オーディオデータをATSの入力時刻からどれだけ後読みして良いのか判断することができる)等を記述する。   For each decoder buffer control information, information indicating the video buffer margin such as vbv_delay and vbv_buffer_size that are parameters of the video verifying buffer (how much video data is pre-read from the ATS input time using this information) The time difference information between the input completion time and the decoding time of the frame whose buffer input time is closest to the decoding time of the frame in the frame in the VOBU (this information is used for video / audio) It is possible to determine how much data can be read later from the input time of ATS).

さらに、DVD_Compatibility情報には、該MPEG−TSを各DVD規格に準じたMPEG−PSにトランスコードする際に、どの程度の負荷があるかを示した情報である。   Further, the DVD_Compatibility information is information indicating how much load is present when the MPEG-TS is transcoded to MPEG-PS conforming to each DVD standard.

例えば、多重化ブロックが2KB以下で構成されていることでレベル1のインジケータ、CC、WSS、Teletextデータが存在する場合に、CC、WSSデータがUPパケットに格納され、Teletextがビデオデータを格納した多重化ブロック内にTeletextパケットとして格納されていればレベル2のインジケータ、CC、WSS、Teletextデータを各DVD規格で定める領域に格納した際にバッファマネージメントを考慮する必要がなければレベル3のインジケータ、多重化ブロックの先頭TSパケットのATSをSCRに置換する際に、バッファマネージメントを考慮する必要がなければレベル4のインジケータ等と、該MPEG−TSを各DVDのフォーマットに容易に変換できるか否かの変換性を示す情報である。   For example, when a multiplexed block is configured with 2 KB or less and level 1 indicator, CC, WSS, and Teletext data exist, CC and WSS data are stored in the UP packet, and Teletext stores the video data. Level 2 indicator if stored as a Teletext packet in the multiplexed block, Level 3 indicator if there is no need to consider buffer management when storing CC, WSS, and Teletext data in the area defined by each DVD standard, When replacing the ATS of the first TS packet of the multiplexed block with the SCR, if it is not necessary to consider buffer management, an indicator of level 4 and the like and whether or not the MPEG-TS can be easily converted into the format of each DVD Show the convertibility of Is information.

このDVD_Compatibility情報は、DVD−Video用、DVD−Audio用、DVD Video Recording用、DVD Stream Recording用等といった、DVDフォーマットにそれぞれ対応した変換容易性を示す情報群である。   This DVD_Compatibility information is a group of information indicating the ease of conversion corresponding to each DVD format, such as for DVD-Video, DVD-Audio, DVD Video Recording, DVD Stream Recording, etc.

図27A〜27Hに多重化ブロックを利用したMPEG−TSの構造図と、それをDVD−Video、DVD Video Recordingフォーマットに変換した場合のデータ構成図を示した。   27A to 27H show a structure diagram of MPEG-TS using multiplexed blocks, and a data structure diagram when it is converted into a DVD-Video and DVD Video Recording format.

図27Aに示す自己録TSストリームは、図27Bに示す自己録TSストリームのVOBU(再生・復号の単位)から構成される。図27Cに示すように、1つのVOBUは複数の多重化ブロック(MPEG−PSのパックに該当する)から構成される。それぞれの多重化ブロックは、図27Dに示すように、固定長データサイズに分割されてもよく(これにより機器への実装が簡単になる。)、もしくは、図27Eに示すように、可変長データサイズに分割されてもよい(この場合、記録媒体の容量を浪費しない)。図27D、27Eの場合は、PSI/SIパケットやUPパケット等の非エレメンタリーストリームと、エレメンタリーストリームとをそれぞれ分離して多重化ブロックを構成しているが、図27Fに示すように、多重化ブロックにおいて、エレメンタリーストリームとともに、PSI/SIパケットやUPパケット等の非エレメンタリーストリームが格納されてもよい。なお、図27Fの場合、多重化ブロック#1と多重化ブロック#2とが1つの多重化ブロックとなる。   The self-recording TS stream shown in FIG. 27A is composed of VOBU (unit of reproduction / decoding) of the self-recording TS stream shown in FIG. 27B. As shown in FIG. 27C, one VOBU is composed of a plurality of multiplexed blocks (corresponding to an MPEG-PS pack). Each multiplexed block may be divided into fixed length data sizes as shown in FIG. 27D (this simplifies implementation on the device), or variable length data as shown in FIG. 27E. It may be divided into sizes (in this case, the capacity of the recording medium is not wasted). In the case of FIGS. 27D and 27E, a non-elementary stream such as a PSI / SI packet or an UP packet and an elementary stream are separated from each other to form a multiplexed block. However, as shown in FIG. A non-elementary stream such as a PSI / SI packet or an UP packet may be stored together with the elementary stream in the conversion block. In the case of FIG. 27F, the multiplexed block # 1 and the multiplexed block # 2 become one multiplexed block.

さらに上記ストリームは、容易に図27Gに示すDVD−Video形式や、図27Hに示すDVD Video Recording形式に変換されることができる。   Further, the stream can be easily converted into the DVD-Video format shown in FIG. 27G or the DVD Video Recording format shown in FIG. 27H.

この場合、多重化ブロックの並びの通りにMPEG−PSのパックが形成され、1多重化ブロックは1パックのデータを格納した単位であることが、TS2PS変換を簡単に行うために重要である。   In this case, an MPEG-PS pack is formed according to the arrangement of the multiplexed blocks, and one multiplexed block is a unit storing one pack of data, so that TS2PS conversion is easily performed.

なお、図27A〜27Hにおいて、カプセルヘッダや、ATSは本発明と関連が性が低いため、省略している。また、図27G、27Hで示した変換後のMPEG−PSの各パックは格納されるエレメンタリのバイト長やVOBUアライメントに応じてstuffingやpaddingがなされる。   27A to 27H, the capsule header and ATS are omitted because they are not related to the present invention. In addition, each converted MPEG-PS pack shown in FIGS. 27G and 27H is stuffed or padded according to the byte length of the stored elementary or the VOBU alignment.

図28A〜28Gは、図8で示した従来のストリームの多重化方法と対応して本発明における多重化を説明した図である。同図に示すように、最終的なフォーマットは図28GのMPEG−TSに準拠したフォーマットである。ビデオストリーム(図28A)は複数のGOPからなる(図28A)。各GOPは所定のピクチャデータからなり、MPEG−PSに変換したときの1パックのデータ量に相当するデータ量を持つTSパケット群を1つの多重化ブロックとする(図28C参照)。すなわち、1つの多重化ブロックは図28Dに示すように1パックのデータ量に相当する複数のTSパケットに分割される。オーディオストリームについても同様に複数のTSパケットをまとめて1つの多重化ブロックとする。そして、図28Eに示すように、多重化ブロック単位で多重化することによりVOBUを構成する。このように、本発明では、MPEG−PSの1パックのデータ量に相当するデータ量を有するデータを多重化ブロックとしてまとめて配置する(図28E参照)点が、図8に示す従来例に対して最大の相違点である。   28A to 28G are diagrams illustrating multiplexing according to the present invention in correspondence with the conventional stream multiplexing method shown in FIG. As shown in the figure, the final format is a format compliant with MPEG-TS in FIG. 28G. The video stream (FIG. 28A) is composed of a plurality of GOPs (FIG. 28A). Each GOP is composed of predetermined picture data, and a TS packet group having a data amount corresponding to the data amount of one pack when converted into MPEG-PS is defined as one multiplexed block (see FIG. 28C). That is, one multiplexed block is divided into a plurality of TS packets corresponding to the data amount of one pack as shown in FIG. 28D. Similarly, for an audio stream, a plurality of TS packets are combined into one multiplexed block. Then, as shown in FIG. 28E, a VOBU is configured by multiplexing in units of multiplexed blocks. As described above, in the present invention, data having a data amount corresponding to the data amount of one pack of MPEG-PS is collectively arranged as a multiplexed block (see FIG. 28E), which is different from the conventional example shown in FIG. Is the biggest difference.

また、MPEG−TSの各パケットに付与するATSについて、図29に示すように、同一多重化ブロック内においては、一定の増分(ΔATS)だけATSを増加させながらATSを付与してもよい。このことは、TS2PSへの変換時に複雑なバッファマネージメントを行うことを避け、単純なオフセット又はオフセットなしでATSからSCRに置換するために有効である。このとき、ATSi(i=0,1,2,...)は次式の関係を満たす。   In addition, as shown in FIG. 29, ATS added to each packet of MPEG-TS may be added while increasing ATS by a fixed increment (ΔATS) in the same multiplexed block. This is effective for avoiding complicated buffer management when converting to TS2PS and replacing ATS to SCR without a simple offset or offset. At this time, ATSi (i = 0, 1, 2,...) Satisfies the following relationship.

ATSi+(多重化ブロック内のパケット数)×ΔATS≦ATSi+1
多重化ブロックが固定長の場合、1つの多重化ブロックに含まれるTSパケット数は一定であるため、多重化ブロックの境界を容易に知ることができる。しかし、多重化ブロックが可変長であるとき、1つの多重化ブロックに含まれるTSパケット数は不定であるため、多重化ブロックの境界を知ることが困難となる。そこで、この場合は、多重化ブロックの境界におけるATS値の増分(ΔATS)を、多重化ブロック内での増分(一定値)とは異なる所定の値に設定する。つまり、前の多重化ブロック内の最後のパケットのATS値と、その直後の多重化ブロックの最初のパケットのATS値との差分(ΔATS)を、一定値と異なる所定の値に設定する。これにより、ΔATSを監視することにより、多重化ブロックの境界を知ることができる。MPEG−PSへ変換する際のTSパケットとパックとを一対一に対応付けることができる。このとき、ATSiは次式の関係を満たす。
ATS i + (number of packets in multiplexed block) × ΔATS ≦ ATS i + 1
When the multiplexed block has a fixed length, since the number of TS packets included in one multiplexed block is constant, the boundary between the multiplexed blocks can be easily known. However, when the multiplexed block has a variable length, the number of TS packets included in one multiplexed block is indefinite, so it is difficult to know the boundaries of the multiplexed blocks. Therefore, in this case, the increment (ΔATS) of the ATS value at the boundary of the multiplexed block is set to a predetermined value different from the increment (constant value) in the multiplexed block. That is, the difference (ΔATS) between the ATS value of the last packet in the previous multiplexed block and the ATS value of the first packet in the next multiplexed block is set to a predetermined value different from the constant value. Thereby, the boundary of the multiplexed block can be known by monitoring ΔATS. TS packets and packs for conversion to MPEG-PS can be associated one-to-one. At this time, ATSi satisfies the relationship of the following equation.

ATSi+(多重化ブロック内パケット数)×ΔATS<ATSi+1
また、図29に示すように、MPEG−TSにおける多重化ブロックの先頭のパケットに付与されたATSiと、変換後のMPEG−PSのパック毎に付与されるSCRiとが対応する。
ATSi + (number of packets in multiplexed block) × ΔATS <ATSi + 1
Also, as shown in FIG. 29, the ATSi assigned to the head packet of the multiplexed block in MPEG-TS corresponds to the SCRi assigned to each converted MPEG-PS pack.

また、図29に示すように、UPパケット内にClosed CaptionやDSI等の文字情報を格納してもよい。UPパケット内のDSIは変換後のNV_PCKのデータ生成に使用され、Closed Captionはビデオパックに格納される。また、欧州でのPAL規格にも対応できるように、図30に示すように多重化ブロックにおいてTeletextデータを格納したパケットを、ビデオデータを格納したパケットの間に挿入してもよい。このとき、Teletextデータを格納したパケットは、同時に表示されるPTSを持つピクチャの直前に配置される。Teletextデータは、変換後はビデオパックに格納される。図31に上記のようにDSI等を格納するUPパケットのデータ構造を示す。   As shown in FIG. 29, character information such as Closed Caption and DSI may be stored in the UP packet. The DSI in the UP packet is used to generate the converted NV_PCK data, and the Closed Caption is stored in the video pack. Further, as shown in FIG. 30, a packet storing teletext data in a multiplexed block may be inserted between packets storing video data so as to be compatible with the PAL standard in Europe. At this time, the packet storing the teletext data is arranged immediately before the picture having the PTS displayed at the same time. Teletext data is stored in the video pack after conversion. FIG. 31 shows the data structure of the UP packet storing DSI and the like as described above.

また、UPパケットの付加情報に、VOBU先頭のIピクチャの最後のバイトを格納したTSパケットを特定する情報(VOBU先頭からの相対番号等)を記述してもよく、これにより、効率良い特殊再生が実現できる。同様に、VOBU内のいくつかのI、Pピクチャや、全ピクチャのピクチャ符号化種別情報と、そのピクチャのデータ長情報(例えば、最後のバイトを含んだTSパケットを特定する情報等)と、各ピクチャのDTS/PTSを示す情報を記述することで、特殊再生を支援することも可能である。   In addition, information specifying the TS packet storing the last byte of the I picture at the beginning of the VOBU (such as a relative number from the beginning of the VOBU) may be described in the additional information of the UP packet. Can be realized. Similarly, some I and P pictures in VOBU, picture coding type information of all pictures, data length information of the pictures (for example, information specifying a TS packet including the last byte, etc.), It is also possible to support special playback by describing information indicating the DTS / PTS of each picture.

尚、前述の実施例において、PTS/DTSを付与されたTSパケットが多重化ブロックの先頭になるようにエンコードすれば、TS2PS変換後のパックの先頭にアクセスユニットの先頭が配置されることになり、DVD固有のヘッダ処理が簡単になる効果が期待できる。   In the above-described embodiment, if encoding is performed so that the TS packet to which PTS / DTS is added is at the head of the multiplexed block, the head of the access unit is placed at the head of the pack after TS2PS conversion. The effect of simplifying the DVD header processing can be expected.

尚、多重化ブロックを形成するTSパケットにはMPEG−PSへの変換を考慮し、パックに格納されるデータがあふれることの無いように、適宜スタッフィングを入れても良いし、多重化ブロック最後のTSパケットからスタッフィングを必要バイト数挿入しても良い。   In consideration of the conversion to MPEG-PS, the TS packets forming the multiplexed block may be appropriately stuffed so that the data stored in the pack does not overflow, or at the end of the multiplexed block. The necessary number of bytes may be inserted from the TS packet.

尚、上記説明においては、DVDに記録することを中心に説明を行ったが、本発明はこれに限る訳ではなく、自己録TSをHDDや半導体メモリー等の情報記録媒体に記録した後、同一もしくは別の記録媒体上にMPEG−PS変換されたストリームを記録するようにしても良い。   In the above description, the description has been focused on recording on a DVD. However, the present invention is not limited to this, and the same information is recorded after the self-recording TS is recorded on an information recording medium such as an HDD or a semiconductor memory. Alternatively, an MPEG-PS converted stream may be recorded on another recording medium.

尚、上記説明においては、PAT、PMT、UPパケットを各VOBUの先頭に記録するとしたが、少なくともVOBの先頭に記録するとしても良いし、少なくとも再生管理単位であるCellの先頭に記録するとしても良い。   In the above description, the PAT, PMT, and UP packets are recorded at the beginning of each VOBU. However, they may be recorded at least at the beginning of the VOB, or at least at the beginning of the cell that is the playback management unit. good.

尚、上記説明においては、PAT、PMT、UPパケットを記録するとしたが、UPパケットは無くても良い。   In the above description, the PAT, PMT, and UP packets are recorded. However, the UP packet may be omitted.

尚、上記説明においては、PAT、PMT、UPパケットの配置を先頭に固定配置したが、本発明はこれに限る訳ではなく、Nullパケットを格納したパケット等を間に挿入して記録しても良い。   In the above description, the arrangement of the PAT, PMT, and UP packet is fixed at the head. However, the present invention is not limited to this, and a packet storing a Null packet may be inserted and recorded. good.

尚、上記説明においては、セルフエンコーディングのストリームはPATパケットから始まるとしたが、これに限る訳ではなく、Nullパケットから始まっても良い。   In the above description, the self-encoding stream starts from a PAT packet. However, the present invention is not limited to this, and may start from a Null packet.

尚、Nullパケットをセルフエンコーディングのストリームに適宜挿入することで、システム転送レートを固定レートにしても良い。   Note that the system transfer rate may be set to a fixed rate by appropriately inserting Null packets into the self-encoding stream.

尚、図7のように、製造業者固有の情報を格納するデータ領域を設け、そこにMPEG−TSシステムエンコードの条件を記述するようにしても良い。   In addition, as shown in FIG. 7, a data area for storing manufacturer-specific information may be provided, and MPEG-TS system encoding conditions may be described therein.

尚、上記説明にてUPパケットに記述した情報の全て若しくは一部を、図15に示したTS1−VOB情報内に記述しても良い。   Note that all or part of the information described in the UP packet in the above description may be described in the TS1-VOB information shown in FIG.

尚、dual monoの音声チャンネルで記録されたセルフエンコーディングトランスポートストリームをDVD−Videoフォーマットに変換するときには、DVD−Videoには、dual monoの音声が規格上存在しないため、2本の異なる音声ストリームとして、左右のモノラル音声をそれぞれ分割し変換しても良い。   When converting a self-encoding transport stream recorded on a dual mono audio channel to the DVD-Video format, the dual-mon audio does not exist in the DVD-Video standard, so two different audio streams are used. Alternatively, the left and right monaural sounds may be divided and converted.

また、上記説明にてUPパケットに記述されるパラメータの一部もしくは全部を管理情報内に記述するようにしても良い。これは、1セルフエンコーディングトランスポートストリーム内で変化しないパラメータを多数回記録することを避けることで無駄な記録領域を発生させず、UPパケットの出現ごとにパラメータが変化したか否かを判定する余分なデコーダ処理を軽減する効果が得られる。
第2の実施例.
(エンコーダの構成)
以下、本発明の別の実施例について詳細に説明する。最初に、本発明に係る情報記録装置のエンコーダについて、AV入力を受けてMPEG−TSにセルフエンコードを行うエンコード処理に焦点を当てて説明する。
In the above description, some or all of the parameters described in the UP packet may be described in the management information. This avoids recording a parameter that does not change many times in one self-encoding transport stream, thereby avoiding useless recording areas and determining whether the parameter has changed each time an UP packet appears. An effect of reducing the decoder processing.
Second embodiment.
(Encoder configuration)
Hereinafter, another embodiment of the present invention will be described in detail. First, the encoder of the information recording apparatus according to the present invention will be described with a focus on an encoding process that receives AV input and performs self-encoding on MPEG-TS.

図33に、本発明に係る情報記録装置のエンコーダの構成を示す。同図に示したようにエンコーダ214は、各エレメンタリーエンコーダ230a、230b、230cと、システムエンコーダ232とからなる。エンコーダ214はシステム制御部212からの制御信号を受け、エレメンタリーエンコーダ230a、230b、230c及びシステムエンコーダ232により、エレメンタリーエンコード又はシステムエンコードに切替えながらエンコード処理を行なう。各エレメンタリーエンコーダ230a、230b、230cは、ビデオ、オーディオ、VBI(Vertical Blanking Interval)のそれぞれの信号を受けとり、エンコードを行う。   FIG. 33 shows the configuration of the encoder of the information recording apparatus according to the present invention. As shown in the figure, the encoder 214 includes elementary encoders 230 a, 230 b, and 230 c and a system encoder 232. The encoder 214 receives a control signal from the system control unit 212 and performs an encoding process while switching to elementary encoding or system encoding by the elementary encoders 230a, 230b, 230c and the system encoder 232. Each of the elementary encoders 230a, 230b, and 230c receives video, audio, and VBI (Vertical Blanking Interval) signals and performs encoding.

ビデオエンコーダ230aは、システム制御部212からの制御信号を受け、これに従い、ビデオストリームのビットレート、解像度、アスペクト比等の属性を決められた範囲内でエンコードする。具体的には、ビデオエンコーダ230aは、エンコード開始時にシステム制御部212から、「DVD−Video互換モード」、「DVD Video Recording互換モード」または「通常モード」のいずれかの動作モードを指定する制御信号を受信する。制御信号が指定するモードが「DVD−Video互換モード」であれば、DVD−Video規格のビデオ属性に準じたビデオストリームを、「DVD Video Recording互換モード」であれば、DVD Video Recording(以下「DVD VR」と称す。)規格のビデオ属性に準じたビデオストリームを、「通常モード」であれば、ある所定の範疇の属性に準じたビデオストリームを生成する。   The video encoder 230a receives the control signal from the system control unit 212, and encodes attributes such as the bit rate, resolution, aspect ratio, etc. of the video stream within a predetermined range according to the control signal. Specifically, the video encoder 230a receives a control signal for designating an operation mode of any one of “DVD-Video compatible mode”, “DVD Video Recording compatible mode”, and “normal mode” from the system control unit 212 at the start of encoding. Receive. If the mode specified by the control signal is “DVD-Video compatible mode”, a video stream conforming to the video attribute of the DVD-Video standard can be converted to a DVD Video Recording (hereinafter “DVD Video Recording” if the mode is “DVD Video Recording compatible mode”). VR ”.) If the video stream conforming to the standard video attribute is“ normal mode ”, the video stream conforming to an attribute of a predetermined category is generated.

オーディオエンコーダ230bも同様に、システム制御部212からの制御信号を受け、これに従い、オーディオストリームのビットレート、量子化ビット数、チャンネル数等の属性を決められた範囲でエンコードする。ビデオエンコーダ230aと同様に、具体的にはシステム制御部212から動作モードを示す制御信号を受信し、制御信号が示すモードが、「DVD−Video互換モード」であれば、DVD−Video規格のオーディオ属性に準じたオーディオストリームを、「DVD Video Recording互換モード」であれば、DVD VR規格のオーディオ属性に準じたオーディオストリームを、「通常モード」であれば、ある所定の範疇の属性に準じたオーディオストリームを生成する。   Similarly, the audio encoder 230b receives a control signal from the system control unit 212, and encodes attributes such as the bit rate, the number of quantization bits, the number of channels, and the like of the audio stream in accordance with the control signal. Similarly to the video encoder 230a, specifically, when a control signal indicating an operation mode is received from the system control unit 212 and the mode indicated by the control signal is “DVD-Video compatible mode”, the audio of the DVD-Video standard is used. If the audio stream conforming to the attribute is “DVD Video Recording compatible mode”, the audio stream conforming to the audio attribute of the DVD VR standard is “normal mode”, and the audio stream conforming to an attribute of a predetermined category is satisfied. Create a stream.

VBIエンコーダ230cも、システム制御部212から動作モードを指定する制御信号を受け取り、これに従って、VBIデータをエンコードする。具体的には、VBIエンコーダ230cは、システム制御部212からVBIエンコーダへ入力されるエレメンタリーストリームエンコード制御信号が、「DVD−Video互換モード」、「DVD Video Recording互換モード」を指定する時には、夫々の規格で規定されたVBIデータの格納方法にしたがいVBIデータを追加でエンコードする。追加でエンコードするとは、元々の通常モードでもVBIデータを格納する方法が別途決められている可能性があるため、それと重複してエレメンタリーストリーム内に格納することを意味している。   The VBI encoder 230c also receives a control signal designating an operation mode from the system control unit 212, and encodes VBI data according to the control signal. Specifically, when the elementary stream encoding control signal input from the system control unit 212 to the VBI encoder specifies “DVD-Video compatible mode” or “DVD Video Recording compatible mode”, the VBI encoder 230c respectively. The VBI data is additionally encoded in accordance with the storage method of the VBI data defined by the standard. The additional encoding means that the method of storing the VBI data may be determined separately even in the original normal mode, so that it is stored redundantly in the elementary stream.

以上のようにして、エンコードされたエレメンタリーストリームは夫々システムエンコーダ232によってMPEG−TSシステムストリームへ多重化される。   The encoded elementary streams are multiplexed into the MPEG-TS system stream by the system encoder 232 as described above.

システムエンコーダ232も、各エレメンタリーストリームエンコーダ230a、230b、230cと同様にシステム制御部212からエンコードの制御信号を受け、これに従ったエンコードを行う。   Similarly to the elementary stream encoders 230a, 230b, and 230c, the system encoder 232 also receives an encoding control signal from the system control unit 212, and performs encoding according to this.

システム制御部212からシステムエンコーダ232への制御信号は、通常のMPEG−TSへのシステムエンコード制御信号か、通常のMPEG−TSに制限を加え、MPEG−PS(特にDVD固有のフォーマット)に容易に変換できるシステムエンコード制御信号(DVD−Videoモードか、DVD Video Recordingモード)かのどちらかである。   The control signal from the system control unit 212 to the system encoder 232 is a system encoding control signal for the normal MPEG-TS or a restriction on the normal MPEG-TS, and can be easily converted to MPEG-PS (particularly a DVD-specific format). Either of the system encoding control signals (DVD-Video mode or DVD Video Recording mode) that can be converted.

通常のMPEG−TSへのシステムエンコード制御信号である場合には、システムエンコーダ232は、各エレメンタリーストリームエンコーダ230a、230b、230cから入力されてきたエレメンタリーストリームをMPEG−TSシステムストリームの基準となるデコーダモデル(以下「T−STD」と称す。)で破綻を起こさないように、バッファマネージメントしながら、システムエンコードを行う。   In the case of a system encoding control signal for normal MPEG-TS, the system encoder 232 uses the elementary streams input from the elementary stream encoders 230a, 230b, and 230c as a reference for the MPEG-TS system stream. System encoding is performed while buffer management so as not to cause a failure in the decoder model (hereinafter referred to as “T-STD”).

さらに、システム制御部212からの制御信号が、MPEG−PSへ容易に変換できるMPEG−TSへのシステムエンコードを指定する制御信号である場合には、上記に加えさらに特殊なシステムエンコードルールを守りながらエンコードを行う。   Further, when the control signal from the system control unit 212 is a control signal for designating system encoding to MPEG-TS that can be easily converted to MPEG-PS, in addition to the above, further special system encoding rules are observed. Encode.

このようにして生成されたセルフエンコーディングMPEG−TSシステムストリームがエンコーダ214から出力される。   The self-encoding MPEG-TS system stream generated in this way is output from the encoder 214.

上述のように、本発明の情報記録装置は、エレメンタリーストリームとシステムストリームレベルで個々にエンコードモードを切り換えることを特徴としている。このエンコードモードの切り換えによって、夫々のエンコードモードに対しDVDフォーマットへ変換する際の処理をまとめた表を図34に示す。   As described above, the information recording apparatus of the present invention is characterized in that the encoding mode is individually switched at the elementary stream and system stream levels. FIG. 34 shows a table summarizing the processing when converting to the DVD format for each encoding mode by switching the encoding mode.

このように、エレメンタリーストリームエンコーダ230a、230b、230c及び、システムストリームエンコーダ232にMPEG−PSへの変換を前提としたエンコードを行わせることで、MPEG−PSへ容易に変換可能なMPEG−TSが作成される。
(セルフエンコードされたMPEG−TS)
以下に、本発明の情報記録装置にてセルフエンコードされたMPEG−TSのフォーマットの一実施例を詳細に説明し、通常のMPEG−TS(以下「SESF」と称す。)と、MPEG−PSに容易に変換可能なMPEG−TS(以下「Constrained SESF」と称す。)との相違を説明する。
In this way, by causing the elementary stream encoders 230a, 230b, and 230c and the system stream encoder 232 to perform encoding assuming conversion to MPEG-PS, an MPEG-TS that can be easily converted to MPEG-PS can be obtained. Created.
(Self-encoded MPEG-TS)
In the following, one embodiment of the format of MPEG-TS self-encoded by the information recording apparatus of the present invention will be described in detail, and it will be described as normal MPEG-TS (hereinafter referred to as “SESF”) and MPEG-PS. Differences from easily convertible MPEG-TS (hereinafter referred to as “Constrained SESF”) will be described.

以下の例では、MPEG−TSストリーム単位で属性情報等を格納するVOBIに、そのストリームの符号化条件を表す情報を格納する。このようにストリーム中ではなく、管理情報に符号化条件を表す情報を格納することにより、ストリームを解析することなくそのストリームがDVD−VideoやDVD VRのフォーマットに容易に変換可能なのか否かの判定を素早く行うことが可能となる。なお、このストリームの符号化条件を表す情報は後述のTipパケット中に格納されても良い。   In the following example, information representing the encoding condition of the stream is stored in VOBI that stores attribute information and the like in units of MPEG-TS streams. Whether or not the stream can be easily converted into the DVD-Video or DVD VR format without analyzing the stream by storing the information indicating the encoding condition in the management information instead of in the stream. Judgment can be made quickly. Note that information indicating the encoding condition of the stream may be stored in a Tip packet described later.

このストリームの符号化条件を表す情報を"encode_condition"という2ビットのフラグで表す。フラグの値の意味は以下の通りである。   Information indicating the encoding condition of this stream is represented by a 2-bit flag “encode_condition”. The meaning of the flag value is as follows.

00b:通常のMPEG−TS (SESF)
01b:DVD VR規格のストリームフォーマットに容易に変換可能なMPEG−TS (Constrained SESF)
10b:リザーブ
11b:DVD Video規格のストリームフォーマットに容易に変換可能なMPEG−TS (Constrained SESF)
ストリーム管理情報内に、00bの値を取る場合には、元々MPEG−PSへの高速変換を考慮せずにエンコードされている場合と、ユーザの編集作業によって、個々のMPEG−PSへの変換が容易なMPEG−PSを連結して一つのストリームとした場合が考えられる。
00b: Normal MPEG-TS (SESF)
01b: MPEG-TS (Constrained SESF) that can be easily converted to the stream format of the DVD VR standard
10b: Reserve 11b: MPEG-TS (Constrained SESF) that can be easily converted into a stream format of the DVD Video standard
When the value of 00b is taken in the stream management information, encoding is performed without considering high-speed conversion to MPEG-PS, and conversion into individual MPEG-PS is performed by user editing work. A case where simple MPEG-PS is concatenated into one stream is conceivable.

また、ストリーム中にもencode_conditionを併せ持つ場合、通常のMPEG−TSを示すencode_condition=00bをストリーム内に持つ意味は無く、ストリーム中では(後述のTipパケット内では)、encode_condition=00bはリザーブとして、使用禁止とされるとして、encode_conditionの使用方法がストリーム内/外で異なることもあり得る。   If the stream also has encode_condition, there is no meaning that the stream has “encode_condition = 00b” indicating normal MPEG-TS. In the stream (in a Tip packet described later), “encode_condition = 00b” is used as a reserve. As prohibited, the use of encode_condition may be different inside / outside the stream.

以上のようにフラグの値を決定することで、VOBIのencode_conditionフィールドの値から、そのストリームがDVD−VideoやVRフォーマットに容易に変換できるのか否かを判定することができる。ここでいう容易に変換できるというのは後述の変換方法で変換できることを意味している。
(Constrained SESFのストリーム構造)
図80にConstrained SESFの全体的なストリーム構造を示す。Constrained SESFは複数のSESF capsule(SESFカプセル)からなる。SESF capsuleは所定のMultiplexing Unitを含み、かつ、先頭にTipパケット(詳細は後述)を有する。各SESF capsuleの再生時刻情報(PTS)と、Tipパケットのアドレス情報とはアクセスマップ80cにより対応付けられる。後述するように、TS2PS変換では、このSESF capsule毎に変換処理が行なわれる。 図32は1つのSESF capsule内の各パケットとMPEG−PSのパックとの対応を示した図である。図32に示すように、Constrained SESF内に、ストリームの固有情報を格納したTSパケット(以下「Tipパケット」と称す。)が挿入される。以下に、Constrained SESF内に埋め込まれるTipパケットを図35から図41を用いて説明する。
(Tipパケット)
図35にTipパケットの全体構造を示す。この図にあるようにTipパケットは、そのパケットがTipパケットであると特定するためのData_IDと、DVD VRのDCI_CCIフィールドに対応し、表示制御やコピー制御情報を含むdisplay_and_copy_infoと、ストリームのエンコード情報を格納したencode_infoと、製造者独自の付加情報を記述できるMakersPrivateDataとを格納する。
By determining the value of the flag as described above, it is possible to determine whether or not the stream can be easily converted into the DVD-Video or VR format from the value of the encode_condition field of VOBI. Here, easy conversion means that conversion can be performed by a conversion method described later.
(Constrained SESF stream structure)
FIG. 80 shows the overall stream structure of Constrained SESF. Constrained SESF is composed of a plurality of SESF capsules (SESF capsules). The SESF capsule includes a predetermined Multiplexing Unit, and has a Tip packet (details will be described later) at the head. The reproduction time information (PTS) of each SESF capsule and the address information of the Tip packet are associated by the access map 80c. As will be described later, in TS2PS conversion, conversion processing is performed for each SESF capsule. FIG. 32 is a diagram showing the correspondence between each packet in one SESF capsule and an MPEG-PS pack. As shown in FIG. 32, a TS packet (hereinafter referred to as “Tip packet”) in which unique information of a stream is stored is inserted into the Constrained SESF. Hereinafter, the Tip packet embedded in the Constrained SESF will be described with reference to FIGS.
(Tip packet)
FIG. 35 shows the overall structure of the Tip packet. As shown in this figure, the Tip packet includes a Data_ID for specifying that the packet is a Tip packet, a display_and_copy_info including display control and copy control information, and a stream encoding information corresponding to the DCI_CCI field of DVD VR. The stored encode_info and MakersPrivateData that can describe additional information unique to the manufacturer are stored.

図35、36に示したように、Tipパケットには後述のSCR演算に必要なPCR値をアダプテーションフィールド内に記述している。このアダプテーションフィールドも固定バイト長であるため、Tipパケット内の各種情報へ固定アドレスでのアクセスが可能である。   As shown in FIGS. 35 and 36, in the Tip packet, a PCR value necessary for the SCR calculation described later is described in the adaptation field. Since this adaptation field also has a fixed byte length, various information in the Tip packet can be accessed with a fixed address.

図37にData_IDの構造を示す。Data_IDは、そのパケットがTipパケットであることを識別するためのData_Identifierを備える。Data_Identifierは、アスキーコードで"TIP"を表す「0x544950」の値を持った3バイトのフィールドである。再生装置のデコーダはこのフィールドの値を判定し、Tipパケットと特定することもできる。   FIG. 37 shows the structure of Data_ID. Data_ID includes Data_Identifier for identifying that the packet is a Tip packet. Data_Identifier is a 3-byte field having a value of “0x544950” representing “TIP” in ASCII code. The decoder of the playback device can determine the value of this field and identify it as a Tip packet.

図38に、display_and_copy_infoの構造を示す。このdisplay_and_copy_infoに、DVD VR規格のRDI UnitのDCI_CCIと同一の構造および情報を持たせることで、当該Constrained SESFをDVD VRフォーマットへ変換する際のRDIパックの生成を容易にしている。(なお、DVD VR規格のDCI_CCIの詳細については「DVD Specifications for Rewritable/Re−recordable Disc Part3 VIDEO RECORDING」や特許第3162044号に開示されている。これらの文献においては、一部フィールド名が異なっているが、各フィールドの定義はDVD VRフォーマットへの変換時にそのままコピーを可能にするため同一である。)
図39にencode_infoの構造を示す。video_resolutionフィールドには、Tipパケットに続くビデオストリームの解像度情報が記述される。encode_infoの値を以下に示す。
FIG. 38 shows the structure of display_and_copy_info. By providing this display_and_copy_info with the same structure and information as the DCI_CCI of the RDI unit of the DVD VR standard, it is easy to generate an RDI pack when converting the Constrained SESF to the DVD VR format. (Note that the details of DCI_CCI of the DVD VR standard are disclosed in “DVD Specifications for Rewritable / Re-recordable Disc Part 3 VIDEO RECORDING” and Japanese Patent No. 3162044. Some field names are different. However, the definition of each field is the same to enable copying as it is at the time of conversion to the DVD VR format.)
FIG. 39 shows the structure of encode_info. In the video_resolution field, resolution information of the video stream following the Tip packet is described. The value of encode_info is shown below.

0000b:720x480(NTSC)、720x576(PAL)
0001b:704x480(NTSC)、704x576(PAL)
0010b:352x480(NTSC)、352x576(PAL)
0011b:352x240(NTSC)、352x288(PAL)
0100b:544x480(NTSC)、544x576(PAL)
0101b:480x480(NTSC)、480x576(PAL)
Others:リザーブ
DVD VRフォーマットでは1連続記録中の解像度が、可変であっても良い。しかしながら、この場合、解像度が異なるストリームは別個のVOBとして管理され、レコーダによっては再生時のシームレス接続が保証される。したがって、Constrained SESF記録中に解像度変化を起こす場合には、DVD VRフォーマットに変換した場合に、どの地点からVOBを切り分ける必要があるのかを判定するために、このフィールドが使用される。
0000b: 720x480 (NTSC), 720x576 (PAL)
0001b: 704x480 (NTSC), 704x576 (PAL)
0010b: 352x480 (NTSC), 352x576 (PAL)
0011b: 352x240 (NTSC), 352x288 (PAL)
0100b: 544x480 (NTSC), 544x576 (PAL)
0101b: 480x480 (NTSC), 480x576 (PAL)
Others: Reserve In the DVD VR format, the resolution during one continuous recording may be variable. However, in this case, streams with different resolutions are managed as separate VOBs, and a seamless connection during playback is guaranteed depending on the recorder. Therefore, when a resolution change occurs during Constrained SESF recording, this field is used to determine from which point the VOB needs to be separated when converted to the DVD VR format.

DVD−Videoフォーマットに変換することを考慮して記録されるConstrained SESF(encode_condition=11b)では、解像度変化は1ストリーム内では起こらない。   In Constrained SESF (encode_condition = 11b) recorded in consideration of conversion to the DVD-Video format, the resolution does not change in one stream.

encode_conditionフィールドは、VOBIに格納された値と(00bである場合を除き)同一である。ストリームの管理情報だけでなく、ストリーム中にも埋め込んでencode_conditionフィールドを格納する理由は、IEEE1394に代表されるデジタルインターフェースを介してストリームがコピーされるようなことがあっても、受け手の記録装置がこのTipパケット内のencode_conditionフィールドを確認することで、容易にDVDフォーマットへ変換できるか否かの判定を行うことを可能とするためである。   The encode_condition field is the same as the value stored in VOBI (except when it is 00b). The reason why the encode_condition field is stored not only in the management information of the stream but also embedded in the stream is that the recording device of the receiver is able to copy the stream through a digital interface represented by IEEE 1394. This is because by checking the encode_condition field in the Tip packet, it is possible to easily determine whether or not conversion to the DVD format is possible.

FVFPSTフィールドには、DVD VR規格のVOBU_S_PTMが記録される。これは、Constrained SESFをDVD−Video/VRフォーマットへ変換する際に、Tipパケットに続き符号化されているビデオストリームの解析を行い、最初に表示されるビデオフィールドの再生時刻を算出する処理を省くためである。   In the FVFPST field, VOBU_S_PTM of the DVD VR standard is recorded. This eliminates the process of analyzing the video stream encoded following the Tip packet and calculating the playback time of the video field that is displayed first when converting the Constrained SESF to the DVD-Video / VR format. Because.

FVFPSTフィールドは、前記ビデオフィールドの表示時刻を90KHz精度で表した32ビットのフィールドと、これに表現されない27MHz精度で表した16ビットのフィールドから成る。   The FVFPST field is composed of a 32-bit field representing the display time of the video field with 90 KHz accuracy and a 16-bit field represented with 27 MHz accuracy which is not represented by this.

図40に、PES_infoの構造を示す。PES_infoは、エレメンタリーストリームの解析をすることなく、Constrained SESFをDVD−Videoフォーマットへ変換するために必須となる情報である。この情報は、DVD−Videoのストリームに挿入されるNV_PCKと呼ばれる、特殊再生を支援するためのパックに格納される情報を生成するために必要となる。   FIG. 40 shows the structure of PES_info. PES_info is information essential for converting the Constrained SESF to the DVD-Video format without analyzing the elementary stream. This information is necessary to generate information stored in a pack for supporting special playback, called NV_PCK, which is inserted into the DVD-Video stream.

PES_infoには、合計136個のビデオデータとオーディオデータを格納したPESパケットの情報を格納することが可能である。夫々のPESパケットに対して、4ビットずつのデータが割り当てられ、PESパケットの内部を解析せずともNV_PCKの情報を生成できるようになっている。尚、ビデオまたは、オーディオデータを格納していないPESパケットがある場合には、そのPESパケットは無視される。   PES_info can store information of PES packets storing a total of 136 video data and audio data. 4-bit data is assigned to each PES packet, so that NV_PCK information can be generated without analyzing the inside of the PES packet. If there is a PES packet that does not store video or audio data, the PES packet is ignored.

Tipパケットから、次のTipパケットの一つ前のパケットまでのデータ単位であるSESF Capsuleに対して、PES_existence_flagは、j番目のPESパケットがこの該当のSESF Capsule内に存在するか否かのフラグである。PES_existence_flagの値は以下のように設定される。   For the SESF Capsule that is a data unit from the Tip packet to the packet immediately before the next Tip packet, the PES_existence_flag is a flag indicating whether or not the j-th PES packet exists in the corresponding SESF Capsule. is there. The value of PES_existence_flag is set as follows.

0b:j番目のPESパケットが当該SESF Capsule内に存在しない。     0b: The jth PES packet does not exist in the SESF Capsule.

1b:j番目のPESパケットが当該SESF Capsule内に存在する。     1b: The jth PES packet exists in the SESF Capsule.

PES_extension_flag=0b(PESパケットが存在しない場合)である時には、当該PESパケットの残りのフィールドは全て0bとする。   When PES_extension_flag = 0b (when no PES packet is present), all the remaining fields of the PES packet are set to 0b.

PES_payload_identifierは、該PESパケットに格納されたデータが、ビデオデータなのか、オーディオデータなのかを識別するための情報である。PES_payload_identifierの値は以下のように設定される。   PES_payload_identifier is information for identifying whether the data stored in the PES packet is video data or audio data. The value of PES_payload_identifier is set as follows.

0b:ビデオストリーム
1b:オーディオストリーム
PES_existence_flagとPES_payload_identifierは対象となる全てのPESパケットについて記述されるフィールドである。
0b: Video stream 1b: Audio stream PES_existence_flag and PES_payload_identifier are fields described for all target PES packets.

さて、上記PES_payload_identifierによってビデオかオーディオが格納されていると判明した時点で、PESパケットが格納するストリームの種別によって、それ以降のフィールド定義が異なる。   Now, when it is determined by the PES_payload_identifier that video or audio is stored, the subsequent field definitions differ depending on the type of stream stored in the PES packet.

そのPESパケットがビデオストリームを格納していた場合(PES_payload_identifier=0b)は、PES_payload_identifierに続いて、そのPESパケットに格納されたピクチャの種別を示すpicture_coding_typeが定義される。   When the PES packet stores a video stream (PES_payload_identifier = 0b), a picture_coding_type indicating the type of picture stored in the PES packet is defined following the PES_payload_identifier.

picture_coding_typeの値は以下のように設定される。   The value of picture_coding_type is set as follows.

00b:01b、10b以外の符号化が施されたピクチャ
01b:フレームエンコードされたIピクチャまたは、フィールドエンコードされたIピクチャの一対または、フィールドエンコードされたIピクチャとフィールドエンコードされたPピクチャの一対
10b:フレームエンコードされたPピクチャまたは、フィールドエンコードされたPピクチャの一対
11b:リザーブ
つまり、01bもしくは10bのピクチャはDVD−Video規格で定義される参照ピクチャとなるピクチャである。以上が、ビデオを格納したPESパケットに対する付加情報である。
00b: Pictures that have been encoded other than 01b, 10b 01b: A pair of frame-encoded I picture or field-encoded I picture, or a pair of field-encoded I picture and field-encoded P picture 10b : Pair of frame-encoded P picture or field-encoded P picture 11b: Reserved In other words, the 01b or 10b picture is a picture that becomes a reference picture defined in the DVD-Video standard. The above is the additional information for the PES packet storing the video.

一方、PESパケットがオーディオストリームを格納していた場合(PES_payload_identifier=1b)は、PES_payload_identifierに続いて、そのPESパケットに格納されたオーディオストリームが第一音声ストリームなのか、第二音声ストリームなのかを識別するstream_identifierと、毎Tipパケットに記述されたFVFPST(一番最初に表示されるビデオフィールドの再生開始時刻)と同時もしくはその直後に再生が開始されるオーディオフレームを含んでいるか否かの判定フラグであるsync_presentation_flagとがある。   On the other hand, when the PES packet stores an audio stream (PES_payload_identifier = 1b), it is identified whether the audio stream stored in the PES packet is the first audio stream or the second audio stream following the PES_payload_identifier. This flag is used to determine whether or not the stream_identifier and the FVFPST described in each Tip packet (the playback start time of the video field displayed first) includes an audio frame that starts playback immediately thereafter. There is a certain sync_presentation_flag.

stream_identifierの値は以下のように設定される。   The value of stream_identifier is set as follows.

0b:第一音声ストリーム
1b:第二音声ストリーム
第一音声ストリームか、第二音声ストリームかの識別は、PIDの設定規則や、PMTでのエレメンタリーストリーム宣言の順番等でも決めることができる。
0b: First audio stream 1b: Second audio stream The identification of the first audio stream or the second audio stream can be determined by the PID setting rule, the order of the elementary stream declaration in the PMT, and the like.

sync_presentation_flagの値は、以下のように設定される。   The value of sync_presentation_flag is set as follows.

0b:該オーディオPESパケットの中に、FVFPSTと同時もしくは直後に再生開始されるオーディオフレームが格納されていない。     0b: The audio PES packet does not store an audio frame that starts to be played simultaneously with or immediately after FVFPST.

1b:該オーディオPESパケットの中に、FVFPSTと同時もしくは直後に再生開始されるオーディオフレームが格納されている。     1b: An audio frame to be played back at the same time as or immediately after FVFPST is stored in the audio PES packet.

以上が、オーディオを格納したPESパケットに対する付加情報である。PES_infoは、このように該Tipパケットに続く個々のPESパケットごとの情報を抽出し、格納しているフィールドである。   The above is the additional information for the PES packet storing the audio. PES_info is a field that extracts and stores information for each individual PES packet following the Tip packet.

図41に、MakersPrivateDataを示す。図示した通り、MakersPrivateDataは、該Constrained SESFを生成した製造者を特定するmaker_IDと、その製造者が固有付加情報を記述するmaker_private_dataを設ける。   FIG. 41 shows MakersPrivateData. As shown in the drawing, MakersPrivateData provides a maker_ID that identifies the manufacturer that generated the Constrained SESF, and a maker_private_data in which the manufacturer describes unique additional information.

図42A、42Bに、TipパケットのPIDとストリームの種別を示すstream_type値の一例を示す。PID、stream_type共にMPEGや他規格にて予約されている値があるため、それらと干渉せずかつMPEG規格外のプライベートデータであることを加味し、上記の値を選択した。   42A and 42B show an example of the stream_type value indicating the PID of the Tip packet and the stream type. Since both PID and stream_type have values reserved in MPEG and other standards, the above values are selected in consideration of private data that does not interfere with them and are outside the MPEG standard.

以上のように、Constrained SESFに格納されるTipパケットには、各種ストリームの属性情報が抽出され格納されている。上記説明したフィールドがDVDフォーマットへ変換する際にどのように使用されているかの詳細については、後述する。
(システムエンコード条件)
次に、Constrained SESFのシステムエンコード条件について詳細に説明する。尚、以下のシステムエンコード条件は通常のSESFには適用されない。
(多重化単位(Multiplexing Unit))
Constrained SESF内のエレメンタリーストリームを格納したTSパケットは、DVDフォーマットの2KBのパックに格納されるデータをまとめたユニットである多重化単位(Multiplexing Unit)から構成される。なお、この多重化単位(Multiplexing Unit)は第1の実施例の多重化ブロックに対応する。
As described above, the attribute information of various streams is extracted and stored in the Tip packet stored in the Constrained SESF. Details of how the above-described fields are used when converting to the DVD format will be described later.
(System encoding condition)
Next, the system encoding conditions of Constrained SESF will be described in detail. The following system encoding conditions are not applied to normal SESF.
(Multiplexing Unit)
A TS packet storing an elementary stream in a Constrained SESF is composed of a multiplexing unit (Multiplexing Unit) that is a unit in which data stored in a 2 KB pack in the DVD format is collected. Note that this multiplexing unit corresponds to the multiplexed block of the first embodiment.

1つのMultiplexing Unit内には、1種類のエレメンタリーストリームを格納するTSパケットだけが格納されており、他の種類のエレメンタリーストリームを格納するTSパケットと混在することはない。また、NULLパケットとの混在は、1つのMultiplexing Unitを構成する際に必要となる場合があるので(例えば、ストリームの最後のパートを格納したMultiplexing Unit)、禁止しない。これも、Multiplexing Unitとパックの関係を明確にするために必要である。   Only one TS packet storing one type of elementary stream is stored in one Multiplexing Unit, and it is not mixed with TS packets storing other types of elementary streams. In addition, mixing with a NULL packet may be necessary when configuring one Multiplexing Unit (for example, Multiplexing Unit storing the last part of the stream), and is not prohibited. This is also necessary to clarify the relationship between the Multiplexing Unit and the pack.

1つのMultiplexing Unitは11個の連続したTSパケットから構成され、各Multiplexing Unit内のエレメンタリーストリーム(ペイロードデータ)は対応する1つのパックに完全に格納される。これも同様に、パックとの関連性を制限している。   One Multiplexing Unit is composed of 11 consecutive TS packets, and the elementary stream (payload data) in each Multiplexing Unit is completely stored in one corresponding pack. This also limits the relevance of the pack.

ビデオストリームを格納したPESパケットが複数のMultiplexing Unitに分割配置される場合には、PESパケットの最後のバイトを含むMultiplexing Unitを除き、全てのMultiplexing
Unitは184×11=2024BのTSパケットペイロードデータを格納する。これは、最大の効率でストリームを転送することと、TSパケット単位の逐次処理がTS2PS変換時に容易に実行できるようにするためである。仮に最後以外のMultiplexing Unitのデータ量を2024B以下と認めてしまうと、TS2PS変換時にMultiplexing Unit最初のTSパケットを変換する際にMPEG−PSのパック毎のパケットヘッダに格納されるPES_packet_lengthの値を容易に決定することができなくなる。
When the PES packet storing the video stream is divided and arranged in a plurality of Multiplexing Units, all the Multiplexing except for the Multiplexing Unit including the last byte of the PES packet.
The unit stores TS packet payload data of 184 × 11 = 2024B. This is because the stream is transferred with the maximum efficiency and the sequential processing in units of TS packets can be easily executed at the time of TS2PS conversion. If the data amount of the Multiplexing Unit other than the last is recognized as 2024B or less, the value of PES_packet_length stored in the packet header of each MPEG-PS pack is easily converted when converting the first TS packet of the Multiplexing Unit during TS2PS conversion. Can not be determined.

Multiplexing Unitの中で始まる最初の完全なオーディオフレームデータは、PESパケットペイロードの中で先頭のオーディオフレームでなければならない。   The first complete audio frame data starting in the Multiplexing Unit must be the first audio frame in the PES packet payload.

これは、オーディオストリームを格納したPESパケットが複数のMultiplexing Unitに格納されることを考えると分り易い。仮に1つのオーディオPESパケットが複数のMultiplexing Unitに分割配置されるとすると、2つ目以降のMultiplexing UnitをMPEG−PSのパックに変換する際に、パケットヘッダを生成するために、PTSを特定し、1つのパックに格納されるオーディオフレームの個数を決定する必要がある。このため、TS2PS変換時にオーディオストリームの内部解析が必要となり変換処理が煩雑となることを避けている。   This is easy to understand when considering that PES packets storing audio streams are stored in a plurality of Multiplexing Units. Assuming that one audio PES packet is divided and arranged into a plurality of Multiplexing Units, a PTS is specified to generate a packet header when the second and subsequent Multiplexing Units are converted into MPEG-PS packs. It is necessary to determine the number of audio frames stored in one pack. For this reason, an internal analysis of the audio stream is required at the time of TS2PS conversion, thereby avoiding complicated conversion processing.

以上がMultiplexing Unitの定義となる。Constrained SESFを生成するエンコーダは、上記Multiplexing Unitの制限の中でシステムエンコードを行う。
(Constrained SESF内のPESパケットヘッダの制限)
次に、Constrained SESF内のPESパケットヘッダのフィールド値について、いくつかの制限を説明する。
The above is the definition of Multiplexing Unit. An encoder that generates a Constrained SESF performs system encoding within the limitations of the Multiplexing Unit.
(Restriction of PES packet header in Constrained SESF)
Next, some restrictions on the field value of the PES packet header in the Constrained SESF will be described.

図43に示したように、PESパケットヘッダのフィールドには、固定値しか許されないものがある。これは、DVDフォーマットへ変換した際に余計な処理を発生させないためである。余計な処理とは、DVDフォーマットで定義された値と異なる値によって付加的に発生/消滅するフィールドを処理することを意味している。言い換えれば、TS2PS変換時に、ヘッダに追加されるフィールドや削除されるフィールドを極力押さえることが、このPESパケットヘッダの制限の目的である。   As shown in FIG. 43, some PES packet header fields allow only fixed values. This is because unnecessary processing does not occur when converting to the DVD format. Extra processing means processing a field that is additionally generated / disappeared by a value different from the value defined in the DVD format. In other words, at the time of TS2PS conversion, the purpose of limiting the PES packet header is to suppress fields that are added to or deleted from the header as much as possible.

PES_packet_legnthの値はMPEG−TSに格納されたビデオストリーム場合、0が許されることがある。   The value of PES_packet_length may be 0 in the case of a video stream stored in MPEG-TS.

PTS_DTS_flagsは、PTS、DTSが記述されているか否かを示すフラグである。   PTS_DTS_flags is a flag indicating whether or not PTS and DTS are described.

オーディオストリームを格納したPESパケットの場合、必ず1つ以上のオーディオフレームがPESパケット内で開始され、PTS_DTS_flagsは10b(DTSがある場合には11b)に設定される。   In the case of a PES packet storing an audio stream, one or more audio frames are always started in the PES packet, and PTS_DTS_flags is set to 10b (11b if there is a DTS).

PES_extension_flagとPES_header_data_legnthには、TS2PS変換の際にTSパケット単位の逐次処理を行うための制限がある。これを図44に示した。   PES_extension_flag and PES_header_data_length have restrictions for performing sequential processing in units of TS packets during TS2PS conversion. This is shown in FIG.

図44に示した通り、エレメンタリーストリームの種別、PESパケットの位置とencode_conditionの値によって、夫々の値が定義される。   As shown in FIG. 44, each value is defined by the type of elementary stream, the position of the PES packet, and the value of encode_condition.

ここで、図44にあるVPDとは、PESパケットのPTSフィールドとDTSフィールドを足し合わせたバイト長である。即ち、
PTS_DTS_flags=00bならば、VPD=0
PTS_DTS_flags=10bならば、VPD=5
PTS_DTS_flags=11bならば、VPD=10
である。
Here, the VPD in FIG. 44 is a byte length obtained by adding the PTS field and the DTS field of the PES packet. That is,
If PTS_DTS_flags = 00b, VPD = 0
If PTS_DTS_flags = 10b, VPD = 5
If PTS_DTS_flags = 11b, VPD = 10
It is.

前述の通り、DVD−VideoやVRへ変換する際に、1パックのペイロード長が確定してからパックを構成するのではなく、TSパケットごとの逐次処理を容易にするためにこの制限が必要となる。   As described above, when converting to DVD-Video or VR, this limitation is necessary in order to facilitate sequential processing for each TS packet, rather than configuring a pack after the payload length of one pack is determined. Become.

以上が、PESパケットヘッダの定義となる。Constrained SESFを生成するエンコーダは、上記制限の中でシステムエンコードを行う。
(Tipパケットの挿入間隔に対する制限)
次に、Constrained SESF内に挿入されるTipパケットの挿入間隔に関する制限を説明する。
The above is the definition of the PES packet header. The encoder that generates the Constrained SESF performs system encoding within the above restrictions.
(Restriction on Tip packet insertion interval)
Next, limitations on the insertion interval of Tip packets inserted in the Constrained SESF will be described.

TipパケットのATS(ATS1)が示すデコーダ入力時刻と、Tipパケットに続いて最初にデコーダに入力されるビデオもしくはオーディオストリームを格納したTSパケットのATS(ATS2)が示すデコーダ入力時刻とは、以下の関係が成り立つ必要がある。   The decoder input time indicated by the ATS (ATS1) of the Tip packet and the decoder input time indicated by the ATS (ATS2) of the TS packet storing the video or audio stream first input to the decoder following the Tip packet are as follows: A relationship needs to be established.

ATS1 + T <= ATS2
T = (PS_pack_size*8*system_clock_frequency) / PSrate
Tは、PSパックの最小転送期間である。この最小転送期間は、PSパックがシステムデコーダに入力開始されてから完了するまでの最小期間である。すなわち上記の式は、各TSパケットのATS間隔は、少なくとも変換後のPSパックがシステムデコーダに入力可能な間隔よりも大きいことが必要なことを示している。
Tの値を求めると次のようになる。
ATS1 + T <= ATS2
T = (PS_pack_size * 8 * system_clock_frequency) / PSrate
T is the minimum transfer period of the PS pack. This minimum transfer period is the minimum period from the start of input of the PS pack to the system decoder until completion. That is, the above formula shows that the ATS interval of each TS packet needs to be at least larger than the interval at which the converted PS pack can be input to the system decoder.
The value of T is calculated as follows.

PS_pack_sizeはTS2PS変換で生成されるMPEG−PSでの1パックのバイト長であり、system_clock_frequencyはMPEG−PSデコーダの基準時刻の周波数であり、PSrateはTS2PS変換で生成されるMPEG−PSストリームの多重化レートである。   PS_pack_size is the byte length of one pack in MPEG-PS generated by TS2PS conversion, system_clock_frequency is the frequency of the reference time of the MPEG-PS decoder, and PSrate is the multiplexing of the MPEG-PS stream generated by TS2PS conversion Rate.

DVDフォーマットの場合、それぞれ以下の値を取るため、ATS1とATS2の関係は次のようになる。   In the case of the DVD format, since the following values are taken, the relationship between ATS1 and ATS2 is as follows.

PS_pack_size=2048 バイト、
system_clock_frequency=27000000 Hz、
PSrate=10080000 ビット/秒、
ATS1 + 43885.714... <= ATS2
よって、ATS1 + 43886 = ATS2 がATS2の最小値となる。典型的には、後述のTS2PS変換にてTipパケットがNV_PCK(DVD−Video変換時)もしくはRDI_PCK(DVD VR変換時)の2KBのサイズを持つパックに変換されるが、上記の式を満たさない場合は、続くエレメンタリーストリームの転送時刻が早まり、DVDのシステム転送レート10.08Mbpsの上限を超えてしまうことになる。
PS_pack_size = 2048 bytes,
system_clock_frequency = 27000000 Hz,
PSrate = 10800000 bits / second,
ATS1 + 43885.714 ... <= ATS2
Therefore, ATS1 + 43886 = ATS2 is the minimum value of ATS2. Typically, the TS packet is converted to a pack with 2KB size of NV_PCK (during DVD-Video conversion) or RDI_PCK (during DVD VR conversion) by TS2PS conversion described later, but the above formula is not satisfied In this case, the transfer time of the subsequent elementary stream is advanced, and the upper limit of the DVD system transfer rate of 10.08 Mbps is exceeded.

一つのSESF capsuleには整数個のGOPがアライメントされて配置される。これは、DVDフォーマットのVOBUの概念をConstrained SESF上で実現するために、SESF capsuleを、DVDフォーマットのVOBUに対応させるためである。DVDフォーマット(DVD VR)では、このVOBUは整数個のGOPから構成される必要がある。   An integer number of GOPs are aligned and arranged in one SESF capsule. This is to make the SESF capsule correspond to the VOBU of the DVD format in order to realize the concept of the VOBU of the DVD format on the Constrained SESF. In the DVD format (DVD VR), this VOBU needs to be composed of an integer number of GOPs.

一つのSESF capsule内に格納されるビデオデータの再生時間軸上での時間幅は、0.4秒以上、1.0秒以下でなければならない。また、最後のSESF capsuleに格納されるビデオデータの再生時間軸上での時間幅は、encode_condition=11b(DVD−Videoモード)時には0.4秒以上1.2秒以下であり、encode_condition=01b(DVD VRモード)時には1.0秒以下でなければならない。これは、SESF capsuleがVOBUとなり、各DVDフォーマットに従うために必要である。   The time width on the playback time axis of video data stored in one SESF capsule must be 0.4 seconds or more and 1.0 seconds or less. Further, the time width on the playback time axis of the video data stored in the last SESF capsule is 0.4 seconds or more and 1.2 seconds or less when encode_condition = 11b (DVD-Video mode), and encode_condition = 01b ( (DVD VR mode) must be 1.0 second or less. This is necessary for the SESF capsule to be a VOBU and to follow each DVD format.

各Tipパケットは、通常、時間−アドレス変換を行うアクセスマップと1対1にポイントされることが望まれる。これは、TS2PS変換を行う際に、DVDフォーマットで言う所のVOBU単位で変換を即座に始められるようにすることと、変換時にDVD−Videoフォーマットに変換する場合に、TipパケットをNV_PCKへと変換していく際に、NV_PCK内に格納される近隣VOBUへのアドレス情報であるDSI(Data Search Information)をアクセスマップから作成するために必要である。DSIを計算するためには、アクセスマップが、Tipパケットごとにその再生時間(FVFPSTに準じたTipパケット直後のAV再生時刻情報の一部もしくは全部)とTipパケットの記録アドレスとを格納し、2つの連続するTipパケット間にMultiplexing
Unitが何個格納されているかが判れば良い。これは次の制約によって実現される。
Each Tip packet is typically desired to be pointed one-to-one with an access map that performs time-address translation. This means that when performing TS2PS conversion, conversion can be started immediately in units of VOBU in the DVD format, and when converting to DVD-Video format at the time of conversion, Tip packets are converted to NV_PCK. In order to create DSI (Data Search Information), which is address information to neighboring VOBUs stored in NV_PCK, from the access map. In order to calculate DSI, the access map stores the playback time (part or all of AV playback time information immediately after the Tip packet according to FVFPST) and the recording address of the Tip packet for each Tip packet. Multiplexing between two consecutive Tip packets
It is only necessary to know how many Units are stored. This is achieved by the following constraints.

尚、全てのTipパケットがアクセスマップからポイントされなくても良い、例えば、Constrained SESF内で一番最後のTipパケットに続くAVデータは、再生時間長や次のTipパケットが無い等、他のTipパケットと異なる状態にあるため扱いが異なる。このような場合、一番最後のTipパケットをアクセスマップに登録せずとも特に再生や変換に支障をきたす訳ではない為、機器の実装を鑑み、例外処理としても良い。   Note that not all Tip packets need to be pointed out of the access map. For example, AV data following the last Tip packet in the Constrained SESF has a different playback time length or no other Tip packet. Handling is different because it is in a different state from the packet. In such a case, since the last Tip packet is not registered in the access map, there is no particular problem in reproduction and conversion.

連続する2つのTipパケット間には、Multiplexing Unitに属さないパケットが合計32個挿入される。これは、TS2PS変換時にアクセスマップを用いてDVDフォーマットに変換した場合、VOBUのパック数がいくつになるのかを特定するために必要である。(パケット数は32個に限定する必要はないが、ある所定の個数である必要がある。アクセスマップのTipパケットのアドレス情報から、Tipパケットに続くTSパケット数が特定できるため、Multiplexing Unitでないパケットがいくつあるのかが判れば、DVDフォーマットに変換した際に、VOBUにいくつのパックが入るのか特定できる。これが重要である。また、この情報はMNFや各Tipパケット内のMakersPrivateData内に記述されても良い。)
また、32個にする理由は、MPEG−TSのプログラム構成情報を示すPAT、PMTパケットが最低100msecに一回以上埋め込まれることと、プログラムごとの固有情報を格納したSITパケットが最低1秒に一回以上埋め込まれることと、デコーダ基準時刻を作り出すPCR(Program Clock Reference)を格納するPCRパケットが最低100msecに一回以上埋め込まれることと、何れのMultiplexing Unitにも属さないNULLパケットが自由に付加できることと、Tipパケットの挿入間隔がAVデータ再生時間軸で1.0秒以下であることから、連続する2つのTipパケット間には、少なくとも31個のPAT、PMT、PCR、SITパケットがあれば良い事になる。従って連続する2つのTipパケット間に、その時間に応じたPAT、PMT、PCR、SITパケットを挿入し、32パケットになるまでNULLパケットを付与することで、VOBUのパック数をアクセスマップから特定することができる。
A total of 32 packets that do not belong to the Multiplexing Unit are inserted between two consecutive Tip packets. This is necessary in order to specify how many packs of VOBU will be when converted to DVD format using an access map during TS2PS conversion. (The number of packets need not be limited to 32, but it must be a certain number. Since the number of TS packets following the Tip packet can be specified from the address information of the Tip packet in the access map, the packet is not a Multiplexing Unit. It is important to know how many packs are included in the VOBU when converted to the DVD format.This information is important, and this information is described in the MakersPrivateData in each Tip packet. Is also good.)
The reason why the number is 32 is that PAT and PMT packets indicating MPEG-TS program configuration information are embedded at least once in 100 msec and that SIT packets storing unique information for each program are at least once per second. It is embedded more than once, a PCR packet storing a PCR (Program Clock Reference) for generating a decoder reference time is embedded at least once in 100 msec, and a NULL packet that does not belong to any Multiplexing Unit can be freely added Since the Tip packet insertion interval is 1.0 second or less on the AV data playback time axis, there should be at least 31 PAT, PMT, PCR, and SIT packets between two consecutive Tip packets. It will be a thing. Therefore, by inserting PAT, PMT, PCR, SIT packets according to the time between two consecutive Tip packets, and adding NULL packets until 32 packets are specified, the number of packs of VOBU is specified from the access map. be able to.

一例として、0.5秒間隔でTipパケットが挿入され、アクセスマップから特定できる該Tipパケットに続くTSパケットの個数が1209TSパケットである場合について変換後のパック数を考えてみると、PAT、PMT、PCRパケットを合計して15パケット(=5+5+5)、SITパケットがこのTipパケットに続けて挿入されたとして1パケット、残りの16パケットをNULLパケットとして挿入する。これをDVDフォーマットに変換する場合には、TipパケットがNV_PCK(DVD−Videoへ変換時)もしくはRDI_PCK(DVD VRへ変換時)に変換されて1パック、1つのMultiplexing
Unit(11TSパケット)は1パックに夫々変換される。従って、VOBUのパック数は、
1+Multiplexing Unitの個数
という式で求めることができ、Mulitplexing Unitの個数は、
(該Tipパケットに続くTSパケット数−32)/11
であるため、この例の場合には、
1+((1209-32)/11) = 1+107 = 108
となり、該VOBUは、トータル108パックであることが計算できる。このVOBU毎のパック数と再生開始時刻情報があれば、DVD Videoへ変換する際に必要となるNV_PCKのDSIパケットを生成するのがきわめて高速に実現できる。
As an example, considering the number of packs after conversion when Tip packets are inserted at intervals of 0.5 seconds and the number of TS packets following the Tip packet that can be identified from the access map is 1209 TS packets, PAT, PMT The total of the PCR packets is 15 packets (= 5 + 5 + 5), one packet is assumed to be inserted after the Tip packet, and the remaining 16 packets are inserted as NULL packets. When converting this to the DVD format, the Tip packet is converted to NV_PCK (when converting to DVD-Video) or RDI_PCK (when converting to DVD VR), and one pack, one Multiplexing
Each unit (11 TS packet) is converted into one pack. Therefore, the number of packs of VOBU is
1 + Multiplexing Unit The number of Multiplexing Units can be calculated by the following formula:
(Number of TS packets following the Tip packet−32) / 11
So in this example,
1 + ((1209-32) / 11) = 1 + 107 = 108
Thus, the VOBU can be calculated to be a total of 108 packs. If there are the number of packs and playback start time information for each VOBU, it is possible to generate an NV_PCK DSI packet necessary for conversion to DVD Video at a very high speed.

以上が、Tipパケット挿入間隔に対する制限である。Constrained SESFを生成するエンコーダは、上記制限の中でシステムエンコードを行う。
(デコーダ制御に関する制限)
次に、Constrained SESFのデコーダ制御(バッファマネージメント)に関する制限を説明する。
The above is the restriction on the Tip packet insertion interval. The encoder that generates the Constrained SESF performs system encoding within the above restrictions.
(Restrictions on decoder control)
Next, restrictions on decoder control (buffer management) of Constrained SESF will be described.

Constrained SESFは、MPEG−TSの基準デコーダモデルであるT−STDの基準を満たすよう作成される必要がある。これは、T−STD準拠のデコーダを搭載したSTB等でもストリームの種別さえ合えば、Constrained SESFのデコードが可能であることを意味している。   The Constrained SESF needs to be created so as to satisfy the standard of T-STD, which is the MPEG-TS standard decoder model. This means that even a STB or the like equipped with a T-STD compliant decoder can decode the Constrained SESF as long as the stream type matches.

MPEG−TSの基準デコーダモデルであるT−STDと、MPEG−PSの基準デコーダモデルであるP−STDは、ほぼ同じ動作・処理能力を持つが、オーディオストリームのデコーダへの入力レートが異なる。具体的には、T−STDは、図18を用いて説明すると、オーディオデコーダ前のトランスポートバッファからオーディオバッファへの転送レートがAACを除いて、2Mbps固定となっている。しかしながら、P−STDはシステムレートつまりDVDだと10.08Mbpsのレートで、各種ストリームをデコーダへ入力することができる。   The MPEG-TS standard decoder model T-STD and the MPEG-PS standard decoder model P-STD have substantially the same operation and processing capability, but the input rate of the audio stream to the decoder is different. Specifically, in T-STD, the transfer rate from the transport buffer before the audio decoder to the audio buffer is fixed at 2 Mbps, excluding AAC, with reference to FIG. However, P-STD can input various streams to the decoder at a system rate, that is, a rate of 10.08 Mbps for DVD.

したがって、Constrained SESFとDVDフォーマットとのバッファマネージメントは共通化できないことになる。   Therefore, buffer management for Constrained SESF and DVD format cannot be made common.

このように、一般的には、MPEG−TSとMPEG−PS間でのバッファマネージメントは共通化できないが、Constrained SESFをDVDフォーマットへ変換する際に、再度バッファマネージメントを考慮しながらシステムエンコード処理を行うことを避け、各TSパケットに付与されたATSを用いて、変換後のパックのデコーダ入力開始時刻を示すSCR(System Clock Reference)を算出できれば、極めて高速にかつ容易に変換が実行できる。ATSを用いたSCRの導出方法の詳細は後述する。   As described above, generally, buffer management cannot be made common between MPEG-TS and MPEG-PS, but when converting Constrained SESF to the DVD format, system encoding processing is performed again considering buffer management. If the SCR (System Clock Reference) indicating the decoder input start time of the converted pack can be calculated using the ATS given to each TS packet, the conversion can be executed very quickly and easily. Details of the SCR derivation method using ATS will be described later.

また、本発明のConstrained SESFは、T−STD準拠であると共に、後述する変換方法によって生成されたMPEG−PSが、P−STD準拠であることを保証できるように、予めエンコードされる必要がある。   The Constrained SESF of the present invention is T-STD compliant and needs to be encoded in advance so that MPEG-PS generated by the conversion method described later can be guaranteed to be P-STD compliant. .

つまり、Constrained SESFとは、MPEG−PSに変換してもP−STD準拠になるようにMPEG−TSにエンコードされたストリームである。   That is, Constrained SESF is a stream encoded in MPEG-TS so that it is P-STD compliant even if converted to MPEG-PS.

以上が、Constrained SESFのバッファマネージメントに関する制限である。なお、SESFではこれらのことを気にすることなく、T−STDに合致するようにエンコードするのみである。   The above is the restriction on Constrained SESF buffer management. In SESF, encoding is performed so as to match T-STD without worrying about these matters.

ここで、T−STD、P−STDの基準モデルに準拠しないMPEG−TS、MPEG−PSの例を説明する。   Here, examples of MPEG-TS and MPEG-PS that do not comply with the T-STD and P-STD reference models will be described.

最初に図45に、MPEG−PSに変換可能だが、T−STDモデルを満たさないようにセルフエンコードされたMPEG−TSの例を示す。ストリームTS1は、T−STDモデルに準拠するようにシステムエンコードされたMPEGトランスポートストリームである。ストリームTS2は、T−STDモデルに準拠していないMPEGトランスポートストリームである。すなわち、ストリームTS2においては、ATS[47]からATS[57]の値が、MPEG−TSにおいてオーディオデータに対して許容される転送レートを超えてしまうように設定されており、このため、オーディオのトランスポートバッファ(図18参照)をオーバーフローさせてしまいT−STDモデルを満たさないようになっている。これに対し、ストリームTS1は、ATS[47]からATS[57]の値がMPEG−TSにおいてオーディオデータに対して許容される転送レートを満たすように設定されている。このストリームからは、後述のSCR変換式にてP−STD準拠のMPEGプログラムストリームPS1に正しく変換できる。また、ストリームTS2も、T−STDを満たさないが、後述のSCR変換式で変換すれば、PS1を生成する。ストリームTS2をT−STD準拠のMPEG−TSにするためには、ATS[47]からATS[57]で指定されるオーディオパケットの転送時間間隔を広げ、トランスポートバッファをオーバーフローさせないようにすることが必要である。   First, FIG. 45 shows an example of MPEG-TS that can be converted into MPEG-PS but is self-encoded so as not to satisfy the T-STD model. The stream TS1 is an MPEG transport stream that is system-encoded to comply with the T-STD model. The stream TS2 is an MPEG transport stream that does not conform to the T-STD model. That is, in the stream TS2, the values of ATS [47] to ATS [57] are set so as to exceed the transfer rate allowed for audio data in MPEG-TS. The transport buffer (see FIG. 18) overflows so that the T-STD model is not satisfied. On the other hand, the stream TS1 is set so that the values of ATS [47] to ATS [57] satisfy the transfer rate allowed for audio data in MPEG-TS. This stream can be correctly converted into a P-STD-compliant MPEG program stream PS1 by the SCR conversion formula described later. Also, the stream TS2 does not satisfy T-STD, but PS1 is generated if it is converted by an SCR conversion formula described later. In order to make the stream TS2 MPEG-TS compliant with T-STD, it is necessary to increase the transfer time interval of audio packets specified by ATS [47] to ATS [57] so that the transport buffer does not overflow. is necessary.

次に、図46A、46BにT−STDは満たすが、MPEG−TSから変換されたMPEG−PSがP−STDモデルを満たさない場合の例を示す。ストリームTS3はMPEGトランスポートストリームであり、ストリームPS3はMPEGトランスポートストリームTS3から変換されたMPEGプログラムストリームである。図46Bは、各ストリームのデコ−ド時のビデオデータ用バッファの状態の変化を示している。PES#1のピクチャのデコード時刻はSCR[2]であり、PES#2のピクチャのデコード時刻はSCR[4]とSCR[5]の間にくる。 図46Bに示すように、トランスポートストリームTS3においては、PES#1、PES#2に含まれるピクチャデータのデコードまでに各TSパケットのデータ転送が間に合っている。これに対し、プログラムストリームPS3ではPES#1に対してはV_PCK#1の転送が間にあっているが、PES#2に対しては、V_PCK#4の転送が間に合わず、その転送途中でデコードが開始されたためにバッファアンダーフローを生じる。よって、P−STDモデルが満たされていない。このような状態を回避するためには、MPEG−TSにおいてPES#2の転送が早期に完了するように、V_PCK#2〜V_PCK#4に変換される各TSパケットのATS(ATS[14]、ATS[25]、ATS[36])の値を時間的に早くなるようにシフトさせればよい。
(ATS−SCR変換)
次に、Constrained SESFのストリームをプログラムストリームに変換するときのPSパケットのSCRの導出方法について説明する。なお、SCRの計算が必要となるのは新規にパックを生成するときであるため、Tipパケットと、Multiplexing Unitの先頭のTSパケットを変換するときのみ必要となる。
Next, FIGS. 46A and 46B show an example in which T-STD is satisfied but MPEG-PS converted from MPEG-TS does not satisfy the P-STD model. The stream TS3 is an MPEG transport stream, and the stream PS3 is an MPEG program stream converted from the MPEG transport stream TS3. FIG. 46B shows a change in the state of the video data buffer when each stream is decoded. The decoding time of the PES # 1 picture is SCR [2], and the decoding time of the PES # 2 picture is between SCR [4] and SCR [5]. As shown in FIG. 46B, in the transport stream TS3, the data transfer of each TS packet is in time until the picture data included in the PES # 1 and PES # 2 is decoded. On the other hand, in the program stream PS3, the transfer of V_PCK # 1 is in time for PES # 1, but the transfer of V_PCK # 4 is not in time for PES # 2, and decoding starts during the transfer. Cause a buffer underflow. Therefore, the P-STD model is not satisfied. In order to avoid such a situation, the ATS (ATS [14], ATS [14], and TS_14) of each TS packet converted into V_PCK # 2 to V_PCK # 4 so that the transfer of PES # 2 is completed early in MPEG-TS. The values of ATS [25] and ATS [36]) may be shifted so as to be earlier in time.
(ATS-SCR conversion)
Next, a method for deriving the SCR of a PS packet when converting a Constrained SESF stream into a program stream will be described. Since the SCR calculation is necessary when a new pack is generated, it is necessary only when converting the Tip packet and the first TS packet of the Multiplexing Unit.

Constrained SESFのストリームは、図14Cに示す構造を持っている。TSパケット中には基準時刻情報(PCR)を格納したPCRパケットが適宜挿入されており、これを用いてデコーダ基準時刻であるSTC(System
Time Clock)をある時間間隔でリセットすることが可能である。また、各TSパケットには、各TSパケット間の相対的な送出時刻情報を格納したATSが前置されている。そのため、PCRを格納したTSパケット以降に送出されるTSパケットは、PCR値と、TSパケット間の相対的な送出時刻情報であるATSとから得られるタイミングでデコーダに入力される。つまり、PCRを格納したTSパケット以降のTSパケットに対しては、各TSパケットのデコーダ入力時刻(以下「calculated_PCR」と称す)を生成できる。また、PCRを格納したTSパケットが無い場合でも、PCRに相当する情報を管理情報に抽出しておくことも可能である。
The Constrained SESF stream has the structure shown in FIG. 14C. In the TS packet, a PCR packet storing reference time information (PCR) is appropriately inserted, and using this, a STC (System
(Time Clock) can be reset at certain time intervals. Each TS packet is preceded by an ATS that stores relative transmission time information between TS packets. Therefore, TS packets sent after the TS packet storing the PCR are input to the decoder at a timing obtained from the PCR value and ATS which is relative sending time information between TS packets. That is, the decoder input time of each TS packet (hereinafter referred to as “calculated_PCR”) can be generated for TS packets after the TS packet storing the PCR. Even if there is no TS packet storing PCR, information corresponding to PCR can be extracted as management information.

図47は、Constrained SESFからMPEG−PSへ変換した際のcalculated_PCRとSCRの関係を示した図であり、図80で示すCapsuleの先頭部である。なお、図において、各TSパケットにストリーム先頭から昇順で付与されたATSをATS[k]と表記している。また、Multiplexing Unit先頭のTSパケットに対して、その出現順に計算されたPCR値をcalculated_PCR[i](i=0,1,2,...)と表記している。同様に変換後のパックのSCRも出現順にSCR[i]と表記している。   FIG. 47 is a diagram showing the relationship between calculated_PCR and SCR when converted from Constrained SESF to MPEG-PS, and is the head of Capsule shown in FIG. In the figure, ATS given to each TS packet in ascending order from the stream head is denoted as ATS [k]. In addition, the PCR value calculated in the order of appearance of the TS packet at the top of the Multiplexing Unit is expressed as calculated_PCR [i] (i = 0, 1, 2,...). Similarly, the SCR of the converted pack is also expressed as SCR [i] in the order of appearance.

前述の通り、T−STD基準モデルでは、ビデオストリームの転送については最大転送レート15Mbps(MP@MLの場合、マルチプレクサバッファからビデオバッファの転送レートは15Mbpsを超えない)の制限があり、オーディオストリームの入力レートについては、ビデオよりも低いレート制限がある。(トランスポートバッファからオーディオバッファへの転送レートはAACを除き2Mbpsを超えない)このため、オーディオデータを格納したMultiplexing Unitは、ビデオデータを格納したMultiplexing
Unitと異なり、低レートで転送される。従って、ビデオデータの転送レートをDVDフォーマットの最大レートである9.8Mbps近くまで上げようとすれば、転送レートが低く時間がかかるオーディオデータの転送時間を確保するために、ビデオデータのTSパケットは、DVDの転送レート(10.08Mbps)より高いレートで送出される必要がある。
As described above, in the T-STD standard model, transfer of a video stream is limited to a maximum transfer rate of 15 Mbps (in the case of MP @ ML, the transfer rate from the multiplexer buffer to the video buffer does not exceed 15 Mbps), and the audio stream For input rate, there is a lower rate limit than video. (The transfer rate from the transport buffer to the audio buffer does not exceed 2 Mbps except for AAC) Therefore, the Multiplexing Unit that stores the audio data is the Multiplexing that stores the video data.
Unlike Unit, it is transferred at a low rate. Therefore, if the transfer rate of video data is increased to near the maximum rate of 9.8 Mbps, which is the maximum rate of the DVD format, the TS packet of video data is obtained in order to secure the transfer time of audio data that requires a low transfer rate and takes a long time. Therefore, it is necessary to transmit at a rate higher than the DVD transfer rate (10.08 Mbps).

図47に示すように、Constrained SESFと、DVDフォーマットとの間で、転送時間帯が異なっていることがわかる。   As shown in FIG. 47, it can be seen that the transfer time zone differs between Constrained SESF and the DVD format.

TipパケットもしくはMultiplexing Unitの先頭のTSパケットのデコーダ到着時刻(calculated_PCR)と、それらが変換された後のパックのSCRとの間には、次の関係式が成り立つ必要がある。   The following relational expression needs to be established between the decoder arrival time (calculated_PCR) of the first TS packet of the Tip packet or Multiplexing Unit and the SCR of the pack after the conversion.

SCR[0] = calculated_PCR[0]
SCR[i] = max( SCR[i-1] + T , calculated_PCR[i] ) (i= 1,2,
3, ...)
calculated_PCR[i] = PCR_tip + (ATS[n] - ATS_tip + WA*BS)
T = PS_pack_size*8*system_clock_frequency / PSrate
ここで、PCR_tipとATS_tipは夫々、変換するMultiplexing Unit直前のTipパケットに記述されたPCR値と、そのTipパケットのATS値である。WAは、i番目のMultiplexing Unitの中で先頭のTSパケットに付与されたATS(ATS[n])とATS_tipとの間のATSで、何回桁あふれが起きたかを表しており、BSは、ATSの一回の桁あふれの量を表している。また、max(a, b)はa,bの内で大きい方の値を選択する関数である。
SCR [0] = calculated_PCR [0]
SCR [i] = max (SCR [i-1] + T, calculated_PCR [i]) (i = 1,2,
3, ...)
calculated_PCR [i] = PCR_tip + (ATS [n]-ATS_tip + WA * BS)
T = PS_pack_size * 8 * system_clock_frequency / PSrate
Here, PCR_tip and ATS_tip are respectively the PCR value described in the Tip packet immediately before the Multiplexing Unit to be converted and the ATS value of the Tip packet. WA indicates how many digits overflowed in ATS between ATS (ATS [n]) and ATS_tip given to the first TS packet in i-th Multiplexing Unit, and BS This represents the amount of one-time overflow of ATS. Max (a, b) is a function for selecting the larger value of a and b.

また、SCR[i](i=0、1、2、3...)に関する関係式では、前述の通り、PS_pack_sizeはTS2PS変換で生成されるMPEG−PSのパック1個分のバイト長である。system_clock_frequencyはMPEG−PSデコーダの基準時刻の周波数であり、PSrateはTS2PS変換で生成されるMPEG−PSストリームの多重化レートである。すなわち、
PS_pack_size=2048 バイト、
system_clock_frequency=27000000 Hz、
PSrate=10080000 ビット/秒である。
In the relational expression related to SCR [i] (i = 0, 1, 2, 3,...), As described above, PS_pack_size is the byte length of one MPEG-PS pack generated by TS2PS conversion. . system_clock_frequency is the frequency at the reference time of the MPEG-PS decoder, and PSrate is the multiplexing rate of the MPEG-PS stream generated by TS2PS conversion. That is,
PS_pack_size = 2048 bytes,
system_clock_frequency = 27000000 Hz,
PSrate = 10800000 bits / second.

従って、先頭以降のパックの送出については、一つ前のパックの送出時刻から転送レートで定められる転送最小時間経過後に送出するか、そのパックを形成する最初のTSパケットのデコーダ入力時刻にて送出されるか、の2つのパターンがある。ビデオデータをDVDフォーマットへ変換した時刻よりも早い時刻に送出している時には、前者の転送最小時間間隔をあけて送出される方が選択される。例えば、ビデオデータをDVDフォーマットへ変換したときよりも早い時間帯に送出している場合は、一つ前のパックの送出時刻から転送レートで定められる転送最小時間経過後に送出される。   Therefore, the packs after the first are sent after the minimum transfer time determined by the transfer rate has elapsed from the time of sending the previous pack, or at the decoder input time of the first TS packet forming the pack. There are two patterns. When the video data is sent at a time earlier than the time when the video data is converted to the DVD format, it is selected that the video data is sent with a minimum transfer time interval. For example, when video data is transmitted in a time zone earlier than when it is converted to the DVD format, it is transmitted after the minimum transfer time determined by the transfer rate has elapsed since the previous pack transmission time.

尚、Constrained SESFは編集が可能であるため、encode_condition=11bで記録した場合でも、ストリームの先頭部分を編集で消去した場合等は、calculated_PCR[0]=0とならないことも考えられる。   Since the Constrained SESF can be edited, even when recording with encode_condition = 11b, calculated_PCR [0] = 0 may not be satisfied when the head portion of the stream is deleted by editing.

しかしながら、encode_condition=11bでありながら、calculated_PCR[0]=0でない場合には、encode_condition=11bの場合のみ、次の変換式を定義することで、問題を解決することができる。   However, if encode_condition = 11b but not calculated_PCR [0] = 0, the problem can be solved by defining the following conversion formula only when encode_condition = 11b.

SCR[0] = 0
SCR[i] = max( SCR[i-1] + T, calculated_PCR[i] ) - calculated_PCR[0] (i= 1,2, 3, ...)
calculated_PCR[i] = PCR_tip + (ATS[n] - ATS_tip + WA*BS)
T = PS_pack_size*8*system_clock_frequency / PSrate
PTS(DVD-Video) = PTS(Constrained SESF) - calculated_PCR[0]
DTS(DVD-Video) = DTS(Constrained SESF) - calculated_PCR[0]
ATS[n]、WAは上記の通り、i番目のMultiplexing Unit先頭のTSパケットのATS値と、ATS_tipからの桁あふれ回数である。
SCR [0] = 0
SCR [i] = max (SCR [i-1] + T, calculated_PCR [i])-calculated_PCR [0] (i = 1, 2, 3, ...)
calculated_PCR [i] = PCR_tip + (ATS [n]-ATS_tip + WA * BS)
T = PS_pack_size * 8 * system_clock_frequency / PSrate
PTS (DVD-Video) = PTS (Constrained SESF)-calculated_PCR [0]
DTS (DVD-Video) = DTS (Constrained SESF)-calculated_PCR [0]
As described above, ATS [n] and WA are the ATS value of the TS packet at the head of the i-th Multiplexing Unit and the number of overflows from ATS_tip.

つまり、DVD−Video規格に準拠させるために、SCR[0]=0とし、以降のSCRは前述の変換式の結果に時間calculated_PCR[0]だけオフセットされた値を用い、DVD−Videoストリーム中のPTS、DTSも全て、一律に時間calculated_PCR[0]だけオフセットする。   That is, in order to comply with the DVD-Video standard, SCR [0] = 0 is set, and the subsequent SCR uses a value offset by the time calculated_PCR [0] as a result of the above-described conversion formula. All PTS and DTS are also offset by the time calculated_PCR [0].

こうして、ストリームの時刻情報を一律にオフセットすることで、Constrained SESF(encode_condition=11b)の先頭等を削除した場合でも、encode_condition=11bのまま管理されDVD−Videoフォーマットへ変換ができる。   Thus, by uniformly offsetting the time information of the stream, even if the head of Constrained SESF (encode_condition = 11b) is deleted, it is managed as encoded_condition = 11b and can be converted to the DVD-Video format.

DVD−Video規格フォーマットへの変換においては、PTS/DTS値の変換が発生するが、TSパケット単位の逐次処理で容易に実現できる。   In conversion to the DVD-Video standard format, conversion of PTS / DTS values occurs, but this can be easily realized by sequential processing in units of TS packets.

TS2PS変換する際には、上式に基づいてATSからSCRが計算される。TS2PS変換により得られるプログラムストリームは前述のようにP−STDモデルを準拠する必要があり、このためSCRの値はある範囲に制限される。したがって、Constrained SESFの各パケットに付与されるATSの値は上述のATS−SCR関係式を考慮して設定される必要がある。
(エレメンタリーストリームに関する制限)
次に、Constrained SESFのエレメンタリーストリームに関する制限を説明する。
When performing TS2PS conversion, SCR is calculated from ATS based on the above equation. The program stream obtained by the TS2PS conversion needs to conform to the P-STD model as described above, and therefore, the SCR value is limited to a certain range. Therefore, the value of ATS given to each packet of Constrained SESF needs to be set in consideration of the above-described ATS-SCR relational expression.
(Restrictions on elementary streams)
Next, restrictions on the elementary stream of Constrained SESF will be described.

エレメンタリーストリームの再エンコードは機器にとって非常に負荷の高い処理になるため、ビデオデータについては、MPEG2−Videoのみが許され、オーディオデータについては、AC−3、MPEG1−Audio、LPCMが許される。   Since the re-encoding of the elementary stream is a very heavy processing for the device, only MPEG2-Video is allowed for video data, and AC-3, MPEG1-Audio, and LPCM are allowed for audio data.

ここで説明するConstrained SESFは、LPCMを除外しているが、これは20ビット以上の量子化ビット数を持つLPCMの場合にエレメンタリーストリームの再エンコードを行う危険性を避けるためと、転送レートが上げられないオーディオのデータ量を削減することで、バッファマネージメントを容易に行うためでもある。しかしながら、16ビットのLPCMであれば、特に除外する必要はない。以下に説明するConstrained SESFに許されたストリームは、ビデオに関してMPEG2−Video、オーディオに関してAC−3、MPEG1−Audioの2種類のみとして説明する。なお、Constrained SESFでない通常のSESFでは、オーディオデータの符号化がこれに限らず、BSデジタル放送で使用されているAAC(Advanced Audio Coding)等の符号化方式が用いられても良い。   The Constrained SESF described here excludes the LPCM, which is to avoid the risk of re-encoding the elementary stream in the case of an LPCM having a quantization bit number of 20 bits or more. This is also to facilitate buffer management by reducing the amount of audio data that cannot be raised. However, it is not necessary to exclude a 16-bit LPCM. The stream permitted for Constrained SESF described below will be described as only two types of MPEG2-Video for video, AC-3 for audio, and MPEG1-Audio. Note that in normal SESF that is not Constrained SESF, the encoding of audio data is not limited to this, and an encoding scheme such as AAC (Advanced Audio Coding) used in BS digital broadcasting may be used.

図48にencode_condition="11b"の場合のエレメンタリーストリーム属性をまとめて示した。   FIG. 48 collectively shows the elementary stream attributes when encode_condition = “11b”.

同図に示された属性は、DVD−Video又はDVD VRフォーマットに対してエレメンタリーストリームレベルでの互換性を保てるように設定されているため、この属性に従ったConstrained SESF(encode_condition=11b)は、DVD−Video又はDVD VRフォーマットへ変換する際に、エレメンタリーストリームの再エンコードを必要とせず、高速変換が可能である。   Since the attribute shown in the figure is set to maintain compatibility at the elementary stream level with respect to the DVD-Video or DVD VR format, Constrained SESF (encode_condition = 11b) according to this attribute is When converting to the DVD-Video or DVD VR format, high-speed conversion is possible without requiring re-encoding of the elementary stream.

図49にencode_condition="01b"時のエレメンタリーストリーム属性をまとめて示した。   FIG. 49 collectively shows the elementary stream attributes when encode_condition = “01b”.

同図に示された属性は、DVD VRとのエレメンタリーストリームレベルでの互換性を保てるように設定されているため、この属性に従ったConstrained SESF(encode_condition=01b)は、DVD
VRフォーマットへ変換する際に、エレメンタリーストリームの再エンコードを必要とせず、高速に変換可能である。
Since the attribute shown in the figure is set so as to maintain compatibility with the DVD VR at the elementary stream level, the Constrained SESF (encode_condition = 01b) according to this attribute is
When converting to the VR format, re-encoding of the elementary stream is not required, and conversion can be performed at high speed.

ここで、図48、図49に記述したNote1〜4について説明する。   Here, Notes 1 to 4 described in FIGS. 48 and 49 will be described.

Note1:この属性は、同一VOB内で変化してはいけない。   Note 1: This attribute must not change within the same VOB.

Note2:この属性は、Tipパケットに続く最初のエレメンタリーストリームを格納したTSパケット内で変化しても良い。言い換えれば、SESF Capsuleで先頭のビデオもしくはオーディオのTSパケットでのみ変化できる。   Note 2: This attribute may change in the TS packet storing the first elementary stream following the Tip packet. In other words, it can be changed only in the first video or audio TS packet in the SESF Capsule.

Note3:horizontal_size、vertical_sizeとaspect_ratio_informationが同一であるsequence_header間には、sequence_end_codeを挿入してはならない。   Note 3: sequence_end_code must not be inserted between sequence_headers in which horizontal_size, vertical_size, and aspect_ratio_information are the same.

Note4:この属性は、モノラル、ステレオ、デュアルモノの間であれば、同一VOB内で変化しても良い。   Note 4: This attribute may change within the same VOB as long as it is between monaural, stereo, and dual mono.

以上が、Constrained SESFのエレメンタリーストリームに関する制限である。   The above is the restriction on Constrained SESF elementary streams.

ここで、説明してきたエンコード条件を加えることでDVDフォーマットへ容易にかつ高速に変換可能なConstrained SESFの生成が可能となる。
(変換後のDVD−Video/DVD VRフォーマット)
次に、Constrained SESFが変換されるべきDVD−Video、DVD VRのフォーマットにおけるフィールド設定について説明する。
(DVD−Videoフォーマット)
以下では、簡単にDVD−Video規格のストリームについて説明する。なお、DVD−Videoのストリームフォーマットの詳細については、「DVD
Specifications for Read−Only Disc Part3 VIDEO SPECIFICATIONS」に記述されている。
Here, by adding the encoding conditions described above, it is possible to generate a Constrained SESF that can be easily and rapidly converted to the DVD format.
(DVD-Video / DVD VR format after conversion)
Next, the field setting in the DVD-Video and DVD VR formats to which the Constrained SESF is to be converted will be described.
(DVD-Video format)
Hereinafter, a stream of the DVD-Video standard will be briefly described. For details on the DVD-Video stream format, see “DVD
"Specifications for Read-Only Disc Part 3 VIDEO SPECIFICATIONS".

図50にDVD−Video規格のフォーマットのストリーム構造を示す。同図に示すように、各ストリームは複数のVOBを含み、各VOBは整数個のVOBUから成る。VOBUは整数個のパックから成り、NV_PCKを先頭としてビデオパック(V_PCK)やオーディオパック(A_PCK)がこれに続く。NV_PCKは、通常のDVDのパックの構造と異なり2つのパケットを内包した形となっている。それぞれのパケットはPCI(Presentation Control Information)パケット、DSI(Data Search Information)パケットと呼ばれ、PCIパケットには、当該VOBUに対する再生制御情報が格納される。DSIパケットには、当該VOBUと周辺のVOBUとの位置関係等の特殊再生に有用な情報が格納されている。以下では、フィールドを説明するとともに、その生成方法を合わせて記述していく。   FIG. 50 shows the stream structure of the DVD-Video standard format. As shown in the figure, each stream includes a plurality of VOBs, and each VOB includes an integer number of VOBUs. The VOBU is composed of an integer number of packs, and the video pack (V_PCK) and the audio pack (A_PCK) are followed by NV_PCK as the head. Unlike the normal DVD pack structure, NV_PCK has a form including two packets. Each packet is called a PCI (Presentation Control Information) packet and a DSI (Data Search Information) packet, and reproduction control information for the VOBU is stored in the PCI packet. The DSI packet stores information useful for special reproduction such as the positional relationship between the VOBU and the surrounding VOBU. In the following, the fields will be described and the generation method will be described together.

図51にNV_PCKのPCIデータの構造を示す。PCIデータは、PCIの全般的な情報を格納するPCI_GI(PCI General Information)と、非シームレスのアングル情報であるNSML_AGLIと、メニューボタンなどにハイライトを当てるための情報であるHLIと、ISRC(International Standard Recording Code)を格納するRECIとから構成される。   FIG. 51 shows the structure of NV_PCK PCI data. PCI data includes PCI_GI (PCI General Information) for storing general information of PCI, NSML_AGLI which is non-seamless angle information, HLI which is information for highlighting menu buttons and the like, ISRC (International Standard Recording Code) is stored in the RECI.

NSML_AGLIとHLIは、Constrained SESFから変換された場合には、無効を意味するデータが記述される。   NSML_AGLI and HLI describe data indicating invalidity when converted from Constrained SESF.

ISRCには、無効を意味するデータを記述しても良いし、ISRCコードを正しく記述しても良いが、Constrained SESFからの変換に関係がないため、ここでの説明は割愛する。従って、Constrained SESFからPCIデータを作成する際に問題となるのは、PCI_GIのみである。   Although data indicating invalidity may be described in ISRC, or the ISRC code may be described correctly, it is not related to the conversion from Constrained SESF, so description here is omitted. Therefore, only PCI_GI has a problem when creating PCI data from Constrained SESF.

図52にNV_PCKのPCI_GIの構造を示す。以下では、Constrained SESFから変換する際に計算を要するフィールドについてのみその算出方法を説明する。   FIG. 52 shows a PCI_GI structure of NV_PCK. Below, the calculation method is demonstrated only about the field which requires calculation at the time of converting from Constrained SESF.

NV_PCK_LBN(VOBSファイル内での該NV_PCK相対アドレス)は、情報記録装置が変換中に何番目のパックになるか数えておくことで、生成可能である。   NV_PCK_LBN (the NV_PCK relative address in the VOBS file) can be generated by counting the number of packs that the information recording apparatus is to convert during conversion.

VOBU_CAT(アナログコピープロテクション状態の情報)は、NV_PCKに対応しているTipパケットのdisplay_and_copy_infoから取得可能である。   VOBU_CAT (analog copy protection state information) can be acquired from display_and_copy_info of a Tip packet corresponding to NV_PCK.

VOBU_S_PTM(VOBU内で最初に表示されるビデオフィールドの再生時刻情報)は、NV_PCKに対応しているTipパケットのFVFPSTから計算可能である。   VOBU_S_PTM (reproduction time information of the video field first displayed in VOBU) can be calculated from FVFPST of the Tip packet corresponding to NV_PCK.

VOBU_E_PTM(VOBU内のビデオデータが再生完了する時刻情報)は、アクセスマップの次のエントリーに記述された再生時刻情報から取得するか、VOBUに対応するビデオストリームを解析して、ビデオの再生が終了する時刻を算出することで生成可能である。   VOBU_E_PTM (time information when the video data in the VOBU is played back) is acquired from the playback time information described in the next entry of the access map, or the video stream corresponding to the VOBU is analyzed and the video playback ends. It can be generated by calculating the time to perform.

VOBU_SE_E_PTM(VOBU内のビデオデータでsequence_end_codeによって再生が終了する時刻情報)は、sequence_end_codeがVOBの最後にしか認められていないため(図48参照)、ストリーム途中のVOBUには、sequence_end_codeがなく、「0x00000000」が埋められる。最後のVOBU内にSequence_end_codeがあるNV_PCKについてのみ、VOBU_E_PTMと同値となる。   Since VOBU_SE_E_PTM (time information at which playback is ended by sequence_end_code in video data in VOBU) is only allowed at the end of the VOB (see FIG. 48), VOBU in the middle of the stream has no sequence_end_000 of “000” Is filled. Only NV_PCK having Sequence_end_code in the last VOBU has the same value as VOBU_E_PTM.

C_ELTM(該NV_PCKが格納されるCELLの最初に表示されるビデオフレームの再生時刻と該VOBU内で最初に表示されるビデオフレームとの時間差情報。フレーム精度が必要)は、情報記録装置が変換中に、CELL最初に表示されるビデオフレームの再生時刻情報と、該当するTipパケットのFVFPSTを用いて随時計算することが可能である。   C_ELTM (time difference information between the playback time of the first video frame displayed in the CELL in which the NV_PCK is stored and the first video frame displayed in the VOBU, frame accuracy is required) is being converted by the information recording device In addition, it is possible to calculate at any time using the reproduction time information of the video frame displayed first in the CELL and the FVFPST of the corresponding Tip packet.

以上のようにして、NV_PCKのPCIデータは、変換中に、VOBU単位で随時生成していくことが可能である。   As described above, NV_PCK PCI data can be generated in units of VOBU at any time during conversion.

図53にNV_PCKのDSIの構造を示す。図示したように、DSIデータは、DSIの一般情報を格納するDSI_GI(Data Search Information General Information)と、VOB間をシームレス再生するために必要となる記録アドレス、再生情報等を格納したSML_PBI(Seamless Playback Information)と、異なるアングル間でシームレス再生するための配置情報等を格納したSML_AGLI(Angle Information for seamless)と、そのVOBU近隣のVOBUの記録アドレス情報等を格納したVOBU_SRI(VOB Unit Search Information)と、ビデオとオーディオ/サブピクチャとの同期再生のための情報であるSYNCI(Synchronous Information)とから構成される。   FIG. 53 shows the structure of the NV_PCK DSI. As shown in the figure, DSI data includes DSI_GI (Data Search Information General Information) that stores general information of DSI, and SML_PBI (Seamless Playback) that stores recording addresses, playback information, and the like necessary for seamless playback between VOBs. Information), SML_AGLI (Angle Information for seamless) storing arrangement information for seamless reproduction between different angles, VOBU_SRI (VOB Unit Search Information) storing recording address information of VOBUs in the vicinity of the VOBU, It consists of SYNCI (Synchronous Information), which is information for synchronized playback of video and audio / subpicture.

SML_AGLIは、Constrained SESFから変換された場合には、無効を意味するデータが記述される。   SML_AGLI describes data indicating invalidity when converted from Constrained SESF.

図54にNV_PCKのDSI_GIの構造を示す。Constrained
SESFから変換する場合に、計算が必要なフィールドについてだけ、以下にその算出方法を説明する。
FIG. 54 shows the structure of NV_PCK DSI_GI. Constrained
In the case of converting from SESF, only the fields that need to be calculated will be described below.

NV_PCK_SCR(NV_PCKのSCR値)は、後述する算出方法でConstrained SESFのATSからSCRを導出しており、そのSCRから導出される。   The NV_PCK_SCR (the SCR value of NV_PCK) is derived from the SCR derived from the ATS of the Constrained SESF by a calculation method described later.

NV_PCK_LBN(VOBSファイル内でのNV_PCK相対アドレス)は、PCIデータとそれを求めるのと同様である。   NV_PCK_LBN (NV_PCK relative address in the VOBS file) is the same as that for obtaining PCI data.

VOBU_EA(NV_PCKからVOBU内の最後のパックまでの相対アドレス)は、アクセスマップから計算可能である。前述の通り、2つの連続するTipパケット間において、Multiplexing Unitに属さないパケット個数が既知(固定)であるため、アクセスマップから、次のエントリー(次のTipパケット)までのTSパケット数が計算でき、そのTSパケット内に、Multiplexing Unitに属さないTSパケットの個数を減算し、その結果を11で割ることでNV_PCKに続き、何個のパックが形成されるか計算可能である。最後のTipパケットから派生されるNV_PCK、もしくは全てのNV_PCKについては、変換後に生成されたパック数をカウントしておきそれを記述しても良い。   VOBU_EA (relative address from NV_PCK to the last pack in VOBU) can be calculated from the access map. As described above, since the number of packets that do not belong to the Multiplexing Unit is known (fixed) between two consecutive Tip packets, the number of TS packets from the access map to the next entry (next Tip packet) can be calculated. By subtracting the number of TS packets that do not belong to the Multiplexing Unit in the TS packet and dividing the result by 11, it is possible to calculate how many packs are formed following NV_PCK. For NV_PCK derived from the last Tip packet, or all NV_PCK, the number of packs generated after conversion may be counted and described.

VOBU_1STREF_EA(VOBU内で、NV_PCKから1番目の参照ピクチャの最後のパックまでの相対アドレス)と、VOBU_2NDREF_EA(VOBU内で、NV_PCKから2番目の参照ピクチャの最後のパックまでの相対アドレス)と、VOBU_3RDREF_EA(VOBU内で、NV_PCKから3番目の参照ピクチャの最後のパックまでの相対アドレス)とについては、TipパケットのPES_infoを参照しながら、TS2PS変換を行えば、ビデオストリーム層まで解析する必要なく導出することが可能である。   VOBU_1STREF_EA (within VOBU, the relative address from NV_PCK to the last pack of the first reference picture), VOBU_2NDREF_EA (within VOBU, the relative address from NV_PCK to the last pack of the second reference picture), and VOBU_3RDREF_A In VOBU, the relative address from NV_PCK to the last pack of the third reference picture is derived without the need to analyze the video stream layer by performing TS2PS conversion while referring to the PES_info of the Tip packet. Is possible.

PES_infoには、各ビデオのPESパケットが、どのようなエンコードをされたピクチャかを示すpicture_coding_typeが記述されている。picture_coding_type=01b,10bを持つPESパケットは、DVD−Video規格でいう参照ピクチャを格納している。   PES_info describes picture_coding_type indicating what kind of encoded picture the PES packet of each video has. A PES packet having picture_coding_type = 01b, 10b stores a reference picture in the DVD-Video standard.

従って、TS2PS変換を行いながら、PES_infoを参照し、現在変換しているPESパケットが、参照ピクチャを格納しているのか否かを判断し、この変換しているPESパケットが終了したパックが、参照ピクチャの終端のパックとなる。   Therefore, while performing TS2PS conversion, the PES_info is referred to, it is determined whether or not the currently converted PES packet stores a reference picture, and the pack in which the converted PES packet has ended is referred to This is the pack at the end of the picture.

このようにして、参照ピクチャの終端のパックは、変換中に識別可能であるため、VOBUを生成しながら、1番目、2番目、3番目の参照ピクチャがどのパックで完結しているかを求め、VOBU先頭のNV_PCKのVOBU_1STREF_EAと、VOBU_2NDREF_EAと、VOBU_3RDREF_EAとに夫々の終端までの相対アドレスを記述することが可能である。   In this way, since the pack at the end of the reference picture is identifiable during the conversion, it is determined in which pack the first, second, and third reference pictures are completed while generating the VOBU. It is possible to describe relative addresses up to the end of each VOBU_1STREF_EA, VOBU_2NDREF_EA, and VOBU_3RDREF_EA of the NV_PCK at the beginning of VOBU.

もしくは、SESF Capsuleを変換中にビデオを格納したPESパケットのPTS_DTS_flagsの値を参照し、PTS_DTS_flags=11bであれば、参照ピクチャが格納されており、PTS_DTS_flags=10bであれば、非参照ピクチャが格納されていると逐次判断しながら、これらの値を算出しても良い。   Or, referring to the value of PTS_DTS_flags of the PES packet storing the video while converting the SESF Capsule, if PTS_DTS_flags = 11b, the reference picture is stored, and if PTS_DTS_flags = 10b, the non-reference picture is stored These values may be calculated while sequentially determining that the

VOBU_VOB_IDN(該VOBUが属するVOBのID番号)は、情報記録装置が変換中に求めることができるはずである。1つのConstrained SESFを変換している時には、Constrained SESF(encode_condition=11b)の定義により、属性の変化等のストリームの条件でVOBが分割される可能性はなく、同一番号が割り振られる。   VOBU_VOB_IDN (ID number of the VOB to which the VOBU belongs) should be able to be obtained during conversion by the information recording apparatus. When one Constrained SESF is converted, the same number is assigned without the possibility that the VOB is divided under the condition of the stream such as attribute change, according to the definition of Constrained SESF (encode_condition = 11b).

VOBU_C_IDN(VOBUが属するCELLのID番号)もVOBU_VOB_IDNと同様に、情報記録装置が変換中に自ら設定する番号であり、ストリームとの関連はない。Constrained SESFのPGC情報等の管理情報からCELLを意図的に分割する場合には、分割に応じた番号が付与されるだけである。   Similarly to VOBU_VOB_IDN, VOBU_C_IDN (ID number of CELL to which VOBU belongs) is a number set by the information recording apparatus during conversion, and has no relation to the stream. When CELL is intentionally divided from management information such as PGC information of Constrained SESF, a number corresponding to the division is only given.

C_ELTM(NV_PCKが格納されるCELLの最初に表示されるビデオフレームの再生時刻とVOBU内で最初に表示されるビデオフレームとの時間差情報。フレーム精度が必要)は、PCIデータ内に記述されたC_ELTMと同一である。   C_ELTM (time difference information between the playback time of the first video frame displayed in the CELL in which NV_PCK is stored and the first video frame displayed in VOBU, frame accuracy is required) is C_ELTM described in the PCI data. Is the same.

以上のようにして、NV_PCKのDSI_GIの各フィールドは、変換中に、VOBU単位で随時生成していくことが可能である。   As described above, each field of the NV_PCK DSI_GI can be generated as needed in units of VOBU during conversion.

図55にNV_PCKのSML_PBIの構造を示す。以下では、Constrained SESFから変換する場合に計算が必要となるフィールドについてのみその算出方法を説明する。   FIG. 55 shows the structure of SML_PBI in NV_PCK. Below, the calculation method is demonstrated only about the field which requires calculation when converting from Constrained SESF.

VOB_V_S_PTM(NV_PCKが属するVOBの最初に表示されるビデオフレームの時刻情報)は、最初のTipパケットのFVFPSTから計算可能である。   VOB_V_S_PTM (time information of the video frame displayed at the beginning of the VOB to which NV_PCK belongs) can be calculated from FVFPST of the first Tip packet.

VOB_V_E_PTM(NV_PCKが属するVOBのビデオ再生終了時刻情報)は、TS2PS変換の前に、予めConstrained SESFの中で、変換に指定された部分で最後のTipパケット以降のストリームを解析しビデオの再生終了時刻を求めておくことで、随時設定可能である。   VOB_V_E_PTM (video playback end time information of the VOB to which NV_PCK belongs) is a video playback end time by analyzing the stream after the last Tip packet in the portion designated for conversion in the Constrained SESF in advance before the TS2PS conversion. Can be set at any time.

以上のようにして、NV_PCKのSML_PBIの各フィールドは、変換前に、計算しておくことが可能であり、変換中にはその値を用いれば良い。   As described above, each field of SML_PBI of NV_PCK can be calculated before conversion, and the value may be used during conversion.

VOBU_SRIは、前述の通り、アクセスマップを利用し、計算することが可能であるため、ここでの説明は割愛する。   Since VOBU_SRI can be calculated using an access map as described above, description thereof is omitted here.

また、VOBU_SRIはセルごとに完結して記述されるため、セルが定義されなければ、計算することはできない。したがって、リアルタイムにDVD−Videoフォーマットで記録するようなレコーダにおいては、任意の区間でセルを切ることができず、編集性、再生性に欠けるが、Constrained SESFから変換する際には、上記方法に従って、ユーザが指定した区間をセルと定義し変換することが可能なため、チャプターをユーザが意図した通りに作成できることになり、ユーザ指定の地点から再生を開始するプレイリストがDVD−Videoフォーマットで実現可能となる。   Also, since VOBU_SRI is described completely for each cell, it cannot be calculated unless the cell is defined. Therefore, in a recorder that records in the DVD-Video format in real time, cells cannot be cut in an arbitrary section and lacks editability and reproducibility. However, when converting from Constrained SESF, follow the above method. Since the section specified by the user can be defined and converted as a cell, chapters can be created as intended by the user, and a playlist that starts playback from a point specified by the user is realized in the DVD-Video format. It becomes possible.

図56にNV_PCKのSYNCIの構造を示す。以下では、Constrained SESFから変換する場合に計算が必要なフィールドについてだけ、その算出方法を説明する。   FIG. 56 shows the structure of the NV_PCK SYNCI. Below, the calculation method is demonstrated only about the field which needs calculation when converting from Constrained SESF.

A_SYNCA0(プライマリーオーディオを格納したパックで、VOBU_S_PTMと同時もしくは直後に再生されるオーディオフレームが格納されたパックの相対アドレス)は、Tipパケット内のPES_infoを用いて、ストリーム解析することなく、TS2PS変換中に取得することが可能である。   A_SYNCA0 (packet storing primary audio and the relative address of the pack storing the audio frame played back immediately after VOBU_S_PTM) is being converted to TS2PS without performing stream analysis using PES_info in the Tip packet It is possible to get to.

PES_infoのstream_identifierを参照することで、そのPESパケットがプライマリーオーディオを格納しているか判別でき、次のsync_presentation_flagにて、PESパケットの中に含まれるオーディオフレームの中に、VOBU_S_PTMと同時もしくはその直後に再生されるオーディオフレームがあるか否かが識別できる。従って、TS2PS変換を行いながら、PESパケットがプライマリーオーディオを含み、かつ、sync_presentation_flag=1bである場合に、NV_PCKからPESパケットが格納されたパックまでのアドレスを記述できる。   By referring to the stream_identifier of the PES_info, it is possible to determine whether the PES packet stores primary audio, and the next sync_presentation_flag plays the audio frame included in the PES packet at the same time as or immediately after the VOBU_S_PTM. Whether there is an audio frame to be played can be identified. Therefore, the address from NV_PCK to the pack storing the PES packet can be described when the PES packet includes primary audio and sync_presentation_flag = 1b while performing TS2PS conversion.

尚、sync_presentation_flagがVOBU内の1つのオーディオパック内で1bになる保証はない。オーディオを先に多重化しているエンコーダであれば、あるVOBUのVOBU_S_PTMと同時もしくは直後に再生されるオーディオパックが前のVOBUに格納されることも考えられるし、またその逆も考えられる。   There is no guarantee that the sync_presentation_flag is 1b in one audio pack in the VOBU. In the case of an encoder that multiplexes audio first, an audio pack that is played back simultaneously with or immediately after VOBU_S_PTM of a certain VOBU may be stored in the previous VOBU, and vice versa.

従って、A_SYNCA0の値の設定において、変換中のプライマリーオーディオのPESパケット(そのsync_presentation_flagは1b)と、以降生成されるNV_PCKとの順序関係を正しく理解した上で、その値を設定する必要がある。   Therefore, in setting the value of A_SYNCA0, it is necessary to set the value after correctly understanding the order relationship between the PES packet of the primary audio being converted (the sync_presentation_flag is 1b) and the NV_PCK generated thereafter.

尚、この処理をなくすために、予めConstrained SESFは、SESF capsule内に、そのSESF capsule先頭のTipパケットに記述されたFVFPSTと同時もしくは直後に再生されるオーディオデータを格納するようにシステムエンコードするようにしておいても良い。   In order to eliminate this processing, the Constrained SESF performs system encoding so that the audio data to be reproduced at the same time or immediately after the FVFPST described in the Tip packet of the SESF capsule is stored in the SESF capsule in advance. You can leave it.

このように定義することで、VOBU(SESF capsule)を超えてVOBU_S_PTM(FVFPST)と同期したオーディオデータを検出する処理をなくすことが可能となる。   By defining in this way, it is possible to eliminate processing for detecting audio data that exceeds VOBU (SESF capsule) and is synchronized with VOBU_S_PTM (FVFPST).

A_SYNCA1(セカンダリーオーディオを格納したパックで、VOBU_S_PTMと同時もしくは直後に再生されるオーディオフレームが格納されたパックの相対アドレス)は、A_SYNCA0と同様の方法にて設定可能である。   A_SYNCA1 (relative address of a pack storing secondary audio and a pack storing an audio frame reproduced immediately after VOBU_S_PTM) can be set in the same manner as A_SYNCA0.

以上のようにして、NV_PCKのDSIデータは、変換中に、A_SYNCAを除きVOBU単位で随時生成していくことが可能である。   As described above, NV_PCK DSI data can be generated as needed in units of VOBU except for A_SYNCA during conversion.

図82にNV_PCKの生成方法の一例をまとめる。
(DVD Video Recordingのフォーマット)
DVD Video Recording(VR)のストリームフォーマットへの変換時のフィールド設定について説明する。
FIG. 82 summarizes an example of the NV_PCK generation method.
(DVD Video Recording format)
A field setting at the time of conversion to a DVD Video Recording (VR) stream format will be described.

以下、簡単にDVD VRのストリームを説明する。なお、DVD VRのストリームフォーマットの詳細については、「DVD Specifications for Rewritable/Re−recordable Discs Part3 VIDEO RECORDING」に記述されている。   Hereinafter, a stream of a DVD VR will be briefly described. The details of the DVD VR stream format are described in “DVD Specifications for Rewritable / Re-recordable Discs Part3 VIDEO RECORDING”.

図57にDVD VRフォーマットによるストリーム構造を示す。ここに示したように、各ストリームは複数個のVOBを含み、各VOBは整数個のVOBUから成る。VOBUは整数個のパックから成り、RDI_PCKを先頭としてビデオパック(V_PCK)やオーディオパック(A_PCK)がこれに続く。RDI_PCKは、通常のパックと異なり、表示やコピーの制御情報や、製造者固有情報を格納している。以下では、RDI_PCKに含まれる各フィールドを説明するとともに、その計算方法を合わせて説明する。   FIG. 57 shows a stream structure in the DVD VR format. As shown here, each stream includes a plurality of VOBs, and each VOB includes an integer number of VOBUs. The VOBU is composed of an integer number of packs, and the video pack (V_PCK) and the audio pack (A_PCK) follow the RDI_PCK as the head. Unlike normal packs, RDI_PCK stores display and copy control information and manufacturer-specific information. Hereinafter, each field included in RDI_PCK will be described, and the calculation method thereof will be described together.

図に示したように、RDI_PCKのペイロードデータ(RDI Unit)は、RDIの全般情報を格納したRDI_GI(Real-time Data Information
General Information)と、表示およびコピー制御のための情報を格納したDCI_CCI(Display Control Information and Copy Control Information)と、製造者固有情報を格納するMNFI(Manufacturer's Information)とから構成される。
As shown in the figure, RDI_PCK payload data (RDI Unit) is RDI_GI (Real-time Data Information) storing general information of RDI.
General information), DCI_CCI (Display Control Information and Copy Control Information) storing information for display and copy control, and MNFI (Manufacturer's Information) storing manufacturer-specific information.

RDI_GIはその内部にVOBU_S_PTMフィールドを含み、このフィールドだけが可変であり、その他のフィールドは固定値が埋め込まれる。   RDI_GI includes a VOBU_S_PTM field therein, only this field is variable, and other fields are embedded with fixed values.

VOBU_S_PTMは、変換前トランスポートストリーム中の対応するTipパケットに記述されたFVFPSTと全く同一形式であるため、FVFPSTの値がそのままコピーできる。   Since VOBU_S_PTM has the same format as FVFPST described in the corresponding Tip packet in the transport stream before conversion, the value of FVFPST can be copied as it is.

DCI_CCIは、Tipパケットのdisplay_and_copy_infoと全く同一形式であるため、display_and_copy_infoの値がそのままコピーされることが可能である。   Since DCI_CCI has exactly the same format as the display_and_copy_info of the Tip packet, the value of display_and_copy_info can be copied as it is.

MNFIは、Tipパケットに記述されたmaker_IDが当情報記録装置の製造者IDと同一の場合のみ、固有の製造者IDが割り当てられ、製造者固有情報が記述(コピー)される。しかし、Tipパケット内のmaker_IDが、他製造業者のIDである場合や、無効なmaker_ID値である場合には、MNFIに無効なデータを記述することでRDIパックを生成しても良い。   The MNFI is assigned a unique manufacturer ID only when the maker_ID described in the Tip packet is the same as the manufacturer ID of the information recording apparatus, and the manufacturer unique information is described (copied). However, when the maker_ID in the Tip packet is an ID of another manufacturer or an invalid maker_ID value, an RDI pack may be generated by describing invalid data in the MNFI.

尚、Tipパケット内に記述されたデータが一部無効である場合が想定される。この場合、Tipパケット内の該当データが無効であることを意味するフラグ(無効化フラグ)が格納されているはずであるので、その無効化フラグがONである場合には、Tipパケットの該当データを最新のデータに更新してから変更する必要がある。   It is assumed that some data described in the Tip packet is invalid. In this case, since a flag (invalidation flag) indicating that the corresponding data in the Tip packet is invalid should be stored, when the invalidation flag is ON, the corresponding data in the Tip packet is stored. Needs to be updated after updating to the latest data.

一例として、各TSパケットごとのATS(4B)の中に最新のCCI情報とTSパケット内のCCIデータ無効化フラグが存在する場合等が考えられる。   As an example, the case where the latest CCI information and the CCI data invalidation flag in the TS packet exist in the ATS (4B) for each TS packet can be considered.

この場合、TS2PS変換する際に、無効化フラグが立っていないことを確認し、立っていれば、ATS内のCCIフラグでもってdisplay_and_copy_infoのCCI情報を更新したデータを用いてRDI_PCKに変換する必要がある。   In this case, when TS2PS conversion is performed, it is confirmed that the invalidation flag is not set, and if it is set, conversion to RDI_PCK using data obtained by updating the CCI information of the display_and_copy_info with the CCI flag in the ATS is required. is there.

以上のように、RDI_PCKは、対応するTipパケット(及びそのATS)のみから、逐次作成できる。   As described above, RDI_PCK can be created sequentially from only the corresponding Tip packet (and its ATS).

図58に上記のRDI_PCKの生成フローチャートを示す。   FIG. 58 shows a flowchart for generating the above RDI_PCK.

RDI_PCK(またはNV_PCK)の場合、システムヘッダは固定値のフィールドから構成されている。システムヘッダの詳細は図61に示してある。また、RDI_PCKに格納される、パケットヘッダ、プライベートヘッダをそれぞれ図62A、62Bに示した。図示した通り、これらのヘッダも固定値フィールドから構成されるため、生成が容易である。   In the case of RDI_PCK (or NV_PCK), the system header is composed of a fixed value field. Details of the system header are shown in FIG. The packet header and private header stored in RDI_PCK are shown in FIGS. 62A and 62B, respectively. As shown, these headers are also composed of fixed value fields, so that they are easy to generate.

図59にAVデータを格納したTSパケット(1Multiplexing Unit)からPSのパックを生成するためのフローチャートを示す。   FIG. 59 shows a flowchart for generating a PS pack from a TS packet (1 Multiplexing Unit) storing AV data.

同図に示したように、AVデータを格納するConstrained SESFのTSパケットは、1Multiplexing Unitをその処理単位として、AVデータを格納するMPEG−PSの2KBのパックへと変換される。以下に、各ステップごとに処理を追って説明する。   As shown in the figure, a Constrained SESF TS packet storing AV data is converted into a 2 KB pack of MPEG-PS storing AV data, with 1 Multiplexing Unit as a processing unit. Hereinafter, the process will be described for each step.

(ステップS4200) Constrained SESFのストリームの変換開始点からTSパケットを1つだけ読み出す。   (Step S4200) Only one TS packet is read from the conversion start point of the Constrained SESF stream.

(ステップS4201) 読み出したTSパケットが、AVデータを格納し、かつ、Multiplexing Unitの先頭のTSパケットであるか否かを判定する。AVデータの格納の判定は、PMTにてAVデータを格納すると宣言されたTSパケットのPID値を参照することによって行われる。Multiplexing Unitの先頭か否かの判定については、その前のTSパケットが、Tipパケット、PSI/SIパケット及びPCRパケットのいずれかである場合に、その直後に続くAVデータを格納したTSパケットがMultiplexing Unitの先頭であると判定する。変換開始点はTipパケットであることが予想されるため、Multiplexing Unitの先頭か否かは順にTSパケットを読み込むことで判定可能である(つまりTipパケット直後のAVデータを格納したTSパケットは必ずMultiplexing Unitの先頭である。)。判定の結果、Multiplexing Unitの先頭でないTSパケットの場合、または、変換がTipパケットからスタートしておらず、判定ができない場合は、次のTSパケットを読み込むため、S4200へ処理が戻される。Multiplexing Unit先頭であることが確認できた場合は、次の処理へ進む。   (Step S4201) It is determined whether or not the read TS packet stores AV data and is the first TS packet of the Multiplexing Unit. The determination of AV data storage is made by referring to the PID value of the TS packet declared to store AV data in the PMT. Regarding the determination of whether or not it is the head of the Multiplexing Unit, when the preceding TS packet is any of a Tip packet, a PSI / SI packet, and a PCR packet, the TS packet storing the AV data immediately after that is the Multiplexing It is determined that it is the head of the unit. Since the conversion start point is expected to be a Tip packet, it is possible to determine whether or not it is the head of the Multiplexing Unit by sequentially reading TS packets (that is, a TS packet storing AV data immediately after the Tip packet is always Multiplexing). It is the head of Unit.) As a result of the determination, if the TS packet is not the head of the Multiplexing Unit, or if conversion has not started from the Tip packet and determination cannot be made, the process returns to S4200 to read the next TS packet. If it is confirmed that the head is Multiplexing Unit, the process proceeds to the next process.

(ステップS4202) Multiplexing Unit先頭のTSパケットに付与されたATSを用いて、そのTSパケットが変換されるMPEG−PSのパックがデコーダに入力される時刻(calculated_PCR)を算出する。この算出方法については前述のとおりである。PCRが計算されれば、SCRが前述の算出方法によって計算でき、図60に示したパックヘッダが完全に決定される。これは、パックヘッダは、SCRを除いて固定の値しか認められないためである。   (Step S4202) Using the ATS assigned to the first TS packet of Multiplexing Unit, the time (calculated_PCR) at which the MPEG-PS pack into which the TS packet is converted is input to the decoder is calculated. This calculation method is as described above. When the PCR is calculated, the SCR can be calculated by the above-described calculation method, and the pack header shown in FIG. 60 is completely determined. This is because the pack header allows only fixed values except for the SCR.

(ステップS4203) パケットヘッダ、プライベートヘッダを作成する。   (Step S4203) A packet header and a private header are created.

パケットヘッダは、Constrained SESFのPESパケットヘッダを基に作成される。作成されたパケットヘッダは、図63に示されたフィールド値を満たす形式でなければならない。これは、ヘッダ長を変えるようなフィールドの値は決定しておかなければConstrained SESFからの変換が一意に決定されず、バッファマネージメントに影響を及ぼす危険があるためである。ここに示されていないフィールドは固定値であるため列挙していない。   The packet header is created based on the PES packet header of Constrained SESF. The created packet header must have a format that satisfies the field values shown in FIG. This is because the conversion from Constrained SESF is not uniquely determined unless the value of a field that changes the header length is determined, which may affect the buffer management. Fields not shown here are fixed values and are not listed.

Constrained SESFでPESパケットヘッダの個々のフィールド値を詳細に決定しているのは、PESパケットヘッダ(MPEG−TS)からパケットヘッダ(MPEG−PS)への変換で要する処理を最小限にするためである。   The reason why each field value of the PES packet header is determined in detail by Constrained SESF is to minimize the processing required for conversion from the PES packet header (MPEG-TS) to the packet header (MPEG-PS). is there.

PESパケットのサイズが1パックのサイズに比較して大きい場合には、1PESパケットが複数のパックに変換されることになる。この場合、2つ目以降のパックのパケットヘッダは、PESパケットから生成された最初のパケットヘッダのPTS_DTS_flagsを「00b」に、PES_extension_flagを「0b」に設定すること、stuffing_byte長を調整すること、及び、PES_header_data_lengthを補正することが修正点となる。   When the size of the PES packet is larger than the size of one pack, one PES packet is converted into a plurality of packs. In this case, for the packet headers of the second and subsequent packs, the PTS_DTS_flags of the first packet header generated from the PES packet is set to “00b”, the PES_extension_flag is set to “0b”, the stuffing_byte length is adjusted, and The correction point is to correct PES_header_data_length.

プライベートヘッダは、MPEG規格外のストリームを格納する際に必要となるため、NV_PCKやRDI_PCK、それにAC−3、LPCM等を格納したパックに必要である。   Since the private header is required when storing a stream that is not MPEG standard, it is necessary for a pack storing NV_PCK, RDI_PCK, AC-3, LPCM, and the like.

図64にAC−3のプライベートヘッダを示す。図に示すフィールドのうち、Constrained SESFのMultiplexing Unitの定義によって、TS2PS変換時に計算を要するものは、number_of_frame_headersのみである。このフィールドはそのパックに格納されるAC−3のオーディオフレームの数を指定するため、そのフィールドの値は、固定レートのAC−3については、1オーディオフレームのバイト長がそのビットレートから計算でき、かつその値が固定長となることから、容易にPES_packet_length等から計算できる。   FIG. 64 shows an AC-3 private header. Of the fields shown in the figure, according to the definition of the Constrained SESF Multiplexing Unit, only the number_of_frame_headers need to be calculated at the time of TS2PS conversion. Since this field specifies the number of AC-3 audio frames stored in the pack, the value of the field can be calculated from the bit rate for one audio frame byte length for a fixed rate AC-3. Since the value becomes a fixed length, it can be easily calculated from PES_packet_length and the like.

尚、AC−3のプライベートヘッダ(4B)により、Constrained
SESFのPESパケットヘッダのPES_header_data_lengthが4バイト分余計にスタッフィングされていることに注意すべきである。(図44参照)このように、予め変換後のヘッダ長を見積もってペイロードの位置をずらしておくことで、TSパケット単位の逐次処理を容易にしているのである。
Constrained by AC-3 private header (4B)
It should be noted that the PES_header_data_length in the SESF PES packet header is stuffed by an extra 4 bytes. (See FIG. 44) Thus, by sequentially estimating the header length after conversion and shifting the position of the payload, sequential processing in units of TS packets is facilitated.

以上のように、最初のパケットヘッダはそのPESパケットのヘッダから一部修正し、2つ目以降のパケットヘッダは、最初のパケットヘッダを一部修正し、プライベートヘッダはMPEG規定外ストリームの時のみ挿入することで、パケットヘッダおよびプライベートヘッダを生成することが可能である。   As described above, the first packet header is partly modified from the header of the PES packet, the second and subsequent packet headers are partly modified from the first packet header, and the private header is an MPEG nonstandard stream only. By inserting, it is possible to generate a packet header and a private header.

(ステップS4204) プライベートヘッダが作成されれば、後はTSパケットのペイロード部分をPSパックのペイロード部分の先頭から順に詰めてコピーしていくだけである。   (Step S4204) If a private header is created, the payload part of the TS packet is simply packed in order from the beginning of the payload part of the PS pack and copied.

(S4205〜S4207) これをMultiplexing Unit(11個のTSパケット)が終了するまで単純に繰り返すだけだが、途中でNULLパケットが挿入されている可能性があるため、NULLパケットのPID(0x1FFF)を確認して、TSパケットのペイロードデータのコピーを行う。   (S4205 to S4207) This is simply repeated until the Multiplexing Unit (11 TS packets) is completed, but a NULL packet may be inserted in the middle, so the PID (0x1FFF) of the NULL packet is confirmed. Then, the payload data of the TS packet is copied.

尚、この際、PESパケットの最後のデータを格納するTSパケットだけがアダプテーションフィールドを持つように定義しておくのが好ましい。これにより、Constrained SESFの中でPESパケットの最後のデータを格納するTSパケット最後を除くTSパケットは、常に184Bのペイロードデータが格納されていることになるため、ペイロードデータの読み出しが容易になる。   At this time, it is preferable to define so that only the TS packet storing the last data of the PES packet has an adaptation field. As a result, the payload data of 184B is always stored in the TS packet except the end of the TS packet storing the last data of the PES packet in the Constrained SESF, so that the payload data can be easily read.

(ステップS4208) 次に、Multiplexing Unitのペイロードデータまで、完全にコピーが終了した時点で、形成されたパックのバイト長を計算し、2048Bになっているかどうか確認する。既に2048Bになっていれば、そのパックの生成は終了する。まだ2048Bになっていない場合には、S4209へ進む。   (Step S4208) Next, when the copying is completely completed up to the payload data of Multiplexing Unit, the byte length of the formed pack is calculated, and it is confirmed whether it is 2048B. If it is already 2048B, the generation of the pack ends. If it is not yet 2048B, the process proceeds to S4209.

(ステップS4209) パックが2048Bになっていない場合、2048Bになるようにパディングパケットをペイロードの最後に追加する。   (Step S4209) If the pack is not 2048B, a padding packet is added to the end of the payload so that it becomes 2048B.

以上のように、AVデータを格納したMultiplexing Unitからの変換処理を行なう。上記の処理を、Constrained SESFの指定された変換部分の処理が終了するまで、Multiplexing Unitが検出された場合のみ繰り返せば良い。   As described above, the conversion process from the Multiplexing Unit storing AV data is performed. The above processing may be repeated only when a Multiplexing Unit is detected until the processing of the conversion portion designated by Constrained SESF is completed.

上記の変換処理について各種パック毎の変換結果を説明すると以下のようになる。
(ビデオパック(V_PCK)への変換)
図65A、65BにConstained SESFからMPEG−PSへの変換を図示した。図65Aに示したように、一つのビデオPESパケットは、通常2KBよりも大きいため、複数のMultiplexing Unitに分割され、Constrained SESFに多重化されているのが一般的である。
The conversion results for each pack in the conversion process will be described as follows.
(Conversion to video pack (V_PCK))
65A and 65B illustrate the conversion from Constrained SESF to MPEG-PS. As shown in FIG. 65A, since one video PES packet is usually larger than 2 KB, it is generally divided into a plurality of Multiplexing Units and multiplexed in a Constrained SESF.

Constrained SESFの規定により、一つのビデオPESパケットを構成する最後のMultiplexing Unitを除き、Multiplexing Unitには、最大にビデオPESパケットのデータが詰め込まれる。従って、最後のMultiplexing Unitを除き、全てのMultiplexing Unitは、2024バイト(=184×11バイト)のデータが格納される。   According to the Constrained SESF regulations, the video PES packet data is stuffed to the maximum in the Multiplexing Unit except for the last Multiplexing Unit constituting one video PES packet. Accordingly, except for the last Multiplexing Unit, data of 2024 bytes (= 184 × 11 bytes) is stored in all the Multiplexing Units.

このように規定することで、TS2PS変換時に個々のパックのPES_packet_lengthや、stuffing_byteといったフィールドを予め決めておくことができる。   By defining in this way, fields such as PES_packet_length and stuffing_byte of each pack can be determined in advance at the time of TS2PS conversion.

一つのビデオPESパケットのデータを格納した最後のMultiplexing Unitは、余ったデータ量をアダプテーションフィールドと、NULLパケットで埋め合わせ、1つの完全なMultiplexing Unitを構成しても良いし、データ転送の効率化(変換したMPEG−PSパックへの格納データ量を増やす目的)のために、次のPESパケットのデータを格納するようにしても良い。   The last Multiplexing Unit storing the data of one video PES packet may make up one complete Multiplexing Unit by filling the remaining data amount with the adaptation field and the NULL packet, and improving the efficiency of data transfer ( For the purpose of increasing the amount of data stored in the converted MPEG-PS pack, the data of the next PES packet may be stored.

ただし、DVDへの変換容易性を考えて、SESF Capsule内のIピクチャだけは、そのSESF Capsule内で先頭のビデオデータを格納するMultiplexing Unitの先頭TSパケットから配置される。   However, considering the ease of conversion to DVD, only the I picture in the SESF Capsule is arranged from the first TS packet of the Multiplexing Unit that stores the first video data in the SESF Capsule.

Pピクチャ、Bピクチャは、上記のように、Multiplexing Unitの先頭から配置されなくとも良い。   As described above, the P picture and the B picture do not have to be arranged from the top of the Multiplexing Unit.

図65A、65Bに図示したように、一つのビデオPESパケットを構成するMultiplexing Unitは、以下の3つの種類に分別が可能である。   As illustrated in FIGS. 65A and 65B, the Multiplexing Units constituting one video PES packet can be classified into the following three types.

PESパケットの先頭データを格納した最初のMultiplexing Unit(図中MU#1)と、PESパケットの途中部分のデータを格納したMultiplexing Unit(図中MU#n、ここで、n=2,3,・N-1)と、PESパケットの最後のデータを格納したMultiplexing Unit(図中MU#N)である。   The first Multiplexing Unit (MU # 1 in the figure) storing the head data of the PES packet, and the Multiplexing Unit (MU # n in the figure, where n = 2, 3,... N-1) and Multiplexing Unit (MU # N in the figure) storing the last data of the PES packet.

それぞれの種類に応じて、TS2PS変換されたMPEG−PSストリームの各パックは、同図65Bに示す構造になる。   According to each type, each pack of the TS-PS converted MPEG-PS stream has a structure shown in FIG. 65B.

MU#1から変換されたパックは、パック生成時に必ず10バイト以上の空きができるため、パディングパケットが最後に挿入される。   Since packs converted from MU # 1 always have a space of 10 bytes or more at the time of pack generation, a padding packet is inserted at the end.

DVDフォーマットでは、パックに7バイト以下の空きができる時には、スタッフィングバイト(パケットヘッダの最後のフィールド)を2048バイトになるまで追加し、8バイト以上の空きができる時には、パディングパケットを挿入する決まりになっているためである。   In the DVD format, stuffing bytes (the last field of the packet header) are added to 2048 bytes when there is 7 bytes or less in the pack, and padding packets are inserted when 8 bytes or more are available. It is because it has become.

また、MU#nから変換されたパックは、スタッフィングを1バイト足してパックを構成する。   Further, the pack converted from MU # n forms a pack by adding 1 byte of stuffing.

また、MU#Nから変換されたパックは、通常、パック構成時の空き領域が8バイトよりも大きくパディングパケットが挿入されることになる。
(オーディオパック(A_PCK)への変換)
図66A、66BにConstained SESFからMPEG−PSへの変換を図示した。図66Aに示したように、(1つ以上のオーディオフレームを格納する)一つのオーディオPESパケットは、1つのMultiplexing Unitよりも小さなサイズとなる。
In addition, a pack converted from MU # N usually has a free area larger than 8 bytes in the pack configuration, and a padding packet is inserted.
(Conversion to audio pack (A_PCK))
66A and 66B illustrate conversion of Constrained SESF to MPEG-PS. As shown in FIG. 66A, one audio PES packet (which stores one or more audio frames) has a size smaller than one Multiplexing Unit.

一つのオーディオPESパケットは、一つのMultiplexing Unitに収まるため、ビデオPESパケットのように複雑な変換は必要ない。つまり、図66Bに示したように、必ずパディングパケットが挿入されるパックが生成されるはずである。   Since one audio PES packet fits in one Multiplexing Unit, complicated conversion is not required unlike a video PES packet. That is, as shown in FIG. 66B, a pack into which a padding packet is inserted must be generated.

また、PES_packet_lengthもTS2PS変換で変わることがないため、変換時に計算するのは、MPEG1−Audioを変換する際にstream_idを適宜設定したり、AC−3用のプライベートヘッダを生成したりする程度の簡単な処理のみである。   Also, since PES_packet_length is not changed by TS2PS conversion, the calculation at the time of conversion is as simple as setting stream_id appropriately when converting MPEG1-Audio or generating a private header for AC-3. It is only a simple process.

また、図に示したように、Constrained SESFのシステムエンコードを困難にする大きな要素であるオーディオデータの転送時間を、最小にすることで、バッファマネージメントを簡単にすることが可能である。   Also, as shown in the figure, buffer management can be simplified by minimizing the transfer time of audio data, which is a major factor that makes Constrained SESF system encoding difficult.

オーディオMultiplexing Unitの転送時間分は、ビデオデータやその他のPSI/SIパケットが転送できないため、全体の転送レートが下がってしまう課題(画質低下)と、この転送時間が長くなればなる程、その分ビデオデータをTS上では前倒しで転送する必要が出てくる課題(システムエンコードが複雑化)等の問題を引き起こすため、可能な限り短い時間で転送することが理想である。   The transfer time of the audio multiplexing unit cannot be transferred because video data and other PSI / SI packets cannot be transferred, and the overall transfer rate decreases (degradation of image quality). It is ideal to transfer video data in as short a time as possible in order to cause problems such as the problem that the video data needs to be transferred ahead of time on TS (system encoding becomes complicated).

言い換えれば、オーディオMultiplexing Unitを短い時間で転送するということは、オーディオの転送レートを上げるということであり、これは、T−STDとP−STDの大きな違いであった、オーディオの許容入力レートの差を減少させることにつながる。従って、2つのデコーダモデルに合致しなければならないConstrained SESFを生成することを容易にするという大きな利点がある。   In other words, transferring the audio Multiplexing Unit in a short time means increasing the audio transfer rate, which is a significant difference between the T-STD and the P-STD, which is the allowable audio input rate. It leads to reducing the difference. Therefore, there is a great advantage of facilitating generating a Constrained SESF that must match two decoder models.

図67に、Constrained SESFで許される各音声のビットレートと、その夫々ごとにAC−3とMPEG1−Audioを格納する場合に、1オーディオPESパケットに格納される最大ペイロード長を示した。ここに示すバイト長よりも大きなデータが1オーディオPESパケットに格納されることはないため、常にパディングパケットが挿入されることになる。
(PESパケットにおける制限)
整数個のオーディオフレームを含む整数個のPESパケットを、整数個のMultiplexing Unitに格納するようにして、変換後のMPEG−PSパックへの格納データ量を増やし、効率的に多重化しても良い。ただし、この場合、変換時のPTSの演算が問題となる。
FIG. 67 shows the bit rate of each audio allowed by Constrained SESF and the maximum payload length stored in one audio PES packet when AC-3 and MPEG1-Audio are stored for each. Since data larger than the byte length shown here is not stored in one audio PES packet, a padding packet is always inserted.
(Restrictions in PES packets)
An integer number of PES packets including an integer number of audio frames may be stored in an integer number of Multiplexing Units to increase the amount of data stored in the converted MPEG-PS pack and efficiently multiplex them. However, in this case, calculation of PTS at the time of conversion becomes a problem.

DVD規格では、オーディオのPESパケットヘッダ内のPTSとして、そのPESパケット内で始まる最初のオーディオフレームのPTSを記述するように定められている。   In the DVD standard, the PTS of the first audio frame starting in the PES packet is described as the PTS in the audio PES packet header.

TS2PS変換を行う際に、MPEG−PS(DVD)へ変換後にPESパケットの先頭になるオーディオフレームと、変換前のConstrained SESFで多重化されたPESパケットの先頭になるオーディオフレームが一致しないケースがある。そこで、本発明では、変換後のMPEG−PSのパックのPESパケット内で最初に始まるオーディオフレームが必ずPTSを持つようにConstrained SESFで多重化する。これにより、TS2PS変換時に、新たにPTSを演算して求める必要がなくなる。   When performing TS2PS conversion, there is a case where the audio frame that becomes the head of the PES packet after conversion to MPEG-PS (DVD) does not match the audio frame that becomes the head of the PES packet multiplexed by the Constrained SESF before conversion. . Therefore, in the present invention, multiplexing is performed by Constrained SESF so that the first audio frame starting in the PES packet of the converted MPEG-PS pack always has PTS. As a result, there is no need to newly calculate and obtain PTS during TS2PS conversion.

したがって、Multplexing Unitの中で、最初に始まる完全なオーディオフレームは、Multplexing Unit内のPESパケットのペイロードの中で最初のオーディオフレーム(つまり必ずPTSが記述されたオーディオフレーム)とすることが有効である。そこで、本発明に係るConstrained SESFは、「Multplexing Unitの中で最初に始まる完全なオーディオフレームは、Multplexing Unit内のPESパケットのペイロードの中で最初のオーディオフレームとする」ことを規定する。尚、この規定は「Multplexing Unitの中でフレーム先頭バイトが最初に始まるオーディオフレームは、Multiplexing Unit内のPESパケットのペイロードの中で最初のオーディオフレームとする」としてもよい。本規定による制約はConstrained SESFの制限の1つであるため、encode_conditionフラグを参照することにより、上記の規定を満たすか否かが判定できる。   Therefore, it is effective that the first complete audio frame in the Multiplexing Unit is the first audio frame (that is, an audio frame in which PTS is always described) in the payload of the PES packet in the Multiplexing Unit. . Therefore, the Constrained SESF according to the present invention stipulates that “the first complete audio frame starting in the Multiplexing Unit is the first audio frame in the payload of the PES packet in the Multiplexing Unit”. Note that this rule may be that “the audio frame in which the first byte of the frame starts first in the Multiplexing Unit is the first audio frame in the payload of the PES packet in the Multiplexing Unit”. Since the restriction according to this rule is one of the constraints of Constrained SESF, it can be determined whether or not the above rule is satisfied by referring to the encode_condition flag.

図85は、上記規定を満たすConstrained SESFでフォーマットされたMPEG−TSと、それから変換されるMPEG−PSとを説明した図である。   FIG. 85 is a diagram for explaining MPEG-TS formatted by Constrained SESF that satisfies the above-mentioned regulations and MPEG-PS converted from the MPEG-TS.

PESパケット411、412、413のPESパケットヘッダには、それぞれ、各PESパケット411、412、413に含まれるオーディオフレームの中の最初のオーディオフレーム(AF#1、AF#5、AF#8)に対するPTS値(PTS#1、PTS#5、PTS#8)が含まれている。   The PES packet headers of the PES packets 411, 412, and 413 correspond to the first audio frames (AF # 1, AF # 5, and AF # 8) among the audio frames included in the PES packets 411, 412, and 413, respectively. PTS values (PTS # 1, PTS # 5, PTS # 8) are included.

最初のMultplexing Unit(401)には、PESパケット411の全てのデータとPESパケット412の途中までのデータとが含まれる。   The first Multiplexing Unit (401) includes all data of the PES packet 411 and data up to the middle of the PES packet 412.

最初のMultplexing Unit(401)において、そのMultplexing Unit(401)内の最初の完全なオーディオフレームはオーディオフレーム#1であり、これは、PESパケット411のペイロード内の最初のオーデオフレームとなっており、上記の規定を満たしている。また、第2番目のMultplexing Unit(402)に注目すると、Multplexing Unit(402)内の最初の完全なオーディオフレームはオーディオフレーム#8であり、これは、PESパケット413のペイロード内の最初のオーディオフレームとなっており、上記の規定を満たしている。なお、Multplexing Unit(402)は、PESパケットヘッダ直後にオーディオフレーム#7の後半部分を含んでいるが、それはオーディオフレームの一部であって完全なオーディオフレームではないため、上記規定を考慮する際の条件とはならない。   In the first Multiplexing Unit (401), the first complete audio frame in the Multiplexing Unit (401) is Audio Frame # 1, which is the first audio frame in the payload of the PES packet 411, Meets the above requirements. Also, looking at the second Multiplexing Unit (402), the first complete audio frame in the Multiplexing Unit (402) is audio frame # 8, which is the first audio frame in the payload of the PES packet 413. And meets the above requirements. Note that the Multiplexing Unit (402) includes the latter half of the audio frame # 7 immediately after the PES packet header, but it is a part of the audio frame and not a complete audio frame. This is not a condition.

最初のMultplexing Unit(401)に含まれるPESパケット411のPESパケットヘッダには、それに続くオーディオフレーム(AF)の中の最初の完全なオーディオフレーム#1のPTSの値(PTS#1)が含まれる。また、第2番目のMultplexing Unit(402)には、それに続くオーディオフレーム(AF)中の最初の完全なオーディオフレーム#8のPTSの値(PTS#8)が含まれている。   The PES packet header of the PES packet 411 included in the first Multiplexing Unit (401) includes the PTS value (PTS # 1) of the first complete audio frame # 1 in the subsequent audio frame (AF). . The second Multiplexing Unit (402) includes the PTS value (PTS # 8) of the first complete audio frame # 8 in the subsequent audio frame (AF).

第2番目のMultplexing Unit(402)を、MPEG−PSに変換するとき、変換先のMPEG−PS内のPESパケットヘッダには、Multplexing Unit(402)に含まれるPESパケットヘッダに格納されるPTSの値(PTS#8)がそのままコピーされる。このように、PS2TS変換時において、PTS値をそのままコピーするだけでよく、処理が簡略化される。   When the second Multiplexing Unit (402) is converted to MPEG-PS, the PES packet header in the conversion-destination MPEG-PS includes the PTS packet header contained in the Multiplexing Unit (402). The value (PTS # 8) is copied as it is. In this way, at the time of PS2TS conversion, it is only necessary to copy the PTS value as it is, and the processing is simplified.

次にPESパケットにビデオデータが含まれる場合を説明する。Constrained SESFの制約の1つとして、ビデオデータを含むPESパケットに対し、「Iピクチャを格納したPESパケットは、Multplexing Unitの先頭から始まる」という制約を設けてもよい。   Next, a case where video data is included in the PES packet will be described. As one of the constraints of Constrained SESF, a constraint that “a PES packet storing an I picture starts from the top of a Multiplexing Unit” may be provided for a PES packet including video data.

図86に上記規定を満たした例を示す。図86において、PESパケット416はIピクチャを含み、そのPESパケットヘッダには、IピクチャのPTS値(PTS#2)が格納されている。そして、PESパケット416はMultplexing Unit(404)の先頭に配置されている。   FIG. 86 shows an example satisfying the above rules. In FIG. 86, a PES packet 416 includes an I picture, and the PTS value (PTS # 2) of the I picture is stored in the PES packet header. The PES packet 416 is arranged at the head of the Multiplexing Unit (404).

変換後のMPEG−PSパックにおいて、PESパケットヘッダ421に格納されるPTS値(PTS#2)はその直後のIピクチャを指し示している。なお、Multplexing Unit(403)はPESパケット415のペイロードに含まれるPピクチャを格納し、その残りの部分にNULLパケットを挿入することにより、Iピクチャを次のMultplexing Unit(404)にアライメントしている。   In the converted MPEG-PS pack, the PTS value (PTS # 2) stored in the PES packet header 421 indicates the I picture immediately after that. Note that the Multiplexing Unit (403) stores the P picture included in the payload of the PES packet 415, and inserts a NULL packet into the remaining part, thereby aligning the I picture with the next Multiplexing Unit (404). .

Multplexing Unit(404)をMPEG−PSに変換する際には、MPEG−PSパックのPESパケットヘッダ421に、Multplexing Unit(404)内のPESパケットヘッダの値(PTS#2)がコピーされる。このようにPTS値はコピーされるだけでよいので、PTS値を演算して求める必要がなく、処理を簡略化できる。
(TS2PS変換処理)
図68から図81のフローチャートを用いてTS2PS変換処理の詳細を説明する。
When converting the Multiplexing Unit (404) to MPEG-PS, the value (PTS # 2) of the PES packet header in the Multiplexing Unit (404) is copied to the PES packet header 421 of the MPEG-PS pack. Since the PTS value only needs to be copied in this way, it is not necessary to calculate the PTS value and obtain a simplified process.
(TS2PS conversion process)
Details of the TS2PS conversion process will be described with reference to the flowcharts of FIGS.

図68はTS2PS変換のメインの処理を示したフローチャートである。本処理はユーザによりTS2PS変換のリクエストがあったときに開始される。まず、変換を開始する先頭のSESF Capsuleをシークする(S11)。そして、処理すべきSESF Capsuleが有るか否かを判断し(S12)、なければ処理を終了し、SESF Capsuleがあれば、初期化処理(S13)及びカプセル単位処理(S14)を行なう。   FIG. 68 is a flowchart showing the main processing of TS2PS conversion. This process is started when a user requests TS2PS conversion. First, the head SESF Capsule for starting the conversion is sought (S11). Then, it is determined whether or not there is a SESF Capsule to be processed (S12). If there is a SESF Capsule, the process ends. If there is a SESF Capsule, an initialization process (S13) and a capsule unit process (S14) are performed.

図69のフローチャートを用いて初期化処理(S13)について説明する。ここでは、その後の処理に使用される変数等の設定、初期化を行なう。まず、Tipパケットが読み込まれているか否かを判断し(S21)、未だTipパケットが読み込まれていなければ、Tipパケットを読み込む(S22)。変数ATSTipにTipパケットのATS値を代入する(S23)。変数PCRTipにTipパケットのPCR値を代入する(S24)。処理中のMultiplexing Unitの番号を指定する変数MU_numを0に設定する(S25)。ATSの桁あふれの回数を示す変数WAを0に設定する(S26)。   The initialization process (S13) will be described using the flowchart of FIG. Here, variables and the like used for the subsequent processing are set and initialized. First, it is determined whether or not the Tip packet has been read (S21). If the Tip packet has not been read yet, the Tip packet is read (S22). The ATS value of the Tip packet is substituted into the variable ATS Tip (S23). The PCR value of the Tip packet is substituted into the variable PCRTip (S24). A variable MU_num that specifies the number of the Multiplexing Unit being processed is set to 0 (S25). A variable WA indicating the number of ATS overflows is set to 0 (S26).

図70のフローチャートを用いてカプセル単位処理(S14)について説明する。一つのTSパケットを読み込む(S31)。読み込んだTSパレットがTipパケットであるか否かを判断する(S32)。Tipパケットであれば処理を終了する。Tipパケットでなければ、読み込んだTSパケットがオーディオパケットまたはビデオパケットかを判断する(S33)。読み込んだTSパケットがオーディオパケットまたはビデオパケットでない場合、ステップS31に戻り、読み込んだTSパケットがオーディオパケットまたはビデオパケットになるまで順次TSパケットを読む(S31〜S33)。読み込んだTSパケットがオーディオパケットまたはビデオパケットであれば、その後に続く10個のTSパケットを読み込む(S34)。MU_numをインクリメントする(S35)。Multiplexing Unit先頭のTSパケットのATS値を、変数ATS[MU_num]に格納する(S36)。Multiplexing Unitに格納されたPESパケットのペイロードデータのバイト長をpayload_lenとする(S37)。そして、パック単位処理を行なう(S38)。   The capsule unit process (S14) will be described with reference to the flowchart of FIG. One TS packet is read (S31). It is determined whether or not the read TS palette is a Tip packet (S32). If it is a Tip packet, the process ends. If it is not a Tip packet, it is determined whether the read TS packet is an audio packet or a video packet (S33). If the read TS packet is not an audio packet or a video packet, the process returns to step S31, and the TS packets are sequentially read until the read TS packet becomes an audio packet or a video packet (S31 to S33). If the read TS packet is an audio packet or a video packet, the subsequent 10 TS packets are read (S34). MU_num is incremented (S35). The ATS value of the first TS packet of the Multiplexing Unit is stored in the variable ATS [MU_num] (S36). The byte length of the payload data of the PES packet stored in the Multiplexing Unit is set to payload_len (S37). Then, pack unit processing is performed (S38).

パック単位処理は図71のフローチャートに示すように、SCR演算処理(S41)、パックヘッダ処理(S42)、パケットヘッダ処理(S43)、ペイロード処理(S44)及びパディングパケット処理(S45)からなる。以下に各処理を詳細に説明する。   As shown in the flowchart of FIG. 71, the pack unit processing includes SCR calculation processing (S41), pack header processing (S42), packet header processing (S43), payload processing (S44), and padding packet processing (S45). Each process will be described in detail below.

図72を用いてSCR演算処理を説明する。   The SCR calculation process will be described with reference to FIG.

ここでは、パックのSCR値を求めている。まず、変数MU_numの値を参照し、Cupsuleにおいて第1番目のMultiplexing Unitか否かを判断し、第1番目であれば、変数ATS[0]に変数ATSTipの値を、変数SCR[0]に変数PCRTipの値を代入する(S51〜S53)。   Here, the SCR value of the pack is obtained. First, referring to the value of the variable MU_num, it is determined whether or not it is the first Multiplexing Unit in the capsule. If it is the first, the value of the variable ATS Tip is set to the variable ATS [0], and the variable SCR [0] is set. The value of the variable PCRTip is substituted (S51 to S53).

そして、ATS[MU_num]と、ATS[MU_num−1]とを比較する(S55)。ATS「i」には、Multiplexing Unit先頭のパケットのATS値が格納され、このATS値は、あるパケットを基準とした相対的な転送タイミングを示す値である。したがって、通常は、後のパケットのATS値は前のパケットのATS値よりも大きな値をとる。しかし、ATS値は一般に30ビットで表される有限な値であるため、桁あふれを起こす場合があり、このときは、後のパケットのATS値は前のパケットのATS値よりも小さくなる。ステップS54では、このATS値の逆転を見ており、これにより、桁あふれが発生したか否かを判断している。ATS[MU_num]がATS[MU_num−1]以下であれば、すなわち、桁あふれが発生していれば、変数WAをインクリメントする(S55)。   Then, ATS [MU_num] is compared with ATS [MU_num-1] (S55). ATS “i” stores the ATS value of the first packet of the Multiplexing Unit, and this ATS value is a value indicating a relative transfer timing based on a certain packet. Therefore, normally, the ATS value of the subsequent packet is larger than the ATS value of the previous packet. However, since the ATS value is generally a finite value represented by 30 bits, overflow may occur. In this case, the ATS value of the subsequent packet is smaller than the ATS value of the previous packet. In step S54, the reversal of this ATS value is observed, and it is determined whether or not an overflow has occurred. If ATS [MU_num] is equal to or less than ATS [MU_num-1], that is, if an overflow has occurred, the variable WA is incremented (S55).

そして、SCR[MU_num]に、SCR[MU_num−1]+Tか、(PCRTIP+ATS[MU_num]−ATSTip+WA×BS)のいずれか大きい方を代入する(S56)。   Then, SCR [MU_num−1] + T or (PCRTIP + ATS [MU_num] −ATSTip + WA × BS), whichever is larger, is substituted into SCR [MU_num] (S56).

図73を用いてパックヘッダ処理を説明する。   The pack header process will be described with reference to FIG.

ここでは、図60に示すデータ構造を有するパックヘッダデータを編集する。SCR_extensionにSCRを300で除算したときの余りの値を代入する(S61)。SCR_baseにSCRを300で除算したときの商の値を代入する(S62)。program_mux_rateに「0x6270」を代入する(S63)。pack_stuffing_lengthに「000b」を代入する(S64)。その他のフィールドを編集し、パックヘッダデータを完成させる(S65)。   Here, pack header data having the data structure shown in FIG. 60 is edited. The remainder of SCR divided by 300 is substituted into SCR_extension (S61). The value of the quotient obtained by dividing SCR by 300 is substituted into SCR_base (S62). “0x6270” is substituted into program_mux_rate (S63). “000b” is substituted into pack_stuffing_length (S64). Other fields are edited to complete the pack header data (S65).

図74を用いてパケットヘッダ処理を説明する。   Packet header processing will be described with reference to FIG.

まず、ストリームIDを設定するストリームID処理を行なう(S71)。その後、Multiplexing Unitにビデオデータが含まれるか否かを判断する(S72)。   First, stream ID processing for setting a stream ID is performed (S71). Thereafter, it is determined whether or not video data is included in the Multiplexing Unit (S72).

Multiplexing Unitにビデオデータが含まれる場合は、Multiplexing Unit先頭のTSパケットがPESパケットヘッダを含むか否かを判定する(S73)。Multiplexing Unit先頭のTSパケットがPESパケットヘッダを含む場合、VideoPESパケット先頭処理を行ない(S74)、そうでない場合は、PESパケット非先頭処理を行なう(S75)。尚、Multiplexing Unit先頭のTSパケットがPESパケットヘッダを含むか否かは、TSパケットのヘッダのpayload_unit_start_indicatorを参照したり、直接、PESパケットヘッダのスタートコードが格納されているかを参照することで判定する。   If video data is included in the Multiplexing Unit, it is determined whether the TS packet at the head of the Multiplexing Unit includes a PES packet header (S73). If the TS packet at the beginning of the Multiplexing Unit includes a PES packet header, the Video PES packet head process is performed (S74). Otherwise, the PES packet non-head process is performed (S75). Whether the TS packet at the head of the Multiplexing Unit includes a PES packet header is determined by referring to the payload_unit_start_indicator of the TS packet header or directly referring to whether the start code of the PES packet header is stored. .

一方、Multiplexing Unitにビデオデータが含まれない場合は、Multiplexing UnitにPESパケットヘッダを含むか否かを判定する(S76)。Multiplexing UnitがPESパケットヘッダを含む場合、オーディオPESパケット先頭処理を行ない(S77)、そうでない場合は、オーディオPESパケット非先頭処理を行なう(S78)。   On the other hand, when video data is not included in the Multiplexing Unit, it is determined whether or not a PES packet header is included in the Multiplexing Unit (S76). If the Multiplexing Unit includes a PES packet header, audio PES packet head processing is performed (S77). Otherwise, audio PES packet non-head processing is performed (S78).

図75を用いてストリームID処理を説明する。   The stream ID process will be described with reference to FIG.

ここでは、stream_idフィールドの値を設定する。処理中のストリームの種類が"MPEG2−video"であれば、stream_idに"0xE0"を設定する(S81、S82)。処理中のストリームの種類が"AC3−audio"であれば、stream_idに"0xBD"を設定する(S83、S84)。処理中のストリームの種類が"MPEG1−audio"で且つ"Primary audio"場合は、stream_idに"0xC0"を設定する(S85、S86、S87)。処理中のストリームの種類が"MPEG1−audio"で且つ"Secondary audio"場合は、stream_idに"0xC1"を設定する(S85、S88、S89)。   Here, the value of the stream_id field is set. If the type of stream being processed is “MPEG2-video”, “0xE0” is set in stream_id (S81, S82). If the type of stream being processed is “AC3-audio”, “0xBD” is set to stream_id (S83, S84). When the type of stream being processed is “MPEG1-audio” and “Primary audio”, “0xC0” is set to stream_id (S85, S86, S87). When the type of stream being processed is “MPEG1-audio” and “Secondary audio”, “0xC1” is set in stream_id (S85, S88, S89).

図76を用いてビデオPESパケット先頭処理を説明する。   The video PES packet head process will be described with reference to FIG.

図83はMPEG規格におけるPESパケットの構造を詳細に示した図であるが、本処理では同図の構造にしたがい各フィールドを編集する。   FIG. 83 shows the structure of the PES packet in the MPEG standard in detail. In this process, each field is edited according to the structure shown in FIG.

まず、Multiplexing Unit先頭のTSパケットに格納されたPESパケットヘッダと同一のPESパケットヘッダを、変換後のMPEG−PSのPESパケットヘッダとして生成する(S91)。次に、PES_packet_lengthに次式で計算した値を設定する(S92)。   First, a PES packet header that is the same as the PES packet header stored in the first TS packet of the Multiplexing Unit is generated as a PES packet header of the converted MPEG-PS (S91). Next, a value calculated by the following equation is set in PES_packet_length (S92).

PES_packet_length=
(3+PES_header_data_length)+payload_len
次に、PES_extension_flagが"1"か否かを判断し(S93)、PES_extension_flagが"1"のときは、PES_private_data_flagからP−STD_buffer_sizeまでの3バイトを所定値("0x1E60E8")で上書きする(S94)。
PES_packet_length =
(3 + PES_header_data_length) + payload_len
Next, it is determined whether or not PES_extension_flag is “1” (S93). When PES_extension_flag is “1”, 3 bytes from PES_private_data_flag to P-STD_buffer_size are overwritten with a predetermined value (“0x1E60E8” (94)). .

図77を用いてビデオPESパケット非先頭処理を説明する。   The video PES packet non-leading process will be described with reference to FIG.

PESパケットヘッダに仮の値("0x000001E007EC800001FF")を設定する(S111)。(2025−payload_len)の値が1と8の間にあるか否かを判定する(S112)。   A temporary value (“0x000001E007EC800001FF”) is set in the PES packet header (S111). It is determined whether the value of (2025-payload_len) is between 1 and 8 (S112).

(2025−payload_len)の値が8以上であれば、ステップS116に進む。   If the value of (2025-payload_len) is 8 or more, the process proceeds to step S116.

(2025−payload_len)の値が1と8の間にあれば、PES_header_data_lengthを(2025−payload_len)に設定し(S113)、PES_packet_lengthに次式で計算した値を設定する(S114)。   If the value of (2025−payload_len) is between 1 and 8, PES_header_data_length is set to (2025−payload_len) (S113), and the value calculated by the following equation is set to PES_packet_length (S114).

PES_packet_length=
(3+PES_header_data_length)+payload_len
そして、stuffing_byteに、(2024−payload_len)バイトのスタッフィングバイトを設定し(S115)、ステップS116に進む。
PES_packet_length =
(3 + PES_header_data_length) + payload_len
Then, stuffing bytes of (2024-payload_len) bytes are set in stuffing_byte (S115), and the process proceeds to step S116.

ステップS116では、(2025−payload_len)の値が8以上か否かを判定する。8以上であれば、PES_header_data_lengthを0に設定し(S117)、PES_packet_lengthに次式で計算した値を設定する(S118)。   In step S116, it is determined whether the value of (2025-payload_len) is 8 or more. If it is equal to or greater than 8, PES_header_data_length is set to 0 (S117), and the value calculated by the following equation is set to PES_packet_length (S118).

PES_packet_length=3+payload_len
そして、stuffing_byteから、1バイトのスタッフィングバイトを削除する(S119)。
PES_packet_length = 3 + payload_len
Then, one stuffing byte is deleted from the stuffing_byte (S119).

図78を用いてオーディオPESパケット先頭処理について説明する。   The audio PES packet head process will be described with reference to FIG.

まず、Multiplexing Unit内で最初に現れるPESパケットヘッダと同一のPESパケットヘッダを、変換後のMPEG−PSのPESパケットヘッダとして生成する(S181)。次に、PES_packet_lengthに次式で計算した値を設定する(S182)。   First, a PES packet header that is the same as the PES packet header that first appears in the Multiplexing Unit is generated as a PES packet header of the converted MPEG-PS (S181). Next, a value calculated by the following equation is set in PES_packet_length (S182).

PES_packet_length=
(3+PES_header_data_length)+payload_len
次に、PES_extension_flagが"1"か否かを判断し(S183)、PES_extension_flagが"1"のときは、P−STD_buffer_flagに1を設定する(S184)。そして、オーディオデータがAC−3オーディオか否かを判断する(S185)。AC−3オーディオであれば、PES_extension_flag_2に続く2バイトを所定値("0x603A")に設定する(S186)。AC−3オーディオでなければ、PES_extension_flag_2に続く2バイトを所定値("0x4020")に設定する(S187)。
PES_packet_length =
(3 + PES_header_data_length) + payload_len
Next, it is determined whether or not PES_extension_flag is “1” (S183). When PES_extension_flag is “1”, 1 is set in P-STD_buffer_flag (S184). Then, it is determined whether the audio data is AC-3 audio (S185). In the case of AC-3 audio, 2 bytes following PES_extension_flag_2 are set to a predetermined value ("0x603A") (S186). If it is not AC-3 audio, 2 bytes following PES_extension_flag_2 are set to a predetermined value ("0x4020") (S187).

図79を用いてオーディオPESパケット非先頭処理について説明する。   The audio PES packet non-leading process will be described with reference to FIG.

stream_idが"0xBD"か否か、すなわち、オーディオデータがAC−3オーディオか否かを判定する(S191)。stream_idが"0xBD"であれば、PESパケットヘッダに仮の値"0x000001BD0000800004FFFFFFFF"を設定する(S192)。そして、PES_packet_lengthに次式で計算した値を設定する(S193)。   It is determined whether stream_id is “0xBD”, that is, whether the audio data is AC-3 audio (S191). If the stream_id is “0xBD”, a temporary value “0x000001BD000000800004FFFFFFFF” is set in the PES packet header (S192). Then, the value calculated by the following equation is set in PES_packet_length (S193).

PES_packet_length=7+payload_len
一方、stream_idが"0xBD"でなければ、stream_idが"0xC0"か否か、すなわち、オーディオデータがMPEG−1プライマリオーディオか否かを判定する(S194)。MPEG−1プライマリオーディオであれば、PESパケットヘッダに仮の値"0x000001C00000800000"を設定する(S195)。MPEG−1プライマリオーディオでなければ、PESパケットヘッダに仮の値"0x000001C10000800000"を設定する(S196)。そして、PES_packet_lengthに次式で計算した値を設定する(S197)。
PES_packet_length = 7 + payload_len
On the other hand, if the stream_id is not “0xBD”, it is determined whether the stream_id is “0xC0”, that is, whether the audio data is MPEG-1 primary audio (S194). If it is MPEG-1 primary audio, a temporary value “0x000001C000000800000” is set in the PES packet header (S195). If it is not MPEG-1 primary audio, a temporary value “0x000001C10000800000” is set in the PES packet header (S196). Then, the value calculated by the following equation is set in PES_packet_length (S197).

PES_packet_length=3+payload_len
図80を用いてペイロード処理を説明する。
PES_packet_length = 3 + payload_len
The payload processing will be described with reference to FIG.

変数iに1を設定する(S121)。i番目のTSパケットに格納されたPESパケットのペイロードデータを読み込む(S122)。i番目のTSパケットに格納されたPESパケットのペイロードデータをパックのペイロードに追加する(S123)。変数iをインクリメントする(S124)。上記処理を変数iが12を超えない範囲で繰り返す(S125)。すなわち、1つのMultiplexing Unitに含まれる全てのTSパケットについて上記の処理が行なわれるまで、処理が繰り返される(S122〜S125)。   1 is set to the variable i (S121). The payload data of the PES packet stored in the i-th TS packet is read (S122). The payload data of the PES packet stored in the i-th TS packet is added to the pack payload (S123). The variable i is incremented (S124). The above processing is repeated as long as the variable i does not exceed 12 (S125). That is, the process is repeated until the above process is performed for all TS packets included in one Multiplexing Unit (S122 to S125).

図81を用いてパディングパケット処理を説明する。   The padding packet process will be described with reference to FIG.

PES_packet_lengthが2028か否かを判定する(S131)。PES_packet_lengthが2028でなければ、パディングパケットのPES_packet_lengthに{(2028−PES_packet_length)−6}を設定する(S132)。ペイロードに続けてパディングパケットを追加する(S133)。   It is determined whether or not PES_packet_length is 2028 (S131). If PES_packet_length is not 2028, {(2028-PES_packet_length) -6} is set in PES_packet_length of the padding packet (S132). A padding packet is added following the payload (S133).

上述のように、変換したMPEG−2のPESパケットに記述されるPTSは、Multiplexing Unitの中で最初に現れたPESパケットヘッダを参照して設定することが可能である。(図85、図86参照)
尚、上記説明において、ビデオのPESパケットの長さを示すPES_packet_lengthが0であるために、パックへ変換した後のパケットヘッダ内PES_packet_lengthの算出がパックにデータが確定した後でなければ確定しない問題があったが、SESF capsule内のビデオPESパケットごとのPES_packet_lengthをTipパケットに記述するようにしても良い。その結果、PES_packet_lengthをTSパケット単位の逐次処理にて決定することが可能となり、変換がさらに高速に行えるようになる。
As described above, the PTS described in the converted MPEG-2 PES packet can be set with reference to the PES packet header that appears first in the Multiplexing Unit. (Refer to FIG. 85 and FIG. 86)
In the above description, since the PES_packet_length indicating the length of the video PES packet is 0, there is a problem that the calculation of PES_packet_length in the packet header after conversion into a pack is not determined unless data is determined in the pack. However, PES_packet_length for each video PES packet in the SESF capsule may be described in the Tip packet. As a result, PES_packet_length can be determined by sequential processing in units of TS packets, and conversion can be performed at higher speed.

尚、上記説明において、パックヘッダ(SCR)をTS2PS変換時に生成するように説明したが、MPEG−TSに格納されるPESパケットヘッダにパックヘッダを予め格納しておいても良い。例えば、PESパケットヘッダのpack_header_field_flag=1bとして、PESパケットヘッダ内にTS2PS変換後のパックヘッダを格納しておき、該パックヘッダと同一のパックに格納されるデータは該TSパケットから所定の規則(例えば所定個数)までのTSパケットに格納されたデータがパックに格納されるとしても良い。
(一連続のSTC区間内におけるビデオピクチャの制限)
図87(a)に示したように、一連続のSTC(システムターゲットデコーダ基準時刻)区間内において、最初の完全なSESF Capsule内で最初に表示されるビデオピクチャ(Pf)がトップフィールドであり、最後の完全なSESF Capsule内で最後に表示されるビデオピクチャ(Pl)がボトムフィールドとなるようにしてもよい。図87(b)は、このルールを満たさないケースを示した図であり、最初の完全なSESF Capsule内で最初に表示されるビデオピクチャ(Pf)がボトムフィールドとなり、最後の完全なSESF Capsule内で最後に表示されるビデオピクチャ(Pl)がトップフィールドとなっている。
In the above description, the pack header (SCR) is generated at the time of TS2PS conversion. However, the pack header may be stored in advance in the PES packet header stored in the MPEG-TS. For example, pack_header_field_flag = 1b of the PES packet header is used to store a pack header after TS2PS conversion in the PES packet header, and data stored in the same pack as the pack header is determined from a predetermined rule (for example, Data stored in up to a predetermined number of TS packets may be stored in the pack.
(Restriction of video picture within one continuous STC section)
As shown in FIG. 87 (a), the video picture (Pf) displayed first in the first complete SESF Capsule in the continuous STC (system target decoder reference time) section is the top field, The last displayed video picture (Pl) in the last complete SESF Capsule may be the bottom field. FIG. 87 (b) is a diagram showing a case where this rule is not satisfied. The video picture (Pf) displayed first in the first complete SESF Capsule becomes the bottom field, and in the last complete SESF Capsule. The video picture (Pl) displayed last is the top field.

このように完全なSESF Capsule連続区間でビデオの表示形態に制限を設けるのは、DVD−VideoのVOBへの変換時に(記録したストリームへの編集が無ければ)、ビデオストリームの再エンコードを防ぐことができるためである。これはDVD−Video規格では、1VOB内のビデオは、トップフィールドから再生され、ボトムフィールドの再生で終わることが要求されているためである。   The reason for limiting the video display mode in such a complete SESF Capsule continuous section is to prevent re-encoding of the video stream when converting to DVD-Video VOB (if there is no editing to the recorded stream). It is because it can do. This is because in the DVD-Video standard, a video in one VOB is required to be played back from the top field and end with the playback of the bottom field.

上記の制約はConstrained SESFの制限の1つであるため、encode_conditionフラグを参照することにより、上記の制約を満たすか否かが判定できる。すなわち、このフラグを参照することにより、一連続のSTC区間内において、最初の完全なSESF Capsule内で最初に表示されるビデオピクチャがトップフィールドであり、かつ最後の完全なSESF Capsule内で最後に表示されるビデオピクチャがボトムフィールドであるか否かが判定できる。   Since the above constraint is one of the constraints of Constrained SESF, it can be determined whether or not the above constraint is satisfied by referring to the encode_condition flag. That is, by referring to this flag, the video picture that is displayed first in the first complete SESF Capsule is the top field and last in the last complete SESF Capsule within one continuous STC interval. It can be determined whether or not the displayed video picture is a bottom field.

図88は、上記の制限を設けたConstrained SESFでの録画処理のフローチャートである。   FIG. 88 is a flowchart of a recording process in Constrained SESF with the above restrictions.

最初に、一連続なSTCの生成を開始する(S201)。次に、事前に設定されたencode_conditionの値を取得する(S202)。encode_conditionの値は、ユーザや録画機器の初期設定等により事前に設定されている。encode_conditionが"11b"か否かを判断する(S203)。encode_conditionが"11b"(DVD−Videoモードでの録画)のとき、最初の完全なSESF Capsuleをエンコードしているか否かを判断する(S208)。最初の完全なSESF Capsuleをエンコードしている場合、最初の完全なSESF Capsule中の最初の表示ピクチャがトップフィールドとなるようにエンコードする(S209)。続いて、encode_conditionが"11b"のときの要求を満たすConstraind SESFとしてデータをエンコードする(S210)。   First, generation of a continuous STC is started (S201). Next, the value of encode_condition set in advance is acquired (S202). The value of encode_condition is set in advance by the initial setting of the user or the recording device. It is determined whether encode_condition is "11b" (S203). When encode_condition is “11b” (recording in the DVD-Video mode), it is determined whether or not the first complete SESF Capsule is encoded (S208). When the first complete SESF Capsule is encoded, encoding is performed so that the first display picture in the first complete SESF Capsule becomes the top field (S209). Subsequently, the data is encoded as Constrained SESF that satisfies the request when encode_condition is “11b” (S210).

一方、encode_conditionが"01b"(DVD−Video Recordingモードでの録画)のとき、encode_conditionが"01b"のときの要求を満たすConstraind SESFとしてデータをエンコードする(S204)。   On the other hand, when encode_condition is “01b” (recording in the DVD-Video Recording mode), the data is encoded as a Constrained SESF that satisfies the request when encode_condition is “01b” (S204).

その後、SESF Capsuleが完成する度にタイムマップ情報を逐次追加する(S205)。録画終了か否かが判断され(S206)、終了であれば、録画終了処理を行う(S207)。終了するまで、上記ステップS203からS205が繰り返される。   Thereafter, time map information is sequentially added every time the SESF Capsule is completed (S205). It is determined whether or not the recording is finished (S206). If the recording is finished, a recording end process is performed (S207). Steps S203 to S205 are repeated until the end.

図89を用いて録画終了処理を説明する。   The recording end process will be described with reference to FIG.

encode_conditionが"11b"か否かを判断する(S211)。encode_conditionが"11b"のとき、最後の完全なSESF Capsule中の最後に表示されるピクチャがボトムピクチャか否かが判断される(S212)。ボトムピクチャでなければ、新規のSESFを作成し、または現在エンコード中のSESFを完成させ、最後がボトムピクチャで終わるようにエンコードする(S213)。   It is determined whether or not encode_condition is “11b” (S211). When encode_condition is “11b”, it is determined whether or not the last picture displayed in the last complete SESF Capsule is a bottom picture (S212). If it is not the bottom picture, a new SESF is created or the currently encoded SESF is completed and encoded so that the last ends with the bottom picture (S213).

一方、encode_conditionが"11b"でなければ、encode_conditionが"01b"のときの要求を満たす、最後のSESF Capsuleを生成する(エンコードを停止する)(S214)。   On the other hand, if encode_condition is not “11b”, the last SESF Capsule that satisfies the request when encode_condition is “01b” is generated (encoding is stopped) (S214).

その後、タイムマップ情報を完成させ、記録媒体に記録する(S215)。
(シームレス接続)
次に、Constrained SESFの2つのVOBをシームレス接続する場合について図90を用いて説明する。
Thereafter, the time map information is completed and recorded on the recording medium (S215).
(Seamless connection)
Next, a case where two VOBs of Constrained SESF are seamlessly connected will be described with reference to FIG.

図90に示すように、BD(Blu−ray Disc)ではPGC#1を構成するCell#1、#2の夫々に時間的に前に再生されるCellとの接続関係を記述している。図中のconnection_conditionがそれを示しており、その値が1か2であれば通常の非シームレス接続を意味し、3か4であれば、シームレス接続の条件を満たしていることを意味する。   As shown in FIG. 90, a BD (Blu-ray Disc) describes a connection relationship with a Cell that is played back in time in each of Cell # 1 and # 2 constituting PGC # 1. The connection_condition in the figure indicates this, and if the value is 1 or 2, it means normal non-seamless connection, and if it is 3 or 4, it means that the condition of seamless connection is satisfied.

このようにシームレス接続されるCell#1とCell#2から成るPGC#1をDVDに変換する場合、encode_condition=01bか11bのC−SESFであれば、そのまま高速にいかなる映像情報および音声情報の損失もなく変換できることが望ましい。   When converting seamlessly connected PGC # 1 composed of Cell # 1 and Cell # 2 to DVD, if video_condition = 01b or 11b C-SESF, any loss of video information and audio information can be performed at high speed. It is desirable to be able to convert without any problems.

従って、シームレス接続点を含むTS2PS変換の対象区間が完全なSESF Capsuleから構成されていることが望ましい。つまり、言い換えればシームレス接続点の直後はTipパケットが始まることが望ましいと言える。   Therefore, it is desirable that the TS2PS conversion target section including the seamless connection point is composed of a complete SESF Capsule. In other words, it can be said that it is desirable that the Tip packet starts immediately after the seamless connection point.

図91では、connection_condition=3の時のシームレス接続について説明している。   FIG. 91 illustrates a seamless connection when connection_condition = 3.

connection_condition=3のシームレス接続は、時間的に前に再生されるCellとBridge−VOBを介して接続されるCellであることを示している。Bridge−VOBとは、その前半と後半を夫々接続元のVOBから抜き出して連続再生可能なように再エンコードしたVOBである。   The seamless connection of connection_condition = 3 indicates that the cell is connected to the cell played back in time and the bridge-VOB via the bridge-VOB. The Bridge-VOB is a VOB in which the first half and the second half are extracted from the connection-source VOB and re-encoded so that continuous playback is possible.

図のPGC#1は次のような再生経路でVOB#1とVOB#2を再生する。VOB#1のStart_SPN1(タイムマップによりStart_PTM1に対応する位置)からexit_to_Bridge_SPNまでを再生し、その後Bridge−VOBを最初から最後まで再生し、最後にVOB#2のreturn_from_Bridge_SPNからEND_SPN2(タイムマップによりEnd_PTM2と対応する位置)までを再生する。   PGC # 1 in the figure reproduces VOB # 1 and VOB # 2 through the following reproduction path. Play from Start_SPN1 of VOB # 1 (position corresponding to Start_PTM1 by time map) to exit_to_Bridge_SPN, then play Bridge-VOB from the beginning to the end, and finally from return_from_BridgeTMSPN2 by END_SPN2 from END_SPN2 To the position where you want to play).

このようにBridge−VOBを介してシームレス接続する場合も同様に、Bridge−VOB内でVOB#1のコンテンツが終わりVOB#2のコンテンツが始まるシームレス境界直後はTipパケットから始まることが要求される。   Similarly, in the case of seamless connection via Bridge-VOB, it is similarly required to start from the Tip packet immediately after the seamless boundary where the content of VOB # 1 ends and the content of VOB # 2 starts in the Bridge-VOB.

次に図92を使ってBridge−VOBでのシームレス接続について詳しく説明する。   Next, seamless connection in Bridge-VOB will be described in detail with reference to FIG.

encode_condition=11bである2つのVOBをBridge−VOBを使ってシームレス接続し、それをDVDへ変換するまでを考える。   Consider a process of seamlessly connecting two VOBs with encode_condition = 11b using Bridge-VOB and converting them into a DVD.

BDでは、VOBはAligned Unitと呼ばれるATSとTSパケットを組にしたソースパケットを32個まとめた6KBの単位から構成される。   In BD, VOB is composed of 6 KB units in which 32 source packets, each of which is a set of ATS and TS packets, called “Aligned Unit”.

また、Bridge−VOBを使う場合には、前側VOBからの抜け出しおよび、後側VOBへの飛び込み地点は共にこのAligned Unit境界でないといけない規則がある。   In addition, when using Bridge-VOB, there is a rule that both the exit from the front VOB and the jump-in point to the rear VOB must be at this aligned unit boundary.

SESF Capsuleの途中からBridge−VOBを作るよりも、SESF Capsule単位でBridge−VOBを作る(図92参照)方がビデオ/オーディオがアライメントされ、再エンコード処理の単位が明快なため、Constrained SESFでは、Bridge−VOBとの接続性の観点から、予めSESF CapsuleをAligned Unit境界に合わせた方が望ましい。これは、SESF Capsuleの末端をAligned Unit境界までNULLパケットで埋める等として簡単に実現できる。   Since the video / audio is aligned and the unit of re-encoding processing is clear in the case of creating Bridge-VOB in SESF Capsule units (see FIG. 92) rather than creating Bridge-VOB in the middle of SESF Capsule, From the viewpoint of connectivity with Bridge-VOB, it is desirable to match the SESF Capsule with the Aligned Unit boundary in advance. This can be easily realized by filling the end of the SESF Capsule with a NULL packet up to the Aligned Unit boundary.

このようにAligned UnitでアライメントされたSESF Capsuleの内、VOB#1に属するCapsule1−3、1−4とVOB#2に属するCapsule2−1、2−2を元に生成したBridge−VOBは、Capsule1−4’とCapsule2−1’の間にSTC時間軸およびATS時間軸の不連続点を持つ。   The Bridge-VOB generated based on the Capsules 1-3 and 1-4 belonging to the VOB # 1 and the Capsules 2-1 and 2-2 belonging to the VOB # 2 among the SESF Capsules aligned in the aligned unit as described above is Capsule1. Between the −4 ′ and the Capsule 2-1 ′, there is a discontinuous point on the STC time axis and the ATS time axis.

一連続なATS/STC時間軸上にあるSESF Capsuleの変換は前述の通り容易なため、映像/音声情報を残さずTS2PS変換することを考えれば、Bridge−VOBのシームレス接続点の直前と直後は、共に完全なSESF Capsuleであることが望ましいことが分かる。   Since conversion of SESF Capsule on a continuous ATS / STC time axis is easy as described above, considering that TS2PS conversion is performed without leaving video / audio information, immediately before and immediately after the seamless connection point of Bridge-VOB , Both of which are desirable to be complete SESF Capsule.

さらに、Bridge−VOBの最後のCapsule2−2’は、Bridge−VOBのencode_condition=11bから要求される条件では、最後の完全なSESF Capsuleとして0.4〜1.2秒の再生時間があるため問題はないが、これをDVDに変換する際、Capsule2−1’、2−2’、2−3、2−4から変換されるDVDのVOBを考えると、Capsule2−2’の再生時間が1.0秒を超えることはDVD規格との整合性が悪く、再エンコードを要する。   Furthermore, the last Capsule 2-2 ′ of the Bridge-VOB has a playback time of 0.4 to 1.2 seconds as the last complete SESF Capsule under the condition required from the bridge_VOB encode_condition = 11b. However, when converting this to DVD, considering the DVD VOB converted from Capsule 2-1 ′, 2-2 ′, 2-3, 2-4, the playback time of Capsule 2-2 ′ is 1. If it exceeds 0 seconds, consistency with the DVD standard is poor and re-encoding is required.

従って、Bridge−VOBの場合、最後のCapsule(2−2’)の再生時間は0.4〜1秒でなければならない。また、これは最後のCapsuleがBridge−VOB内に完全に格納されていない場合でも同様である。   Therefore, in the case of Bridge-VOB, the playback time of the last Capsule (2-2 ') must be 0.4 to 1 second. This is the same even when the last Capsule is not completely stored in the Bridge-VOB.

つまり、Bridge−VOBの末端の最後のCapsuleが完全でないCapsuleである場合には、Bridge−VOBに記録されたCapsuleの前半と、return_from_Bridge_SPNから始まるVOB#2に記録されたCapsuleの後半を足し合わせて作られた完全な1つのCapsuleのビデオ再生時間が0.4秒〜1秒でなければならない。   In other words, if the last Capsule at the end of the Bridge-VOB is an incomplete Capsule, add the first half of the Capsule recorded in the Bridge-VOB and the second half of the Capsule recorded in the VOB # 2 starting from the return_from_Bridge_SPN. The video playback time of a complete Capsule made must be between 0.4 seconds and 1 second.

また、シームレス接続される前側のVOBの最後は、完全なCapsuleであることが望ましい。   In addition, it is desirable that the last VOB to be seamlessly connected is a complete capsule.

これは、シームレス接続される前側のVOBをTS2PS変換した際に、シームレス接続近辺のAV情報も欠落させることなく、高速変換できるようにするためである。   This is to enable high-speed conversion without missing AV information in the vicinity of seamless connection when TS2PS conversion is performed on the VOB on the front side that is seamlessly connected.

図93では、connection_condition=3でシームレス接続されるencode_condition=01bの場合を示している。   FIG. 93 shows a case where encode_condition = 01b is seamlessly connected with connection_condition = 3.

図92と同様に、Bridge−VOBの最後のCapsuleは、完全なCapsuleであろうとなかろうと、0.4〜1秒でなければDVD−VRへの高速な変換は実現できない。   Similarly to FIG. 92, whether the last Capsule of Bridge-VOB is a complete Capsule or not is 0.4 to 1 second, and high-speed conversion to DVD-VR cannot be realized.

次にシームレス接続点を含むDVDへの変換時に考慮すべきポイントを説明する。   Next, points to be considered when converting to a DVD including seamless connection points will be described.

BD規格のシームレス接続点では、接続されるどちらのVOBもシームレス接続される再生時刻tcの再生時間を持つオーディオフレームを持つ(オーバーラップ)ようにエンコードしなければならない一方、DVD規格では、シームレス接続点では、オーディオギャップができるようにエンコードしなければならない。   In the seamless connection point of the BD standard, both connected VOBs must be encoded so as to have an audio frame having a playback time tc of the seamless connection (overlap), whereas in the DVD standard, the seamless connection is performed. In terms, it must be encoded to create an audio gap.

したがって、シームレス接続点のTS2PS変換時には、オーバーラップしているオーディオフレーム(図94のオーディオフレームa6、a7)を削除し、ギャップを作らなければならない。これに伴い、後半のシームレス接続されるVOB(図94で灰色で示したVOB)を変換する場合には、オーディオパックのPTSをa8に合わせて修正する必要がある。   Therefore, at the time of TS2PS conversion at the seamless connection point, the overlapping audio frames (audio frames a6 and a7 in FIG. 94) must be deleted to create a gap. Accordingly, when converting the VOB that is seamlessly connected in the latter half (VOB shown in gray in FIG. 94), it is necessary to modify the PTS of the audio pack in accordance with a8.

これを行わずに、図95のようにオーディオギャップができないように、a6、a7を削除し、a5フレームと連続に再生できるようにa8フレームを再エンコードしたa8’フレームを後続のVOBの先頭に持ってきても良い。   Without this, a6 and a7 are deleted so that an audio gap is not generated as shown in FIG. 95, and an a8 ′ frame obtained by re-encoding the a8 frame so that it can be reproduced continuously with the a5 frame is placed at the head of the subsequent VOB. You may bring it.

但し、この場合には、オーディオフレームの再生時間が一様にずれるため、オーディオパックのPTSを全て、t4−t3分早める処理が別途必要となる。   However, in this case, since the playback time of the audio frame is uniformly shifted, it is necessary to separately process all the PTSs of the audio pack by t4-t3.

図96には、シームレス接続される2つのVOBをDVDの1VOBとして変換するためのタイムスタンプのオフセット量を求めるための方法を示した。   FIG. 96 shows a method for obtaining an offset amount of a time stamp for converting two seamlessly connected VOBs as one VOB of a DVD.

図のように、シームレス接続前側のストリームのTS2PS変換時は、前述の計算式のSCRから、オフセット1を使って、シフトされたSCR値を使い、シームレス接続後側のストリームのTS2PS変換時は、前側のVOBのビデオフレームの再生終了時刻が、続くVOBの最初のビデオフレームの再生開始時刻と重なるようにオフセット2を使ってシフトされたSCR値を使い変換する。   As shown in the figure, at the time of TS2PS conversion of the stream on the seamless connection side, using the shifted SCR value using the offset 1 from the SCR of the above formula, at the time of TS2PS conversion of the stream on the seamless connection side, Conversion is performed using the SCR value shifted using offset 2 so that the playback end time of the video frame of the front VOB overlaps the playback start time of the first video frame of the subsequent VOB.

offset1=PCRtip1 とすれば、シームレスされる前側のVOBの最初のVOBUの最初のパック(NV_PCKもしくはRDI_PCK)のSCRを0から開始することが可能となる。   If offset1 = PCRtip1, the SCR of the first pack (NV_PCK or RDI_PCK) of the first VOBU of the front VOB to be seamless can be started from zero.

offset2=FVFPST3−(FVFPST2−offset1+VOBU2のビデオ再生時間) とすれば、シームレス接続される後側のVOBの最初のVOBUの最初のパック(NV_PCKもしくはRDI_PCK)のSCRを、前側のVOBの最後のパックから連続したSTC時間軸で供給できるようになり、その結果、1つのVOBにTS2PS変換することが可能となる。   If offset2 = FVFPST3- (FVFPST2-offset1 + VOBU2 video playback time), the SCR of the first pack (NV_PCK or RDI_PCK) of the first VOBU of the seamlessly connected rear VOB is changed from the last pack of the front VOB. As a result, TS2PS conversion into one VOB becomes possible.

図97には、connection_condition=4でシームレス接続される2つのC−SESFのセルをDVDへTS2PS変換する方法を示している。   FIG. 97 shows a method of TS2PS conversion of two C-SESF cells that are seamlessly connected with connection_condition = 4 to DVD.

図98、99、100では、connection_condition=3でシームレス接続される2つのC−SESFのセルをDVDへTS2PS変換する方法を示している。   98, 99, and 100 show a method of TS2PS conversion of two C-SESF cells that are seamlessly connected with connection_condition = 3 to DVD.

何れの場合も、前述のTS2PS変換をベースにしているため、タイムスタンプにオフセット量を加味して演算する点、オーバーラップしているオーディオフレームを削除する点だけが特徴的である。   In any case, since the above-described TS2PS conversion is used as a base, only the point that the calculation is performed by adding the offset amount to the time stamp and the overlapping audio frames are deleted.

このようにしてシームレス接続するConstrained SESFの規定を決め、その変換方法について規定することで、TS2PS変換がシームレス接続時でも容易にかつ高速に実行可能となる。   By defining the Constrained SESF to be seamlessly connected and defining the conversion method in this way, TS2PS conversion can be executed easily and at high speed even during seamless connection.

また、図97から100までの変換処理は、図20のユーザーI/F部にて変換区間を特定し、システム制御部と、ドライブおよび記録媒体の間で処理が行われる。   97 to 100, the conversion section is specified by the user I / F unit of FIG. 20, and the process is performed between the system control unit, the drive, and the recording medium.

シームレス接続時に再エンコードを行う処理も、変換処理の場合と同様に、図20のユーザーI/F部にてシームレス接続させる2つのVOBを特定し、システム制御部と、ドライブおよび記録媒体の間で実行される。   Similarly to the conversion process, the re-encoding process at the time of seamless connection specifies two VOBs to be seamlessly connected by the user I / F unit in FIG. 20, and between the system control unit and the drive and recording medium. Executed.

図101には、異なるencode_conditionからなる2つのVOBをBridge−VOBで繋ぐ場合を示した。   FIG. 101 shows a case where two VOBs having different encode_conditions are connected by Bridge-VOB.

この場合、Bridge−VOB全体で一つのencode_conditionを与えると、Capsuleの再生時間長の規定の違いなどによりエレメンタリストリームレイヤでの加工が必要になる可能性がでてくる。例えば、図92の例で、Capsule1−4が0.6秒のGOP2つから構成され1.2秒の再生時間を持っていた場合にencode_condition=01b(全てのCapsuleは1.0秒以下)のBridge−VOBにするためには、Capusle1−4’は夫々0.6秒のGOPを1つずつ格納した2つのCapsuleに分割されなければならなくなる。(具体的にはFVFPSTなどのエレメンタリストリームの解析が必要な値を持つTipパケットを新規に作成するためにBridge−VOBの生成が困難となる。)
また、Capsule1−1、1−2までをencode_condition=11bの規則でDVD−Videoに変換している最中に、Bridge−VOBに移った途端に、Capsule1−3’、1−4’はencode_condition=01bの規則で符合化されており、変換部においてもDVD−Video形式のVOBを変換し続けるためには、Bridge−VOBファイルの切れ目を意識せざるを得なくなる問題がある。また、Bridge−VOBがCapsuleの途中から始まっている場合などでは、その処理が一層煩雑になってしまう。
In this case, if one encode_condition is given for the entire Bridge-VOB, there is a possibility that processing in the elementary stream layer may be required due to differences in the definition of the playback time length of the Capsule. For example, in the example of FIG. 92, when the capsules 1-4 are composed of two GOPs of 0.6 seconds and have a playback time of 1.2 seconds, encode_condition = 01b (all capsules are 1.0 seconds or less). In order to make Bridge-VOB, Capsule 1-4 'must be divided into two capsules each storing one GOP of 0.6 seconds. (Specifically, since a Tip packet having a value that requires analysis of an elementary stream such as FVFPST is newly created, it is difficult to generate Bridge-VOB.)
In addition, during the conversion to DVD-Video in accordance with the rule encoding_condition = 11b up to Capsule 1-1 and 1-2, Capsule 1-3 ′ and 1-4 ′ are encoded_condition. = 01b, and there is a problem that the conversion unit must be aware of the breaks in the Bridge-VOB file in order to continue converting the DVD-Video format VOB. Further, when Bridge-VOB starts in the middle of Capsule, the processing becomes more complicated.

このような問題を解決するために、図101に示すように、Bridge−VOBだけencode_condition=10bという今まで未定義であった値を割り振ることを許可し、その場合、そのBridge−VOBの前半および後半の区間は夫々の参照元のクリップのencode_conditionに従うとすることが考えられる。   In order to solve such a problem, as shown in FIG. 101, only the Bridge-VOB is allowed to allocate a previously undefined value of encode_condition = 10b, in which case the first half of the Bridge-VOB and It is conceivable that the latter half section follows the encode_condition of each reference source clip.

こうすることで、上記の問題がなくなり、Bridge−VOBの生成と、それを含む区間のDVDへの変換が容易になる利点がある。   By doing so, there is an advantage that the above-mentioned problem is eliminated and the generation of Bridge-VOB and the conversion to the DVD including the section are facilitated.

以上に示した情報記録装置/方法では、外部入力されたAVデータをMPEGトランスポートストリーム形式にセルフエンコーディングする際に、デコーダ互換を保ちながら効率良く符号化/復号化処理を行うことが可能である。   In the information recording apparatus / method described above, when externally input AV data is self-encoded into the MPEG transport stream format, it is possible to efficiently perform encoding / decoding processing while maintaining decoder compatibility. .

また、情報記録媒体に記録されるストリームには、ユーザプライベート情報を格納することができるため、MPEGトランスポートストリーム形式の記録コンテンツの付加価値を高めることが可能である。   Further, since the user private information can be stored in the stream recorded on the information recording medium, it is possible to increase the added value of the recorded content in the MPEG transport stream format.

さらに、情報記録媒体に記録されるMPEG−TSは、MPEG−PSへの親和性が高くなるように2KB以下のブロック単位で多重化処理がなされるため、シームレス接続点を含めてMPEG−TSをMPEG−PSに変換することが、バッファマネージメントを考慮することなく極めて容易に実現することができる。   Furthermore, since the MPEG-TS recorded on the information recording medium is multiplexed in units of blocks of 2 KB or less so as to increase the affinity for MPEG-PS, the MPEG-TS including the seamless connection point can be changed. Conversion to MPEG-PS can be realized very easily without considering buffer management.

尚、上記説明においてMPEG−PSからMPEG−TSへの逆変換については、説明していないが、TS2PS変換の逆として同様に考えることができる。   Although the reverse conversion from MPEG-PS to MPEG-TS is not described in the above description, it can be considered similarly as the reverse of TS2PS conversion.

例えば、1PSパックを複数個の連続したTSパケットに変換し、その際に生成される複数個の連続したTSパケットのATSの増分を固定として、ディスク上もしくはストリームの内部にその情報を格納することも考えられる。   For example, one PS pack is converted into a plurality of continuous TS packets, and the ATS increment of a plurality of continuous TS packets generated at that time is fixed, and the information is stored on the disk or in the stream. Is also possible.

また、MPEG−PSのクリップの名称(コンテンツ内容を示す番組情報等)をSITパケット内に格納してMPEG−TSへ変換すると、STB等のデコーダで、元の番組名をメニュー表示すること等が可能となる。   In addition, when an MPEG-PS clip name (program information indicating content contents, etc.) is stored in a SIT packet and converted into MPEG-TS, the original program name can be displayed in a menu by a decoder such as STB. It becomes possible.

以上に示した情報記録装置/方法では、外部入力されたAVデータをMPEGトランスポートストリーム形式にセルフエンコーディングする際に、デコーダ互換を保ちながら効率良く符号化/復号化処理を行うことが可能である。   In the information recording apparatus / method described above, when externally input AV data is self-encoded into the MPEG transport stream format, it is possible to efficiently perform encoding / decoding processing while maintaining decoder compatibility. .

また、情報記録媒体に記録されるストリームには、ユーザプライベート情報を格納することができるため、MPEGトランスポートストリーム形式の記録コンテンツの付加価値を高めることが可能である。   Further, since the user private information can be stored in the stream recorded on the information recording medium, it is possible to increase the added value of the recorded content in the MPEG transport stream format.

さらに、情報記録媒体に記録されるMPEG−TSは、MPEG−PSへの親和性が高くなるように2KB以下のブロック単位で多重化処理がなされるため、MPEG−TSをMPEG−PSに変換することが、バッファマネージメントを考慮することなく極めて容易に実現することができる。   Furthermore, since the MPEG-TS recorded on the information recording medium is multiplexed in block units of 2 KB or less so as to increase the affinity for MPEG-PS, the MPEG-TS is converted to MPEG-PS. Can be realized very easily without considering buffer management.

本発明は、特定の実施形態について説明されてきたが、当業者にとっては他の多くの変形例、修正、他の利用が明らかである。それゆえ、本発明は、ここでの特定の開示に限定されず、添付の請求の範囲によってのみ限定され得る。なお、本出願は日本国特許出願、特願2003−106399号(2003年4月10日提出)に関連し、それらの内容は参照することにより本文中に組み入れられる。   Although the present invention has been described with respect to particular embodiments, many other variations, modifications, and other uses will be apparent to those skilled in the art. Accordingly, the invention is not limited to the specific disclosure herein, but can be limited only by the scope of the appended claims. The present application relates to a Japanese patent application, Japanese Patent Application No. 2003-106399 (filed on April 10, 2003), the contents of which are incorporated herein by reference.

本発明によれば、第1のストリーム(例えば、MPEGトランスポートストリーム)を第2のストリーム(例えば、MPEGプログラムストリーム)へ変換可能とする制限フォーマットで記録されたことを示す情報を管理情報に記録するため、情報記録媒体に記録されたデータを解析することなく、記録データが当該フォーマットで記録されたか否かを容易に認識でき、当該認識処理の効率化が図れ、制限フォーマットである第1のストリームから第2のストリームへの変換処理も簡易化できる。   According to the present invention, information indicating that a first stream (for example, an MPEG transport stream) has been recorded in a restricted format that can be converted into a second stream (for example, an MPEG program stream) is recorded in the management information. Therefore, without analyzing the data recorded on the information recording medium, it can be easily recognized whether or not the recorded data is recorded in the format, the recognition process can be made more efficient, and the first limited format is used. The conversion process from the stream to the second stream can also be simplified.

DVDレコーダ装置の外観と関連機器とのインタフェースの一例を説明した図The figure explaining an example of the interface with the external appearance and related apparatus of a DVD recorder apparatus DVDレコーダのドライブ装置のブロック図Block diagram of DVD recorder drive device ディスク上の連続領域及びトラックバッファ内データ蓄積量を説明した図Diagram explaining the continuous area on the disk and the amount of data stored in the track buffer 半導体メモリカードとハードディスクドライブ装置を備える場合のDVDレコーダのブロック図Block diagram of a DVD recorder having a semiconductor memory card and a hard disk drive device ディスクの外観と物理構造を説明した図Diagram explaining the appearance and physical structure of the disc ディスクの論理的なデータ空間を説明した図A diagram illustrating the logical data space of a disk ディスクのディレクトリとファイル構造を説明した図Diagram explaining disk directory and file structure ビデオオブジェクトの構成を示す図Diagram showing the structure of a video object MPEGシステムストリームを説明した図Diagram explaining MPEG system stream MPEG−TSストリームを説明した図Diagram explaining MPEG-TS stream MPEG−PSストリームを説明した図Diagram explaining MPEG-PS stream TSパケットを説明した図Diagram explaining TS packet PATテーブルを説明した図The figure explaining the PAT table ビデオオブジェクトのディスク上への配置を説明した図A diagram describing the placement of video objects on a disk ビデオ管理情報のデータ構造を説明した図Diagram explaining the data structure of video management information ビデオ管理情報のデータ構造を説明した図Diagram explaining the data structure of video management information ビデオ管理情報のPGC情報とオブジェクト情報とオブジェクトとの関係を説明した図The figure explaining the relationship between PGC information of video management information, object information, and objects 再生装置の機能の構成を示すブロック図Block diagram showing the functional configuration of the playback device 記録装置の機能の構成を示すブロック図Block diagram showing the functional configuration of the recording apparatus 本発明の情報記録/再生装置の構成を示すブロック図The block diagram which shows the structure of the information recording / reproducing apparatus of this invention 自己記録ストリームの構成を説明する図The figure explaining the composition of a self-recording stream パケット転送時間間隔を説明する図Diagram explaining packet transfer time interval User Privateパケットの格納方法を説明する図The figure explaining the storage method of a User Private packet User Privateパケットの格納方法を説明する図The figure explaining the storage method of a User Private packet User Privateパケットの格納方法を説明する図The figure explaining the storage method of a User Private packet User Privateパケットの格納方法を説明する図The figure explaining the storage method of a User Private packet MPEG−TSからMPEG−PSへの変換を説明する図The figure explaining conversion from MPEG-TS to MPEG-PS MPEG−PSへの変換が容易なMPEG−TSの符号化方法を説明する図The figure explaining the encoding method of MPEG-TS with easy conversion to MPEG-PS DVD−Videoフォーマットへの変換を説明する図(NTSC)Diagram explaining conversion to DVD-Video format (NTSC) DVD−Videoフォーマットへの変換を説明する図(PAL)Diagram explaining conversion to DVD-Video format (PAL) User Privateパケットの内部データ構造を説明する図The figure explaining the internal data structure of a User Private packet MPEG−PSへ容易に変換可能にエンコードされたMPEG−TSと、変換後のMPEG−PSとの対応関係を説明した図The figure explaining the correspondence between MPEG-TS encoded so as to be easily convertible into MPEG-PS and MPEG-PS after conversion 本発明の情報記録装置のエンコーダを示すブロック図The block diagram which shows the encoder of the information recording device of this invention システムエンコード方法の違いによる、セルフエンコーディングMPEG−TSからDVDフォーマットへ変換する際の処理の違いを説明した図The figure explaining the difference in the process at the time of converting from self-encoding MPEG-TS to DVD format by the difference in a system encoding method Tipパケットのデータ構造を説明した図The figure explaining the data structure of Tip packet adaptation_fieldのデータ構造を説明した図The figure explaining the data structure of adaptation_field Data_IDのデータ構造を説明した図The figure explaining the data structure of Data_ID display_and_copy_infoのデータ構造を説明した図The figure explaining the data structure of display_and_copy_info encode_infoのデータ構造を説明した図The figure explaining the data structure of encode_info PES_infoの構造を示した図Diagram showing the structure of PES_info MakersPrivateDataのデータ構造を説明した図Diagram explaining the data structure of MakersPrivateData (A)はTipパケットのPIDを説明した図、(B)はstream_typeを説明した図(A) is a diagram explaining the PID of the Tip packet, (B) is a diagram explaining the stream_type. Constrained SESFストリーム内でのPESパケットヘッダのフィールド値を説明した図The figure explaining the field value of the PES packet header in the Constrained SESF stream Constrained SESFストリーム内でのPES_extension_flagとPES_header_data_lengthを説明した図The figure explaining PES_extension_flag and PES_header_data_length in the Constrained SESF stream T−STDモデルを満たさないようにセルフエンコードされたMPEG−TSの例を示した図The figure which showed the example of MPEG-TS self-encoded so that it may not satisfy | fill T-STD model MPEG−TSから変換されたMPEG−PSがP−STDモデルを満たさない場合の例を示した図The figure which showed the example in case MPEG-PS converted from MPEG-TS does not satisfy P-STD model SCRの計算を説明した図Illustration explaining SCR calculation encode_condition="11b"の場合のConstrained SESFのエレメンタリーストリーム属性を説明した図The figure explaining the elementary stream attribute of Constrained SESF in the case of encode_condition = "11b" encode_condition="01b"の場合のConstrained SESFのエレメンタリーストリーム属性を説明した図The figure explaining the elementary stream attribute of Constrained SESF in the case of encode_condition = “01b” DVD−Video規格のフォーマットのストリーム構造を示した図The figure which showed the stream structure of the format of DVD-Video specification NV_PCKのPCIデータの構造を示した図Diagram showing the structure of NV_PCK PCI data NV_PCKのPCI_GIデータの構造を示した図The figure which showed the structure of PCI_GI data of NV_PCK NV_PCKのDSIデータの構造を示した図Diagram showing the structure of NV_PCK DSI data NV_PCKのDSI_GIデータの構造を示した図The figure which showed the structure of DSI_GI data of NV_PCK NV_PCKのSML_PBIデータの構造を示した図The figure which showed the structure of SML_PBI data of NV_PCK NV_PCKのSYNCIデータの構造を示した図Diagram showing the structure of NV_PCK SYNCI data DVD−Video Recording規格のフォーマットのストリーム構造を示した図The figure which showed the stream structure of the format of DVD-Video Recording standard TSパケット(RD_PCK)の変換処理のフローチャートFlow chart of TS packet (RD_PCK) conversion processing TSパケット(V_PCK、A_PCK)の変換処理のフローチャートFlow chart of TS packet (V_PCK, A_PCK) conversion processing MPEG2−PSのパックのパックヘッダのデータ構造の一部を説明した図The figure explaining a part of the data structure of the pack header of the MPEG2-PS pack DVDフォーマットのシステムヘッダの構造図Structure diagram of system header in DVD format (A)はRDI_PCKに格納される、パケットヘッダの構造図、(B)はRDI_PCKに格納される、プライベートヘッダの構造図(A) is a structure diagram of a packet header stored in RDI_PCK, and (B) is a structure diagram of a private header stored in RDI_PCK. MPEG2−PSのパケットのパケットヘッダのデータ構造の一部を説明した図The figure explaining a part of the data structure of the packet header of the MPEG2-PS packet DVDフォーマットのAC−3規格のプライベートヘッダの構造図Structure diagram of AC-3 standard private header in DVD format Constained SESFからMPEG−PSへの変換を説明した図(ビデオパック)Diagram explaining conversion from Constrained SESF to MPEG-PS (video pack) Constained SESFからMPEG−PSへの変換を説明した図(オーディオパック)Diagram explaining the conversion from Constained SESF to MPEG-PS (audio pack) Constrained SESFで許される各音声のビットレートと、AC−3とMPEG1−Audioを格納する場合の1オーディオPESパケットに格納される最大ペイロード長との対応を示した図The figure which showed the response | compatibility with each audio | voice bit rate permitted by Constrained SESF, and the maximum payload length stored in one audio PES packet in the case of storing AC-3 and MPEG1-Audio. TS2PS変換処理全体のフローチャートOverall flow chart of TS2PS conversion process TS2PS変換処理の初期化処理のフローチャートFlow chart of initialization process of TS2PS conversion process TS2PS変換処理のカプセル単位処理のフローチャートFlowchart of capsule unit processing of TS2PS conversion processing パック単位処理のフローチャートFlow chart of pack unit processing SCR演算処理のフローチャートFlow chart of SCR calculation processing パックヘッダ処理のフローチャートPack header processing flowchart パケットヘッダ処理のフローチャートPacket header processing flowchart ストリームID処理のフローチャートStream ID processing flowchart ビデオPESパケット先頭処理のフローチャートFlow chart of video PES packet head processing ビデオPESパケット非先頭処理のフローチャートFlowchart of video PES packet non-head processing オーディオPESパケット先頭処理のフローチャートFlow chart of audio PES packet head processing オーディオPESパケット非先頭処理のフローチャートAudio PES packet non-head processing flowchart ペイロード処理のフローチャートPayload processing flowchart パディングパケット処理のフローチャートPadding packet processing flowchart Constrained SESFのストリームフォーマットを示した図Diagram showing Constrained SESF stream format MPEG規格によるPESパケットのデータ構造図Data structure diagram of PES packet according to MPEG standard NV_PCKデータの生成方法を説明した図The figure explaining the generation method of NV_PCK data オーディオを含むPESパケットでアライメントされていないMultiplexing Unitを用いた効率的な多重化方法を説明した図The figure explaining the efficient multiplexing method using Multiplexing Unit which is not aligned by the PES packet containing audio Iピクチャを含むPESパケットでアライメントしたMultiplexing Unitを用いた効率的な多重化方法を説明した図The figure explaining the efficient multiplexing method using Multiplexing Unit aligned with the PES packet containing I picture Constrained SESF(encode_condition=11b)におけるビデオ表示フィールド順に関する符号化条件を説明する図The figure explaining the encoding conditions regarding the video display field order in Constrained SESF (encode_condition = 11b). Constrained SESFの記録処理のフローチャートFlow chart of Constrained SESF recording process Constrained SESFの記録終了処理のフローチャートConstrained SESF recording end process flowchart シームレス接続されるConstrained SESFの構造を説明する図The figure explaining the structure of Constrained SESF connected seamlessly シームレス接続されるConstrained SESFの構造を説明する図The figure explaining the structure of Constrained SESF connected seamlessly シームレス接続されるConstrained SESFの構造を説明する図The figure explaining the structure of Constrained SESF connected seamlessly シームレス接続されるConstrained SESFの構造を説明する図The figure explaining the structure of Constrained SESF connected seamlessly シームレス接続点でのオーディオデータの変換を説明する図Diagram explaining audio data conversion at seamless connection points シームレス接続点でのオーディオデータの変換を説明する図Diagram explaining audio data conversion at seamless connection points DVDの1VOBへ変換する際のタイムスタンプのオフセット量を説明する図The figure explaining the offset amount of the time stamp at the time of converting into 1VOB of DVD シームレス接続されるConstrained SESFをDVDに変換する際のフローチャートFlow chart for converting seamlessly connected Constrained SESF to DVD シームレス接続されるConstrained SESFをDVDに変換する際のフローチャートFlow chart for converting seamlessly connected Constrained SESF to DVD シームレス接続されるConstrained SESFをDVDに変換する際のフローチャートFlow chart for converting seamlessly connected Constrained SESF to DVD シームレス接続されるConstrained SESFをDVDに変換する際のフローチャートFlow chart for converting seamlessly connected Constrained SESF to DVD シームレス接続されるConstrained SESFの構造を説明する図The figure explaining the structure of Constrained SESF connected seamlessly

符号の説明Explanation of symbols

100 DVDディスク
101、201 光ピックアップ
102、202 ECC処理部
103、203、220 トラックバッファ
104、210 スイッチ
105、214 エンコーダ
106、205、206、218 デコーダ
207 オーディオデコーダ
208 静止画デコーダ
211 制御部
212 システム制御部
213 アナログ放送チューナ
215 デジタル放送チューナ
216 解析部
217 表示部
219 デジタルI/F部
221 ドライブ
222 ユーザI/F部
223 外部入力部
230 User Privateパケット
231 トランスポートストリームシステムターゲットデコーダ
100 DVD disk 101, 201 Optical pickup 102, 202 ECC processing unit 103, 203, 220 Track buffer 104, 210 Switch 105, 214 Encoder 106, 205, 206, 218 Decoder 207 Audio decoder 208 Still image decoder 211 Control unit 212 System control 213 Analog broadcast tuner 215 Digital broadcast tuner 216 Analysis unit 217 Display unit 219 Digital I / F unit 221 Drive 222 User I / F unit 223 External input unit 230 User Private packet 231 Transport stream system target decoder

Claims (2)

映像情報と音声情報をシステムストリームに符合化して、その管理情報と共に情報記録媒体に記録する情報記録装置であって、第一の排他的な符合化規則にて符合化された第一のシステムストリームと、第一とは異なる第二の排他的な符合化規則にて符合化された第二のシステムストリームから、第三のシステムストリームを生成する符合化手段と、前記管理情報に前記システムストリームの符合化規則を示す情報を格納する管理情報生成手段とを具備し、前記符合化手段は、第三のシステムストリームが、1つの排他的な符合化規則にて符合化された区間を2つ以上連続させたように生成することを特徴とする情報記録装置。 An information recording apparatus that encodes video information and audio information into a system stream and records the information together with the management information on an information recording medium, the first system stream encoded according to a first exclusive encoding rule Encoding means for generating a third system stream from a second system stream encoded by a second exclusive encoding rule different from the first, and the management information Management information generating means for storing information indicating encoding rules, wherein the encoding means includes two or more sections in which the third system stream is encoded by one exclusive encoding rule. An information recording apparatus, characterized in that the information recording apparatus generates the data continuously. 請求項1に記載の情報記録装置であって、前記管理情報生成手段は前記第三のシステムストリームの符合化規則を示す情報として、参照元のシステムストリームと同じであるという情報と、前記第三のシステムストリームが、前記第一および第二のシステムストリームから生成されたことを示す情報とを、前記管理情報に格納することを特徴とする情報記録装置。 The information recording apparatus according to claim 1, wherein the management information generation unit includes information indicating that the third system stream encoding rule is the same as a reference source system stream, and the third system stream encoding rule. The information recording apparatus is characterized in that information indicating that the system stream is generated from the first and second system streams is stored in the management information.
JP2004361190A 2004-12-14 2004-12-14 Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method Pending JP2008052761A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2004361190A JP2008052761A (en) 2004-12-14 2004-12-14 Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method
PCT/JP2005/022945 WO2006064838A1 (en) 2004-12-14 2005-12-14 Information recording medium containing a stream which can be converted at a high speed, recording device and recording method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004361190A JP2008052761A (en) 2004-12-14 2004-12-14 Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method

Publications (1)

Publication Number Publication Date
JP2008052761A true JP2008052761A (en) 2008-03-06

Family

ID=36587894

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004361190A Pending JP2008052761A (en) 2004-12-14 2004-12-14 Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method

Country Status (2)

Country Link
JP (1) JP2008052761A (en)
WO (1) WO2006064838A1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4065128B2 (en) * 2000-11-29 2008-03-19 松下電器産業株式会社 Recording apparatus, reproducing apparatus, program, computer-readable recording medium and method
JP3862630B2 (en) * 2001-07-23 2006-12-27 松下電器産業株式会社 Information recording medium, apparatus and method for recording information on information recording medium

Also Published As

Publication number Publication date
WO2006064838A1 (en) 2006-06-22

Similar Documents

Publication Publication Date Title
JP3779985B2 (en) Information recording medium, apparatus and method for recording information on information recording medium
JP4648410B2 (en) Information recording medium recording stream capable of high-speed conversion, recording apparatus and recording method therefor
JP4177409B2 (en) Information recording apparatus and information recording method
JP4586073B2 (en) Information recording medium recording stream capable of high-speed conversion, recording apparatus and recording method therefor
JP4635059B2 (en) Information recording medium recording stream capable of high-speed conversion, recording apparatus and recording method therefor
JP4648411B2 (en) Information recording medium recording stream capable of high-speed conversion, recording apparatus and recording method therefor
JP4204005B2 (en) Apparatus and method for recording information on information recording medium
JP4204006B2 (en) Apparatus and method for recording information on information recording medium
JP4207164B2 (en) Apparatus and method for recording information on information recording medium
JP4464428B2 (en) Apparatus and method for recording information on information recording medium
JP4464429B2 (en) Apparatus and method for recording information on information recording medium
JP4204007B2 (en) Apparatus and method for recording information on information recording medium
JP2008052761A (en) Information recording medium in which stream which can be converted at high speed is recorded, its recording device/method, and conversion device/method