JP2002118826A - Data transfer method - Google Patents

Data transfer method

Info

Publication number
JP2002118826A
JP2002118826A JP2000309702A JP2000309702A JP2002118826A JP 2002118826 A JP2002118826 A JP 2002118826A JP 2000309702 A JP2000309702 A JP 2000309702A JP 2000309702 A JP2000309702 A JP 2000309702A JP 2002118826 A JP2002118826 A JP 2002118826A
Authority
JP
Japan
Prior art keywords
packet
data
stream
shc
adaptation field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000309702A
Other languages
Japanese (ja)
Other versions
JP3645479B2 (en
Inventor
Akito Mori
玲人 森
Akio Ichikawa
明男 市川
Takeshi Hayama
剛 葉山
Shinichiro Shirai
慎一郎 白井
Yukitake Shimizu
幸毅 清水
Kaoru Hishikawa
薫 菱川
Ryoji Ono
良治 大野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2000309702A priority Critical patent/JP3645479B2/en
Publication of JP2002118826A publication Critical patent/JP2002118826A/en
Application granted granted Critical
Publication of JP3645479B2 publication Critical patent/JP3645479B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a data transfer method by which a multimedia device, which stores a stream resulting from digitizing video data and audio data, indexes positions of a sequence header code, a GOP(Group of Picture) start code, a picture start code or the like included in the stream, uses index data to read the stream from the midway or up to the midway thereof from a recording medium and reproduces the read stream, can correctly decode a TS(Transport Stream) without destroying a structure of the TS or a PES(Packetized Elementary Stream) even when a processed stream is the TS. SOLUTION: The multimedia device processes a TS packet including any of the sequence header code, the GOP start code, and the picture start code when reading stream data from a recording medium to eliminate excess data and inserts a header of a PES packet as required.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEG(Moving
Picture Experts Group)2−TS(TransportStrea
m;トランスポートストリーム)を入力し、その中の特
定のコードを検出しながら記録媒体に記録し、記録媒体
中のストリームデータを、復号を行なう再生装置へ転送
するデータ転送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an MPEG (Moving
Picture Experts Group) 2-TS (TransportStrea
m; a transport stream), a specific code in the stream is detected and recorded on a recording medium, and the stream data in the recording medium is transferred to a reproducing apparatus for decoding.

【0002】[0002]

【従来の技術】近年、MPEG1、MPEG2等のデジ
タル圧縮技術の標準化が進み、また、高性能なCPU、
メモリ、蓄積媒体が低価格で入手できるようになってき
ている。そこで、映像データや音声データをデジタル化
して蓄積し、蓄積されたデータを再生するマルチメディ
ア機器が数多く商品化されつつある。
2. Description of the Related Art In recent years, digital compression techniques such as MPEG1 and MPEG2 have been standardized, and high-performance CPUs,
Memory and storage media are becoming available at lower prices. Therefore, many multimedia devices that digitize and store video data and audio data and reproduce the stored data are being commercialized.

【0003】このようなマルチメディア機器の場合、ス
トリームの途中から再生したり、追っかけ再生や、早速
りなどの特殊再生を行なう必要があるが、MPEGを用
いたシステムでは、フレーム内符号化されたフレームか
ら転送したり、フレーム内符号化とフレーム間符号化の
単位となるGOP(Group of Picture)を単位として転
送したり、フレーム内符号化されたフレームだけを転送
するなど、フレーム内符号化されたフレームや、GOP
の起点となるシーケンスヘッダコード(以後、SHCと
記す)、GOP開始コード(以後、GSCと記す)、ピ
クチャ開始コード(以後、PSCと記す)のいずれかを
インデックシングして、その位置からのストリームを記
録媒体から読み出し、復号を行なう装置へ転送すること
によって、再生を行なうことが多い。
[0003] In the case of such a multimedia device, it is necessary to perform playback from the middle of the stream, or to perform special playback such as chase playback or fast playback. However, in a system using MPEG, intra-frame encoding is performed. Intra-frame coded, such as transfer from frame, transfer in GOP (Group of Picture) as a unit of intra-frame coding and inter-frame coding, or transfer of only intra-coded frames Frame, GOP
Of a sequence header code (hereinafter, referred to as SHC), a GOP start code (hereinafter, referred to as GSC), or a picture start code (hereinafter, referred to as PSC) as a starting point of Is often read out from a recording medium and transferred to a device that performs decoding.

【0004】例えば、特開平10−285555号公報
には、SHC(シーケンスヘッダコード)の先頭位置が
セクタの先頭部に一致するよう記録する技術が開示され
ている。また、特開平7−170488号公報には、S
HCの先頭位置からデータを読み出す技術が開示されて
いる。
For example, Japanese Patent Laid-Open No. Hei 10-285555 discloses a technique for recording an SHC (sequence header code) so that the head position coincides with the head of a sector. Japanese Patent Application Laid-Open No. 7-170488 discloses S
A technique for reading data from the head position of the HC is disclosed.

【0005】これらの従来技術は、映像がエレメンタリ
ストリーム(Elementary Stream;以後、ESと記す)
で構成されているときには問題はないが、多重化された
ストリームを扱うときには、対応できない場合が発生す
る。
[0005] In these conventional techniques, a video is an elementary stream (hereinafter, referred to as ES).
There is no problem when the multiplexed stream is composed, but there is a case where the multiplexed stream cannot be dealt with.

【0006】MPEG2では、ESのほかにも、ESを
複数のパケットに分割したパケッタイズドエレメンタリ
ストリーム(Packetized Elementary Stream;以後、P
ESと記す)や、PESを分割したトランスポートスト
リーム(Transport Stream;以後、TSと記す)や、複
数のPESパケットをパック化した構成を持つプログラ
ムストリーム(Program Stream;以後PS)という構成
をとることがある。
In MPEG2, in addition to ES, packetized elementary stream (Packetized Elementary Stream; hereinafter referred to as P)
ES), a transport stream obtained by dividing a PES (hereinafter referred to as TS), and a program stream (Program Stream; hereinafter referred to as PS) having a configuration in which a plurality of PES packets are packed. There is.

【0007】特に、TSは、映像、音声、データを多重
化して扱えたり、固定長のパケット単位で転送すること
が出来るなどの理由から、デジタル放送などで利用され
ている。
[0007] In particular, TS is used in digital broadcasting and the like because it can handle video, audio, and data in a multiplexed manner, and can transfer fixed-length packets.

【0008】図8に、TSを構成するパケットの構造を
示す。TSパケットは、4バイト固定長のパケットヘッ
ダ、可変長のアダプテーションフィールド及びペイロー
ドから構成される、188バイト固定長のパケットであ
る。
FIG. 8 shows the structure of a packet constituting a TS. The TS packet is a fixed-length 188-byte packet composed of a 4-byte fixed-length packet header, a variable-length adaptation field, and a payload.

