JPH0832622A - Packet separation device - Google Patents

Packet separation device

Info

Publication number
JPH0832622A
JPH0832622A JP6164072A JP16407294A JPH0832622A JP H0832622 A JPH0832622 A JP H0832622A JP 6164072 A JP6164072 A JP 6164072A JP 16407294 A JP16407294 A JP 16407294A JP H0832622 A JPH0832622 A JP H0832622A
Authority
JP
Japan
Prior art keywords
packet
signal
pid
start code
synchronization signal
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
JP6164072A
Other languages
Japanese (ja)
Inventor
Natsuki Koshiro
夏樹 小代
Noriya Sakamoto
典哉 坂本
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP6164072A priority Critical patent/JPH0832622A/en
Publication of JPH0832622A publication Critical patent/JPH0832622A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To generate a sure packet start timing signal for precisely separating a transport packet from a transport stream. CONSTITUTION:A start code detection part 410 detects the pattern of a start code showing the break of the packets in a bit stream. An internal synchronizing signal generation part 411 obtains an internal synchronizing signal synchronized with the length of the packet in response to the detection signal. When the detection signal is synchronized with the internal synchronizing signal and it is repeated for plural times, a packet synchronizing signal generation part 412 obtains a packet synchronizing signal. A timing signal generation part 415 and a PID separation part 416 extract a packet identification signal which is transmitted from the start code after prescribed time without fail, a comparison part 417 recognizes it and a coincidence signal is supplied to a packet synchronism judgement part 413. Thus, the packet synchronism jdugement part 413 outputs the packet start timing signal 455 synchronized with the packet synchronizing signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、マルチメディアにお
けるデジタルデータ伝送システムにおいて有効なパケッ
ト分離装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a packet separation device effective in a digital data transmission system for multimedia.

【0002】[0002]

【従来の技術】周知のように、近年では、映像や音声等
の各種情報信号をデジタル化して信号処理する技術がめ
ざましく進歩し、これに伴ない、デジタル放送システム
やデジタル放送とデジタル通信との融合システム等の実
現に向けて、世界各国でデジタル放送送受信システムの
開発が盛んに行なわれるようになってきている。ところ
で、このようなデジタル放送送受信システムを開発する
にあたり、最も重要となる要素の1つとして、デジタル
化された映像信号・音声信号やその他の情報データ等を
圧縮処理する技術があげられる。
2. Description of the Related Art As is well known, in recent years, the technology of digitizing various information signals such as video and audio and processing the signals has made remarkable progress, and along with this, digital broadcasting systems and digital broadcasting and digital communication Development of digital broadcast transmission / reception systems has been actively carried out in various countries around the world in order to realize integrated systems and the like. By the way, one of the most important factors in developing such a digital broadcast transmission / reception system is a technique of compressing a digitized video signal / audio signal and other information data.

【0003】このデータ圧縮処理技術の規格としては、
MPEG(Moving Picture Image Coding Experts Grou
p )、JPEG(Joint Photographic Coding Experts
Group )及びH.261等が主流であったが、現在、I
SO(国際標準化機構)/IEC(国際電気標準会議)
13818[ISO/IEC JTC(Joint Technical Committee)
1/SC(Subcommittee)29/WG(Working Group)11]で提案さ
れている方式は、放送、通信、蓄積メディア等の幅広い
技術分野に渡る世界的な標準化に向けて検討を施してい
るものである。
As a standard of this data compression processing technology,
MPEG (Moving Picture Image Coding Experts Grou
p), JPEG (Joint Photographic Coding Experts
Group) and H.H. 261 was the mainstream, but now I
SO (International Organization for Standardization) / IEC (International Electrotechnical Commission)
13818 [ISO / IEC JTC (Joint Technical Committee)
1 / SC (Subcommittee) 29 / WG (Working Group) 11] is a method proposed for global standardization across a wide range of technical fields such as broadcasting, communication, and storage media. is there.

【0004】そして、このISO/IEC13818で
は、上述したデータ圧縮方式を規定するだけでなく、放
送局側で、番組を構成するデジタル映像・音声データ及
びその他の情報データ毎に、それぞれ圧縮処理を施した
ビットストリームを多重して放送しておき、受信機側で
所望の番組を受信するというようなデジタル放送送受信
システムのための制御部分についても方式を固めてい
る。
According to ISO / IEC13818, not only the above-mentioned data compression method is specified, but also the broadcasting station performs a compression process on each digital video / audio data and other information data which form a program. The system is also established for a control part for a digital broadcast transmission / reception system in which the above-mentioned bit streams are multiplexed and broadcast, and a receiver receives a desired program.

【0005】ここで、図11は、ISO/IEC138
18の規定に基づいて、デジタル映像・音声データをそ
れぞれ圧縮処理してなる放送用及び通信用のビットスト
リームを多重化する手段を概略的に示している。まず、
デジタル映像データは、映像エンコード回路11により
圧縮処理されて映像ES(Elementary Stream )となさ
れた後、パケット化回路12に供給されて188バイト
でなるパケット単位に区切られた映像PES(Packetiz
ed Elementary Stream)となされて、多重化回路13に
供給される。
Here, FIG. 11 shows ISO / IEC138.
18 schematically shows a means for multiplexing a bitstream for broadcasting and a bitstream for communication, which are obtained by respectively compressing digital video / audio data based on the regulations of 18. First,
The digital video data is compressed by a video encoding circuit 11 to be a video ES (Elementary Stream), and then supplied to a packetization circuit 12 to be video PES (Packetiziz) divided into packet units of 188 bytes.
ed Elementary Stream) and is supplied to the multiplexing circuit 13.

【0006】また、デジタル音声データは、音声エンコ
ード回路14により圧縮処理されて音声ESとなされた
後、パケット化回路15に供給されて188バイトでな
るパケット単位に区切られた音声PESとなされて、多
重化回路13に供給される。そして、この多重化回路1
3で、映像PESと音声PESとが時分割多重されるこ
とにより、TS(Transport Stream)なる方式の多重信
号が生成される。
Further, the digital audio data is compressed by the audio encoding circuit 14 to be an audio ES, and then supplied to the packetization circuit 15 to be an audio PES divided into packet units of 188 bytes. It is supplied to the multiplexing circuit 13. And this multiplexing circuit 1
In 3, the video PES and the audio PES are time-division-multiplexed to generate a multiplexed signal of a TS (Transport Stream) system.

【0007】この多重信号は、図12に示すように、映
像・音声ともに1フレーム毎の単位に区切られ、それに
ヘッダが付されてPESを構成している。このPESは
可変長である。このように生成されたPESは、映像と
音声とを時分割多重するために、基本的に184バイト
毎に区切ってパケット化され、それぞれに4バイトのヘ
ッダが付されることで188バイトのTP(Transport
Packet)を形成している。なお、図11では、映像と音
声との多重化について説明したが、実際には番組の付加
情報データや番組情報等の各種情報データも、TP化さ
れて映像や音声とともに時分割多重されることになる。
As shown in FIG. 12, the multiplex signal is divided into units of one frame for both video and audio, and a header is added to the frame to form a PES. This PES has a variable length. The PES generated in this manner is basically divided into 184-byte packets for time-division multiplexing of video and audio, and a 4-byte header is attached to each PES to provide a 188-byte TP. (Transport
Packet) is formed. Note that although FIG. 11 has described multiplexing of video and audio, in practice, various information data such as additional information data of programs and program information may also be converted into TP and time-division multiplexed with video and audio. become.

【0008】次に、図13は、放送用としてのビットス
トリームを構成する手段を示している。すなわち、図1
3において、プログラム1は1つの番組を示しており、
多重化回路161により、映像データ2系統、音声デー
タ2系統、その他の情報データ1系統及びPMT(Prog
ram Map Table )1系統が多重される。このPMTに
は、映像データ、音声データ及び情報データを識別する
ためのPID(Packet Identify )や、番組に関する記
述等が載せられている。
Next, FIG. 13 shows a means for constructing a bit stream for broadcasting. That is, FIG.
In 3, the program 1 shows one program,
By the multiplexing circuit 161, two systems of video data, two systems of audio data, one system of other information data and PMT (Prog
ram Map Table) 1 line is multiplexed. In this PMT, PID (Packet Identify) for identifying video data, audio data, and information data, a description about a program, and the like are put.

【0009】図13に示すように、n個の多重化回路1
61,162,……,16nを用意することにより、n
個のプログラム1,2,……,nを設定することができ
る。このようにn個設定された番組は、多重化回路17
によりそれぞれのデータが時分割多重される。この場
合、多重化回路17では、各番組のPMTを抽出するた
めの総合的な番組情報としてのPAT(Program Associ
ation Table )や、スクランブルをコントロールするた
めのCAT(Conditional Access Table)及び使用して
いるネットワークの情報等を示すNIT(Network Info
rmation Table )等も時分割多重している。
As shown in FIG. 13, n multiplexing circuits 1 are provided.
By preparing 61, 162, ..., 16n, n
Individual programs 1, 2, ..., N can be set. The program for which n pieces are set in this way is multiplexed by the multiplexing circuit 17
Thus, each data is time-division multiplexed. In this case, the multiplexing circuit 17 uses a PAT (Program Association) as comprehensive program information for extracting the PMT of each program.
application table), CAT (Conditional Access Table) for controlling scrambling, and NIT (Network Info) indicating information on the network used.
rmation Table) etc. are also time division multiplexed.

【0010】このように、ISO/IEC13818の
規格によれば、番組情報に関してPMT,PAT,CA
T及びNITなる4種類のテーブルが設定されている。
これらのテーブルのPIDは、PATが“00”、CA
Tが“01”で、PMTとNITは自由に指定できるこ
とになっている。このため、受信側では、番組を指定す
るために、まず、PATをデコードして各PMTのPI
Dを検出し、検出したPMTのPIDを指定する。その
後、指定した番組の映像データ、音声データ及び情報デ
ータのそれぞれのPIDを検出し、デコードすべきPI
Dを指定することで、各種のデータをデコードすること
ができる。
As described above, according to the standard of ISO / IEC13818, PMT, PAT, CA regarding program information are provided.
Four types of tables, T and NIT, are set.
The PID of these tables is PAT "00", CA
When T is "01", PMT and NIT can be freely specified. Therefore, on the receiving side, in order to specify the program, first, the PAT is decoded and the PI of each PMT is decoded.
D is detected, and the PID of the detected PMT is designated. After that, the PIDs of the video data, audio data, and information data of the designated program are detected and the PIs to be decoded
By specifying D, various data can be decoded.

【0011】ところで、現在では、上記したISO/I
EC13818の規格をさらに広げることにより、図1
4(a),(b)にそれぞれ示すPAT及びPMTのリ
ザーブ領域を利用してセルフ/クロス指示フラグを設定
することで、別個に放送局毎の番組情報を送ることも検
討されている。この外にも、PAT及びPMTには、図
15及び図16にそれぞれ示されるように多種多様のフ
ラグが設定されて、デジタル放送システムの多機能化を
図ることが考えられている。
By the way, at present, the above ISO / I
By further expanding the standard of EC13818,
It is also considered to separately send program information for each broadcasting station by setting the self / cross instruction flag by using the reserved areas of PAT and PMT shown in 4 (a) and 4 (b), respectively. In addition to this, it is considered that various types of flags are set in the PAT and PMT as shown in FIGS. 15 and 16, respectively, so as to make the digital broadcasting system multifunctional.

【0012】受信側においては、上記したようにパケッ
ト化されて伝送されてくる多チャンネルのビットストリ
ームからパケットを分離して希望のチャンネルのパケッ
トを取り込む必要がある。
On the receiving side, it is necessary to separate the packet from the multi-channel bit stream that is packetized and transmitted as described above, and take in the packet of the desired channel.

【0013】図17は、ビットストリームからパケット
を分離する従来の装置を示す。パケット化されたビット
ストリームとしてISO/IEC13818のTranspor
t Streamを例に図17に示す装置の構成と動作を説明す
る。Transport Streamは、図18(a)に示すような構
造となっている。このTransport Streamは、パケット単
位で構成され、パケットであるTransport Packetの長さ
は等長であり、その長さは、188バイトとなってい
る。このうち4バイトがヘッダとなっており、ヘッダの
構造は、図18(b)に示す。ヘッダの4バイトのう
ち、最初の1バイトは、スタートコードとなっており、
この値は、Ox47(16進数で47、2進数で01000111)の
固定値である。次の3ビットは、フラグであり、その次
の13ビットは、PIDである。PIDは、番組1つ1
つに付けられる固有の値である。PIDの次の4ビット
は、フラグであり、その次の4ビットは、カウンタとな
っている。このカウンタは、同じPIDのパケットにお
いて、1つずつ順番に値が上がっていくか、もしくは一
定の値である。
FIG. 17 shows a conventional device for separating packets from a bitstream. ISO / IEC13818 Transpor as a packetized bitstream
The configuration and operation of the device shown in FIG. 17 will be described by taking t Stream as an example. The Transport Stream has a structure as shown in FIG. This Transport Stream is configured in packet units, and Transport Packets, which are packets, have the same length, and the length is 188 bytes. Of these, 4 bytes are the header, and the structure of the header is shown in FIG. Of the 4 bytes of the header, the first 1 byte is the start code,
This value is a fixed value of Ox47 (47 in hexadecimal notation and 01000111 in binary notation). The next 3 bits are a flag and the next 13 bits are a PID. PID is one program one
It is a unique value attached to one. The next 4 bits of the PID is a flag, and the next 4 bits are a counter. The value of this counter is incremented one by one in the packet of the same PID, or is a constant value.