【0009】パケットヘッダは、同期バイト、PID、
アダプテーションフィールド制御フラグ、巡回カウン
タ、その他フラグによって構成される。同期バイトは、
その位置がTSパケットの先頭であることを示すコード
を含む1バイトデータである。PIDは、パケットの識
別を行なうための13ビットで表された番号であり、映
像や音声は、それぞれ異なるPIDを持つ複数のTSパ
ケットのペイロード中に分割して伝送される。アダプテ
ーション制御フラグは、そのパケット中にアダプテーシ
ョンフィールドやペイロードが含まれているかを示す2
ビットのフラグである。図8の(a)は、アダプテーシ
ョンフィールドとペイロードが含まれている場合のパケ
ット構造を示し、図8の(b)は、ペイロードのみが含
まれている場合のパケット構造を示している。巡回カウ
ンタは、同じPIDを持つTSパケット間で、0x00
から0x0fまでの値を巡回するように設定された値を
含む4ビットのデータである。その他のフラグには、ペ
イロード中に新たなPESパケットが開始されることを
示すフラグ等がある。
The packet header includes a synchronization byte, a PID,
It is composed of an adaptation field control flag, a cyclic counter, and other flags. The sync byte is
This is 1-byte data including a code indicating that the position is the head of the TS packet. The PID is a 13-bit number for identifying a packet, and video and audio are divided into payloads of a plurality of TS packets having different PIDs and transmitted. The adaptation control flag indicates whether an adaptation field or a payload is included in the packet.
This is a bit flag. FIG. 8A shows a packet structure when the adaptation field and the payload are included, and FIG. 8B shows a packet structure when only the payload is included. The cyclic counter indicates 0x00 between TS packets having the same PID.
4-bit data including a value set so as to circulate values from 0x0f to 0x0f. The other flags include a flag indicating that a new PES packet is started in the payload.

【0010】アダプテーションフィールドは、アダプテ
ーションフィールド長、フラグ、オプショナルフィール
ド、スタッフィングバイトから構成される。アダプテー
ションフィールド長は、フラグ以降のアダプテーション
フィールドの長さをバイト単位で表した1バイトデータ
である。オプショナルフィールドは、同期情報などが含
まれる領域であり、フラグによって情報の有無が示され
た可変長の領域である。スタッフィングバイトは、ダミ
ーのデータであり、アダプテーションフィールドの残り
領域を満たす。
[0010] The adaptation field includes an adaptation field length, a flag, an optional field, and a stuffing byte. The adaptation field length is 1-byte data representing the length of the adaptation field after the flag in byte units. The optional field is an area including synchronization information and the like, and is a variable-length area in which the presence or absence of information is indicated by a flag. The stuffing byte is dummy data and fills the remaining area of the adaptation field.

【0011】ペイロードには、伝送すべきデータが含ま
れる。
[0011] The payload includes data to be transmitted.

【0012】PESは、TSやPSを構成する基本要素
であり、両ストリーム間の変換を可能とするための中間
ストリームである。図9に、PESを構成するパケット
の構造を示す。
The PES is a basic element constituting a TS or a PS, and is an intermediate stream for enabling conversion between the two streams. FIG. 9 shows a structure of a packet constituting the PES.

【0013】先頭開始コードは、その位置がPESパケ
ットの先頭であることを示す固定値を含む3バイトデー
タである。ストリームIDは、PESパケット中に含ま
れるESの種別(映像、音声など)を識別するための番
号を含む1バイトデータである。パケット長は、PES
パケット中のバイト数を規定する値を含む2バイトデー
タである。PESパケット中のデータが映像ESの場合
のみ、パケット長が規定されない値0を設定することが
出来る。PESヘッダ長は、コンディショナルコーディ
ング領域のバイト数を規定する1バイトデータである。
コンディショナルコーディングは、14ビットのフラグ
によって情報の有無が示された可変長の領域である。パ
ケットデータは、伝送すべきESデータが含まれる。
The head start code is 3-byte data including a fixed value indicating that the position is the head of the PES packet. The stream ID is 1-byte data including a number for identifying the type of ES (video, audio, etc.) included in the PES packet. Packet length is PES
This is 2-byte data including a value defining the number of bytes in the packet. Only when the data in the PES packet is the video ES, the value 0 whose packet length is not specified can be set. The PES header length is 1-byte data that defines the number of bytes in the conditional coding area.
Conditional coding is a variable-length area in which the presence or absence of information is indicated by a 14-bit flag. The packet data includes ES data to be transmitted.

【0014】映像ストリームは、ESストリームをPE
Sパケットに分割して、さらにTSパケットに分割され
た形式で伝送される。図10に、TSパケットとPES
パケットとESの関係を示す。
[0014] For the video stream, the ES stream is converted to PE.
It is divided into S packets and transmitted in a form further divided into TS packets. FIG. 10 shows TS packets and PES
4 shows a relationship between a packet and an ES.

【0015】映像ストリームは、フレーム内符号化され
たフレームを表すピクチャデータと、フレーム間符号化
されたフレームを表すピクチャデータで構成され、各デ
ータは、PSC(ピクチャ開始コード)で始まる領域に
格納される。また、ストリーム中には、GOP(グルー
プオブピクチャ)を表すためのGSC(GOP開始コー
ド)やSHC(シーケンスヘッダコード)が挿入されて
いる。このストリームを分割したものがPESパケット
であり、さらにTSパケットに分割される。
The video stream is composed of picture data representing an intra-coded frame and picture data representing an inter-coded frame, and each data is stored in an area starting with a PSC (picture start code). Is done. In the stream, GSC (GOP start code) and SHC (sequence header code) for representing a GOP (group of pictures) are inserted. PES packets are obtained by dividing this stream, and are further divided into TS packets.

【0016】[0016]

【発明が解決しようとする課題】ここで、ストリームの
途中から再生するために、GOPの起点となるSHCか
らのデータを転送する場合、SHCがPESパケットや
TSパケット内でどのように格納されているかが問題と
なる。図10に示した例では、SHCは、TSパケット
ではTS2とTS8に、PESパケットではPES1と
PES3に格納されている。
Here, when transferring data from the SHC which is the starting point of a GOP in order to play back from the middle of a stream, how SHC is stored in a PES packet or a TS packet is described. Is a problem. In the example shown in FIG. 10, the SHC is stored in TS2 and TS8 in the TS packet, and in PES1 and PES3 in the PES packet.

【0017】SHCから再生するためにSHC以降のデ
ータを転送すると、TSパケットの途中から再生するこ
とになり、TSパケットのデータが188バイト毎のバ
ウンダリに対してずれてしまう。
When data after the SHC is transferred to reproduce from the SHC, the data is reproduced from the middle of the TS packet, and the data of the TS packet is shifted with respect to the boundary of every 188 bytes.

【0018】また、SHCを含むTSパケットの開始位
置から再生しようとした場合には、その基本要素である
PESパケットが途中で切れてしまうため、異常な状態
で転送されてしまう。
Further, when an attempt is made to reproduce the TS packet including the SHC from the start position, the PES packet which is a basic element thereof is truncated on the way, and is transferred in an abnormal state.

【0019】早送りのためにピクチャ単位でデータを転
送する場合も、同様である。PSCからデータを転送し
た場合は、TSパケットを途中から再生することにな
り、また、PSCを含むTSパケットの開始位置から再
生しようとしても、PESパケットが途中で切れてしま
うため、異常な状態で転送されてしまう。
The same applies to the case of transferring data in picture units for fast-forwarding. When data is transferred from the PSC, the TS packet is reproduced from the middle, and even if an attempt is made to reproduce from the start position of the TS packet including the PSC, the PES packet is cut off in the middle, so that an abnormal state is caused. Will be transferred.

【0020】再生を停止するために、次のSHCが現れ
るまでのデータを転送する場合にも、同様な事態が発生
する。
A similar situation occurs when transferring data until the next SHC appears in order to stop reproduction.

【0021】このような構造が異常なストリームを、復
号を行なう装置へ転送すると、復号できない、もしくは
異常な動作をすることが予想される。従って、従来技術
のように、SHCからのデータを読み出したり、SHC
を含むTSパケットから読み出すのでは、このようなス
トリームを再生することが出来ない。
When a stream having such an abnormal structure is transferred to a decoding device, it is expected that the stream cannot be decoded or an abnormal operation is performed. Therefore, as in the prior art, data is read from the SHC,
However, such a stream cannot be reproduced by reading from a TS packet that includes a.

【0022】本発明は、このような問題に鑑みなされた
ものであり、その目的とするところは、映像データや音
声データをデジタル化したストリームを蓄積し、その中
に含まれるデータのSHC、GSC、PSCなどの位置
をインデックシングし、インデックスデータを利用し
て、ストリームの途中から、もしくは途中までを再生す
るようなマルチメディア機器において、扱うストリーム
がTSストリームであった場合においても、TSやPE
Sの構造を破壊せず、正しく復号を行なうことが出来る
ようにすることにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to store a digitized stream of video data and audio data and to store SHC and GSC data contained therein. , PSC, etc., and in a multimedia device that plays back from or to the middle of the stream using the index data, even if the stream to be handled is a TS stream,
An object of the present invention is to enable correct decoding without destroying the structure of S.

【0023】[0023]

【課題を解決するための手段】本発明では、上記した目
的を達成するため、記録媒体からストリームデータを読
み出す際に、転送すべきSHCが含まれるTSパケット
を加工する。
According to the present invention, in order to achieve the above object, when reading stream data from a recording medium, a TS packet containing an SHC to be transferred is processed.

【0024】例えば、再生などの場合で、SHC以降の
データが必要な場合、そのTSパケットからSHC以前
のデータを削除すればよい。この場合には、SHCを含
むPESの構造が崩れてしまうが、PESパケットのヘ
ッダを追加することにより、新たなPESを作成するこ
とによって対処する。PESパケットのヘッダは、図9
で示しているように9バイトで構成される。PESヘッ
ダの挿入位置としては、シーケンスヘッダを含むTSに
挿入する場合と、SHCを含むTSの前に、PESヘッ
ダで構成されるTSを含む場合が考えられる。
For example, when data after the SHC is required for reproduction or the like, the data before the SHC may be deleted from the TS packet. In this case, the structure of the PES including the SHC is destroyed, but this is dealt with by creating a new PES by adding a header of the PES packet. The header of the PES packet is shown in FIG.
It is composed of 9 bytes as shown by. As the insertion position of the PES header, there may be a case where the TS is inserted into the TS including the sequence header, and a case where the TS including the PES header is included before the TS including the SHC.

【0025】また、再生停止などの場合で、SHC以前
のデータが必要な場合、そのTSパケットからSHC以
降のデータを削除すればよい。削除では、ペイロードの
データをずらして、アダプテーションフィールドの長さ
を長くし、その領域をスタッフィングバイトで埋めれば
良い。
When data before the SHC is required, for example, when reproduction is stopped, the data after the SHC may be deleted from the TS packet. In the deletion, the length of the adaptation field may be increased by shifting the data of the payload, and the area may be filled with stuffing bytes.

【0026】また、早送りなど特定のピクチャだけを抽
出したいような場合は、そのピクチャの次に位置するピ
クチャのPSC以前のデータが必要となる。この場合
は、該当するPSCを含むTSから、PSC以降のデー
タを削除すればよい。
When it is desired to extract only a specific picture, such as fast forward, data before the PSC of the picture located next to that picture is required. In this case, the data after the PSC may be deleted from the TS including the corresponding PSC.

【0027】[0027]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0028】<第1実施形態>本実施形態は、特定コー
ドからのデータを転送したい場合に、特定コードを含む
TSパケットを加工し、特定コード以前のデータを削除
して、データを転送するようにした、データ転送方法の
適用例である。なお、本実施形態では、特定コードとし
てSHCを用いるが、GSCやPSCなどに対して行な
ってもよい。
<First Embodiment> In this embodiment, when it is desired to transfer data from a specific code, a TS packet including the specific code is processed, data before the specific code is deleted, and the data is transferred. This is an application example of the data transfer method described above. In the present embodiment, SHC is used as the specific code, but may be applied to GSC or PSC.

【0029】図4は、本実施形態によるパケット加工の
例を示す図である。図4中で上に位置するTSパケット
は、その中にSHCを含むパケットを表している。SH
C以降に位置する斜線領域は、SHCと共に転送したい
データが含まれた領域であり、SHC以前の点模様の領
域は、SHC以前のGOPに含まれているデータであ
る。このデータを転送すると、TSを復号するデコーダ
が異常を発生する場合があるため、TSパケットからS
HC以前の点模様の領域のデータを削除する。ただし、
そのまま削除してしまうと、該TSに属するPESパケ
ットは、ヘッダのないパケットとなってしまうため、P
ESパケットのヘッダを挿入する必要が有る。
FIG. 4 is a diagram showing an example of packet processing according to the present embodiment. The TS packet located at the top in FIG. 4 represents a packet including SHC therein. SH
The hatched area located after C is an area including data to be transferred together with the SHC, and the dot pattern area before the SHC is data included in a GOP before the SHC. When this data is transferred, the decoder that decodes the TS may cause an error.
The data of the dot pattern area before the HC is deleted. However,
If the PES packet is deleted as it is, the PES packet belonging to the TS becomes a packet without a header.
It is necessary to insert the header of the ES packet.

【0030】本実施形態では、この領域を削除するため
に、アタプテーションフィールドのスタッフィングバイ
トの機能を利用する。データを削除する代わりに、オプ
ショナルフィールドを持たないアダプテーションフィー
ルドを作成し、削除データの領域をスタッフィングバイ
トで埋めて、新たなPESヘッダをSHCの前に挿入
し、該TSパケットがPESパケットの開始であること
を示すフラグをONにすることによって、目的のTSパ
ケットを得ることが出来る。
In the present embodiment, the function of the stuffing byte of the adaptation field is used to delete this area. Instead of deleting the data, create an adaptation field without optional fields, fill the area of the deleted data with stuffing bytes, insert a new PES header before the SHC, and the TS packet starts at the start of the PES packet. The target TS packet can be obtained by turning on the flag indicating that there is.

【0031】図4中で下に位置するTSパケットが、加
工後のTSパケットである。オプショナルフィールドの
ないアダプテーションフィールドを作成するために、ア
ダプテーションフィールド長とアダプテーションフィー
ルド内のフラグを表す領域を設け、フラグには、オプシ
ョナルフィールドがないことを示す値を設定し(図中O
FF)、アダプテーションフィールド長を削除したデー
タよりも10バイト少ない値に設定する。これは、新た
なPESパケットヘッダの9バイトを挿入するためと、
アダプテーションフィールド長の領域はカウントされな
いためである。アダプテーションフィールドの残りの領
域には、スタッフィングバイトを挿入する。
The lower TS packet in FIG. 4 is the processed TS packet. In order to create an adaptation field without an optional field, an area indicating an adaptation field length and a flag in the adaptation field is provided, and a value indicating that there is no optional field is set in the flag (O in the figure).
FF), the adaptation field length is set to a value smaller by 10 bytes than the deleted data. This is to insert the 9 bytes of the new PES packet header,
This is because the area of the adaptation field length is not counted. A stuffing byte is inserted in the remaining area of the adaptation field.

【0032】図1は、本実施形態による、SHCを含む
TSパケットを加工し、SHC以前のデータを削除する
処理を示すフローチャートである。
FIG. 1 is a flowchart showing a process of processing a TS packet including an SHC and deleting data before the SHC according to the present embodiment.

【0033】まず、SHCを含むパケットに注目し、該
当TS先頭からのオフセットバイト数を求める(ステッ
プS101)。以降、この値をXとして表す。フラグ領
域内の、該当TSが新たなPESパケットの開始である
ことを表すビットを、ONにする(ステップS10
2)。アダプテーションフィールド制御フラグをONに
し、該当TSにアダプテーションフィールドが存在する
ことを表す(ステップS103)。
First, paying attention to the packet including the SHC, the number of offset bytes from the head of the corresponding TS is obtained (step S101). Hereinafter, this value is represented as X. A bit indicating that the corresponding TS is the start of a new PES packet in the flag area is turned ON (step S10).
2). The adaptation field control flag is turned on to indicate that the adaptation field exists in the corresponding TS (step S103).