【0014】図17に示す従来の装置は、端子101、
端子102、スタートコード検出部110、内部同期信
号発生部111、パケット同期信号発生部112、端子
103から構成されている。
The conventional device shown in FIG. 17 has terminals 101,
The terminal 102, the start code detector 110, the internal synchronization signal generator 111, the packet synchronization signal generator 112, and the terminal 103 are included.

【0015】端子101からは、図18(a)に示すTr
ansport Streamが入力される。Transport Stream151
は、スタートコード検出部110と端子102に供給さ
れる。スタートコード検出部110は、Transport Stre
amから、スタートコードであるOx47のパターンを検出
し、スタートコード検出信号152を得て、この検出信
号を内部同期信号発生部111とパケット同期信号発生
部112に供給している。スタートコード検出信号15
2は、図19(a)に示す。スタートコード検出信号1
52は、Transport StreamにOx47というパターンが存在
すると、Lowに落ちる。
From the terminal 101, the Tr shown in FIG.
Ansport Stream is input. Transport Stream 151
Are supplied to the start code detector 110 and the terminal 102. The start code detection unit 110 uses the Transport Stre
A pattern of Ox47 which is a start code is detected from am, a start code detection signal 152 is obtained, and this detection signal is supplied to the internal synchronization signal generation section 111 and the packet synchronization signal generation section 112. Start code detection signal 15
2 is shown in FIG. Start code detection signal 1
52 drops to Low if the pattern Ox47 exists in the Transport Stream.

【0016】内部同期信号発生部111は、スタートコ
ード検出信号152と、パケット同期信号発生部112
から供給されるリセット信号155を受け、内部同期信
号153を発生し、パケット同期信号発生部112に供
給する。内部同期信号発生部111は、リセット信号1
55によりリセットがかかった直後に入力されるスター
トコード検出信号152のローレベル(Low)である
部分を検出し、そこから188バイト間隔でLowのパ
ルスを出力するような内部同期信号153を出力する。
この内部同期信号153は、図19(b)に示す。
The internal sync signal generator 111 includes a start code detection signal 152 and a packet sync signal generator 112.
In response to the reset signal 155 supplied from, the internal synchronization signal 153 is generated and supplied to the packet synchronization signal generator 112. The internal synchronization signal generator 111 uses the reset signal 1
A low level (Low) portion of the start code detection signal 152 that is input immediately after resetting is detected by 55 is detected, and an internal synchronization signal 153 that outputs a Low pulse at 188 byte intervals is output therefrom. .
This internal synchronization signal 153 is shown in FIG.

【0017】パケット同期信号発生部112は、スター
トコード検出信号152と内部同期信号153を受け、
パケット同期信号154とリセット信号155を出力す
る。パケット同期信号発生部112では、スタートコー
ド検出信号152と内部同期信号153を比較し、スタ
ートコード検出信号152のLowの部分と内部同期信
号153のLowの部分の位相が一致するまで、リセッ
ト信号155を出力し、内部同期信号発生部111に対
してリセットを行い、内部同期信号153の位相を調整
する。また、内部同期信号153がLowに落ちている
期間に対し、スタートコード検出信号152のLowに
落ちている期間が一致したら、Lowの期間が一致した
回数をカウントする。
The packet sync signal generator 112 receives the start code detection signal 152 and the internal sync signal 153,
The packet synchronization signal 154 and the reset signal 155 are output. The packet synchronization signal generator 112 compares the start code detection signal 152 and the internal synchronization signal 153, and resets the reset signal 155 until the phases of the Low portion of the start code detection signal 152 and the Low portion of the internal synchronization signal 153 match. Is output and the internal synchronization signal generator 111 is reset to adjust the phase of the internal synchronization signal 153. Further, if the period in which the start code detection signal 152 falls to Low coincides with the period in which the internal synchronization signal 153 falls to Low, the number of times that the Low period coincides is counted.

【0018】図19に示した期間B以降に示すように、
この一致した回数が一定値以上になると、パケット同期
信号発生部112は、188バイト周期のLowのパル
スをパケット同期信号154として、端子103に出力
する。パケット同期信号154は、図19(c)に示し
ており、この信号は、188バイト間隔で、Ox47のパタ
ーンを検出したことを示す信号である。188バイト間
隔で現れるOx47のパターンは、Transport Packetのヘッ
ダ―に存在するスタートコードと判断し、このパケット
同期信号154をTransport StreamからTransport Pack
etを分離する信号として使用することになる。
As shown after the period B shown in FIG.
When the number of times of coincidence becomes a certain value or more, the packet synchronization signal generation unit 112 outputs a Low pulse having a cycle of 188 bytes to the terminal 103 as a packet synchronization signal 154. The packet synchronization signal 154 is shown in FIG. 19C, and this signal is a signal indicating that the Ox47 pattern is detected at 188 byte intervals. The Ox47 pattern that appears at 188-byte intervals is determined to be the start code that exists in the Transport Packet header, and this packet synchronization signal 154 is transferred from the Transport Stream to the Transport Pack.
will be used as the signal to separate et.

【0019】一方、図19に示した期間C、期間Dにお
いて、スタートコード検出信号152のLowの期間
と、内部同期信号153のLowの期間が一致しなかっ
た場合、期間Cの1回だけは、一致したとみなし、パケ
ット同期信号として、Lowを出力する。これは、実際
はOx47のパターンが存在していたはずであるが、伝送中
のエラーのため、Ox47のパターンが消滅したとみなすた
めである。ところが、期間C、期間Dと2回連続してス
タートコード検出信号152のLowの期間と、内部同
期信号153のLowの期間が一致しなかったら、パケ
ットの同期をもう一度取り直す意味で、期間Eにおい
て、リセット信号155をLowにして、内部同期信号
発生部111をリセットする。
On the other hand, in the periods C and D shown in FIG. 19, if the Low period of the start code detection signal 152 and the Low period of the internal synchronization signal 153 do not match, only once in the period C. , And outputs Low as a packet synchronization signal. This is because the Ox47 pattern should have actually existed, but it is considered that the Ox47 pattern disappeared due to an error during transmission. However, if the low period of the start code detection signal 152 and the low period of the internal synchronization signal 153 do not match twice in succession in the periods C and D, the period E is used in the sense that the packets are synchronized again. The reset signal 155 is set to Low to reset the internal synchronization signal generator 111.

【0020】以上の動作を繰り返しながら、端子103
に188バイト周期のパケット同期信号154を出力す
る。端子103に出力されるパケット同期信号154に
従って、端子102に出力されるTransport Streamから
Transport Packetの分離が行われる。
While repeating the above operation, the terminal 103
To output a packet synchronization signal 154 having a cycle of 188 bytes. According to the packet synchronization signal 154 output to the terminal 103, from the Transport Stream output to the terminal 102
Transport Packets are separated.

【0021】上記したように従来の装置では、188バ
イト間隔で検出されるOx47という値をTransport Packet
のヘッダに存在するスタートコードであると判定してい
た。ところが、Transport Packetのヘッダにはスタート
コード以外にOx47というパターンが現れ、これが188
バイト周期で検出される可能性がある。特に、Ox47のパ
ターンを同じ位置に含んだPIDを持つパケットを多重
した場合は、スタートコード以外の部分に188バイト
周期のOx47のパターンが現れる。このスタートコード以
外のOx47のパターンを検出し、Transport StreamからTr
ansport Packetを分離するパケットスタートタイミング
とすると、Transport StreamからTransport Packetを誤
って分離し、デコ―ド処理を正常に行うことができなく
なってしまう。
As described above, in the conventional device, the value of Ox47 detected at 188 byte intervals is set as Transport Packet.
It was determined to be the start code existing in the header of. However, in the header of Transport Packet, a pattern of Ox47 appears in addition to the start code, and this is 188
It may be detected in byte cycles. In particular, when a packet having a PID including the Ox47 pattern at the same position is multiplexed, an Ox47 pattern having a 188-byte cycle appears in a portion other than the start code. Ox47 patterns other than this start code are detected, and Transport Stream to Tr
If the packet start timing is used to separate the ansport Packet, the Transport Packet is separated from the Transport Stream by mistake, and the decoding process cannot be performed normally.

【0022】スタートコード以外で、Ox47というパター
ンが188バイトの周期で現れる可能性のあるところ
は、Transport PacketのヘッダにおけるフラグとPID
の部分である。フラグとPIDの部分にOx47というパタ
ーンが現れないようにするには、Ox47というパターンが
現れる可能性のあるPIDの使用を禁止してしまう方法
がある。しかし、この方法であると、使用できるPID
の範囲が狭められ、多チャンネル伝送を実施する場合、
チャンネル数やチャンネルの組み合わせに制限ができて
しまうことになる。
Except for the start code, there is a possibility that a pattern of Ox47 may appear in a cycle of 188 bytes, where flags and PID in the header of Transport Packet are used.
Part of. In order to prevent the pattern Ox47 from appearing in the flag and PID portions, there is a method of prohibiting the use of PIDs in which the pattern Ox47 may appear. However, this method can be used for PID
When the range of is narrowed and multi-channel transmission is carried out,
The number of channels and the combination of channels can be limited.

【0023】[0023]

【発明が解決しようとする課題】従来の装置では、Ox47
というスタートコードと同様のパターンが、スタートコ
ード以外の部分で188バイト周期で現れた場合、それ
をスタートコードと誤って検出してしまう可能性があ
る。このスタートコード以外の部分に現れたOx47をスタ
ートコードと誤って検出し、パケットの分離を行うと、
デコード処理を誤ってしまうという欠点がある。
In the conventional device, Ox47 is used.
If a pattern similar to the start code appears in a portion other than the start code at a period of 188 bytes, it may be erroneously detected as the start code. If Ox47 that appears in a part other than this start code is mistakenly detected as a start code and the packets are separated,
There is a drawback that the decoding process is incorrect.

【0024】そこで、この発明では、確実にスタートコ
ードのパターンをとらえ、Transport Stream(トランス
ポートストリーム)からTransport Packet(トランスポ
ートパケット)を正確に分離するためのパケットスター
トタイミングを生成するパケット分離装置を提供するこ
とを目的とする。
In view of this, the present invention provides a packet demultiplexing device that reliably captures a start code pattern and generates a packet start timing for accurately demultiplexing a Transport Packet from a Transport Stream. The purpose is to do.

【0025】[0025]

【課題を解決するための手段】この発明では、第1の手
段として、Transport Streamからスタートコードである
Ox47のパターンを188バイト周期で検出した後、一定
時間内に必ず送られてくる特定パケットのPIDの値を
検出したときに、Transport StreamからTransport Pack
etを分離する188バイト周期のパケットスタートタイ
ミングを確定する装置を提供する。
According to the present invention, as a first means, a start code is generated from Transport Stream.
When the PID value of a specific packet that is always sent within a certain period of time is detected after detecting the Ox47 pattern at a 188-byte cycle, the Transport Stream to Transport Pack
A device for determining a packet start timing of a 188-byte cycle for separating et is provided.

【0026】第2の手段として、Transport Streamから
スタートコ―ドであるOx47のパターンを188バイト周
期で検出した後、一定時間内に必ず送られてくる特定パ
ケットのPIDの値をTransport Stream中に規定された
回数検出したときに、Transport StreamからTransport
Packetを分離する188バイト周期のパケットスタート
タイミングを確定する装置を提供する。
As a second means, after detecting a pattern of Ox47, which is a start code, from the Transport Stream at a cycle of 188 bytes, the PID value of a specific packet that is always sent within a fixed time is recorded in the Transport Stream. Transport Stream to Transport when a specified number of times is detected
A device for determining a packet start timing of a 188-byte cycle for separating packets is provided.

【0027】第3の手段として、Transport Streamから
スタートコ―ドであるOx47のパターンを188バイト周
期で検出した後、一定時間内に必ず送られてくる特定パ
ケットのPIDの値を検出し、次に一定時間内に必ず送
られてくる特定パケットのPIDの値を持つパケットに
関し、同じPIDを持つパケットの連続性を示すカウン
タ値を抜き出し、そのカウンタ値が、一定または順次上
がっていると判定されたときに、Transport Streamから
Transport Packetを分離する188バイト周期のパケッ
トスタートタイミングを確定する装置を提供する。
As a third means, a pattern of Ox47, which is a start code, is detected from the Transport Stream at a cycle of 188 bytes, and then the value of the PID of a specific packet which is always sent within a fixed time is detected. For a packet having a PID value of a specific packet that is always sent within a certain period of time, a counter value indicating continuity of packets having the same PID is extracted, and it is determined that the counter value is constantly or sequentially increasing. From the Transport Stream
A device for determining a packet start timing of a 188-byte cycle for separating a Transport Packet is provided.