【0034】次に、アダプテーションフィールド長の値
として、X−14を設定し(ステップS104)、アダ
プテーションフィールド内のフラグ領域の値として全て
のフラグをOFFにした値を設定する(ステップS10
5)。これによって、このTS内にオプショナルフィー
ルドがないことが表される。
Next, X-14 is set as the value of the adaptation field length (step S104), and a value in which all the flags are turned off is set as the value of the flag area in the adaptation field (step S10).
5). This indicates that there is no optional field in this TS.

【0035】続いて、パケット先頭から7バイト目の位
置から、X−15バイトのスタッフィングバイトを挿入
し(ステップS106)、次のバイト位置からPESヘ
ッダを挿入する(ステップS107)。
Subsequently, a stuffing byte of X-15 bytes is inserted from the seventh byte position from the head of the packet (step S106), and a PES header is inserted from the next byte position (step S107).

【0036】このフローチャートの処理によって、該当
するTSは、新たなPESパケットから開始され、か
つ、その中に含まれるESもSHCから開始される。
By the processing of this flowchart, the corresponding TS is started from a new PES packet, and the ES contained therein is also started from the SHC.

【0037】GSCやPSCに対して処理する場合は、
フローチャート中のSHCをGSCやPSCに置き換え
て実行すればよい。GSCやPSCを持つパケットに対
して処理を行なった場合は、該当するTSは、新たなP
ESパケットから開始され、かつ、その中に含まれるE
SもGSCやPSCから開始されるようになる。
When processing for GSC or PSC,
What is necessary is just to replace SHC in a flowchart with GSC or PSC, and to perform. When processing is performed on a packet having GSC or PSC, the corresponding TS
E that starts with and is contained in the ES packet
S also starts from GSC or PSC.

【0038】<第2実施形態>本実施形態は、特定コー
ドからのデータを転送したい場合に、特定コードを含む
TSパケットを加工し、特定コード以前のデータを削除
して、加工するTSパケットの前に新たなPESヘッダ
を含むTSパケットを配置して、データを転送する、デ
ータ転送方法の適用例である。本実施形態でも、特定コ
ードとしてSHCを用いるが、GSCやPSCなどに対
して行なってもよい。
<Second Embodiment> In this embodiment, when it is desired to transfer data from a specific code, a TS packet including the specific code is processed, data before the specific code is deleted, and the TS packet to be processed is deleted. This is an application example of a data transfer method in which a TS packet including a new PES header is arranged before transferring data. In the present embodiment, the SHC is used as the specific code, but may be applied to a GSC, a PSC, or the like.

【0039】図5は、本実施形態によるパケット加工の
例を示す図である。図5中で上に位置するTSパケット
は、その中にSHCを含むパケットを表している。第1
実施形態と同様に、SHC以降に位置する斜線領域は、
SHCと共に転送したいデータが含まれた領域であり、
SHC以前の点模様の領域は、SHC以前のGOPに含
まれているデータである。従って、TSパケットから、
この点模様の領域のデータを削除すればよい。ただし、
そのまま削除してしまうと、該TSに属するPESパケ
ットは、ヘッダのないパケットとなってしまうため、P
ESパケットのヘッダを挿入する必要が有る。
FIG. 5 is a diagram showing an example of packet processing according to the present embodiment. The TS packet located at the top in FIG. 5 represents a packet including SHC therein. First
Similarly to the embodiment, the hatched area located after the SHC is:
This is the area that contains the data you want to transfer with the SHC,
The area of the dot pattern before the SHC is data included in the GOP before the SHC. Therefore, from the TS packet,
What is necessary is just to delete the data of this dot pattern area. However,
If the PES packet is deleted as it is, the PES packet belonging to the TS becomes a packet without a header.
It is necessary to insert the header of the ES packet.

【0040】本実施形態では、該当TSの前に位置する
TSパケットを作成し、PESパケットのヘッダとSH
Cをその中に含ませる。このパケットは、PESパケッ
トヘッダとSHCコードのみをデータとして持つパケッ
トである。PIDやフラグ、カウンタは必要な値に設定
する。
In the present embodiment, a TS packet located before the corresponding TS is created, and the header of the PES packet and the SH
C is included therein. This packet is a packet having only a PES packet header and an SHC code as data. The PID, flag, and counter are set to necessary values.

【0041】また、該当TSから点模様の領域とSHC
を削除するために、アダプテーションフィールドのスタ
ッフィングバイトの機能を利用する。データを削除する
代わりに、オプショナルフィールドを持たないアダプテ
ーションフィールドを作成し、削除データの領域をスタ
ッフィングバイトで埋めることで、目的のTSパケット
を得ることが出来る。
Further, the area of the dot pattern from the corresponding TS and the SHC
Use the stuffing byte function of the adaptation field to remove Instead of deleting the data, an adaptation field having no optional field is created, and the area of the deleted data is filled with stuffing bytes, whereby a target TS packet can be obtained.

【0042】図5中で下に位置するTSパケットが、加
工後のTSパケットである。同図中の右下に位置するパ
ケットは、SHCを含んでいたパケットであり、オプシ
ョナルフィールドのないアダプテーションフィールドを
作成するために、アダプテーションフィールド長とアダ
プテーションフィールド内のフラグを表す領域を設け、
フラグには、オプショナルフィールドがないことを示す
値を設定し(図中OFF)、アダプテーションフィール
ド長の値として、削除したデータよりも1バイト少ない
値に設定する。アダプテーションフィールドの残りの領
域には、スタッフィングバイトを挿入する。
The lower TS packet in FIG. 5 is the processed TS packet. The packet located at the lower right in the figure is a packet containing the SHC, and in order to create an adaptation field without an optional field, an area indicating an adaptation field length and a flag in the adaptation field is provided,
A value indicating that there is no optional field is set in the flag (OFF in the figure), and the value of the adaptation field length is set to a value one byte smaller than the deleted data. A stuffing byte is inserted in the remaining area of the adaptation field.

【0043】図5中の左下に位置するパケットは、SH
Cを含んでいたTSパケットの前に挿入するTSパケッ
トであり、ペイロード中にPESパケットヘッダとSH
Cを含んでいる。ペイロード領域を短くするために、オ
プショナルフィールドのないアダプテーションフィール
ドを作成している。アダプテーションフィールド長とア
ダプテーションフィールド内のフラグを表す領域を設
け、フラグには、オプショナルフィールドがないことを
示す値を設定し(図中OFF)、アダプテーションフィ
ールド長を、値170に設定する。この値は、スタッフ
ィングバイトとアダプテーション内のフラグを合せた領
域数を示す。TSヘッダ内のPIDには、図中の右下に
位置するパケットと同一の値を設定し、該TSパケット
がPESパケットの開始であることを示すフラグをON
にする。また、カウンタの値は、図中右下に位置するパ
ケットの値よりも1つ小さい値を設定する。アダプテー
ション制御フラグには、アダプテーションが含まれてい
ることを示す値を設定する。
The packet located at the lower left in FIG.
C is a TS packet inserted before the TS packet containing C, and a PES packet header and SH
C. An adaptation field without optional fields is created to shorten the payload area. An area representing an adaptation field length and a flag in the adaptation field is provided, and a value indicating that there is no optional field is set in the flag (OFF in the figure), and the adaptation field length is set to a value 170. This value indicates the number of areas including the stuffing byte and the flag in the adaptation. The PID in the TS header is set to the same value as the packet located at the lower right in the figure, and the flag indicating that the TS packet is the start of the PES packet is turned ON.
To Also, the value of the counter is set to a value one smaller than the value of the packet located at the lower right in the figure. In the adaptation control flag, a value indicating that the adaptation is included is set.

【0044】図2は、本実施形態による、SHCを含む
TSパケットを加工し、SHC以前のデータを削除する
処理のフローチャートである。
FIG. 2 is a flowchart of a process for processing a TS packet including an SHC and deleting data before the SHC according to the present embodiment.

【0045】まず、SHCを含むパケットに対して処理
を行なう。SHCを含むパケットに注目し、該当TS先
頭からのオフセットバイト数を求める(ステップS20
1)。以降、この値をXとして表す。アダプテーション
フィールド制御フラグをONにし、該当TSにアダプテ
ーションフィールドが存在することを表す(ステップS
202)。
First, processing is performed on the packet including the SHC. Attention is paid to the packet including the SHC, and the number of offset bytes from the head of the corresponding TS is obtained (step S20).
1). Hereinafter, this value is represented as X. The adaptation field control flag is turned ON to indicate that the adaptation field exists in the corresponding TS (step S
202).

【0046】次に、アダプテーションフィールド長の値
としてX−1を設定する(ステップS203)。アダプ
テーションフィールド内のフラグ領域の値として全ての
フラグをOFFにした値を設定する(ステップS20
4)。これによって、このTS内にオプショナルフィー
ルドがないことが表される。
Next, X-1 is set as the value of the adaptation field length (step S203). A value in which all the flags are turned off is set as the value of the flag area in the adaptation field (step S20).
4). This indicates that there is no optional field in this TS.

【0047】次に、パケット先頭から7バイト目の位置
から、X−2バイトのスタッフィングバイトを挿入する
(ステップS205)。
Next, a stuffing byte of X-2 bytes is inserted from the position of the seventh byte from the head of the packet (step S205).

【0048】次に、1つ前のTSパケットを処理するた
めに、1つ前のTSの先頭位置に移動する(ステップS
206)。まず、当該TSのヘッダを設定する(ステッ
プS207)。ヘッダには、同期バイト、フラグ領域、
カウンタ、PIDが含まれる。カウンタは、ステップS
201〜S205で処理したTSパケットの値よりも1
つ少ない値を設定し、PIDは同一の値を設定する。ま
た、フラグでは、当該TSからPESパケットが開始さ
れることを示すフラグとアダプテーションフィールドを
含むことを示すフラグを設定する。
Next, in order to process the immediately preceding TS packet, it moves to the head position of the immediately preceding TS (step S).
206). First, the header of the TS is set (step S207). The header contains a synchronization byte, a flag area,
A counter and a PID are included. The counter is set in step S
1 less than the value of the TS packet processed in 201 to S205
A smaller value is set, and the same value is set for the PID. In the flag, a flag indicating that a PES packet is started from the TS and a flag indicating that the TS includes an adaptation field are set.

【0049】次に、アダプテーションフィールド長を格
納する領域に、固定値170を設定し(ステップS20
8)、アダプテーションフィールド内のフラグを、オプ
ショナルフィールドを含まないことを示す値に設定する
(ステップS209)。
Next, a fixed value 170 is set in the area for storing the adaptation field length (step S20).
8) The flag in the adaptation field is set to a value indicating that no optional field is included (step S209).

【0050】次に、パケット先頭7バイト目から、16
9バイトのスタッフィングバイトを挿入し(ステップS
210)、最後に、PESパケットのヘッダと、SHC
を挿入する(ステップS211、ステップS212)。
Next, from the first byte of the packet, 16
9 stuffing bytes are inserted (step S
210) Finally, the header of the PES packet and the SHC
Is inserted (step S211, step S212).

【0051】このフローチャートの処理によって、TS
は、新たなPESパケットから開始され、かつ、その中
に含まれるESも、SHCから開始される。
By the processing of this flowchart, TS
Is started from a new PES packet, and the ES contained therein is also started from the SHC.

【0052】GSCやPSCに対して処理する場合は、
フローチャート中のSHCをGSCやPSCに置き換え
て実行すればよい。GSCやPSCを持つパケットに対
して処理を行なった場合は、該当するTSは、新たなP
ESパケットから開始され、かつ、その中に含まれるE
Sも、GSCやPSCから開始されるようになる。
When processing GSC or PSC,
What is necessary is just to replace SHC in a flowchart with GSC or PSC, and to perform it. When processing is performed on a packet having GSC or PSC, the corresponding TS
E that starts with and is contained in the ES packet
S also starts from GSC or PSC.

【0053】本実施形態では、SHCを含むTSからデ
ータを削除した後に、PESパケットヘッダを含むTS
を作成したが、逆の順番で行なっても構わない。また、
本実施形態では、SHCを前に位置するTSパケットに
挿入する方法を示したが、SHCを該当TSに残し、前
のTSパケットにはPESパケットヘッダのみを含ませ
る方法も考えられる。
In this embodiment, after data is deleted from the TS including the SHC, the TS including the PES packet header is deleted.
Was created, but may be performed in the reverse order. Also,
In the present embodiment, the method of inserting the SHC into the preceding TS packet has been described, but a method of leaving the SHC in the corresponding TS and including only the PES packet header in the previous TS packet is also conceivable.

【0054】<第3実施形態>本実施形態は、SHCま
でのデータを転送する場合に、SHCを含むTSパケッ
トを加工し、SHCを含むそれ以降のデータを削除し
て、データを転送する、データ転送方法の適用例であ
る。
<Third Embodiment> In the present embodiment, when transferring data up to the SHC, the TS packet containing the SHC is processed, the data after the SHC is deleted, and the data is transferred. This is an application example of a data transfer method.

【0055】図6は、本実施形態によるパケット加工の
例を示す図である。図6中で左に位置するTSパケット
は、元となるTSパケット中にアダプテーションフィー
ルドがない場合の加工前と加工後のTSパケットをそれ
ぞれ表し、図6中で右に位置するTSパケットは、元と
なるTSパケット中にアダプテーションフィールドがあ
る場合の加工前と加工後のTSパケットをそれぞれ表し
ている。
FIG. 6 is a diagram showing an example of packet processing according to the present embodiment. The TS packet located on the left side in FIG. 6 represents the TS packet before and after processing when there is no adaptation field in the original TS packet, and the TS packet located on the right side in FIG. Represents the pre-processing and post-processing TS packets when the adaptation field is included in the TS packet.

【0056】まず、アダプテーションフィールドが存在
する場合について説明する。図6中の右上のTSパケッ
ト内のSHC以前に位置する斜線領域は、転送したいデ
ータが含まれた領域であり、SHCとSHCの後に続く
点模様の領域は、次のGOPに含まれているデータであ
る。転送するデータを区切りの良いものとするために
は、このSHCと点模様のデータを削除すればよい。こ
の場合は、削除するデータの代わりに、アダプテーショ
ンフィールド中のスタッフィングバイト数を増加させる
ことによって対処することが出来る。図6中の右下のT
Sパケットが、SHCと点模様のデータを削除した後の
TSパケットである。
First, the case where the adaptation field exists will be described. The hatched area located before the SHC in the upper right TS packet in FIG. 6 is an area including the data to be transferred, and the area of the dot pattern following the SHC and the SHC is included in the next GOP. Data. In order to make the data to be transferred well separated, the SHC and the dot pattern data may be deleted. This can be dealt with by increasing the number of stuffing bytes in the adaptation field instead of the data to be deleted. T at the lower right in FIG.
The S packet is a TS packet after the SHC and the dot pattern data have been deleted.