【0028】第4の手段として、Transport Streamから
スタートコードであるOx47のパターンを188バイト周
期で検出した後、不特定の1つのPIDの値を保持し、
その保持されたPIDの値をTransport Stream中に規定
された回数検出したときに、Transport StreamからTran
sport Packetを分離する188バイト周期のパケットス
タートタイミングを確定する装置を提供する。
As a fourth means, a pattern of Ox47, which is a start code, is detected from the Transport Stream at a cycle of 188 bytes, and then an unspecified one PID value is held.
When the value of the held PID is detected a specified number of times in the Transport Stream, the Tran is transferred from the Transport Stream.
A device for determining a packet start timing of a 188-byte cycle for separating sport packets is provided.

【0029】第5の手段として、Transport Streamから
スタートコードであるOx47のパターンを188バイト周
期で検出した後、不特定の1つのPIDの値を保持し、
次にその保持されたPIDの値を持つパケットに関し、
同じPIDを持つパケットの連続性を示すカウンタ値を
抜き出し、そのカウンタ値が、一定または順次上がって
いると判定されたときに、Transport StreamからTransp
ort Packetを分離する188バイト周期のパケットスタ
ートタイミングを確定する装置を提供する。
As a fifth means, a pattern of Ox47 which is a start code is detected from the Transport Stream at a cycle of 188 bytes, and then an unspecified one PID value is held,
Next, regarding the packet with the value of the held PID,
A counter value indicating the continuity of packets having the same PID is extracted, and when it is determined that the counter value is constant or sequentially increasing, Transport
A device for determining a packet start timing of a 188-byte cycle for separating ort packets is provided.

【0030】[0030]

【作用】上記の手段により、Transport Streamに存在す
るスタートコードを捕らえ、Transport Streamから正確
にパケットを分離することができる。その結果、受信機
において、デコード処理を誤りなく行うことができる。
By the above means, the start code existing in the Transport Stream can be captured and the packet can be accurately separated from the Transport Stream. As a result, the receiver can perform the decoding process without error.

【0031】[0031]

【実施例】以下、この発明の実施例を図面を参照して説
明する。 (第1の実施例)図1はこの発明の第1の実施例であ
る。
Embodiments of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 shows a first embodiment of the present invention.

【0032】パケット化されたビットストリームからパ
ケットを分離する回路の1つの実施例を図1に示す。こ
の実施例では、1つの例として、ビットストリームとし
てISO/IEC13818のTransport Streamを受信
する場合に関して説明する。
One embodiment of a circuit for separating packets from a packetized bitstream is shown in FIG. In this embodiment, as an example, the case of receiving a Transport Stream of ISO / IEC13818 as a bit stream will be described.

【0033】端子401からは、パケット化されたビッ
トストリームが入力される。このビットストリームは、
この実施例においては、ISO/IEC13818のTr
ansport Streamとなっている。端子401から入力され
たTransport Stream451は、端子402に導出される
とともに、スタートコード検出部410とPID分離部
416に入力される。
A packetized bit stream is input from the terminal 401. This bitstream is
In this embodiment, the Tr of ISO / IEC13818 is used.
It is ansport Stream. The Transport Stream 451 input from the terminal 401 is led out to the terminal 402 and also input to the start code detection unit 410 and the PID separation unit 416.

【0034】スタートコード検出部410は、Transpor
t Stream451からスタートコードのパターンとなって
いるOx47のパターンを検出し、スタートコード検出信号
452を得て、この信号を内部同期信号発生部411と
パケット同期信号発生部412に供給する。図2(a)
に、スタートコード検出信号452を示す。スタートコ
ード検出部410は、スタートコードのパターンである
Ox47を検出すると、ローレベル(Low)を出力する。
Ox47というパターンは、スタートコード以外にも、ビッ
トストリーム中に多数ランダムに存在する可能性がある
ため、スタートコード検出信号452は、図2(a)に
示すように不規則なタイミングでLowになる信号とな
っている。
The start code detector 410 is a Transpor
A pattern of Ox47 which is a start code pattern is detected from the t Stream 451 to obtain a start code detection signal 452, and this signal is supplied to the internal synchronization signal generation unit 411 and the packet synchronization signal generation unit 412. Figure 2 (a)
A start code detection signal 452 is shown in FIG. The start code detection unit 410 is a start code pattern.
When it detects Ox47, it outputs a low level (Low).
In addition to the start code, a large number of Ox47 patterns may exist randomly in the bitstream, so the start code detection signal 452 becomes Low at irregular timings as shown in FIG. 2A. It is a signal.

【0035】内部同期信号発生部411では、リセット
信号458によりリセットがかかった直後に入力される
スタートコード検出信号452のLowの値を基準に、
1パケットに1回の割合の周期的なパルスを発生する内
部同期信号453を出力し、パケット同期信号発生部4
12とタイミング信号発生部415に供給している。内
部同期信号453は、図2(b)に示すように、188
バイト周期でLowのパルスを発する信号である。
In the internal synchronizing signal generator 411, the Low value of the start code detection signal 452 which is input immediately after reset by the reset signal 458 is applied as a reference,
The packet synchronizing signal generator 4 outputs the internal synchronizing signal 453 that generates a periodic pulse once per packet.
12 and the timing signal generator 415. The internal synchronization signal 453 is 188 as shown in FIG.
It is a signal that emits a Low pulse at a byte cycle.

【0036】パケット同期信号発生部412では、スタ
ートコード検出信号452と内部同期信号453から1
パケットに1回の周期で現れるOx47のパターンのみを検
出し、パケット同期信号454として、パケット同期判
定部413に供給している。また、パケット同期信号発
生部412から出力される信号456は、リセット信号
である。パケット同期信号454は、図2(c)に示
す。パケット同期信号発生部412は、スタートコード
検出信号452と内部同期信号453を比較し、内部同
期信号453がLowの期間に対しスタートコード検出
信号452のLowの期間が一致するまで、リセット信
号456を出力し、論理積回路414を経て、内部同期
信号発生部411にリセットをかけ、内部同期信号45
3の位相を調整する。内部同期信号453がLowとな
る期間に対し、スタートコード検出信号452のLow
となる期間が一致したら、Lowの期間が一致した回数
をカウントする。図2の時間T1以降に示したように、
この一致した回数が、一定値以上になると、パケット同
期信号発生部412は、188バイトに1回のLowに
なるパルスを出力する。
The packet sync signal generator 412 outputs the start code detection signal 452 and the internal sync signal 453 to 1
Only the Ox47 pattern that appears in the packet once is detected and supplied as a packet synchronization signal 454 to the packet synchronization determination unit 413. The signal 456 output from the packet synchronization signal generator 412 is a reset signal. The packet synchronization signal 454 is shown in FIG. The packet synchronization signal generation unit 412 compares the start code detection signal 452 and the internal synchronization signal 453, and outputs the reset signal 456 until the Low period of the start code detection signal 452 coincides with the Low period of the internal synchronization signal 453. The internal sync signal generator 411 outputs the signal and resets the internal sync signal generator 411 via the logical product circuit 414.
Adjust the phase of 3. While the internal synchronizing signal 453 is Low, the start code detection signal 452 is Low.
If the periods that are equal to each other match, the number of times that the Low period matches is counted. As shown after time T1 in FIG.
When the number of times of coincidence becomes a certain value or more, the packet synchronization signal generator 412 outputs a pulse that goes low once every 188 bytes.

【0037】一方、タイミング信号発生部415では、
内部同期信号453を受け、Transport Stream451か
らPIDを分離するためのタイミング信号459を発生
する。タイミング信号459は、図2(d)に示した。
タイミング信号459は、PID分離部416に供給さ
れる。
On the other hand, in the timing signal generator 415,
Upon receiving the internal synchronization signal 453, the timing signal 459 for separating the PID from the Transport Stream 451 is generated. The timing signal 459 is shown in FIG.
The timing signal 459 is supplied to the PID separation unit 416.

【0038】PID分離部416では、タイミング信号
459に従って、Transport Stream451からPIDの
値を分離して、比較部417に供給している。比較部4
17では、PID分離部416から入力されるPIDの
値と、端子404から入力される一定時間内に必ず送ら
れてくる特定のパケットのPIDの値が一致しているか
を判定し、その結果をPID一致信号461として、パ
ケット同期判定部413に出力している。図2(e)に
PID分離部416の出力信号460を、図2(f)に
PID一致信号461を示した。図2では、分離された
PIDの値は、S、T、U、R、A、Z、A、Bとなっ
ている。この実施例において、一定時間内に必ず送られ
てくる特定のパケットのPIDの値がZであるものとす
ると、図2において、PID分離部416の出力信号4
60がZのときに、PID一致信号461は、Lowに
なることになる。よって、図2における時間T3以降
は、PID一致信号461は、Lowになっている。
The PID separating unit 416 separates the PID value from the Transport Stream 451 according to the timing signal 459 and supplies it to the comparing unit 417. Comparison unit 4
At 17, it is determined whether the PID value input from the PID separation unit 416 matches the PID value of a specific packet input from the terminal 404 and always sent within a fixed time, and the result is determined. The PID match signal 461 is output to the packet synchronization determination unit 413. The output signal 460 of the PID separation unit 416 is shown in FIG. 2E, and the PID coincidence signal 461 is shown in FIG. In FIG. 2, the separated PID values are S, T, U, R, A, Z, A, and B. In this embodiment, assuming that the PID value of a specific packet that is always sent within a fixed time is Z, the output signal 4 of the PID separation unit 416 in FIG.
When 60 is Z, the PID match signal 461 will be Low. Therefore, after time T3 in FIG. 2, the PID coincidence signal 461 is Low.

【0039】ここで、一定時間内に必ず送られてくる特
定のパケットのPIDとは、OxOOOO〜OxOOOF、Ox1FFFを
さし、この中で、特に、OxOOOOは、番組情報を送るため
のパケットに使われるPIDであり、このPIDは如何
なるTransport Streamにも存在する。そのため、一定時
間内に必ず送られてくる特定のパケットのPIDの値と
して、端子404にOxOOOOを入力するのが、最適であ
る。
Here, the PID of a specific packet that is always sent within a fixed time refers to OxOOOO to OxOOOF, Ox1FFF, and among these, OxOOOO is used for a packet for sending program information. This PID exists in any Transport Stream. Therefore, it is optimal to input OxOOOO to the terminal 404 as the PID value of a specific packet that is always sent within a fixed time.

【0040】パケット同期判定部413では、PID一
致信号461に従って、1パケットに1回の周期で検出
されたスタートコードのパターンが本当にスタートコー
ドであるかどうかの判定をしている。判定の結果、スタ
ートコードと判定されれば、パケットスタートタイミン
グ信号455を端子403に出力する。一方、スタート
コードと判定されなければ、リセット信号457を出力
し、このリセット信号は、論理積回路414を経て、内
部同期信号発生部411に供給されリセットをかける。
パケット同期信号454は、図2(c)に示してあり、
PID一致信号461は、図2(f)に示してあり、パ
ケットスタートタイミング信号455は、図2(h)に
示す。また、リセット信号457は、図2(g)に示し
た。図2に示すPID一致信号461が、Lowになっ
たときは、一定時間内に必ず送られてくる特定パケット
のPIDの値がTransport Stream451中に検出された
ことを示しているので、このとき初めて、パケットスタ
ートタイミング信号455は、188バイト周期のLo
wのパルスとなる。しかし、一定時間内に必ず送られて
くる特定パケットのPIDの値が検出されず、PID一
致信号461のHigh(ハイレベル)の期間が指定期
間以上続けば、図2の時間T2の次に示すように、リセ
ット信号457は、Lowになり、内部同期信号発生部
411にリセットをかけるようにしてる。
The packet synchronization judgment unit 413 judges according to the PID coincidence signal 461 whether or not the pattern of the start code detected once per packet is really the start code. If the result of determination is that it is a start code, packet start timing signal 455 is output to terminal 403. On the other hand, if it is not determined to be the start code, the reset signal 457 is output, and this reset signal is supplied to the internal synchronization signal generation unit 411 via the AND circuit 414 and resets.
The packet sync signal 454 is shown in FIG.
The PID match signal 461 is shown in FIG. 2 (f), and the packet start timing signal 455 is shown in FIG. 2 (h). The reset signal 457 is shown in FIG. When the PID match signal 461 shown in FIG. 2 becomes Low, it means that the PID value of the specific packet that is surely sent within the fixed time is detected in the Transport Stream 451. , The packet start timing signal 455 is Lo with a cycle of 188 bytes.
It becomes a pulse of w. However, if the PID value of the specific packet that is always sent within a certain time is not detected and the High (high level) period of the PID coincidence signal 461 continues for a designated period or more, the time T2 shown in FIG. As described above, the reset signal 457 becomes Low, and the internal synchronization signal generator 411 is reset.

【0041】パケット同期判定部413は、パケット同
期信号を用いてパケットスタートタイミング信号を出力
するが、この決定はPID一致信号461がLowのと
きに許容される。またパケット同期判定部413は、こ
のときビットストリームのパケットスタートコードの判
定機能を備えてもよく、スタートコードがパケット同期
信号のタイミング期間に存在するかどうかを確認できる
ようにしてもよい。
The packet synchronization determination unit 413 outputs the packet start timing signal using the packet synchronization signal, and this determination is permitted when the PID coincidence signal 461 is Low. Further, the packet synchronization determination unit 413 may have a function of determining the packet start code of the bit stream at this time, and may be able to confirm whether or not the start code exists in the timing period of the packet synchronization signal.