【0057】次に、アダプテーションフィールドが存在
しない場合について説明する。図6中の左上のTSパケ
ット内のSHC以前に位置する斜線領域は、転送したい
データが含まれた領域であり、SHCとSHCの後に続
く点模様の領域は、次のGOPに含まれているデータで
ある。転送するデータを区切りの良いものとするために
は、アダプテーションフィールドが存在する場合と同様
に、このSHCと点模様のデータを削除すればよい。こ
の場合は、アダプテーションフィールドを作成し、削除
するデータの代わりにアダプテーションフィールド中を
スタッフィングバイトで満たすことによって、対処する
ことが出来る。
Next, the case where the adaptation field does not exist will be described. The hatched area located before the SHC in the upper left TS packet in FIG. 6 is an area including the data to be transferred, and the area of the dot pattern following the SHC and the SHC is included in the next GOP. Data. In order to make the data to be transferred well separated, the SHC and the dot pattern data may be deleted as in the case where the adaptation field exists. In this case, it is possible to deal with this by creating an adaptation field and filling the adaptation field with stuffing bytes instead of the data to be deleted.

【0058】図6中の左下のTSパケットが、SHCと
点模様のデータを削除した後のTSパケットである。ア
ダプテーションフィールドを作成するために、アダプテ
ーションフィールド長を格納する領域とアダプテーショ
ンフィールド内のフラグを用意し、残りをスタッフィン
グバイトとしている。アダプテーションフィールド長に
は、削除するデータ量から1を引いた値を、フラグに
は、オプショナルフィールドが含まれないことを示す値
を設定する。また、このTSには、アダプテーションフ
ィールドが含まれていることを示す値を、アダプテーシ
ョンフィールド制御フラグに設定する。
The TS packet at the lower left in FIG. 6 is the TS packet from which the data of the SHC and the dot pattern have been deleted. In order to create an adaptation field, an area for storing an adaptation field length and a flag in the adaptation field are prepared, and the rest is used as a stuffing byte. For the adaptation field length, a value obtained by subtracting 1 from the amount of data to be deleted is set, and for the flag, a value indicating that the optional field is not included is set. In addition, a value indicating that this TS includes an adaptation field is set in the adaptation field control flag.

【0059】図3は、本実施形態による、SHCを含む
TSパケットを加工し、SHC以降のデータを削除する
処理のフローチャートである。
FIG. 3 is a flowchart of a process of processing a TS packet including an SHC and deleting data after the SHC according to the present embodiment.

【0060】まず、SHCを含むパケットに注目し、該
当TS先頭からのオフセットバイト数を求める(ステッ
プS301)。以降、この値をXとして表す。
First, paying attention to the packet including the SHC, the number of offset bytes from the head of the corresponding TS is obtained (step S301). Hereinafter, this value is represented as X.

【0061】次に、該当TSのアダプテーション制御フ
ラグを確認し、アダプテーションフィールドが存在する
かをチェックする(ステップS302)。
Next, the adaptation control flag of the corresponding TS is confirmed, and it is checked whether an adaptation field exists (step S302).

【0062】ステップS302において、アダプテーシ
ョンフィールドが存在することが確認された場合、その
アダプテーションフィールド長を獲得する(ステップS
303)。以降、この値をYとして表す。
In step S302, when it is confirmed that the adaptation field exists, the length of the adaptation field is obtained (step S302).
303). Hereinafter, this value is represented as Y.

【0063】次に、SHCより前に位置するデータX−
Y−5バイトを、該当TSパケットの末尾にコピーし
(ステップS304)、パケット先頭からY+6バイト
目、パケット末尾から数えてX−Y−4バイト目の18
8−Xバイトの間をスタッフィングバイトで埋める(ス
テップS305)。最後に、アダプテーションフィール
ド長を、Y+188−Xで示される値に設定する(ステ
ップS306)。
Next, the data X-
The Y-5 byte is copied to the end of the corresponding TS packet (step S304), and the (Y + 6) th byte from the beginning of the packet and the XY-4th byte counting from the end of the packet are used.
The space between 8-X bytes is filled with a stuffing byte (step S305). Finally, the adaptation field length is set to a value represented by Y + 188-X (step S306).

【0064】一方、ステップS302において、アダプ
テーションフィールドが存在しないことが確認された場
合、SHCより前に位置するデータX−4バイトを、該
当TSパケットの末尾にコピーし(ステップS30
7)、パケット先頭から7バイト目、パケット末尾から
数えてX−3バイト目の186−Xバイトの間をスタッ
フィングバイトで埋める(ステップS308)。
On the other hand, if it is confirmed in step S302 that the adaptation field does not exist, the data X-4 bytes located before the SHC are copied to the end of the corresponding TS packet (step S30).
7) The space between the 186th and 186th bytes of the 7th byte from the beginning of the packet and the 3rd byte from the end of the packet is filled with stuffing bytes (step S308).

【0065】次に、アダプテーションフィールド長を格
納する領域に、187−Xで示される値を設定し(ステ
ップS309)、アダプテーションフィールド内のフラ
グに、オプショナルフィールドが含まれないことを示す
値を設定する(ステップS310)。最後に、TSヘッ
ダ内のアダプテーション制御フラグに、該当TSにはア
ダプテーションフィールドが含まれることを示す値に設
定する(ステップS311)。
Next, a value indicated by 187-X is set in the area for storing the adaptation field length (step S309), and a value indicating that the optional field is not included is set in the flag in the adaptation field. (Step S310). Finally, the adaptation control flag in the TS header is set to a value indicating that the corresponding TS includes an adaptation field (step S311).

【0066】このフローチャートの処理によって、TS
は、GOP単位で区切りのよい、目的となるデータまで
を含むストリームとなる。
By the processing of this flowchart, TS
Is a stream that includes data up to target data that is well-divided in GOP units.

【0067】<第4実施形態>本実施形態は、PSCま
でのデータを転送する場合に、PSCを含むTSパケッ
トを加工し、PSCを含むそれ以降のデータを削除し
て、データを転送する、データ転送方法の適用例であ
る。
<Fourth Embodiment> In the present embodiment, when transferring data up to the PSC, a TS packet including the PSC is processed, data after the PSC is deleted, and the data is transferred. This is an application example of a data transfer method.

【0068】図7は、本実施形態によるパケット加工の
例を示す図である。図7中で左に位置するTSパケット
は、元となるTSパケット中にアダプテーションフィー
ルドがない場合の加工前と加工後のTSパケットをそれ
ぞれ表し、図7中で右に位置するTSパケットは、元と
なるTSパケット中にアダプテーションフィールドがあ
る場合の加工前と加工後のTSパケットをそれぞれ表し
ている。
FIG. 7 is a diagram showing an example of packet processing according to the present embodiment. The TS packet located on the left side in FIG. 7 represents the TS packet before and after processing when there is no adaptation field in the original TS packet, and the TS packet located on the right side in FIG. Represents the pre-processing and post-processing TS packets when the adaptation field is included in the TS packet.

【0069】まず、アダプテーションフィールドが存在
する場合について説明する。図7中の右上のTSパケッ
ト内のPSC以前に位置する斜線領域は、転送したいデ
ータが含まれた領域であり、PSCとPSCの後に続く
点模様の領域は、次のピクチャに含まれているデータで
ある。転送するデータを区切りの良いものとするために
は、このPSCと点模様のデータを削除すればよい。こ
の場合は、削除するデータの代わりに、アダプテーショ
ンフィールド中のスタッフィングバイト数を増加させる
ことによって、対処することが出来る。図7中の右下の
TSパケットが、PSCと点模様のデータを削除した後
のTSパケットである。
First, the case where the adaptation field exists will be described. The hatched area located before the PSC in the upper right TS packet in FIG. 7 is an area including the data to be transferred, and the PSC and the dot pattern area following the PSC are included in the next picture. Data. In order to make the data to be transferred well separated, the PSC and the dot pattern data may be deleted. This can be dealt with by increasing the number of stuffing bytes in the adaptation field instead of the data to be deleted. The TS packet at the lower right in FIG. 7 is the TS packet after deleting the data of the PSC and the dot pattern.

【0070】次に、アダプテーションフィールドが存在
しない場合について説明する。図7中の左上のTSパケ
ット内のPSC以前に位置する斜線領域は、転送したい
データが含まれた領域であり、PSCとPSCの後に続
く点模様の領域は、次のピクチャに含まれているデータ
である。転送するデータを区切りの良いものとするため
には、アダプテーションフィールドが存在する場合と同
様に、このPSCと点模様のデータを削除すればよい。
この場合は、アダプテーションフィールドを作成し、削
除するデータの代わりにアダプテーションフィールド中
をスタッフィングバイトで満たすことによって、対処す
ることが出来る。
Next, the case where the adaptation field does not exist will be described. The hatched area located before the PSC in the upper left TS packet in FIG. 7 is an area containing data to be transferred, and the PSC and the dot pattern area following the PSC are included in the next picture. Data. In order to make the data to be transferred well separated, the PSC and the dot pattern data may be deleted as in the case where the adaptation field exists.
In this case, it is possible to deal with this by creating an adaptation field and filling the adaptation field with stuffing bytes instead of the data to be deleted.

【0071】図7中の左下のTSパケットが、PSCと
点模様のデータを削除した後のTSパケットである。ア
ダプテーションフィールドを作成するために、アダプテ
ーションフィールド長を格納する領域とアダプテーショ
ン内のフラグを用意し、残りをスタッフィングバイトと
している。アダプテーションフィールド長には、削除す
るデータ量から1を引いた値を、フラグには、オプショ
ナルフィールドが含まれないことを示す値を設定する。
また、このTSには、アダプテーションフィールドが含
まれていることを示す値を、アダプテーションフィール
ド制御フラグに設定する。
The TS packet at the lower left in FIG. 7 is the TS packet after deleting the data of the PSC and the dot pattern. In order to create an adaptation field, an area for storing the adaptation field length and a flag in the adaptation are prepared, and the rest is used as a stuffing byte. For the adaptation field length, a value obtained by subtracting 1 from the amount of data to be deleted is set, and for the flag, a value indicating that the optional field is not included is set.
In addition, a value indicating that this TS includes an adaptation field is set in the adaptation field control flag.

【0072】本実施形態の処理は、図3で示したフロー
チャートで、SHCをPSCに置き換えて実行すること
によって達成される。
The processing of this embodiment is achieved by replacing the SHC with the PSC in the flowchart shown in FIG.

【0073】このフローチャートの処理によって、TS
は、ピクチャ単位で区切りのよい、目的となるデータま
でを含むストリームとなる。
By the processing of this flowchart, TS
Is a stream including up to target data which is well-divided in picture units.

【0074】[0074]

【発明の効果】請求項1に係る発明では、ストリームを
構成するパケット内に含まれる余分なデータを削除して
転送することが出来るため、ストリームの途中から再生
を開始するような場合において、TSパケットを単位と
した転送を行なっても、余分なデータを含まないデータ
を転送することが出来る。
According to the first aspect of the present invention, since it is possible to delete and transfer extra data included in the packets constituting the stream, when the reproduction is started from the middle of the stream, the TS Even if the transfer is performed in packet units, it is possible to transfer data that does not include extra data.

【0075】請求項2に係る発明では、SHCから始ま
るデータを含むTSを転送することが出来るため、GO
Pを単位としてデータを転送するような場合において
も、TSパケットを単位とした、余分なデータを含まな
いデータを転送することが出来る。
According to the second aspect of the present invention, a TS including data starting from the SHC can be transferred.
Even in the case where data is transferred in units of P, data that does not include extra data in units of TS packets can be transferred.

【0076】請求項3に係る発明では、SHCがPES
パケットの途中から開始していても、新たなPESパケ
ットヘッダを含むPESパケットとして正しいデータを
送付することが出来るため、SHCを含むTSパケット
から転送を行なっても、復号を行なう装置が正しく動作
できるストリームを送出することが出来る。
In the invention according to claim 3, the SHC is PES.
Even if the packet is started in the middle of the packet, the correct data can be sent as a PES packet including a new PES packet header. Therefore, even if the transfer is performed from the TS packet including the SHC, the decoding device can operate correctly. Streams can be sent.

【0077】請求項4に係る発明では、新たに追加する
パケットは、固定長のパケットであり、また、SHCを
含むパケットに対しては、余分なデータを削除するだけ
で済むので、余分なデータを削除して、PESヘッダを
追加する仕組みを簡素化することが出来る。
According to the fourth aspect of the present invention, the newly added packet is a fixed-length packet. For a packet including the SHC, it is only necessary to delete the extra data. Can be deleted, and the mechanism for adding the PES header can be simplified.

【0078】請求項5に係る発明では、ストリームを構
成するパケットの末尾に位置する余分なデータを削除し
て転送することが出来る。
According to the fifth aspect of the present invention, it is possible to delete and transfer extra data located at the end of a packet constituting a stream.

【0079】請求項6に係る発明では、GOPの末尾ま
でを含むストリームを転送することが出来るため、再生
停止などの場合においても、復号を行なう装置が正しく
動作できるストリームを送出することが出来る。
In the invention according to claim 6, since a stream including the end of the GOP can be transferred, a stream that can be correctly operated by a decoding device can be transmitted even when reproduction is stopped.

【0080】請求項7に係る発明では、ピクチャの末尾
までを含むストリームを転送することが出来るため、早
送りなどでピクチャ単位で転送を行なっても、復号を行
なう装置が正しく動作できるストリームを送出すること
が出来る。
According to the seventh aspect of the present invention, since a stream including the end of a picture can be transferred, a stream that can be correctly operated by a decoding device even if transfer is performed in units of pictures by fast forward or the like is transmitted. I can do it.

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

【図1】本発明の第1実施形態による処理フローを示す
フローチャート図である。
FIG. 1 is a flowchart illustrating a processing flow according to a first embodiment of the present invention.

【図2】本発明の第2実施形態による処理フローを示す
フローチャート図である。
FIG. 2 is a flowchart illustrating a processing flow according to a second embodiment of the present invention.

【図3】本発明の第3実施形態による処理フローを示す
フローチャート図である。
FIG. 3 is a flowchart illustrating a processing flow according to a third embodiment of the present invention.

【図4】本発明の第1実施形態によるパケット加工の例
を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of packet processing according to the first embodiment of the present invention.

【図5】本発明の第2実施形態によるパケット加工の例
を示す説明図である。
FIG. 5 is an explanatory diagram illustrating an example of packet processing according to a second embodiment of the present invention.

【図6】本発明の第3実施形態によるパケット加工の例
を示す説明図である。
FIG. 6 is an explanatory diagram illustrating an example of packet processing according to a third embodiment of the present invention.

【図7】本発明の第4実施形態によるパケット加工の例
を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of packet processing according to a fourth embodiment of the present invention.

【図8】TSパケットの構成を示す説明図である。FIG. 8 is an explanatory diagram showing a configuration of a TS packet.

【図9】PESパケットの構成を示す説明図である。FIG. 9 is an explanatory diagram showing a configuration of a PES packet.