【0042】以上の動作により、端子403には、スタ
ートコードを基準にして作られた188バイトに1回の
周期のパルスが出力され、これは、Transport Stream4
51からTransport Packetを分離するパケットスタート
タイミング信号となっている。よって、このパケットス
タートタイミング信号を用いることにより、Transport
Streamから確実にパケットを分離することができる。 (実施例1に関する効果)上記の実施例により、Transp
ort Streamスタートコードと同様のパターンがパケット
周期で存在しても、確実にスタートコードだけを検出
し、Transport Streamからパケットを分離するパケット
スタートタイミングを作り出すことができる。 (第2の実施例)図3は、この発明における第2の実施
例を示す。
By the above operation, a pulse having a cycle of once every 188 bytes made based on the start code is output to the terminal 403, which is Transport Stream 4
It is a packet start timing signal for separating Transport Packet from 51. Therefore, by using this packet start timing signal, Transport
Packets can be reliably separated from Stream. (Effects of Embodiment 1) Transp
Even if a pattern similar to the ort Stream start code exists in the packet cycle, it is possible to reliably detect only the start code and create the packet start timing that separates the packet from the Transport Stream. (Second Embodiment) FIG. 3 shows a second embodiment of the present invention.

【0043】先の実施例と基本的に同一部分には同一符
号を付している。第1の実施例と同様パケット化された
ビットストリームとしてISO/IEC13818のTr
ansport Streamを例に説明していく。
Basically, the same parts as those in the previous embodiment are designated by the same reference numerals. As in the first embodiment, a Tr of ISO / IEC13818 is used as a packetized bit stream.
Let's take ansport Stream as an example.

【0044】端子401からは、ISO/IEC138
18のTransport Streamが入力される。端子401から
入力されたTransport Stream451は、端子402とス
タートコード検出部410とPID分離部616に入力
される。
From the terminal 401, the ISO / IEC138
18 Transport Streams are input. The Transport Stream 451 input from the terminal 401 is input to the terminal 402, the start code detection unit 410, and the PID separation unit 616.

【0045】スタートコード検出部410は、Transpor
t Stream451からスタートコードのパターンとなって
いるOx47のパターンを検出し、スタートコード検出信号
452を得て、この検出信号を内部同期信号発生部41
1とパケット同期信号発生部412に供給する。図4
(a)に示すように、スタートコード検出部410は、
スタートコードのパターンであるOx47を検出すると、L
owを出力する。Ox47というパターンは、スタートコー
ド以外にも、ビットストリーム中に多数ランダムに存在
する可能性があるため、スタートコード検出信号452
は、図4(a)に示すように不規則にLowになった信
号となっている。
The start code detector 410 is a Transpor
The Ox47 pattern that is the start code pattern is detected from the t Stream 451 to obtain the start code detection signal 452, and this detection signal is used as the internal synchronization signal generation unit 41.
1 and the packet synchronization signal generator 412. FIG.
As shown in (a), the start code detector 410 is
When Ox47, which is the start code pattern, is detected, L
Output ow. In addition to the start code, a large number of Ox47 patterns may exist randomly in the bitstream. Therefore, the start code detection signal 452
Is an irregularly low signal as shown in FIG.

【0046】内部同期信号発生部411では、リセット
信号458によりリセットがかかった直後に入力される
スタートコード検出信号452のLowの値を基準に、
1パケットに1回の割合の周期的なパルスを発生する内
部同期信号453を出力し、パケット同期信号発生部4
12とタイミング信号発生部415に供給している。内
部同期信号453は、図4(b)に示すように、188
バイト周期でLowのパルスを発する信号である。
The internal synchronizing signal generator 411 uses the Low value of the start code detection signal 452, which is input immediately after the reset signal 458 is applied, as a reference.
The packet synchronizing signal generator 4 outputs the internal synchronizing signal 453 that generates a periodic pulse once per packet.
12 and the timing signal generator 415. The internal synchronization signal 453 is 188 as shown in FIG.
It is a signal that emits a Low pulse at a byte cycle.

【0047】パケット同期信号発生部412では、スタ
ートコード検出信号452と内部同期信号453から1
パケットに1回の周期で現れるOx47のパターンのみを検
出し、パケット同期信号454として、パケット同期判
定部413に供給している。また、パケット同期信号発
生部412から出力される信号456は、リセット信号
である。パケット同期信号454は、図4(c)に示
す。パケット同期信号発生部412においては、スター
トコード検出信号452と内部同期信号453を比較
し、内部同期信号453がLowとなる期間に対しスタ
ートコード検出信号452がLowとなる期間が一致す
るまで、リセット信号456を出力し、論理積回路41
4を経て、内部同期信号発生部411にリセットをか
け、内部同期信号453の位相を調整する。内部同期信
号453がLowとなる期間に対し、スタートコード検
出信号452がLowとなる期間が一致したら、Low
の期間が一致した回数がカウントされる。この一致した
回数が、一定値以上になると、パケット同期信号発生部
412は、188バイトに1回のLowのパルスを出力
する(図4の時間T1以降)。
The packet sync signal generator 412 outputs the start code detection signal 452 and the internal sync signal 453 to 1
Only the Ox47 pattern that appears in the packet once is detected and supplied as a packet synchronization signal 454 to the packet synchronization determination unit 413. The signal 456 output from the packet synchronization signal generator 412 is a reset signal. The packet synchronization signal 454 is shown in FIG. The packet synchronization signal generation unit 412 compares the start code detection signal 452 with the internal synchronization signal 453, and resets the period when the start code detection signal 452 is Low with respect to the period when the internal synchronization signal 453 is Low. The signal 456 is output, and the logical product circuit 41
After 4, the internal synchronization signal generator 411 is reset and the phase of the internal synchronization signal 453 is adjusted. When the period in which the start code detection signal 452 is Low matches the period in which the internal synchronization signal 453 is Low, Low
The number of times that the periods are matched is counted. When the number of coincidences exceeds a certain value, the packet synchronization signal generator 412 outputs a Low pulse once for 188 bytes (after time T1 in FIG. 4).

【0048】一方、タイミング信号発生部615では、
内部同期信号453を受け、Transport Stream451か
らPIDを分離するためのタイミング信号659を発生
する。タイミング信号659は、図4(d)に示した。
タイミング信号659は、PID分離部616に供給さ
れる。
On the other hand, in the timing signal generator 615,
Upon receiving the internal synchronization signal 453, the timing signal 659 for separating the PID from the Transport Stream 451 is generated. The timing signal 659 is shown in FIG.
The timing signal 659 is supplied to the PID separation unit 616.

【0049】PID分離部616では、タイミング信号
659に従って、Transport Stream451からPIDの
部分を分離して、比較部617に出力している。比較部
617では、PID分離部616から入力されるPID
の値と、端子604から入力される一定時間内に必ず送
られてくる特定のパケットのPIDの値が一致している
かを判定し、判定結果をPID一致信号661として、
PID一致信号カウント部618に出力している。図4
(e)にPID分離部416の出力信号460を、図4
(f)にPID一致信号661を示した。この実施例に
おいては、分離されたPIDの値は、A、C、Z、B、
A、Z、A、Z、C、Aとなっている。この実施例にお
いて、一定時間内に必ず送られてくる特定のパケットの
PIDの値がZであるとすると、図4において、PID
分離部616の出力信号660がZのときに、PID一
致信号661は、Lowになる。
The PID separation unit 616 separates the PID portion from the Transport Stream 451 according to the timing signal 659 and outputs it to the comparison unit 617. In the comparison unit 617, the PID input from the PID separation unit 616
And the PID value of a specific packet that is always sent within a fixed time input from the terminal 604 are determined, and the determination result is a PID match signal 661.
It is output to the PID coincidence signal counting unit 618. FIG.
The output signal 460 of the PID separation unit 416 is shown in FIG.
The PID coincidence signal 661 is shown in (f). In this example, the separated PID values are A, C, Z, B,
A, Z, A, Z, C, A. In this embodiment, assuming that the PID value of a specific packet that is always sent within a fixed time is Z, in FIG.
When the output signal 660 of the separation unit 616 is Z, the PID match signal 661 becomes Low.

【0050】PID一致信号カウント部618では、P
ID一致信号661を受け、Transport Stream451か
ら分離されたPIDと端子604から入力された一定時
間内に必ず送られてくる特定のパケットのPIDの値の
一致した回数をカウントしている。このカウント値が一
定値以上になると、図4に示す時間T2以降のように、
PID一致信号カウント部618の出力信号662は、
Lowとなる。また、PID一致信号カウント部618
は、リセット信号458によって指定時間内にリセット
される。PID一致信号カウント部618の出力信号6
62は、パケット同期判定部413に入力される。
In the PID coincidence signal counting section 618, P
Upon receiving the ID match signal 661, the number of times the PID separated from the Transport Stream 451 and the PID value of a specific packet that is always sent within a certain time input from the terminal 604 are counted is counted. When the count value becomes a certain value or more, as in the time T2 and thereafter shown in FIG.
The output signal 662 of the PID coincidence signal counting unit 618 is
It becomes Low. Also, the PID match signal counting unit 618
Are reset within a specified time by a reset signal 458. Output signal 6 of PID coincidence signal counting section 618
62 is input to the packet synchronization determination unit 413.

【0051】パケット同期判定部413では、PID一
致信号カウント部618の出力信号662により、1パ
ケットに1回の割合の周期で検出されたスタートコード
のパターンが本当にスタートコードかどうかの判定をし
ている。その結果、スタートコードと判定されれば、パ
ケットスタートタイミング455を端子403に供給す
る。一方、スタートコードと判定されなければ、リセッ
ト信号457を出力し、このリセット信号は、論理積回
路414を経て、内部同期信号発生部411とPID一
致信号カウント部418に供給されリセットをかける。
図4に示すように、PID一致信号カウント部618の
出力信号662が、Lowに落ちたときは、一定時間内
に必ず送られてくる特定のパケットのPIDの値がTran
sport Stream451中に規定された回数以上検出された
ことを示しているので、このとき初めて、パケットスタ
―トタイミング信号455は、188バイト周期のLo
wのパルスとなる。
The packet synchronization judgment unit 413 judges whether the pattern of the start code detected at a cycle of once per packet is really a start code by the output signal 662 of the PID coincidence signal counting unit 618. There is. As a result, if the start code is determined, the packet start timing 455 is supplied to the terminal 403. On the other hand, if it is not determined to be the start code, a reset signal 457 is output, and this reset signal is supplied to the internal synchronization signal generation section 411 and the PID coincidence signal counting section 418 via the AND circuit 414 and resets.
As shown in FIG. 4, when the output signal 662 of the PID coincidence signal counting unit 618 falls to Low, the PID value of a specific packet that is always sent within a fixed time is Tran.
Since it indicates that the sport stream 451 has been detected more than the specified number of times, the packet start timing signal 455 is the first time at this time that the 188-byte cycle Lo
It becomes a pulse of w.

【0052】以上の動作により、端子403には、スタ
ートコードを基準にして作られた188バイトに1回の
周期のパルスが出力され、これは、Transport Stream4
51からTransport Packetを分離するパケットスタート
タイミングとなっている。よって、このパケットスター
トタイミングを用いることにより、Transport Streamか
ら確実にパケットを分離することができる。 (実施例2に関する効果)この実施例によれば、Transp
ort Streamスタートコードと同様のパターンがパケット
周期で存在しても、確実にスタートコードだけを検出
し、Transport Streamからパケットを分離するパケット
スタートタイミングを作り出すことができる。 (実施例3)図5は、この発明の第3の実施例を示す。
By the above operation, a pulse having a cycle of once every 188 bytes created based on the start code is output to the terminal 403, which is Transport Stream 4
It is the packet start timing for separating the Transport Packet from 51. Therefore, by using this packet start timing, the packet can be reliably separated from the Transport Stream. (Effects of Second Embodiment) According to this embodiment, Transp
Even if a pattern similar to the ort Stream start code exists in the packet cycle, it is possible to reliably detect only the start code and create the packet start timing that separates the packet from the Transport Stream. (Embodiment 3) FIG. 5 shows a third embodiment of the present invention.

【0053】先の実施例と基本的に同一部分には同一符
号を付している。第1の実施例と同様パケット化された
ビットストリームとしてISO/IEC13818のTr
ansport Streamを例に説明していく。
Basically the same parts as those of the previous embodiment are designated by the same reference numerals. As in the first embodiment, a Tr of ISO / IEC13818 is used as a packetized bit stream.
Let's take ansport Stream as an example.

【0054】端子401からは、ISO/IEC138
18のTransport Streamが入力される。端子401から
入力されたTransport Stream451は、端子402とス
タ―トコ―ド検出部410とPID分離部816とカウ
ント値分離部818に入力される。
From the terminal 401, the ISO / IEC138
18 Transport Streams are input. The Transport Stream 451 input from the terminal 401 is input to the terminal 402, the start code detection unit 410, the PID separation unit 816, and the count value separation unit 818.

【0055】スタートコード検出部410は、Transpor
t Stream451からスタートコードのパターンとなって
いるOx47のパターンを検出し、スタートコード検出信号
452を得て、この信号を内部同期信号発生部411と
パケット同期信号発生部412に供給する。図6(a)
に示すように、スタートコード検出部410は、スター
トコードのパターンであるOx47を検出すると、Lowを
出力する。Ox47というパターンは、スタートコード以外
にも、ビットストリーム中に多数ランダムに存在する可
能性があるため、スタートコード検出信号452は、図
6(a)に示すように不規則にLowに変化する信号と
なっている。
The start code detecting section 410 is a Transpor
A pattern of Ox47 which is a start code pattern is detected from the t Stream 451 to obtain a start code detection signal 452, and this signal is supplied to the internal synchronization signal generation unit 411 and the packet synchronization signal generation unit 412. Figure 6 (a)
As shown in, the start code detection unit 410 outputs Low when detecting Ox47 which is the pattern of the start code. In addition to the start code, a large number of Ox47 patterns may exist in the bit stream at random, so the start code detection signal 452 is a signal that randomly changes to Low as shown in FIG. 6A. Has become.

【0056】内部同期信号発生部411では、リセット
信号458によりリセットがかった直後に入力されるス
タートコード検出信号452のLowの値を基準に、1
パケットに1回の割合の周期的なパルスを発生する内部
同期信号453を出力し、パケット同期信号発生部41
2とタイミング信号発生部815に供給している。内部
同期信号453は、図6(b)に示すように、188バ
イト周期でLowのパルスとなる信号である。
In the internal synchronizing signal generator 411, 1 is set based on the Low value of the start code detection signal 452 which is input immediately after reset by the reset signal 458.
The packet synchronizing signal generator 41 outputs the internal synchronizing signal 453 that generates a periodic pulse once per packet.
2 and the timing signal generator 815. As shown in FIG. 6B, the internal synchronization signal 453 is a signal that becomes a Low pulse at a cycle of 188 bytes.

【0057】パケット同期信号発生部412では、スタ
ートコード検出信号452と内部同期信号453から1
パケットに1回の周期で現れるOx47のパターンのみを検
出し、パケット同期信号454として、パケット同期判
定部413に供給している。また、パケット同期信号発
生部412から出力される信号456は、リセット信号
である。パケット同期信号454は、図6(c)に示す
ようなパルスである。パケット同期信号発生部412に
おいては、スタートコード検出信号452と内部同期信
号453を比較し、内部同期信号453がLowとなる
期間に対しスタートコード検出信号452がLowとな
る期間が一致するまで、リセット信号456を出力し、
論理積回路414を経て、内部同期信号発生部411に
リセットをかけ、内部同期信号453の位相を調整す
る。内部同期信号453がLowとなる期間に対し、ス
タートコード検出信号452がLowとなる期間が一致
したら、Lowの期間が一致した回数をカウントする。
この一致した回数が、一定値以上になると、パケット同
期信号発生部412は、188バイトに1回Lowとな
るパルスを出力する(図6の時間T1以降)。
The packet sync signal generator 412 outputs the start code detection signal 452 and the internal sync signal 453 from 1 to 1.
Only the Ox47 pattern that appears in the packet once is detected and supplied as a packet synchronization signal 454 to the packet synchronization determination unit 413. The signal 456 output from the packet synchronization signal generator 412 is a reset signal. The packet synchronization signal 454 is a pulse as shown in FIG. The packet synchronization signal generation unit 412 compares the start code detection signal 452 with the internal synchronization signal 453, and resets the period when the start code detection signal 452 is Low with respect to the period when the internal synchronization signal 453 is Low. Output signal 456,
The internal sync signal generator 411 is reset via the AND circuit 414 to adjust the phase of the internal sync signal 453. When the period in which the start code detection signal 452 is Low matches the period in which the internal synchronization signal 453 is Low, the number of times the Low period is matched is counted.
When the number of times of coincidence becomes a certain value or more, the packet synchronization signal generation unit 412 outputs a pulse that becomes Low once in 188 bytes (after time T1 in FIG. 6).

【0058】一方、タイミング信号発生部815では、
内部同期信号453を受け、Transport Stream451か
らPIDを分離するためのタイミング信号859と、Tr
ansport Stream451から同じPIDを持つパケットの
連続性を示すコンティニュティ・カウンタを分離するた
めのタイミング信号862を発生する。タイミング信号
859は、図6(d)に示し、タイミング信号862は
図6(g)に示している。
On the other hand, in the timing signal generator 815,
The timing signal 859 for separating the PID from the Transport Stream 451 by receiving the internal synchronization signal 453, and Tr
A timing signal 862 for separating a continuity counter indicating continuity of packets having the same PID from the ansport Stream 451 is generated. The timing signal 859 is shown in FIG. 6 (d), and the timing signal 862 is shown in FIG. 6 (g).

【0059】PID分離部816では、タイミング信号
859に従って、Transport Stream4
51からPIDの部分を分離して、比較部817に供給
している。比較部817では、PID分離部816から
入力されるPIDの値と、端子804から入力される一
定時間内に必ず送られてくる特定のパケットのPIDの
値が一致しているかを判定し、判定結果をPID一致信
号861として、カウンタ値判定部819に出力してい
る。図6(e)にPID分離部816の出力信号860
を、図6(f)にPID一致信号861を示した。
In the PID separation unit 816, according to the timing signal 859, the Transport Stream 4
The PID portion is separated from 51 and supplied to the comparison unit 817. The comparison unit 817 determines whether or not the PID value input from the PID separation unit 816 and the PID value of a specific packet input from the terminal 804 that are necessarily sent within a fixed time match. The result is output as a PID coincidence signal 861 to the counter value determination unit 819. The output signal 860 of the PID separation unit 816 is shown in FIG.
6 (f) shows a PID coincidence signal 861.

【0060】この実施例では、分離されたPIDの値
は、A、C、Z、B、A、Z、A、Z、Cとなってい
る。この実施例において、一定時間内に必ず送られてく
る特定のパケットのPIDの値がZであるとすると、図
6において、PID分離部816の出力信号860がZ
のときにPID一致信号861はLowになる。
In this embodiment, the separated PID values are A, C, Z, B, A, Z, A, Z and C. In this embodiment, assuming that the PID value of a specific packet that is always sent within a fixed time is Z, the output signal 860 of the PID separation unit 816 is Z in FIG.
At this time, the PID coincidence signal 861 becomes Low.

【0061】一方、カウンタ値分離部818では、タイ
ミング信号862に従って、Transport St
ream451からコンティニュティ・カウンタの値の
部分を分離してカウンタ値判定部819を供給してい
る。図6において、分離されたコンティニュティ・カウ
ンタの値は、3、2、2、10、4、3、5、4、3と
なっている。
On the other hand, in the counter value separation unit 818, according to the timing signal 862, the Transport St
The value part of the continuity counter is separated from the ream 451 and supplied to the counter value determination unit 819. In FIG. 6, the values of the separated continuity counters are 3, 2, 2, 10, 4, 3, 5, 4, 3.

【0062】カウンタ値判定部819では、一定時間内
に必ず送られてくる特定のパケットのPIDの値を持つ
パケットのコンティニュティ・カウンタの値のみを抜き
出し、指定時間内に、このコンティニュティ・カウンタ
の値が一定または順次1つづつ上がってくるかを判定す
る。この例では、コンティニュティ・カウンタの値が一
定または順次1つづつ上がっていたら、カウンタ値判定
部819は、判定信号864をLowに変化させ、パケ
ット同期判定部413に出力する。図6において、時間
T2、T3、T4の直後では、PID一致信号861
は、それぞれLowである。このときのカウンタ値86
3を見ると、時間T2後は2、時間T3後は3、時間T
4後は4と1つづつ値が上がっている。そのため、時間
T4の後で、判定信号864は、Lowとなっている。
The counter value judgment unit 819 extracts only the value of the continuity counter of the packet having the PID value of the specific packet which is always sent within a fixed time, and within the designated time, this continuity counter is extracted.・ It is judged whether the value of the counter is constant or increases by one. In this example, if the value of the continuity counter is constant or has increased by one by one, the counter value determination unit 819 changes the determination signal 864 to Low and outputs it to the packet synchronization determination unit 413. In FIG. 6, immediately after the times T2, T3, and T4, the PID match signal 861
Are Low respectively. Counter value at this time 86
Looking at 3, it is 2 after time T2, 3 after time T3, and time T
After 4, the value has increased by 1 and 4. Therefore, the determination signal 864 becomes Low after the time T4.

【0063】パケット同期判定部413では、判定信号
864により、1パケットに1回の割合の周期で検出さ
れたスタートコードのパターンが本当にスタートコード
かどうかの判定をしている。その結果、スタートコード
と判定されれば、パケットスタートタイミング455を
端子403に供給する。一方、指定時間内にスタートコ
ードと判定されなければ、リセット信号457を出力
し、このリセット信号は、論理積回路414を経て、内
部同期信号発生部411に供給されリセットをかける。
図6に示すように、判定信号864が、Lowになった
ときは、パケット同期信号454のLowのパルスが、
Transport Stream451のスタートコードと一致したと
判定されたことであり、このとき初めて、パケットスタ
ートタイミング信号455は、188バイト周期のLo
wのパルスとなる。
The packet synchronization judgment unit 413 judges from the judgment signal 864 whether or not the pattern of the start code detected once per packet is really the start code. As a result, if the start code is determined, the packet start timing 455 is supplied to the terminal 403. On the other hand, if the start code is not determined within the designated time, the reset signal 457 is output, and the reset signal is supplied to the internal synchronization signal generation unit 411 via the AND circuit 414 and resets.
As shown in FIG. 6, when the determination signal 864 becomes Low, the Low pulse of the packet synchronization signal 454 becomes
It is determined that the start code of the Transport Stream 451 is matched, and at this time, the packet start timing signal 455 is the first Lo level of 188 bytes.
It becomes a pulse of w.

【0064】以上の動作により、端子403には、スタ
ートコードを基準にして作られた188バイトに1回の
周期のパルスが出力され、これは、Transport Stream4
51からTransport Packetを分離するパケットスタート
タイミング信号となっている。よって、このパケットス
タートタイミング信号を用いることにより、Transport
Streamから確実にパケットを分離することができる。 (実施例3の効果)上記の実施例によれば、Transport
Streamにスタートコードと同様のパターンがパケット周
期で存在しても、確実にスタートコードだけを検出し、
TransportStreamからパケットを分離するパケットスタ
ートタイミングを作り出すことができる。 (第4の実施例)図7はこの発明の第4の実施例を示
す。
By the above operation, a pulse having a cycle of once every 188 bytes made based on the start code is output to the terminal 403.
It is a packet start timing signal for separating Transport Packet from 51. Therefore, by using this packet start timing signal, Transport
Packets can be reliably separated from Stream. (Effect of Embodiment 3) According to the above-mentioned embodiment, the Transport
Even if a pattern similar to the start code is present in the Stream in the packet cycle, only the start code is reliably detected,
It is possible to create a packet start timing that separates the packet from the Transport Stream. (Fourth Embodiment) FIG. 7 shows a fourth embodiment of the present invention.

【0065】先の実施例と基本的に同一部分には同一符
号を付している。第1の実施例と同様パケット化された
ビットストリームとしてISO/IEC13818のTr
ansport Streamを例に説明していく。
Basically the same parts as those in the previous embodiment are designated by the same reference numerals. As in the first embodiment, a Tr of ISO / IEC13818 is used as a packetized bit stream.
Let's take ansport Stream as an example.

【0066】端子401からは、ISO/IEC138
18のTransport Streamが入力される。端子401から
入力されたTransport Stream451は、端子402とス
タートコード検出部410とPID分離部1216とP
ID保持部1219に入力される。
From the terminal 401, the ISO / IEC138
18 Transport Streams are input. The Transport Stream 451 input from the terminal 401 includes a terminal 402, a start code detection unit 410, a PID separation unit 1216, and a PID separation unit 1216.
It is input to the ID holding unit 1219.

【0067】スタートコード検出部410は、Transpor
t Stream451からスタートコードのパターンとなって
いるOx47のパターンを検出し、スタートコード検出信号
452を得て、この信号を内部同期信号発生部411と
パケット同期信号発生部412に供給する。図8(a)
に示すように、スタートコード検出部410は、スター
トコードのパターンであるOx47を検出すると、Lowと
なる検出信号を出力する。Ox47というパターンは、スタ
ートコード以外にも、ビットストリーム中に多数ランダ
ムに存在する可能性があるため、スタートコード検出信
号452は、図8(a)に示すように不規則にLowに
なる信号となっている。
The start code detecting section 410 uses the Transpor
A pattern of Ox47 which is a start code pattern is detected from the t Stream 451 to obtain a start code detection signal 452, and this signal is supplied to the internal synchronization signal generation unit 411 and the packet synchronization signal generation unit 412. Figure 8 (a)
As shown in, when the start code detection unit 410 detects the start code pattern Ox47, the start code detection unit 410 outputs a detection signal that becomes Low. In addition to the start code, a large number of Ox47 patterns may exist randomly in the bitstream, so the start code detection signal 452 is irregularly low as shown in FIG. 8A. Has become.

【0068】内部同期信号発生部411では、リセット
信号458によりリセットがかかった直後に入力される
スタートコード検出信号452のLowの値を基準に、
1パケットに1回の割合の周期的なパルスを発生する内
部同期信号453を出力し、パケット同期信号発生部4
12とタイミング信号発生部1215に供給している。
内部同期信号453は、図8(b)に示すように、18
8バイト周期でLowのパルスを発する信号である。
In the internal synchronizing signal generation section 411, the Low value of the start code detection signal 452 which is input immediately after the reset signal 458 is applied is used as a reference.
The packet synchronizing signal generator 4 outputs the internal synchronizing signal 453 that generates a periodic pulse once per packet.
12 and the timing signal generator 1215.
The internal synchronization signal 453 is 18 as shown in FIG.
It is a signal that emits a Low pulse at a cycle of 8 bytes.

【0069】パケット同期信号発生部412では、スタ
ートコード検出信号452と内部同期信号453から1
パケットに1回の周期で現れるOx47のパターンのみを検
出し、パケット同期信号454として、パケット同期判
定部413に供給している。また、パケット同期信号発
生部412から出力される信号456は、リセット信号
である。パケット同期信号454は、図8(c)に示
す。パケット同期信号発生部412において、スタート
コード検出信号452と内部同期信号453を比較し、
内部同期信号453がLowの期間に対しスタートコー
ド検出信号452がLowとなる期間が一致するまで、
リセット信号456を出力し、論理積回路414を経
て、内部同期信号発生部411にリセットをかけ、内部
同期信号453の位相を調整する。内部同期信号453
がLowである期間に対し、スタートコード検出信号4
52がLowとなる期間が一致したら、Lowの期間が
一致した回数をカウントする。この一致した回数が、一
定値以上になると、パケット同期信号発生部412は、
188バイトに1回のLowのパルスを出力する(図8
の時間T1以降)。
The packet sync signal generator 412 outputs the start code detection signal 452 and the internal sync signal 453 to 1
Only the Ox47 pattern that appears in the packet once is detected and supplied as a packet synchronization signal 454 to the packet synchronization determination unit 413. The signal 456 output from the packet synchronization signal generator 412 is a reset signal. The packet synchronization signal 454 is shown in FIG. The packet sync signal generator 412 compares the start code detection signal 452 with the internal sync signal 453,
Until the period in which the start code detection signal 452 is Low matches the period in which the internal synchronization signal 453 is Low,
The reset signal 456 is output, the internal sync signal generator 411 is reset via the AND circuit 414, and the phase of the internal sync signal 453 is adjusted. Internal synchronization signal 453
Start code detection signal 4 for the period when is Low
When the period in which 52 becomes Low coincides, the number of times that the period in Low coincides is counted. When the number of times of coincidence becomes a certain value or more, the packet synchronization signal generator 412
A low pulse is output once every 188 bytes (see FIG. 8).
After time T1).

【0070】一方、タイミング信号発生部1215で
は、内部同期信号453を受け、Transport Stream45
1から不特定の1つのPIDを保持するための制御信号
1263と、PID保持部1219に保持されたPID
を読み出すためとTransport Stream451からPIDを
分離るためのタイミング信号1259を発生する。
On the other hand, the timing signal generator 1215 receives the internal synchronization signal 453 and receives the Transport Stream 45.
Control signal 1263 for holding one unspecified PID from 1 and PID held in PID holding unit 1219
, And a timing signal 1259 for separating the PID from the Transport Stream 451.

【0071】PID保持部1219では、図8(d)に
示す信号1263に従って、信号1263がLowの期
間に、Transport Stream451から不特定の1つパケッ
トのPIDを保持する。保持されたPIDは、図8
(f)に示すタイミング信号1259に従って、タイミ
ング信号1259がLowのタイミングで読みだされ
る。読みだされたPIDは、比較部1217に入力され
る。この実施例では、PID保持部1219に保持され
るPIDの値は、Dとなっている。
The PID holding unit 1219 holds the PID of one unspecified packet from the Transport Stream 451 according to the signal 1263 shown in FIG. 8D while the signal 1263 is Low. The retained PID is shown in FIG.
According to the timing signal 1259 shown in (f), the timing signal 1259 is read at the timing of Low. The read PID is input to the comparison unit 1217. In this embodiment, the PID value held in the PID holding unit 1219 is D.

【0072】PID分離部1216では、タイミング信
号1259に従って、Transport Stream451からPI
Dの部分を分離して、比較部1217に供給している。
比較部1217では、PID分離部1216から入力さ
れるPIDの値と、PID保持部1219から読みださ
れるPIDの値が一致しているかどうかを判定し、一致
している場合はその結果をPID一致信号1261とし
て、PID一致信号カウント部1218に出力してい
る。図8(g)にPID分離部1216の出力信号12
60を、図8(h)にPID一致信号1261を示し
た。この実施例では、分離されたPIDの値は、D、
D、B、A、D、A、D、C、Aとなっている。PID
保持部1219に保持されたPIDの値はDであるの
で、図8において、PID分離部1216の出力信号1
260がDのときに、PID一致信号1261は、Lo
wになっている。
In the PID separation unit 1216, according to the timing signal 1259, the transport stream 451 to PI
The portion D is separated and supplied to the comparison unit 1217.
The comparison unit 1217 determines whether or not the PID value input from the PID separation unit 1216 and the PID value read from the PID holding unit 1219 match, and if they match, the result is PID. The match signal 1261 is output to the PID match signal counting unit 1218. The output signal 12 of the PID separation unit 1216 is shown in FIG.
60, and the PID coincidence signal 1261 is shown in FIG. In this example, the separated PID values are D,
D, B, A, D, A, D, C, A. PID
Since the value of the PID held in the holding unit 1219 is D, the output signal 1 of the PID separation unit 1216 in FIG.
When 260 is D, the PID match signal 1261 is Lo
It is w.

【0073】PID一致信号カウント部1218では、
PID一致信号1261により、PID保持部1219
に保持されたPIDとPID分離部1216で分離され
たPIDの一致した回数をカウントしている。カウント
は、指定時間行われ、指定時間を過ぎるとリセット信号
1258によりPID一致信号カウント部1218にリ
セットがかかる。カウントした値が、一定値以上になる
と、PID一致信号カウント部1218は、Lowとな
る判定信号1262を出力する。判定信号1262は、
図8(i)に示されている。図8において、時間T4に
達したとき、カウントした値が一定値以上になったた
め、判定信号1262は、時間T4の瞬間Lowに変化
している。PID一致信号カウント部1218から出力
される判定信号1262は、パケット同期判定部413
に入力される。
In the PID coincidence signal counting section 1218,
By the PID match signal 1261, the PID holding unit 1219
The number of times the PID held by the PID and the PID separated by the PID separation unit 1216 match are counted. Counting is performed for a designated time, and after the designated time has passed, the reset signal 1258 resets the PID coincidence signal counting unit 1218. When the counted value exceeds a certain value, the PID coincidence signal counting unit 1218 outputs the determination signal 1262 that becomes Low. The determination signal 1262 is
This is shown in FIG. 8 (i). In FIG. 8, when the time T4 is reached, the counted value becomes equal to or larger than a certain value, and therefore the determination signal 1262 changes to the instant Low of the time T4. The determination signal 1262 output from the PID coincidence signal counting unit 1218 is the packet synchronization determination unit 413.
Is input to

【0074】パケット同期判定部413では、判定信号
1262に従って、1パケットに1回の割合の周期で検
出されたスタートコードのパターンが本当にスタートコ
ードかどうかの判定をしている。その結果、スタートコ
ードと判定されれば、パケットスタートタイミング45
5を端子403に供給する。一方、スタートコードと判
定されなければ、リセット信号457を出力し、このリ
セット信号は、論理積回路414を経て、内部同期信号
発生部411とPID一致信号カウント部1218に供
給されリセットをかける。図8に示すように、判定信号
1262が、Lowになったときは、パケット同期信号
454のLowのパルスが、TransportStream451の
スタートコードと一致したと判定されたことなので、こ
のとき初めて、PID分離信号455(図8(j))
は、188バイト周期でLowとなるパルス列として出
力される。
The packet synchronization judgment unit 413 judges according to the judgment signal 1262 whether the pattern of the start code detected once per packet is really the start code. As a result, if the start code is determined, the packet start timing 45
5 is supplied to the terminal 403. On the other hand, if it is not determined to be the start code, a reset signal 457 is output, and the reset signal is supplied to the internal synchronization signal generation unit 411 and the PID coincidence signal counting unit 1218 via the AND circuit 414 to reset. As shown in FIG. 8, when the determination signal 1262 becomes Low, it is determined that the Low pulse of the packet synchronization signal 454 matches the start code of the TransportStream 451. 455 (FIG. 8 (j))
Is output as a pulse train that becomes Low in a cycle of 188 bytes.

【0075】以上の動作により、端子403には、スタ
ートコードを基準にして作られた188バイトに1回の
周期のパルスが出力され、これは、Transport Stream4
51からTransport Packetを分離するパケットスタート
タイミングとなっている。よって、このパケットスター
トタイミングを用いることにより、Transport Streamか
ら確実にパケットを分離することができる。 (第4の実施例に関する効果)以上説明したようにこの
実施例によると、Transport Streamにスタートコードと
同様のパターンがパケット周期で存在しても、確実にス
タートコードだけを検出し、Transport Streamからパケ
ットを分離するパケットスタートタイミングを作り出す
ことができる。 (実施例5)図9にはこの発明における第5の実施例を
示す。
By the above operation, a pulse having a cycle of once every 188 bytes created based on the start code is output to the terminal 403.
It is the packet start timing for separating the Transport Packet from 51. Therefore, by using this packet start timing, the packet can be reliably separated from the Transport Stream. (Effect of Fourth Embodiment) As described above, according to this embodiment, even if a pattern similar to the start code is present in the Transport Stream in the packet cycle, only the start code is reliably detected and the Transport Stream is detected. A packet start timing that separates packets can be created. (Embodiment 5) FIG. 9 shows a fifth embodiment of the present invention.

【0076】先の実施例と基本的に同一部分には同一符
号を付している。第1の実施例と同様パケット化された
ビットストリームとしてISO/IEC13818のTr
ansport Streamを例に説明していく。
Basically the same parts as those of the previous embodiment are designated by the same reference numerals. As in the first embodiment, a Tr of ISO / IEC13818 is used as a packetized bit stream.
Let's take ansport Stream as an example.

【0077】端子401からは、ISO/IEC138
18のTransport Streamが入力される。端子401から
入力されたTransport Stream451は、端子402とス
タートコード検出部410とPID分離部1016とカ
ウンタ値分離部1018とPID保持部1020に入力
される。
From the terminal 401, the ISO / IEC138
18 Transport Streams are input. The Transport Stream 451 input from the terminal 401 is input to the terminal 402, the start code detection unit 410, the PID separation unit 1016, the counter value separation unit 1018, and the PID holding unit 1020.

【0078】スタートコード検出部410は、Transpor
t Stream451からスタートコードのパターンとなって
いるOx47のパターンを検出し、スタートコード検出信号
1052を得て、この信号を内部同期信号発生部411
とパケット同期信号発生部412に供給する。図10
(a)に示してあるように、スタートコード検出部41
0は、スタートコードのパターンであるOx47を検出する
と、Lowとなる検出信号を出力する。Ox47というパタ
ーンは、スタートコード以外にも、ビットストリーム中
に多数ランダムに存在する可能性があるため、スタート
コード検出信号452は、図10(a)に示すように不
規則にLowとなる信号となっている。
The start code detecting section 410 uses the Transpor
The Ox47 pattern that is the start code pattern is detected from the t Stream 451 to obtain the start code detection signal 1052, and this signal is used as the internal synchronization signal generation unit 411.
And packet synchronization signal generator 412. Figure 10
As shown in (a), the start code detector 41
When 0 detects Ox47 which is the pattern of the start code, 0 outputs a detection signal which becomes Low. In addition to the start code, a large number of Ox47 patterns may exist randomly in the bitstream, so the start code detection signal 452 is an irregular Low signal as shown in FIG. 10A. Has become.

【0079】内部同期信号発生部411では、リセット
信号458によりリセットがかかった直後に入力される
スタートコード検出信号452のLowの値を基準に、
1パケットに1回の割合の周期的なパルスを発生する内
部同期信号453を出力し、この信号をパケット同期信
号発生部412とタイミング信号発生部1015に供給
している。内部同期信号453は、図10(b)に示し
てあるように、188バイト周期でLowとなるパルス
信号である。
In the internal synchronizing signal generation section 411, the Low value of the start code detection signal 452 which is input immediately after being reset by the reset signal 458 is used as a reference.
The internal synchronization signal 453 that generates a periodic pulse once per packet is output, and this signal is supplied to the packet synchronization signal generation unit 412 and the timing signal generation unit 1015. The internal synchronization signal 453 is a pulse signal that becomes Low in a cycle of 188 bytes, as shown in FIG.

【0080】パケット同期信号発生部412では、スタ
ートコード検出信号452と内部同期信号453から1
パケットに1回の周期で現れるOx47のパターンのみを検
出し、パケット同期信号454として、パケット同期判
定部413に供給している。また、パケット同期信号発
生部412から出力される信号456は、リセット信号
である。パケット同期信号454は、図10(c)に示
すような信号である。パケット同期信号発生部412に
おいては、スタートコード検出信号452と内部同期信
号453を比較し、内部同期信号453がLowになる
期間に対しスタートコード検出信号452がLowにな
る期間が一致するまで、リセット信号456を出力し、
論理積回路414を経て、内部同期信号発生部411に
リセットをかけ、内部同期信号453の位相を調整す
る。内部同期信号453がLowに落ちている期間に対
し、スタートコード検出信号452がLowになる期間
が一致したら、Lowの期間が一致した回数をカウント
する。この一致した回数が、一定値以上になると、パケ
ット同期信号発生部1012は、188バイトに1回の
Lowのパルスを発生する(図10の時間T1以降)。
The packet sync signal generator 412 outputs the start code detection signal 452 and the internal sync signal 453 from 1 to 1.
Only the Ox47 pattern that appears in the packet once is detected and supplied as a packet synchronization signal 454 to the packet synchronization determination unit 413. The signal 456 output from the packet synchronization signal generator 412 is a reset signal. The packet synchronization signal 454 is a signal as shown in FIG. The packet synchronization signal generation unit 412 compares the start code detection signal 452 and the internal synchronization signal 453, and resets them until the period when the start code detection signal 452 is Low matches the period when the internal synchronization signal 453 is Low. Output signal 456,
The internal sync signal generator 411 is reset via the AND circuit 414 to adjust the phase of the internal sync signal 453. When the period in which the start code detection signal 452 is Low coincides with the period in which the internal synchronization signal 453 is Low, the number of times the Low period is coincident is counted. When the number of coincidences exceeds a certain value, the packet synchronization signal generator 1012 generates a Low pulse once in 188 bytes (after time T1 in FIG. 10).

【0081】ここで、タイミング信号発生部1015で
は、内部同期信号453を受け、Transport Stream45
1から不特定の1つのPIDを保持するための制御信号
1065と、PID保持部1020に保持されたPID
を読み出すためとTransportStream1051からPID
を分離するためのタイミング信号1059と、Transpor
t Stream1051から同じPIDを持つパケットの連続
性を示すコンティニュティ・カウンタの値を分離するた
めのタイミング信号1062を発生する。
Here, the timing signal generator 1015 receives the internal synchronization signal 453 and receives the Transport Stream 45.
The control signal 1065 for holding one unspecified PID from 1 and the PID held in the PID holding unit 1020
To read the PID from TransportStream1051
Signal 1059 for separating the
A timing signal 1062 for separating the value of the continuity counter indicating the continuity of packets having the same PID from the t Stream 1051 is generated.

【0082】PID保持部1020では、図10(d)
に示す信号1065に従って、信号1065がLowの
期間に、Transport Stream451から不特定の1つのP
IDを保持する。保持されたPIDは、図10(f)に
示すタイミング信号1059に従って、タイミング信号
1059がLowとなるタイミングのときに読みだされ
る。読みだされたPIDは、比較部1017に入力され
る。この実施例では、PID保持部1020に保持され
るPIDの値は、Dとなっている。
In the PID holding unit 1020, FIG.
In accordance with the signal 1065 shown in FIG.
Holds the ID. The held PID is read at the timing when the timing signal 1059 becomes Low according to the timing signal 1059 shown in FIG. The read PID is input to the comparison unit 1017. In this embodiment, the PID value held in the PID holding unit 1020 is D.

【0083】PID分離部1016では、タイミング信
号1059に従って、Transport Stream451からPI
Dの部分を分離して、比較部1017に出力している。
比較部1017では、PID分離部1016から入力さ
れるPIDの値と、PID保持部1020から読みださ
れるPIDの値が一致しているかどうかを判定し、その
結果をPID一致信号1061として、カウンタ値判定
部1019に出力している。図10(g)にPID分離
部1016の出力信号1060を、図10(h)にPI
D一致信号1061を示している。この実施例では、分
離されたPIDの値は、D、D、B、A、D、A、D、
C、Aとなっている。PID保持部1020に保持され
たPIDの値はDであるので、図10において、PID
分離部1016の出力信号1060がDのときに、PI
D一致信号1061は、Lowに変化することになる。
In the PID separation unit 1016, according to the timing signal 1059, the transport stream 451 to PI
The portion D is separated and output to the comparison unit 1017.
The comparison unit 1017 determines whether the PID value input from the PID separation unit 1016 and the PID value read from the PID holding unit 1020 match, and the result is set as the PID match signal 1061 and the counter is set. It is output to the value determination unit 1019. An output signal 1060 of the PID separation unit 1016 is shown in FIG.
The D match signal 1061 is shown. In this example, the separated PID values are D, D, B, A, D, A, D,
It is C and A. Since the value of the PID held in the PID holding unit 1020 is D, in FIG.
When the output signal 1060 of the separation unit 1016 is D, PI
The D match signal 1061 changes to Low.

【0084】一方、カウンタ値分離部1018では、タ
イミング信号1062に従って、Transport Stream45
1からコンティニュティ・カウンタの値の部分を分離し
てカウンタ値判定部1019に供給している。図10に
おいて、分離されたコンティニュティ・カウンタの値
は、1、2、10、4、3、5、4、3、6となってい
る。
On the other hand, in the counter value separation unit 1018, according to the timing signal 1062, the Transport Stream 45
The value of the continuity counter is separated from 1 and supplied to the counter value determination unit 1019. In FIG. 10, the values of the separated continuity counters are 1, 2, 10, 4, 3, 5, 4, 3, and 6.

【0085】カウンタ値判定部1019では、PID保
持部1020に保持されたPIDの値を持つパケットの
コンティニュティ・カウンタの値のみを抜き出し、この
コンティニュティ・カウンタの値が一定または順次1つ
づつ上がっているかを指定時間内に判定する。コンティ
ニュティ・カウンタの値が一定または順次1つづつ上が
っていたら、カウンタ値判定部1019は、判定信号1
064をLowに変化させ、パケット同期判定部413
に供給する。図10において、時間T2、T3、T4の
直前では、PID一致信号1061は、それぞれLow
である。このときのカウンタ値1063を見ると、時間
T2後は2、時間T3後は3、時間T4後は4と1つづ
つ値が上がっている。そのため、時間T4の後で、判定
信号1064は、Lowに変化している。
The counter value determining unit 1019 extracts only the value of the continuity counter of the packet having the PID value held in the PID holding unit 1020, and the value of the continuity counter is constant or sequentially one. It is determined within a specified time whether it is rising. If the value of the continuity counter is constant or increases by one, the counter value determination unit 1019 determines that the determination signal 1
064 to Low, and the packet synchronization determination unit 413
Supply to. In FIG. 10, immediately before the times T2, T3, and T4, the PID match signal 1061 is Low.
Is. Looking at the counter value 1063 at this time, the value increases by 2 after the time T2, 3 after the time T3, and 4 after the time T4. Therefore, the determination signal 1064 changes to Low after the time T4.

【0086】パケット同期判定部413では、判定信号
1064に従って、1パケットに1回の割合の周期で検
出されたスタートコードのパタ―ンが本当にスタートコ
ードかどうかの判定をしている。その結果、スタートコ
ードと判定されれば、パケットスタートタイミング45
5を端子403に供給する。一方、指定時間が過ぎ、ス
タートコードと判定されなければ、リセット信号457
を出力し、このリセット信号は、論理積回路414を経
て、内部同期信号発生部411に供給されリセットをか
ける。図10に示すように、判定信号1064が、Lo
wに変化したときは、パケット同期信号454のLow
のパルスが、Transport Stream451のスタートコード
と一致したと判定されたことなので、このとき初めて、
PID分離信号455は、188バイト周期でLowと
なるパルス列信号となる。
The packet synchronization judgment unit 413 judges according to the judgment signal 1064 whether the pattern of the start code detected at the rate of once per packet is really the start code. As a result, if the start code is determined, the packet start timing 45
5 is supplied to the terminal 403. On the other hand, if the designated time has passed and the start code is not determined, the reset signal 457
This reset signal is supplied to the internal synchronizing signal generator 411 via the AND circuit 414 and resets. As shown in FIG. 10, the determination signal 1064 is Lo
When it changes to w, the packet synchronization signal 454 is Low.
Since it was determined that the pulse of was matched with the start code of Transport Stream 451, for the first time at this time,
The PID separation signal 455 is a pulse train signal that becomes Low at a cycle of 188 bytes.

【0087】以上の動作により、端子403には、スタ
ートコードを基準にして作られた188バイトに1回の
周期のパルスが出力され、これは、Transport Stream4
51からTransport Packetを分離するパケットスタート
タイミングとなっている。よって、このパケットスター
トタイミングを用いることにより、Transport Streamか
ら確実にパケットを分離することができる。 (第5の実施例に関する効果)上記したようにこの実施
例によれば、Transport Streamにスタートコードと同様
のパターンがパケット周期で存在しても、確実にスター
トコードだけを検出し、Transport Streamからパケット
を分離するパケットスタートタイミングを作り出すこと
ができる。
By the above operation, a pulse having a cycle of once every 188 bytes created based on the start code is output to the terminal 403.
It is the packet start timing for separating the Transport Packet from 51. Therefore, by using this packet start timing, the packet can be reliably separated from the Transport Stream. (Effects of Fifth Embodiment) As described above, according to this embodiment, even if a pattern similar to the start code exists in the Transport Stream in the packet cycle, only the start code is reliably detected and the Transport Stream is detected. A packet start timing that separates packets can be created.

【0088】なお上記した各実施例においては、パケッ
ト化されたビットストリームは、ISO/IEC131
8の規格を使用したデジタル放送におけるビットストリ
ームであり、パケットのスタートコードのパターンは、
Ox47(16進数で47、2進数で01000111)であり、パケ
ット同期信号は、188バイト周期のパルスであるとし
て説明した。しかし、この発明はこのようなフォーマッ
トの信号のみならず、パケット化されて伝送されるビッ
トストリームからパケット分離行う装置として他のフォ
ーマットの信号であっても適用できることは勿論であ
る。
In each of the above-mentioned embodiments, the packetized bit stream is ISO / IEC131.
It is a bit stream in digital broadcasting using the standard of 8, and the start code pattern of the packet is
The packet synchronization signal is Ox47 (47 in hexadecimal notation and 01000111 in binary notation), and the packet synchronization signal is a pulse having a cycle of 188 bytes. However, it goes without saying that the present invention can be applied not only to signals of such a format, but also to signals of other formats as a device for separating packets from a bit stream that is packetized and transmitted.

【0089】[0089]

【発明の効果】以上説明したようにこの発明によれば、
確実にスタートコードのパターンをとらえ、Transport
Stream(トランスポートストリーム)からTransport Pa
cket(トランスポートパケット)を正確に分離するため
のパケットスタートタイミングを生成することができ
る。
As described above, according to the present invention,
Be sure to capture the start code pattern and use Transport
Stream (Transport Stream) to Transport Pa
It is possible to generate a packet start timing for accurately separating a cket (transport packet).

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

【図1】この発明の第1の実施例を示す図。FIG. 1 is a diagram showing a first embodiment of the present invention.

【図2】図1の装置の動作を説明するために示したタイ
ミング図。
FIG. 2 is a timing diagram shown to explain the operation of the apparatus of FIG.

【図3】この発明の第2の実施例を示す図。FIG. 3 is a diagram showing a second embodiment of the present invention.

【図4】図3の装置の動作を説明するために示したタイ
ミング図。
4 is a timing diagram shown for explaining the operation of the apparatus of FIG.

【図5】この発明の第3の実施例を示す図。FIG. 5 is a diagram showing a third embodiment of the present invention.

【図6】図5の装置の動作を説明するために示したタイ
ミング図。
FIG. 6 is a timing diagram shown for explaining the operation of the apparatus of FIG.

【図7】この発明の第4の実施例を示す図。FIG. 7 is a diagram showing a fourth embodiment of the present invention.

【図8】図7の装置の動作を説明するために示したタイ
ミング図。
8 is a timing diagram shown for explaining the operation of the apparatus shown in FIG.

【図9】この発明の第5の実施例を示す図。FIG. 9 is a diagram showing a fifth embodiment of the present invention.

【図10】図9の装置の動作を説明するために示したタ
イミング図。
10 is a timing diagram shown for explaining the operation of the apparatus of FIG.

【図11】多重化システムの説明図。FIG. 11 is an explanatory diagram of a multiplexing system.

【図12】多重信号の説明図。FIG. 12 is an explanatory diagram of a multiplexed signal.

【図13】放送用の多重化システムの説明図。FIG. 13 is an explanatory diagram of a multiplexing system for broadcasting.

【図14】多重化システムに利用されるプログラムアソ
シエーションテーブル(PAT)およびプログラムマッ
プテーブル(PMT)の構成例を示す図。
FIG. 14 is a diagram showing a configuration example of a program association table (PAT) and a program map table (PMT) used in a multiplexing system.

【図15】プログラムアソシエーションテーブル(PA
T)のさらに他の構成例を示す図。
FIG. 15: Program Association Table (PA
The figure which shows the further another structural example of T).

【図16】プログラムマップテーブル(PMT)のさら
に他の構成例を示す図。
FIG. 16 is a diagram showing still another configuration example of a program map table (PMT).

【図17】従来のパケット分離装置を示す図。FIG. 17 is a diagram showing a conventional packet separation device.

【図18】トランスポートストリームの構成説明図。FIG. 18 is an explanatory diagram of the structure of a transport stream.

【図19】図17の装置の動作を説明するために示した
タイミング図。
FIG. 19 is a timing diagram shown for explaining the operation of the apparatus of FIG.

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

451…トランスポートストリーム、410…スタート
コード検出部、411…内部同期信号発生部、412…
パケット同期信号発生部、413…パケット同期判定
部、414…論理積回路、415、615、815、1
215…タイミング信号発生部、416、616、81
6、1216、1016…PID分離部、417、61
7、817、1217、1017…比較部、618、1
218…PID一致信号カウント部、818、1018
…カウンタ値分離部、819、1019…カウンタ値判
定部、1219、1020…PID保持部。
451 ... Transport stream, 410 ... Start code detecting section, 411 ... Internal synchronization signal generating section, 412 ...
Packet synchronization signal generation unit, 413 ... Packet synchronization determination unit, 414 ... AND circuit, 415, 615, 815, 1
215 ... Timing signal generators 416, 616, 81
6, 1216, 1016 ... PID separation unit, 417, 61
7, 817, 1217, 1017 ... Comparison section, 618, 1
218 ... PID coincidence signal counting unit, 818, 1018
... Counter value separation unit, 819, 1019 ... Counter value determination unit, 1219, 1020 ... PID holding unit.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/24 7/14 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location H04N 7/24 7/14

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】パケット化されたビットストリームからパ
ケットを分離する装置において、 パケットの切れ目を示すスタートコードのパターンを検
出し、所定周期のパケット同期信号を生成する同期信号
生成手段と、 前記パケット同期信号に同期したタイミング信号を用い
て、前記パケット化されたビットストリームからパケッ
トのインデックス(以下IDと称す)を抜き出す分離手
段と、 前記抜き出されたパケットのIDが一定時間内に必ず送
られてくる特定のパケットの比較IDに一致しているか
どうかを指定時間判別し、一致している場合に一致信号
を出力する比較手段と、 前記比較手段の一致信号に従って、前記パケット同期信
号を用いてパケットスタートタイミング信号の出力を決
定し、前記抜き出されたパケットのIDが一定時間内に
必ず送られてくる特定のパケットの比較IDに一致しな
い場合は、前記同期信号生成手段に対してリセットをか
ける判定手段とを有したことを特徴とするパケット分離
装置。
1. A device for separating a packet from a packetized bit stream, and a synchronization signal generating means for detecting a start code pattern indicating a packet break and generating a packet synchronization signal of a predetermined cycle; and the packet synchronization. Separation means for extracting a packet index (hereinafter referred to as ID) from the packetized bit stream using a timing signal synchronized with the signal, and the extracted packet ID is always sent within a fixed time. A comparison packet that determines whether or not it matches the comparison ID of a specific packet that has been received for a specified time, and outputs a match signal when the packets match, using the packet synchronization signal according to the match signal of the comparison means. When the output of the start timing signal is determined and the ID of the extracted packet is constant A packet separating device comprising: a judging means for resetting the synchronizing signal generating means when the comparison ID of a specific packet which is surely sent within the space does not match.
【請求項2】前記判定手段は、前記パケット同期信号を
用いてパケットスタートタイミング信号の出力を決定す
る場合、 前記比較手段から供給される前記一致信号の指定時間内
の連続回数をカウントし、このカウント値が一定値以上
に達したときに前記パケットスタートタイミング信号の
出力を決定し、前記指定時間内に前記カウント数が一定
値未満のときは前記同期信号生成手段に対してリセット
をかける手段を含むことを特徴とする請求項1記載のパ
ケット分離装置。
2. The determining means, when determining the output of a packet start timing signal using the packet synchronization signal, counts the number of consecutive times of the coincidence signal supplied from the comparing means within a designated time, and counts this count. A means for determining the output of the packet start timing signal when the value reaches a certain value or more, and for resetting the synchronization signal generating means when the count number is less than the certain value within the designated time. The packet separation device according to claim 1, wherein
【請求項3】前記判定手段は、前記パケット同期信号を
用いてパケットスタートタイミング信号の出力を決定す
る場合、 前記パケット化されたビットストリームから同じIDを
持つパケットの連続性を示すカウンタ値を抜き出すカウ
ンタ値分離手段と、 前記比較手段から供給される前記一致信号と同じタイミ
ングで抜き出された前記カウンタ値が一定または順次上
がっているかどうかを判定し、前記カウンタ値が一定ま
たは順次上がっているならば、前記パケットスタートタ
イミング信号の出力を決定し、前記カウンタ値が一定ま
たは順次上がっていなければ、前記同期信号生成手段に
リセットをかける手段を含むことを特徴とする請求項1
記載のパケット分離装置。
3. A counter for extracting a counter value indicating the continuity of packets having the same ID from the packetized bit stream when the output of the packet start timing signal is determined using the packet synchronization signal. It is determined whether the counter value extracted at the same timing as the coincidence signal supplied from the value separating means and the comparing means is constant or sequentially increasing, and if the counter value is constant or sequentially increasing. 2. A means for determining the output of the packet start timing signal, and resetting the synchronization signal generating means if the counter value is not constant or is not sequentially increased.
The packet separation device described.
【請求項4】前記比較手段は、 前記パケット化されたビットストリームから不特定の1
つのパケットのIDを抜き出し保持する保持部と、 前記分離手段により次々と分離されるパケットのID
と、前記不特定の1つのパケットのIDとを比較し、一
致する毎に一致信号を得る比較部とを有し、 前記判定手段は、前記パケット同期信号を用いてパケッ
トスタートタイミング信号の出力を決定する場合、 前記比較部からの一致信号の回数を指定時間カウント
し、カウントした値が一定値以上に達したら、前記パケ
ットスタートタイミングの出力を決定し、前記指定時間
内にカウントした値が一定値未満ならば前記パケット同
期信号を生成する手段にリセットをかける手段を含むこ
とを特徴とする請求項1記載のパケット分離装置。
4. The comparing means selects an unspecified 1 from the packetized bit stream.
A holding unit that extracts and holds the IDs of one packet, and the IDs of the packets that are sequentially separated by the separating unit.
And a comparing unit that compares the ID of the unspecified one packet and obtains a match signal each time they match, the determining unit determines the output of the packet start timing signal using the packet synchronization signal. In that case, the number of times of the coincidence signal from the comparison unit is counted for a designated time, and when the counted value reaches a certain value or more, the output of the packet start timing is determined, and the value counted within the designated time is less than a certain value. 2. Then, the packet separating apparatus according to claim 1, further comprising means for resetting the means for generating the packet synchronization signal.
【請求項5】前記比較手段は、 前記パケット化されたビットストリームから不特定の1
つのパケットのIDを抜き出し保持する保持部と、 前記分離手段により次々と分離されるパケットのID
と、前記不特定の1つのパケットのIDとを比較し、一
致する毎に一致信号を得る比較部とを有し、 前記判定手段は、前記パケット同期信号を用いてパケッ
トスタートタイミング信号の出力を決定する場合、 前記パケット化されたビットストリームから同じIDを
持つパケットの連続性を示すカウンタ値を抜き出すカウ
ンタ値分離手段と、 前記比較部から供給される前記一致信号と同じタイミン
グで抜き出された前記カウンタ値が一定または順次上が
っているかどうかを判定し、前記カウンタ値が一定また
は順次上がっているならば、前記パケットスタートタイ
ミング信号の出力を決定し、前記カウンタ値が一定また
は順次上がっていなければ、前記同期信号生成手段にリ
セットをかける手段を含むことを特徴とする請求項1記
載のパケット分離装置。
5. The comparing means selects an unspecified 1 from the packetized bit stream.
A holding unit that extracts and holds the IDs of one packet, and the IDs of the packets that are sequentially separated by the separating unit.
And a comparing unit that compares the ID of the unspecified one packet and obtains a match signal each time they match, the determining unit determines the output of the packet start timing signal using the packet synchronization signal. In this case, the counter value separating means for extracting the counter value indicating the continuity of the packets having the same ID from the packetized bit stream, and the counter value extracting means for extracting the counter value at the same timing as the coincidence signal supplied from the comparing unit. It is determined whether or not the counter value is constant or sequentially increasing, and if the counter value is constant or sequentially increasing, the output of the packet start timing signal is determined. The packet according to claim 1, further comprising means for resetting the synchronizing signal generating means. Separation device.
【請求項6】前記比較手段において前記比較IDは、予
め設定されてるコードであることを特徴とする請求項1
記載のパケット分離装置。
6. The comparison ID in the comparison means is a code set in advance.
The packet separation device described.
【請求項7】前記パケット化されたビットストリーム
は、ISO/IEC13818の規格を使用したデジタ
ル放送におけるビットストリームであり、 前記パケットの前記スタートコードのパターンは、Ox47
(16進数で47、2進数で01000111)であり、 前記パケット同期信号は、188バイト周期のパルスで
あることを特徴とする請求項2、3、4、5、6のいず
れか1つに記載のパケット分離装置。
7. The packetized bitstream is a bitstream in digital broadcasting using the ISO / IEC13818 standard, and the start code pattern of the packet is Ox47.
7. The hexadecimal number is 47 and the binary number is 01000111, and the packet synchronization signal is a pulse having a 188-byte cycle, and the packet synchronization signal is any one of claims 2, 3, 4, 5, and 6. Packet separator.
JP6164072A 1994-07-15 1994-07-15 Packet separation device Pending JPH0832622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6164072A JPH0832622A (en) 1994-07-15 1994-07-15 Packet separation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6164072A JPH0832622A (en) 1994-07-15 1994-07-15 Packet separation device

Publications (1)

Publication Number Publication Date
JPH0832622A true JPH0832622A (en) 1996-02-02

Family

ID=15786252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6164072A Pending JPH0832622A (en) 1994-07-15 1994-07-15 Packet separation device

Country Status (1)

Country Link
JP (1) JPH0832622A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980042030A (en) * 1996-11-01 1998-08-17 윌리엄 비. 켐플러 MPEG2 Transport Stream Packet Parser System
JP2010537488A (en) * 2007-08-13 2010-12-02 トムソン ライセンシング Error detection and repair in digital multimedia reception systems

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980042030A (en) * 1996-11-01 1998-08-17 윌리엄 비. 켐플러 MPEG2 Transport Stream Packet Parser System
JP2010537488A (en) * 2007-08-13 2010-12-02 トムソン ライセンシング Error detection and repair in digital multimedia reception systems

Similar Documents

Publication Publication Date Title
KR100585966B1 (en) The three dimensional video digital broadcasting transmitter- receiver and its method using Information for three dimensional video
EP0735776B1 (en) Decoder for compressed and multiplexed video and audio data
EP0626770B1 (en) Data demultiplexer
CA2190688C (en) Acquisition and error recovery of audio data carried in a packetized data stream
EP0749244A2 (en) Broadcast receiver, transmission control unit and recording/reproducing apparatus
RU2001104353A (en) METHOD FOR TRANSFORMING A PACKETIZED INFORMATION SIGNAL FLOW INTO A FLOW OF INFORMATION SIGNALS WITH TEMPORARY MARKING AND TURNS
JPH0793720B2 (en) One-way data communication receiver
US7391773B2 (en) Data processing apparatus and method and computer readable storage medium
US5483538A (en) Audio frame synchronization for embedded audio demultiplexers
US7346055B2 (en) Method and system for co-relating transport packets on different channels using a unique packet identifier
US20040042459A1 (en) Method and system for co-relating transport packets on different channels using a packet prioritization scheme
EP1940167A1 (en) Digital broadcast receiver
JPH0832622A (en) Packet separation device
AU701138B2 (en) Transmission of high rate isochronous data in MPEG-2 data streams
JPH1056625A (en) Method and device for correcting synchronism error
JP2002125207A (en) Signal transmitter and signal receiver
EP1182881A2 (en) Method and apparatus for transmiting broadcast programs, digital broadcast receiver, digital broadcast recorder, digital broadcast recorder/player
JP2009088820A (en) Video audio signal transmission method and transmission apparatus thereof
JP2001268518A (en) Data recording and reproducing device
JP3958531B2 (en) Synchronous control device
KR0137558B1 (en) Mpeg-2 inverse multiplexer
JPH08275147A (en) Receiver for coded image and audio data
US20080123732A1 (en) Method and system for configuring decoding based on detecting transport stream input rate
JP2001045425A (en) Recorder, reproducing device and program recording medium
JP2502712B2 (en) Data transmission equipment