【図10】TSパケットとPESパケットとESの関係
を示す説明図である。
FIG. 10 is an explanatory diagram showing a relationship between a TS packet, a PES packet, and an ES.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 葉山 剛 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 白井 慎一郎 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 清水 幸毅 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 菱川 薫 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 大野 良治 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 Fターム(参考) 5C053 GA11 GB06 GB29 GB37 GB38 HA24 5C059 MA00 MA04 MA05 PP04 SS11 UA02 5K030 GA11 HA08 HB01 HB02 HB21 JA05 KA19 LA07  ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Tsuyoshi Hayama 22-22 Nagaikecho, Abeno-ku, Osaka City, Osaka Inside (72) Inventor Shinichiro Shirai 22-22 Nagaikecho, Abeno-ku, Osaka City, Osaka (72) Inventor Koki Shimizu 22-22 Nagaikecho, Abeno-ku, Osaka City, Osaka Sharp Corporation (72) Inventor Kaoru Hishikawa 22-22 Nagaikecho, Abeno-ku, Osaka City, Osaka Sharp Corporation (72) Inventor Ryoji Ohno 22-22, Nagaike-cho, Abeno-ku, Osaka, Japan F-term in Sharp Corporation (reference) 5C053 GA11 GB06 GB29 GB37 GB38 HA24 5C059 MA00 MA04 MA05 PP04 SS11 UA02 5K030 GA11 HA08 HB01 HB02 HB21 JA05 KA19 LA07

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 MPEG2−TS(トランスポートスト
リーム)を入力し、その中の特定のコードを検出しなが
ら記録媒体に記録し、記録媒体中のストリームデータ
を、復号を行なう再生装置へ転送するデータ転送方法に
おいて、 特定コードからのストリームデータを転送したい場合、
特定コードを含むTSパケットを加工し、特定コード以
前のデータを削除してデータを転送することを特徴とす
るデータ転送方法。
An MPEG2-TS (transport stream) is input, data is recorded on a recording medium while detecting a specific code therein, and the stream data in the recording medium is transferred to a reproducing apparatus for decoding. In the transfer method, if you want to transfer stream data from a specific code,
A data transfer method comprising processing a TS packet containing a specific code, deleting data before the specific code, and transferring the data.
【請求項2】 請求項1記載において、 前記特定コードは、ストリーム中に含まれるシーケンス
ヘッダコードであることを特徴とするデータ転送方法。
2. The data transfer method according to claim 1, wherein the specific code is a sequence header code included in a stream.
【請求項3】 請求項1または2記載において、 前記TSパケットの加工では、該TSパケット中の特定
コードの前に、新たなPES(パケッタイズドエレメン
タリーストリーム)パケットのヘッダを含ませることを
特徴とするデータ転送方法。
3. The processing of the TS packet according to claim 1, wherein in the processing of the TS packet, a header of a new PES (packetized elementary stream) packet is included before a specific code in the TS packet. Characteristic data transfer method.
【請求項4】 請求項1または2記載において、 前記TSパケットの加工では、特定コードを含むTSパ
ケットの前に、新たなPESパケットのヘッダを含むT
Sパケットを配置することを特徴とするデータ転送方
法。
4. The processing of the TS packet according to claim 1, wherein the processing of the TS packet includes a TES including a header of a new PES packet before the TS packet including the specific code.
A data transfer method comprising arranging S packets.
【請求項5】 MPEG2−TSを入力し、その中の特
定のコードを検出しながら記録媒体に記録し、記録媒体
中のストリームデータを、復号を行なう再生装置へ転送
するデータ転送方法において、 特定コードまでのストリームデータを転送する場合、特
定コードを含むTSパケットを加工し、特定コードを含
む以降のデータを削除してデータを転送することを特徴
とするデータ転送方法。
5. A data transfer method for inputting an MPEG2-TS, recording it on a recording medium while detecting a specific code therein, and transferring stream data in the recording medium to a reproducing apparatus for decoding. When transferring stream data up to a code, a data transfer method is characterized in that a TS packet including a specific code is processed, and subsequent data including the specific code is deleted to transfer the data.
【請求項6】 請求項5記載において、 前記特定コードは、ストリーム中に含まれるシーケンス
ヘッダコードであることを特徴とするデータ転送方法。
6. The data transfer method according to claim 5, wherein the specific code is a sequence header code included in a stream.
【請求項7】 請求項5記載において、 前記特定コードは、ストリーム中に含まれるピクチャ開
始コードであることを特徴とするデータ転送方法。
7. The data transfer method according to claim 5, wherein the specific code is a picture start code included in a stream.
JP2000309702A 2000-10-10 2000-10-10 Data transfer method Expired - Fee Related JP3645479B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000309702A JP3645479B2 (en) 2000-10-10 2000-10-10 Data transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000309702A JP3645479B2 (en) 2000-10-10 2000-10-10 Data transfer method

Publications (2)

Publication Number Publication Date
JP2002118826A true JP2002118826A (en) 2002-04-19
JP3645479B2 JP3645479B2 (en) 2005-05-11

Family

ID=18789811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000309702A Expired - Fee Related JP3645479B2 (en) 2000-10-10 2000-10-10 Data transfer method

Country Status (1)

Country Link
JP (1) JP3645479B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004030358A1 (en) * 2002-09-30 2004-04-08 Matsushita Electric Industrial Co., Ltd. Data processing device
JP2009543427A (en) * 2006-07-07 2009-12-03 サムスン エレクトロニクス カンパニー リミテッド Apparatus and method for providing IPDC service, and apparatus and method for processing IPDC service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004030358A1 (en) * 2002-09-30 2004-04-08 Matsushita Electric Industrial Co., Ltd. Data processing device
JP2009543427A (en) * 2006-07-07 2009-12-03 サムスン エレクトロニクス カンパニー リミテッド Apparatus and method for providing IPDC service, and apparatus and method for processing IPDC service
US8374176B2 (en) 2006-07-07 2013-02-12 Samsung Electronics Co., Ltd. Method and apparatus for providing internet protocol datacasting (IPDC) service, and method and apparatus for processing IPDC service

Also Published As

Publication number Publication date
JP3645479B2 (en) 2005-05-11

Similar Documents

Publication Publication Date Title
KR100318590B1 (en) Digital recording/reproduction apparatus
JP4758997B2 (en) Transport stream generation apparatus, recording apparatus including the same, and transport stream generation method
JP4541962B2 (en) Multiplexer, playback device
WO2000014741A1 (en) Method and device for managing multimedia file
JP4552802B2 (en) Recording apparatus, recording method, recording method program, and recording medium recording the recording method program
JP2001204032A (en) Mpeg decoder
JP3156597B2 (en) Image information decoding and reproducing apparatus and image information decoding and reproducing method
JPH11261964A (en) Moving image recording method, reproduction method and device
JP3645479B2 (en) Data transfer method
WO1998004085A1 (en) Moving picture recording device and moving picture reproducing device
JP2006245744A (en) Video signal recording device, information recording medium, and video signal reproducing device
JP2003339019A (en) Recording and reproducing apparatus and recording and reproducing method
JP4736918B2 (en) Digital playback device or playback program
JP2001078146A (en) Video decoding method and system
JP2004192774A (en) Audio and visual data recording method, audio and visual data recording device, data recording medium, program and program recording medium
JP3792770B2 (en) Recording / playback device
JP2005197839A (en) Special reproduction method of transport stream and recording and reproducing apparatus for transport stream
JP3593293B2 (en) Video playback device
JP3045696B2 (en) Decoding method and apparatus
JP3380517B2 (en) Special reproduction data creation device and medium
JP4373481B2 (en) Video playback device
JP2003224827A (en) Moving picture recording method and reproducing method
JP4227605B2 (en) Video playback device
JP2001309302A (en) Method and device for fast reproducing digital signal
JP3336973B2 (en) MPEG decoding apparatus and MPEG decoding method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041227

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050125

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050203

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080210

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090210

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100210

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100210

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110210

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120210

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120210

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130210

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130210

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140210

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees