JPH10243394A - Mpeg data processing circuit - Google Patents

Mpeg data processing circuit

Info

Publication number
JPH10243394A
JPH10243394A JP5417697A JP5417697A JPH10243394A JP H10243394 A JPH10243394 A JP H10243394A JP 5417697 A JP5417697 A JP 5417697A JP 5417697 A JP5417697 A JP 5417697A JP H10243394 A JPH10243394 A JP H10243394A
Authority
JP
Japan
Prior art keywords
stream
mpeg2
pes
data
host bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5417697A
Other languages
Japanese (ja)
Other versions
JP2885217B2 (en
Inventor
Yukihiro Tanaka
幸宏 田中
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP5417697A priority Critical patent/JP2885217B2/en
Publication of JPH10243394A publication Critical patent/JPH10243394A/en
Application granted granted Critical
Publication of JP2885217B2 publication Critical patent/JP2885217B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting

Abstract

PROBLEM TO BE SOLVED: To provide a moving picture expert group(MPEG) data processing circuit with which a system also corresponding to an MPEG2 program stream(PS) can be easily constructed without changing the basic circuit configuration of an MPEG data processing circuit prepared for processing an MPEG2 transport stream(TS). SOLUTION: The MPEG2-TS is fetched from a host bus by a host bus control part 1, stored through a selector 7 into a first-in/first-out FIFO 8 and converted later to video and audio signals by a TS separating part 9 and an A/V decoder 10. In the case of MPEG2-PS, it is fetched from the host bus, afterwards, a packetized elementary stream(PES) and a system clock reference(SCR) are separated by a PS separating part 3, the separated PES and a program clock reference(PCR) generated by a PCR generating part 5 are reprogrammed into MPEG2-TS by a TS programming part 3, stored in the FIFO 8 and converted to video and audio signals by the TS separating part 9 and the A/V decoder 10.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEGデータ処
理回路に関し、MPEG2トランスポート・ストリーム
のほかにMPEG2プログラム・ストリームも復号可能
なMPEGデータ処理回路に関する。
The present invention relates to an MPEG data processing circuit, and more particularly to an MPEG data processing circuit capable of decoding an MPEG2 program stream in addition to an MPEG2 transport stream.

【0002】[0002]

【従来の技術】ディジタル動画像(ビデオ)符号化(圧
縮)、音声(オーディオ)符号化およびその多重・分離
方式についての国際標準規格としては、蓄積メディア、
通信、放送などの分野で共通に用いられているMPEG
(Moving Picture Experts G
roup)規格(ISO/IEC DIS 13818
−1〜3)がある。このMPEG規格には、CD−RO
M(Compact Disk Read Only
Memory)などの蓄積メディアで利用されるMPE
G1と、このMPEG1のアプリケーションのほか、コ
ンピュータ、放送、通信分野における利用も考えられ幅
広いアプリケーションで利用される、マルチメディア・
データの高能率符号化技術であるMPEG2がある。
2. Description of the Related Art International standards for digital video (video) encoding (compression), audio (audio) encoding and multiplexing / demultiplexing methods include storage media,
MPEG commonly used in fields such as communication and broadcasting
(Moving Picture Experts G
group) (ISO / IEC DIS 13818)
-1 to 3). This MPEG standard includes CD-RO
M (Compact Disk Read Only)
Memory used in storage media such as
In addition to G1 and this MPEG1 application, multimedia,
There is MPEG2, which is a highly efficient encoding technique for data.

【0003】このMPEG2には、MPEG1と同様
に、1つのプログラムをストリーム中に構成することが
できるMPEG2プログラム・ストリーム(PS:Pr
ogram Stream;「MPEG2−PS」とも
いう)とともに、ストリーム中に複数のプログラムを構
成(伝送)することができるマルチ・プログラム対応の
多重・分離方式としてMPEG2トランスポート・スト
リーム(TS:Transport Stream;
「MPEG2−TS」という)の2種類の方式がある。
[0003] Similar to MPEG1, MPEG2 has an MPEG2 program stream (PS: Pr) that can form one program in a stream.
MPEG2 transport stream (TS: Transport Stream; TS) as a multiplexing / demultiplexing method corresponding to a multi-program capable of composing (transmitting) a plurality of programs in a stream together with an "ogram Stream;
"MPEG2-TS").

【0004】特に、MPEG2−TSでは、複数プログ
ラムを1本のストリームにできるため、テレビ放送など
にも対応でき、プログラム編成の自由度やスクランブル
機能などを備えている。
[0004] In particular, the MPEG2-TS can convert a plurality of programs into one stream, so that it can be used for television broadcasting and the like, and has a degree of freedom in program organization and a scramble function.

【0005】図6は、MPEGシステムにおける符号化
(エンコード)部分の構成をブロック図にて示したもの
である。このシステムは、画像入力機器から取り込まれ
デジタル化されたビデオ・データ(VD)と、音声入力
機器から取り込まれディジタル化されたオーディオ・デ
ータ(AD)を、MPEG2プログラム・ストリーム
(PS)またはMPEG2トランスポート・ストリーム
(TS)に変換するものである。なお、MPEG1スト
リームの取り扱いはMPEG2プログラム・ストリーム
と同様であるため、以下の説明においては、代表してM
PEG2プログラム・ストリームについて説明する。
FIG. 6 is a block diagram showing a configuration of an encoding part in an MPEG system. This system converts video data (VD) captured and digitized from an image input device and audio data (AD) captured and digitized from an audio input device into an MPEG2 program stream (PS) or an MPEG2 transformer. This is converted into a port stream (TS). The handling of the MPEG1 stream is the same as that of the MPEG2 program stream.
The PEG2 program stream will be described.

【0006】MPEGシステムにおける符号化処理にお
いて、ディジタル化されたビデオ・データ(VD)およ
びオーディオ・データ(AD)は、それぞれビデオ・エ
ンコーダ21とオーディオ・エンコーダ22によって別
々に符号化(圧縮)される。符号化されたビデオ・デー
タ(VE)と符号化されたオーディオ・データ(AE)
は、「エレメンタリ・ストリーム」と呼ばれており、そ
れぞれビデオ・パケッタイザ23とオーディオ・パケッ
タイザ24でエレメンタリ・ストリームにヘッダ情報が
付加され、「PES(Packetized Elem
entaryStream;パケッタイズド・エレメン
タリ・ストリーム)」と呼ばれるパケットが生成され
る。このPESパケット構造は、MPEG1のパケット
に比べてヘッダ部分が少し複雑になっている。
In the encoding process in the MPEG system, digitized video data (VD) and audio data (AD) are separately encoded (compressed) by a video encoder 21 and an audio encoder 22, respectively. . Encoded video data (VE) and encoded audio data (AE)
Is called an “elementary stream”, header information is added to the elementary stream by the video packetizer 23 and the audio packetizer 24, respectively, and the “PES (Packetized Element)”
A packet called "entryStream; packetized elementary stream" is generated. In the PES packet structure, the header portion is slightly more complicated than the MPEG1 packet.

【0007】MPEG2プログラム・ストリーム(P
S)を生成する場合は、ビデオのPESパケット(V−
PES)とオーディオのPESパケット(A−PES)
をプログラム・ストリームのマルチプレクサ(PS M
UX)25でヘッダ情報を付加してストリーム化する。
一方、MPEG2トランスポート・ストリーム(TS)
を生成する場合は、ビデオのPESパケット(V−PE
S)とオーディオのPESパケット(A−PES)をト
ランスポート・ストリームのマルチプレクサ(TS M
UX)26でMPEG2プログラム・ストリームと同様
にストリーム化する。
The MPEG2 program stream (P
S), the video PES packet (V-
PES) and audio PES packet (A-PES)
To the program stream multiplexer (PSM
(UX) 25 to add header information to form a stream.
On the other hand, MPEG2 transport stream (TS)
Is generated, the video PES packet (V-PE
S) and an audio PES packet (A-PES) into a transport stream multiplexer (TSM).
UX) 26 to make a stream in the same manner as the MPEG2 program stream.

【0008】このとき、エンコーダ側のシステム基準時
刻(STC:System Time Clock)
と、デコーダ側のシステム基準時刻を一致させるための
情報が付加される。この情報を、MPEG2プログラム
・ストリームでは、「SCR(System Cloc
k Reference;システム時刻基準参照
値)」、MPEG2トランスポート・ストリームでは、
「PCR(Program Clock Refere
nce;プログラム時刻基準参照値)」と呼んでいる。
At this time, a system reference time (STC: System Time Clock) on the encoder side
And information for matching the system reference time on the decoder side. In the MPEG2 program stream, this information is referred to as “SCR (System Clock)”.
k Reference; reference value of system time reference) ", for the MPEG2 transport stream,
“PCR (Program Clock Reference)
nce; program time reference value).

【0009】図3は、従来から行われているMPEG2
プログラム・ストリームを復号化するシステムにおける
データの流れを示すブロック図である。MPEG2プロ
グラム・ストリームは、ホストバス(HB)を通して入
力されるものとする。バス制御部6は、ホストバス(H
B)からMPEG2プログラム・ストリームを取り込ん
でFIFO(First In First Out;
先入れ先出し型バッファメモリ)8に送り込む。
FIG. 3 shows a conventional MPEG2 format.
FIG. 2 is a block diagram showing a data flow in a system for decoding a program stream. It is assumed that the MPEG2 program stream is input through a host bus (HB). The bus control unit 6 controls the host bus (H
B), the MPEG2 program stream is fetched and the FIFO (First In First Out;
(First-in first-out buffer memory) 8.

【0010】このバス制御部6は、ホストバス(HB)
を制御する汎用のLSIと、実際にシステム内部の処理
を行うLSI、たとえばPLD(Programmab
leLogic Device;プログラマブル・ロジ
ック・デバイス)やゲートアレイ(Gate Arra
y)などで構成されることが多い。FIFO8では、バ
ス制御部6から送り込まれたデータをバッファリング
し、必要な時にバッファリングされているデータが順番
に出力される。
The bus control unit 6 includes a host bus (HB)
A general-purpose LSI that controls the operation of the system, and an LSI that actually performs processing inside the system, for example, a PLD (Programmab)
leLogic Device; programmable logic device) and gate array (Gate Array)
y) and the like in many cases. The FIFO 8 buffers data sent from the bus control unit 6, and outputs the buffered data in order when necessary.

【0011】このFIFO8は、A/Vデコーダ10か
らの要求があれば、PES形式のデータを、A/Vデコ
ーダ10へ遅延することなく転送するためのもので、F
IFO8は、ホストバス(HB)からのデータが途中で
途切れることがあっても、FIFO8中に蓄積している
データを、A/Vデコーダ10に供給する。なお、たと
えば特開平7−30886号公報には、バッファを用い
て、MPEGのビット・ストリームの喪失があってもス
トリームの再生を回復する方法が記載されている。
The FIFO 8 is for transferring PES format data to the A / V decoder 10 without delay when requested by the A / V decoder 10.
The FIFO 8 supplies the data stored in the FIFO 8 to the A / V decoder 10 even if the data from the host bus (HB) is interrupted on the way. For example, Japanese Patent Laid-Open Publication No. Hei 7-30886 describes a method of using a buffer to recover the reproduction of an MPEG bit stream even if the MPEG bit stream is lost.

【0012】A/Vデコーダ10は、MPEG1、MP
EG2プログラム・ストリーム、ビデオおよびオーディ
オのPESパケット形式のデータから、符号化されてい
ないビデオ信号(VS)およびオーディオ信号(AS)
にデコードするもので、FIFO8の出力データを入力
としている。MPEGのビデオおよびオーディオ・デー
タをデコードする方法としては、たとえば特開平7−5
9084号公報の記載が参照される。
The A / V decoder 10 is adapted for MPEG1, MP,
EG2 program stream, video and audio PES packet format data, unencoded video signal (VS) and audio signal (AS)
The output data of the FIFO 8 is input. A method for decoding MPEG video and audio data is described in, for example, Japanese Patent Laid-Open No. 7-5.
Reference is made to the description of JP 9084.

【0013】なお、上記したMPEG復号化システムの
構成は、パーソナルコンピュータやワークステーション
などに実装されるMPEGデコーダ・カードに利用され
ている。
The above-described configuration of the MPEG decoding system is used for an MPEG decoder card mounted on a personal computer or a workstation.

【0014】図4は、従来から行われているMPEG2
トランスポート・ストリームを復号化するシステムにお
けるデータの流れを示すブロック図である。MPEG2
トランスポート・ストリームがホストバス(HB)を介
して入力され、FIFO8からデータが出て行くまでの
処理は、プログラム・ストリームの場合と同じである。
MPEG2トランスポート・ストリームをデコードする
ことができないMPEGのA/Vデコーダ10では、図
4に示すように、TS分離部9により、MPEG2トラ
ンスポート・ストリームからPES形式のデータを分離
して、PES形式のデータをデコード可能なA/Vデコ
ーダ10に入力している。このようなMPEG復号化シ
ステムの構成は、放送等で使われるセット・トップ・ボ
ックス(STB:Set Top Box)などで利用
されている。
FIG. 4 shows a conventional MPEG2 format.
FIG. 3 is a block diagram showing a data flow in a system for decoding a transport stream. MPEG2
The processing from the input of the transport stream via the host bus (HB) to the output of data from the FIFO 8 is the same as that of the program stream.
In the MPEG A / V decoder 10 that cannot decode the MPEG2 transport stream, as shown in FIG. Is input to an A / V decoder 10 capable of decoding. Such a configuration of the MPEG decoding system is used in a set top box (STB) used for broadcasting or the like.

【0015】ところで、MPEG2プログラム・ストリ
ームと、MPEG2トランスポート・ストリームの両方
のストリームを処理できるA/Vデコーダは、現在のと
ころ存在していない。このため、MPEG2−PSとM
PEG2−TSの両方のストリームを処理するMPEG
デコーダシステムを実現するには、図5に示すような構
成が考えられる。
There is currently no A / V decoder capable of processing both the MPEG2 program stream and the MPEG2 transport stream. For this reason, MPEG2-PS and M
MPEG processing both streams of PEG2-TS
To realize the decoder system, a configuration as shown in FIG. 5 is conceivable.

【0016】図5にブロック図として示す方式は、図3
及び図4を参照して説明した2つの方式を組み合わせた
ものであり、A/Vデコーダ10に入力するデータのバ
スを、MPEG2プログラム・ストリームのときと、M
PEG2トランスポート・ストリームのときとで、PS
−TSセレクタ11によって切り換えるものである。す
なわち、MPEG2トランスポート・ストリームをデコ
ードしたいときには、PS−TSセレクタ11をTS分
離部9側に切り換えておくことで、図4に示した構成と
同様の構成となり、A/Vデコーダ10に、MPEG2
トランスポート・ストリームから分離されたPES形式
のデータを入力することができる。
The system shown in the block diagram of FIG.
4 is a combination of the two methods described with reference to FIG. 4, and the data bus to be input to the A / V decoder 10 is divided into an MPEG2 program stream,
PS for PEG2 transport stream
-It is switched by the TS selector 11. That is, when it is desired to decode the MPEG2 transport stream, the PS-TS selector 11 is switched to the TS separation unit 9 side, thereby having the same configuration as that shown in FIG.
PES format data separated from the transport stream can be input.

【0017】一方、MPEG2プログラム・ストリーム
をデコードしたいときには、PS−TSセレクタ11を
FIFO8からの出力側に切り換えておくことで、図3
に示した構成と同様の構成となり、ホストバス(HB)
から流れてきたストリームを順次、A/Vデコーダ10
に入力することができる。
On the other hand, when it is desired to decode the MPEG2 program stream, the PS-TS selector 11 is switched to the output side from the FIFO 8 so that
And the host bus (HB)
From the A / V decoder 10
Can be entered.

【0018】また図3や図4に示したシステムが既にあ
るときに、これらのシステムで、MPEG2プログラム
・ストリームとMPEG2トランスポート・ストリーム
の両方のストリームのデコードにも対応するために、M
PEG2プログラム・ストリームあるいはMPEG2ト
ランスポート・ストリームを、ソフトウェアで各復号化
システムで対応しているストリームの形式に変換する方
法も考えられている。
When the systems shown in FIG. 3 and FIG. 4 already exist, these systems are required to support the decoding of both the MPEG2 program stream and the MPEG2 transport stream.
A method of converting a PEG2 program stream or an MPEG2 transport stream into a stream format supported by each decoding system by software has also been considered.

【0019】この場合、図3に示したシステムは、MP
EG2プログラム・ストリームが蓄積メディア向けのた
め、MPEG2トランスポート・ストリームで行われる
ようなリアルタイム転送には向いていない。また、MP
EG2トランスポート・ストリームのように複数プログ
ラムをサポートしていないので、図3に示した構成にお
いて、MPEG2トランスポート・ストリームにも対応
するためには、MPEG2トランスポート・ストリーム
を一旦磁気ディスク等の記憶装置に格納した後に、ソフ
トウェアでプログラム別にMPEG2プログラム・スト
リームに変換したデータを蓄積しておいて、このシステ
ムでデコードを行う。
In this case, the system shown in FIG.
Since the EG2 program stream is for storage media, it is not suitable for real-time transfer as performed in the MPEG2 transport stream. Also, MP
Since the EG2 transport stream does not support a plurality of programs as in the case of the EG2 transport stream, in order to support the MPEG2 transport stream in the configuration shown in FIG. After the data is stored in the apparatus, data converted into an MPEG2 program stream for each program by software is stored, and decoding is performed by this system.

【0020】また図4に示したシステムにおいて、MP
EG2プログラム・ストリームにも対応するときも、同
様にして、ソフトウェアによりMPEG2プログラム・
ストリームをMPEG2トランスポート・ストリームに
一度変換し、変換したデータを磁気ディスク等に蓄積し
ておきデコーダの入力とする。
In the system shown in FIG.
Similarly, when supporting the EG2 program stream, the MPEG2 program
The stream is once converted to an MPEG2 transport stream, and the converted data is stored on a magnetic disk or the like and input to a decoder.

【0021】[0021]

【発明が解決しようとする課題】上記した従来のMPE
Gデータ処理回路は、下記記載の問題点を有している。
The above-mentioned conventional MPEs
The G data processing circuit has the following problems.

【0022】現在利用されているMPEG復号化システ
ムにおいて、MPEG2プログラム・ストリームとMP
EG2トランスポート・ストリームの両方のストリーム
に対応するシステムを実現するには、デコードシステム
に対応したストリーム形式に、データをソフトウェアで
変換することが必要とされるが、MPEG2規格で定義
されている高速なデータ転送レート、たとえば、MP@
ML(Main Profile Main Leve
l)での最大15Mbpsに対応するには処理速度が不
十分で、リアルタイムな処理ができず、音声の途切れ、
映像の乱れといった障害を引き起こす。
In the currently used MPEG decoding system, an MPEG2 program stream and an MP2
In order to realize a system that supports both streams of the EG2 transport stream, it is necessary to convert data to a stream format compatible with a decoding system by software, but the high speed defined by the MPEG2 standard is required. Data transfer rate, for example, MP @
ML (Main Profile Main Leave)
l) The processing speed is insufficient to support the maximum of 15 Mbps, real-time processing cannot be performed,
It causes obstacles such as distorted images.

【0023】また、図5に示したように、ハードウェア
でMPEG2トランスポート・ストリームとMPEG2
プログラム・ストリームの両方のストリームに対応する
システムを構成した場合、MPEG2トランスポート・
ストリームからPESを分離する部分と、MPEG2プ
ログラム・ストリームおよびPESの復号化を行う部分
とは、分かれていなければならなかった。
As shown in FIG. 5, an MPEG2 transport stream and an MPEG2
When a system corresponding to both streams of the program stream is configured, the MPEG2 transport
The part that separates the PES from the stream and the part that decodes the MPEG2 program stream and the PES had to be separate.

【0024】したがって、本発明は、上記問題点に鑑み
てなされたものであって、その目的は、MPEG2トラ
ンスポート・ストリームを処理するために作られたMP
EGデータ処理回路の基本的な構成を変更することな
く、MPEG2プログラム・ストリームの処理にも対応
可能としたMPEGデータ処理回路を提供することにあ
る。
Accordingly, the present invention has been made in view of the above-mentioned problems, and has as its object to provide an MPM made for processing an MPEG2 transport stream.
An object of the present invention is to provide an MPEG data processing circuit capable of processing MPEG2 program streams without changing the basic configuration of the EG data processing circuit.

【0025】[0025]

【課題を解決するための手段】前記目的を達成する本発
明のMPEGデータ処理回路は、MPEG2プログラム
・ストリームからPESおよびSCRを分離するPS分
離部と、分離されたPESをバッファリングするPES
バッファと、MPEG2トランスポート・ストリームに
挿入するプログラム時刻基準参照値(PCR)を転送す
るデータ量をカウントして生成するPCR生成部と、P
ESおよびPCRを読み込んでMPEG2トランスポー
ト・ストリームを生成するTS編成部を備えることを特
徴とする。
According to the present invention, there is provided an MPEG data processing circuit comprising: a PS separation unit for separating PES and SCR from an MPEG2 program stream; and a PES for buffering the separated PES.
A buffer, a PCR generation unit that counts and generates an amount of data for transferring a program time reference value (PCR) to be inserted into the MPEG2 transport stream;
It is characterized by including a TS organization unit that reads the ES and the PCR to generate an MPEG2 transport stream.

【0026】[0026]

【発明の実施の形態】本発明の実施の形態について以下
に説明する。本発明は、その好ましい実施の形態におい
て、ホストバス(HB)とのデータの授受を制御するバ
ス制御部(図1の6)と、ホストバスから読み込んだデ
ータを一時的に蓄積するFIFO(図1の8)と、MP
EG2トランスポート・ストリームからPES(Pac
ketized Elementary Strea
m)を分離するTS分離部(図1の9)と、PESパケ
ット形式のビデオもしくはオーディオ・データをそれぞ
れビデオ信号とオーディオ信号に復号化するデコーダ
(図1の10)と、を備え、TS分離部の前段に位置す
るバス制御部は、ホストバスから入力したMPEG2プ
ログラム・ストリームからPESおよびシステム時刻基
準参照値(SCR)をき出すPS分離手段(図1の2)
と、分離されたPESを蓄積するバッファ(図1の4)
と、MPEG2トランスポート・ストリームで必要なプ
ログラム時刻基準参照値(PCR)をデータ量をカウン
トすることにより生成するPCR生成手段(図1の5)
と、PES及び生成されたPCRからMPEG2トラン
スポート・ストリームを編成して出力するTS編成手段
(図1の3)と、ホストバスからホストバス制御部(図
1の1)を介して入力されたデータと、TS編成手段で
作成されたデータと、の切り換えを行うセレクタ(図1
の7)と、を備える。
Embodiments of the present invention will be described below. In a preferred embodiment of the present invention, a bus control unit (6 in FIG. 1) for controlling data transfer to and from a host bus (HB) and a FIFO (FIG. 1) for temporarily storing data read from the host bus 1-8) and MP
EG2 transport stream to PES (Pac
Ketized Elementary Stream
m), and a decoder (10 in FIG. 1) for decoding video or audio data in PES packet format into a video signal and an audio signal, respectively. A bus control unit located before the unit is a PS separation unit for extracting a PES and a system time reference value (SCR) from an MPEG2 program stream input from the host bus (2 in FIG. 1).
And a buffer for storing the separated PES (4 in FIG. 1)
And a PCR generating means for generating a program time reference value (PCR) required for the MPEG2 transport stream by counting the data amount (5 in FIG. 1)
And a TS organizing means (3 in FIG. 1) for organizing and outputting an MPEG2 transport stream from the PES and the generated PCR, and input from the host bus via the host bus control unit (1 in FIG. 1). Selector for switching between data and data created by the TS organizing means (FIG. 1)
7).

【0027】本発明の実施の形態において、MPEG2
トランスポート・ストリームは、ホストバス制御部(図
1の1)によりホストバスから取り込まれ、セレクタを
通って一時的にFIFO(図1の8)に貯えられ、TS
分離部(図1の9)とデコーダ(図1の10)によりビ
デオ信号、オーディオ信号に変換される。
In the embodiment of the present invention, MPEG2
The transport stream is taken in from the host bus by the host bus control unit (1 in FIG. 1), temporarily stored in the FIFO (8 in FIG. 1) through the selector, and
The signal is converted into a video signal and an audio signal by a separation unit (9 in FIG. 1) and a decoder (10 in FIG. 1).

【0028】一方、MPEG2プログラム・ストリーム
の場合は、ホストバスから取り込まれた後、PESおよ
びSCRをPS分離手段(図1の2)で分離し、分離さ
れたPESとPCR生成手段で生成したPCRをTS編
成手段(図1の3)でMPEG2トランスポート・スト
リームに編成し直して、FIFO8に貯え、同様にTS
分離部とデコーダによりビデオ信号、オーディオ信号に
変換される。
On the other hand, in the case of the MPEG2 program stream, after being taken in from the host bus, the PES and SCR are separated by the PS separation means (2 in FIG. 1), and the separated PES and the PCR generated by the PCR generation means are separated. Is re-organized into an MPEG2 transport stream by the TS organizing means (3 in FIG. 1), stored in the FIFO 8, and
The signal is converted into a video signal and an audio signal by the separation unit and the decoder.

【0029】このように本発明は、その好ましい実施の
形態において、PCR生成部においてデータ量をカウン
トすることにより、MPEG2トランスポート・ストリ
ームのPCRを生成しているので、オシレータ等を利用
したクロック発生器と比べると、素子の精度に関係な
く、正確なPCRの値を生成することができる。
As described above, according to the preferred embodiment of the present invention, since the PCR of the MPEG2 transport stream is generated by counting the data amount in the PCR generation unit, clock generation using an oscillator or the like is performed. Compared with the device, accurate PCR values can be generated regardless of the accuracy of the device.

【0030】また、本発明は、その好ましい実施の形態
において、MPEG2トランスポート・ストリームのみ
に対応したMPEGデコーダ・カードにおいて、ホスト
バス制御部からFIFOに至るバスがゲートアレイ(G
ate Array)やPLDといった設計変更が回路
基板に比べて容易に行うことができるような素子で構成
していると、既存の回路基板を利用してゲートアレイあ
るいはPLDの置き換えを行うだけでMPEG2プログ
ラム・ストリームにも対応したシステムを作ることがで
きる。
According to a preferred embodiment of the present invention, in the MPEG decoder card corresponding to only the MPEG-2 transport stream, the bus from the host bus control unit to the FIFO is a gate array (G).
ATE Array) and PLDs, which can be easily changed in design compared to the circuit board, make it possible to use the existing circuit board to replace the gate array or PLD.・ A system that can handle streams can be created.

【0031】[0031]

【実施例】上記した本発明の実施の形態について更に詳
細に説明すべく、本発明の実施例について図面を参照し
て以下に説明する。まず、本発明のMPEGデータ処理
回路が利用されるMPEGシステムの概略を説明し、そ
の後に、MPEGデータ処理回路の詳細を説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention; First, an outline of an MPEG system using the MPEG data processing circuit of the present invention will be described, and then details of the MPEG data processing circuit will be described.

【0032】図2は、本発明の一実施例として、MPE
Gデータ処理回路を利用しているMPEG復号化システ
ムの構成をブロック図にて示したものである。MPEG
復号化システムは、コンピュータやセット・トップ・ボ
ックスなどで利用されており、CPU制御部16、通信
カード17、記憶装置18、MPEGカード19、モニ
ター20、及びスピーカ21を備えて構成されている。
FIG. 2 shows an embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of an MPEG decoding system using a G data processing circuit. MPEG
The decoding system is used in a computer, a set top box, or the like, and includes a CPU control unit 16, a communication card 17, a storage device 18, an MPEG card 19, a monitor 20, and a speaker 21.

【0033】CPU制御部16、通信カード17、記憶
装置18、MPEGカード19はホストバス(HB)に
接続されており、相互にデータの授受を行う。通信カー
ド17には、ATM(Asyncronous Tra
nsfer Mode;非同期転送モード)などの通信
回線を通してデータをシステム内に入力するための通信
線(DC)が接続されている。MPEGカード19から
のビデオ信号(VS)とオーディオ信号(AS)は、そ
れぞれ、画像を表示出力するためのモニター20と、音
声を出力するためのスピーカ21に接続されている。
The CPU controller 16, communication card 17, storage device 18, and MPEG card 19 are connected to a host bus (HB), and exchange data with each other. The communication card 17 includes an ATM (Asynchronous Tra).
A communication line (DC) for inputting data into the system through a communication line such as nsfer mode (asynchronous transfer mode) is connected. The video signal (VS) and the audio signal (AS) from the MPEG card 19 are connected to a monitor 20 for displaying and outputting an image and a speaker 21 for outputting audio, respectively.

【0034】前述したように、MPEG2の規格には、
主に蓄積メディアで利用されるMPEG2プログラム・
ストリームと、通信・放送での利用も考慮されたMPE
G2トランスポート・ストリームがある。MPEGカー
ド19では、これらのMPEGビット・ストリームを復
号化し、映像と音声をモニター20およびスピーカ21
に出力する。
As described above, the MPEG2 standard includes:
MPEG2 programs mainly used for storage media
Streams and MPEs for use in communications and broadcasting
There is a G2 transport stream. In the MPEG card 19, these MPEG bit streams are decoded, and the video and audio are monitored by the monitor 20 and the speaker 21.
Output to

【0035】このMPEG復号化システムにおいて、M
PEG2トランスポート・ストリームが利用される状況
としては、たとえばセット・トップ・ボックスを介して
サービスされる放送を見る場合がある。この場合、MP
EG2トランスポート・ストリームは、通信線(DC)
を通して通信カード17に入力される。このストリーム
は、ホストバス(HB)を経由してMPEGカード19
に入力され、復号化処理が行われる。
In this MPEG decoding system, M
A situation where a PEG2 transport stream is used is, for example, watching a broadcast serviced via a set top box. In this case, MP
The EG2 transport stream is a communication line (DC)
Through the communication card 17. This stream is transmitted to the MPEG card 19 via the host bus (HB).
, And a decoding process is performed.

【0036】また、このMPEG復号化システムにおい
て、MPEG2プログラム・ストリームが利用される状
況としては、たとえばCD−ROMなどの記憶媒体に記
録されているコンテンツを見る場合がある。この場合、
記憶装置18にCD−ROMを利用しているとすると、
ユーザからの要求により、記憶装置18に記憶されてい
るコンテンツが選択されて読み出され、ホストバス(H
B)を経由してMPEGカード19に入力され、復号化
処理が行われる。
In this MPEG decoding system, the situation where the MPEG2 program stream is used includes, for example, viewing contents recorded on a storage medium such as a CD-ROM. in this case,
Assuming that a CD-ROM is used for the storage device 18,
In response to a request from the user, the content stored in the storage device 18 is selected and read out, and the host bus (H
The data is input to the MPEG card 19 via B) and decryption processing is performed.

【0037】図1は、本発明の一実施例のMPEGデー
タ処理回路の構成を示すブロック図である。図1を参照
すると、本実施例のMPEGデータ処理回路は、ホスト
バス(HB)とMPEGデータ処理回路内部の制御を行
うバス制御部6と、ホストバス(HB)から読み込んだ
データを一時的に貯えるFIFO8と、MPEG2トラ
ンスポート・ストリームからPESを分離するTS分離
部9と、PESパケット形式のビデオあるいはオーディ
オ・データをそれぞれビデオ信号とオーディオ信号に復
号化するA/Vデコーダ10と、を備えて構成されてい
る。
FIG. 1 is a block diagram showing the configuration of an MPEG data processing circuit according to one embodiment of the present invention. Referring to FIG. 1, the MPEG data processing circuit of the present embodiment includes a host bus (HB), a bus control unit 6 for controlling the inside of the MPEG data processing circuit, and temporarily reads data read from the host bus (HB). It comprises a FIFO 8 to be stored, a TS separation unit 9 for separating the PES from the MPEG2 transport stream, and an A / V decoder 10 for decoding video or audio data in the PES packet format into a video signal and an audio signal, respectively. It is configured.

【0038】この構成は、基本的に、図4に示した従来
技術の構成と同様である。バス制御部6はホストバス
(HB)からMPEG2プログラム・ストリームを取り
込んでFIFO8に送り込む。FIFO8からはバス制
御部6から送り込まれたデータが順番に出力される。T
S分離部9によりMPEG2トランスポート・ストリー
ムからPES形式のデータを分離して、PES形式のデ
ータをデコード可能なA/Vデコーダ10に入力し、A
/Vデコーダ10はビデオ信号(VS)とオーディオ信
号(AS)を出力する。
This configuration is basically the same as the configuration of the prior art shown in FIG. The bus control unit 6 takes in the MPEG2 program stream from the host bus (HB) and sends it to the FIFO 8. From the FIFO 8, the data sent from the bus control unit 6 is output in order. T
The S separation unit 9 separates the PES format data from the MPEG2 transport stream, and inputs the PES format data to an A / V decoder 10 that can decode the PES format data.
The / V decoder 10 outputs a video signal (VS) and an audio signal (AS).

【0039】図1を参照して、本実施例においては、バ
ス制御部6は、ホストバスHBとデータをやりとりする
ホストバス制御部1と、MPEG2プログラム・ストリ
ームからPESおよびシステム時刻基準参照値(SC
R)を抜き出すPS分離部2と、分離されたPESをバ
ッファリングするPESバッファ4と、MPEG2トラ
ンスポート・ストリームで必要なプログラム時刻基準参
照値(PCR)を生成するPCR生成部5と、PESを
パケット化してMPEG2トランスポート・ストリーム
を作り出すTS編成部3と、ホストバス(HB)から入
力されたデータとTS編成部3で作成されたデータの切
り換えを行うセレクタ7と、を備えて構成されている。
Referring to FIG. 1, in the present embodiment, the bus control unit 6 exchanges data with the host bus HB for the host bus control unit 1 and the PES and system time reference values (from the MPEG2 program stream). SC
R), a PES buffer 4 for buffering the separated PES, a PCR generation unit 5 for generating a program time reference value (PCR) required for the MPEG2 transport stream, and a PES. A TS knitting unit 3 for packetizing to create an MPEG2 transport stream; and a selector 7 for switching between data input from a host bus (HB) and data created by the TS knitting unit 3. I have.

【0040】バス制御部6において、ホストバス制御部
1は、ホストバス(HB)に対応した汎用のバス・コン
トローラ・チップが用いられ、その他の部分は、PLD
(プログラマブル・ロジック・デバイス)やゲートアレ
イ等で構成される。
In the bus controller 6, the host bus controller 1 uses a general-purpose bus controller chip corresponding to the host bus (HB), and the other parts are PLDs.
(Programmable logic devices) and gate arrays.

【0041】ホストバス制御部1は、ホストバス(H
B)を通してMPEGストリームを入力し、このストリ
ームは、PS分離部2またはセレクタ7に送られる。
The host bus controller 1 controls the host bus (H
B), an MPEG stream is input, and this stream is sent to the PS separation unit 2 or the selector 7.

【0042】PS分離部2で分離されたPES形式のデ
ータは、PESバッファ4に貯えられ、必要なときに、
TS編成部3から読み出される。
The data in the PES format separated by the PS separation unit 2 is stored in the PES buffer 4 and, when necessary,
It is read from the TS organization unit 3.

【0043】また、PS分離部2で分離されたSCR
は、PCR生成部5の値を補正するため入力される。そ
してPCR生成部5で生成されたPCRは、TS編成部
3とPS分離部2に入力される。
The SCR separated by the PS separation unit 2
Is input to correct the value of the PCR generator 5. Then, the PCR generated by the PCR generation unit 5 is input to the TS knitting unit 3 and the PS separation unit 2.

【0044】次に、本実施例のMPEGデータ処理回路
の動作について説明する。
Next, the operation of the MPEG data processing circuit of this embodiment will be described.

【0045】初めに、本MPEGデータ処理回路につい
て、MPEG2トランスポート・ストリームを復号化す
る処理の動作について説明する。MPEG2トランスポ
ート・ストリームは、ホストバス(HB)を通ってホス
トバス制御部1によってFIFO8に送り込まれる。こ
のときセレクタ7は、入力されるデータがMPEG2ト
ランスポート・ストリームであることが予め分かってい
るので、ホストバス制御部1側に切り換えられている。
First, the operation of the MPEG data processing circuit for decoding an MPEG2 transport stream will be described. The MPEG2 transport stream is sent to the FIFO 8 by the host bus control unit 1 through the host bus (HB). At this time, the selector 7 has been switched to the host bus control unit 1 because it is known in advance that the input data is an MPEG2 transport stream.

【0046】FIFO8は、入力されるストリームのジ
ッタを吸収するために設けられているもので、セレクタ
7を通ってきたデータを、順番にバッファリングし、シ
ステムで決められた一定の転送速度でTS分離部9に送
り込む。FIFO8からTS分離部9へは、ホストバス
(HB)から入力されたMPEG2トランスポート・ス
トリームが順番に送られるが、ホストバス(HB)上の
MPEG2トランスポート・ストリームは、通信回線や
ホストバス(HB)でのデータ転送で生じたジッタがあ
るため、常に一定の間隔でデータが流れているとは限ら
ない。しかしながら、入力されるストリームのジッタを
吸収するFIFO8から出力されるデータは、ジッタが
吸収されており、ある一定のペースでデータが流れてい
る。
The FIFO 8 is provided to absorb the jitter of the input stream. The FIFO 8 buffers the data passing through the selector 7 in order, and transfers the data at a constant transfer rate determined by the system. It is sent to the separation unit 9. The MPEG2 transport stream input from the host bus (HB) is sequentially sent from the FIFO 8 to the TS separation unit 9, and the MPEG2 transport stream on the host bus (HB) is transmitted via a communication line or a host bus (HB). Due to the jitter generated in the data transfer in HB), data does not always flow at constant intervals. However, the data output from the FIFO 8 that absorbs the jitter of the input stream has the jitter absorbed and the data flows at a certain pace.

【0047】TS分離部9は、MPEG2トランスポー
ト・ストリームの中からPES形式のデータを抜き出す
処理を行う。
The TS separation section 9 performs processing for extracting PES format data from the MPEG2 transport stream.

【0048】図8は、MPEG2トランスポート・パケ
ットのデータ構造を示す図である。図8を参照して、M
PEG2トランスポート・ストリームは、1つのパケッ
ト(トランスポート・パケット)が188バイト(47
×4バイト)の固定長で構成されており(すなわちAT
Mとの接続性を考慮して、ATMセルのペイロード48
バイトのうちシーケンス、同期用の1バイトの除いた4
7バイトを利用)、複数のトランスポート・パケット
に、1つのPES形式のデータが分割されて格納されて
いる。トランスポート・パケットのうちアダプテーショ
ンフィールドは個別ストリームに関する付加情報やスタ
ッフィングバイトをオプションで挿入することができ、
このオプションフィールドには、PCR(プログラム時
刻基準参照値)等が入れられる。
FIG. 8 is a diagram showing a data structure of an MPEG2 transport packet. Referring to FIG.
In the PEG2 transport stream, one packet (transport packet) has 188 bytes (47 bytes).
.Times.4 bytes) (ie, AT
Considering the connectivity with M, the payload 48 of the ATM cell
Sequence of bytes, excluding 1 byte for synchronization 4
One PES format data is divided and stored in a plurality of transport packets. The adaptation field in the transport packet can optionally insert additional information and stuffing bytes for the individual stream,
This option field contains a PCR (program time reference value) and the like.

【0049】TS分離部9では、この分割されたPES
形式のデータを1つにまとめて、A/Vデコーダ10に
渡す。A/Vデコーダ10は、PES形式のデータを復
号化してビデオ信号(VS)とオーディオ信号(AS)
を出力する。
In the TS separation section 9, the divided PES
The data of the format is collected into one and passed to the A / V decoder 10. The A / V decoder 10 decodes the data in the PES format and decodes the video signal (VS) and the audio signal (AS).
Is output.

【0050】次に、本実施例のMPEGデータ処理回路
において、MPEG2プログラム・ストリームを復号化
する処理の動作について説明する。MPEG2プログラ
ム・ストリームは、ホストバス(HB)を通って、PS
分離部2に入力される。PS分離部2は、入力されたス
トリームからPES形式のデータの部分を抜き出し、P
ESバッファ4に格納する。
Next, the operation of the MPEG data processing circuit of this embodiment for decoding an MPEG2 program stream will be described. The MPEG2 program stream passes through the host bus (HB) to the PS
It is input to the separation unit 2. The PS separation unit 2 extracts a PES format data portion from the input stream,
It is stored in the ES buffer 4.

【0051】図7に、MPEG2プログラム・ストリー
ム(MPEG2−PS)の上位レイヤのデータ構造を示
す。図7を参照して、パックは一般に複数のパケットか
ら構成され、最初のパックにはシステムヘッダと呼ばれ
るストリーム全体の概要を記述した情報グループが設け
られ(2番目以降のパックではオプション)、パックヘ
ッダはパック開始コード後にMPEG1との識別コード
に続いてSCR(システム時刻基準参照値)を備え、こ
のストリームのビットレートを表す情報等が続く。
FIG. 7 shows the data structure of the upper layer of the MPEG2 program stream (MPEG2-PS). Referring to FIG. 7, a pack is generally composed of a plurality of packets, and the first pack is provided with an information group called a system header, which describes an overview of the entire stream (optional for second and subsequent packs). Is provided with an SCR (system time reference value) following the identification code for MPEG1 after the pack start code, followed by information indicating the bit rate of this stream.

【0052】MPEG2プログラム・ストリームからの
PESを抜き出す処理は、まずパックヘッダを検出し、
システムヘッダ中のシステムヘッダ長を見て、その長さ
分を読み飛ばし、次のパックヘッダを検出するまでデー
タを、PESバッファ4へ転送する。
The process of extracting the PES from the MPEG2 program stream first detects a pack header,
The system header length in the system header is checked, the length is skipped, and the data is transferred to the PES buffer 4 until the next pack header is detected.

【0053】MPEGエンコーダ側の基準クロックの時
刻に、デコーダ側の基準クロックの時刻を合わせるとき
の参照時刻は、MPEG2プログラム・ストリームの場
合、SCR(System Clock Refere
nce;システム時刻基準参照値)といい、パックヘッ
ダ中に含まれる(図7参照)。このSCRは、規格上は
700msecに1回はストリーム中に挿入することに
なっている。
The reference time when the time of the reference clock on the decoder side is matched with the time of the reference clock on the MPEG encoder side is SCR (System Clock Reference) in the case of the MPEG2 program stream.
nce; system time reference value), which is included in the pack header (see FIG. 7). According to the standard, this SCR is inserted into the stream once every 700 msec.

【0054】同様に、MPEG2トランスポート・スト
リームの場合は、PCR(Program Clock
Reference;プログラム時刻基準参照値)と
いうものがストリーム中に含まれているが、これは、1
00msecに1回はストリーム中になければならな
い。
Similarly, in the case of an MPEG2 transport stream, a PCR (Program Clock) is used.
Reference (program time reference value) is included in the stream.
It must be in the stream once every 00 msec.

【0055】PS分離部2では、MPEG2プログラム
・ストリームからSCRを抜き出しPCR生成部5にそ
の値を設定する。
The PS separation unit 2 extracts the SCR from the MPEG2 program stream and sets the value in the PCR generation unit 5.

【0056】PCR生成部5は、MPEG2トランスポ
ート・ストリームに挿入すべきPCRを生成するための
もので、論理的なストリームカウンタによって構成する
ことができる。ここで、論理的なストリームカウンタと
は、予め分かっているMPEG2トランスポート・スト
リームの転送レートとデータの転送量により、MPEG
2トランスポート・ストリームに挿入すべきPCRを計
算するものである。
The PCR generator 5 is for generating a PCR to be inserted into the MPEG2 transport stream, and can be constituted by a logical stream counter. Here, the logical stream counter refers to an MPEG2 transport stream transfer rate and a data transfer amount that are known in advance.
2 is to calculate the PCR to be inserted into the transport stream.

【0057】PCR生成部5で生成したPCRは、PS
分離部2で大きくくるってないかを監視しておく。たと
えば、コンテンツの途中を読み飛ばすジャンプ処理をす
る場合、SCRの情報は途中飛ばされた時間だけくるっ
てくる(誤差が生じる)。このときは、コンテンツ中の
SCRをPCR生成部5に設定する。実際には、SCR
の値をそのまま設定するか、SCRに所定のオフセット
を加えて設定するかはMPEGデータ処理回路における
処理の遅延時間等を考慮して決められる。
The PCR generated by the PCR generation unit 5
The separation unit 2 monitors whether the wrapping is large. For example, in the case of performing a jump process for skipping the middle of the content, the information of the SCR is wrapped around the time of the skip (an error occurs). At this time, the SCR in the content is set in the PCR generator 5. Actually, SCR
Is set as it is or is set by adding a predetermined offset to the SCR in consideration of the delay time of the processing in the MPEG data processing circuit.

【0058】TS編成部3は、バッファリングされたP
ES形式のデータを読み込み、MPEG2トランスポー
ト・ストリームのヘッダを付けて188バイトのパケッ
トにする。このとき、100msecに1回以内のペー
スでPCR生成部5から出力されているPCRを取り込
んで、MPEG2トランスポート・ストリーム中に挿入
する。
The TS knitting section 3 stores the buffered P
The data in the ES format is read, and a header of the MPEG2 transport stream is added to make a packet of 188 bytes. At this time, the PCR output from the PCR generation unit 5 is fetched at a pace of once or less every 100 msec and inserted into the MPEG-2 transport stream.

【0059】セレクタ7は、入力されるデータがMPE
G2トランスポート・ストリームであることが予め分か
っているので、TS編成部3側に切り換えられている。
The selector 7 determines that the input data is MPE
Since it is known in advance that the stream is a G2 transport stream, it has been switched to the TS knitting unit 3 side.

【0060】セレクタ7以降の処理は、ホストバス制御
部1から直接セレクタ7に入力される場合の処理と同様
である。
The processing after the selector 7 is the same as the processing when the input is directly input from the host bus control unit 1 to the selector 7.

【0061】[0061]

【発明の効果】以上説明したように、本発明によれば、
下記記載の効果を奏する。
As described above, according to the present invention,
The following effects are obtained.

【0062】(1)本発明の第1の効果は、PCRの値
を正確に生成できる、ということである。
(1) A first effect of the present invention is that a PCR value can be accurately generated.

【0063】その理由は、本発明においては、データの
転送量と転送レートをもとにしてPCRを生成してい
る、ことによる。このため、本発明においては、MPE
Gエンコーダ側とデコーダ側の基準時刻の設定は、MP
EGエンコーダ側の基準クロック生成回路で生じている
誤差のみとなる。
The reason is that, in the present invention, the PCR is generated based on the data transfer amount and the transfer rate. For this reason, in the present invention, MPE
The setting of the reference time on the G encoder side and the decoder side is MP
Only the error generated in the reference clock generation circuit on the EG encoder side is obtained.

【0064】(2)本発明の第2の効果は、MPEGの
デコーダチップが、MPEG2プログラム・ストリーム
に対応していなくても、MPEG2トランスポート・ス
トリーム、及びMPEG2プログラム・ストリームの両
方に対応したMPEGデコーダシステムを構築すること
ができる、ということである。
(2) The second effect of the present invention is that even if the MPEG decoder chip does not support the MPEG2 program stream, the MPEG decoder chip supports both the MPEG2 transport stream and the MPEG2 program stream. That is, a decoder system can be constructed.

【0065】その理由は、本発明においては、MPEG
2プログラム・ストリームを、MPEG2トランスポー
ト・ストリームに変換している、ためである。
The reason is that, in the present invention, MPEG
This is because the two program streams are converted to the MPEG2 transport stream.

【0066】(3)本発明の第3の効果は、TS分離部
とA/Vデコーダが1つのチップ上に構成されている場
合でも、MPEG2プログラム・ストリームに対応した
MPEG復号化システムを構築することができる、とい
うことである。
(3) A third effect of the present invention is that, even when the TS separation section and the A / V decoder are configured on one chip, an MPEG decoding system corresponding to the MPEG2 program stream is constructed. That you can do it.

【0067】その理由は、本発明においては、TS分離
部よりも前段で、MPEG2プログラム・ストリームを
MPEG2トランスポート・ストリームに変換する、構
成としたためである。
The reason is that, in the present invention, an MPEG2 program stream is converted into an MPEG2 transport stream at a stage prior to the TS separation section.

【0068】(4)本発明の第4の効果は、既存のMP
EG2トランスポート・ストリーム対応システムにおい
て、MPEG2プログラム・ストリームにも対応したM
PEG復号化システムを容易に構築することができ、既
存のシステムを改造する場合も容易である、ということ
である。
(4) The fourth effect of the present invention is that the existing MP
In an EG2 transport stream compatible system, M compatible with MPEG2 program stream
This means that a PEG decoding system can be easily constructed, and it is easy to modify an existing system.

【0069】その理由は、本発明においては、PLDや
ゲートアレイを利用して回路を構成している部分にMP
EG2プログラム・ストリームからMPEG2トランス
ポート・ストリームへの変換部を設ける、ようにしたこ
とによる。
The reason for this is that, in the present invention, the parts constituting the circuit using the PLD and the gate array
This is because a conversion unit for converting an EG2 program stream into an MPEG2 transport stream is provided.

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

【図1】本発明の一実施例に係るMPEGデータ処理回
路を示すブロック図である。
FIG. 1 is a block diagram showing an MPEG data processing circuit according to one embodiment of the present invention.

【図2】本発明の一実施例のMPEGデータ処理回路が
適用されるシステム構成を示すブロック図である。
FIG. 2 is a block diagram showing a system configuration to which an MPEG data processing circuit according to one embodiment of the present invention is applied;

【図3】MPEG2プログラム・ストリームのみに対応
した従来のMPEGデータ処理回路の構成を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a configuration of a conventional MPEG data processing circuit corresponding to only an MPEG2 program stream.

【図4】MPEG2トランスポート・ストリームのみに
対応した従来のMPEGデータ処理回路の構成を示すブ
ロック図である。
FIG. 4 is a block diagram showing a configuration of a conventional MPEG data processing circuit corresponding to only an MPEG2 transport stream.

【図5】MPEG2プログラム・ストリームおよびMP
EG2トランスポート・ストリームに対応した従来のM
PEGデータ処理回路を示すブロック図である。
FIG. 5: MPEG2 program stream and MP
Conventional M for EG2 transport stream
FIG. 3 is a block diagram illustrating a PEG data processing circuit.

【図6】MPEGエンコーダシステムの構成を示すブロ
ック図である。
FIG. 6 is a block diagram illustrating a configuration of an MPEG encoder system.

【図7】MPEG2プログラム・ストリームの概略を示
す構成図である。
FIG. 7 is a configuration diagram schematically showing an MPEG2 program stream.

【図8】MPEG2トランスポート・ストリームの概略
を示す構成図である。
FIG. 8 is a configuration diagram showing an outline of an MPEG2 transport stream.

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

1 ホストバス制御部 2 PS分離部 3 TS編成部 4 PESバッファ 5 PCR生成部 6 バス制御部 7 セレクタ 8 FIFO 9 TS分離部 10 A/Vデコーダ 11 PS−TSセレクタ 16 CPU制御部 17 通信カード 18 記憶装置 10 MPEGカード 20 モニター 21 スピーカ AD オーディオ・データ AE オーディオ・エレメンタリ・ストリーム A−PES オーディオPES AS オーディオ信号 HB ホスト・バス PCR プログラム時刻基準参照値 SCR システム時刻基準参照値 VD ビデオ・データ VE ビデオ・エレメンタリ・ストリーム V−PES ビデオPES VS ビデオ信号 DESCRIPTION OF SYMBOLS 1 Host bus control part 2 PS separation part 3 TS organization part 4 PES buffer 5 PCR generation part 6 Bus control part 7 Selector 8 FIFO 9 TS separation part 10 A / V decoder 11 PS-TS selector 16 CPU control part 17 Communication card 18 Storage device 10 MPEG card 20 Monitor 21 Speaker AD audio data AE Audio elementary stream A-PES Audio PES AS Audio signal HB Host bus PCR Program time reference value SCR System time reference value VD Video data VE Video data Elementary stream V-PES video PES VS video signal

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】MPEG2プログラム・ストリームからP
ES(Packetized Elementary
Stream;パケッタイズド・エレメンタリ・ストリ
ーム)およびシステム時刻基準参照値(System
Clock Reference;システム・クロック
・リファレンス、「SCR」という)を分離するPS分
離手段と、 前記PS分離手段で分離されたPESをバッファリング
するPESバッファと、 MPEG2トランスポート・ストリームに挿入するプロ
グラム時刻基準参照値(Program Clock
Reference;プログラム・クロック・リファレ
ンス、「PCR」という)を、転送するデータ量をカウ
ントして生成するPCR生成手段と、 前記PESおよび前記PCRを読み込んでMPEG2ト
ランスポート・ストリームを生成するTS編成手段と、 を備えたことを特徴とするMPEGデータ処理回路。
1. An MPEG2 program stream to P
ES (Packetized Elementary)
Stream; a packetized elementary stream) and a system time reference value (System
A clock reference; a system clock reference (hereinafter referred to as “SCR”); a PES buffer for buffering the PES separated by the PS separation means; and a program time reference to be inserted into the MPEG2 transport stream. Reference value (Program Clock
Reference: a program clock reference (hereinafter referred to as “PCR”) generated by counting the amount of data to be transferred, and a TS organizing unit that reads the PES and the PCR to generate an MPEG2 transport stream. An MPEG data processing circuit, comprising:
【請求項2】ホストバスから読み込んだデータを一時的
に蓄積する先入れ先出し型メモリ(「FIFO」とい
う)と、 MPEG2トランスポート・ストリームからPES(P
acketizedElementary Strea
m;パケッタイズド・エレメンタリ・ストリーム)を分
離するTS分離部と、 PESパケット形式のビデオもしくはオーディオ・デー
タをそれぞれビデオ信号、オーディオ信号に復号化する
デコーダと、 を備え、 MPEG2トランスポート・ストリームは、前記ホスト
バスから取り込まれて、前記FIFOに蓄積された後、
前記TS分離部と前記デコーダによりビデオ信号、及び
/又はオーディオ信号に変換され、 MPEG2プログラム・ストリームは、前記ホストバス
から取り込まれた後にPESが分離され、該分離された
PESと、転送データ量に基づき生成したプログラム時
刻基準参照値(Program Clock Refe
rence、「PCR」という)から、MPEG2トラ
ンスポート・ストリームに編成し直して、前記FIFO
に蓄積し、前記TS分離部と前記デコーダによりビデオ
信号、及び/又はオーディオ信号に変換される、ように
構成したことを特徴とするMPEGデータ処理回路。
2. A first-in, first-out memory (referred to as a "FIFO") for temporarily storing data read from a host bus, and a PES (PFI) from an MPEG2 transport stream.
acknowledgmented Elementary Stream
m: a packetized elementary stream), and a decoder for decoding video or audio data in the PES packet format into a video signal and an audio signal, respectively. After being fetched from the host bus and stored in the FIFO,
The MPEG2 program stream is converted into a video signal and / or an audio signal by the TS separation unit and the decoder, and the PES is separated from the MPEG2 program stream after being taken from the host bus. Program clock reference value generated based on the program clock reference
rence, referred to as “PCR”) and re-organized into an MPEG2 transport stream,
The MPEG data processing circuit is configured to be stored in a video signal and / or converted into a video signal and / or an audio signal by the TS separation unit and the decoder.
【請求項3】前記MPEG2プログラム・ストリームか
ら、前記PESとともに、システム時刻基準参照値(S
ystem Clock Reference;「SC
R」という)が抜き出され、前記SCRにて前記PCR
の値の補正を行うことを特徴とする請求項2記載のMP
EGデータ処理回路。
3. A system time reference value (S) from the MPEG2 program stream together with the PES.
system Clock Reference; "SC
R ”) is extracted and the PCR is performed in the SCR.
3. The MP according to claim 2, wherein the value of
EG data processing circuit.
【請求項4】ホストバスとのデータの授受を制御するホ
ストバス制御部と、 前記ホストバスから読み込んだデータを一時的に蓄積す
る先入れ先出し型メモリと、 MPEG2トランスポート・ストリームからPES(P
acketizedElementary Strea
m)を分離するTS分離部と、 PESパケット形式のビデオもしくはオーディオ・デー
タをそれぞれビデオ信号とオーディオ信号に復号化する
デコーダと、 を備え、 前記先入れ先出し型メモリの前段に、前記ホストバスか
ら入力したMPEG2プログラム・ストリームからPE
Sおよびシステム時刻基準参照値(System Cl
ock Reference;「SCR」という)を抜
き出す手段と、 抜き出されたPESを蓄積するバッファと、 MPEG2トランスポート・ストリームで必要なプログ
ラム時刻基準参照値(Program Clock R
eference;「PCR」という)を転送データ量
をカウントすることにより生成するとともに、前記SC
Rにてその値を補正するPCR生成手段と、 前記バッファに格納されたPES及び前記PCR生成手
段で生成されたPCRからMPEG2トランスポート・
ストリームに編成して出力するトランスポート・ストリ
ーム編成手段と、 前記ホストバスから前記ホストバス制御部を介して入力
されたデータと、前記トランスポート・ストリーム編成
手段で作成されたデータと、の切り換えを行うセレクタ
と、 を備えたことを特徴とするMPEGデータ処理回路。
4. A host bus control unit for controlling transmission / reception of data to / from a host bus, a first-in first-out memory for temporarily storing data read from the host bus, and a PES (P
acknowledgmented Elementary Stream
m), and a decoder for decoding video or audio data in the PES packet format into a video signal and an audio signal, respectively, and a signal input from the host bus at a stage preceding the first-in first-out memory. MPEG2 program stream to PE
S and the system time reference value (System Cl
means for extracting an OCK Reference (referred to as "SCR"), a buffer for storing the extracted PES, and a program time reference value (Program Clock R) required for the MPEG2 transport stream.
reference; referred to as “PCR”) by counting the amount of transferred data, and
PCR generating means for correcting the value by R; MPEG2 transport from the PES stored in the buffer and the PCR generated by the PCR generating means.
Transport stream organizing means for organizing and outputting a stream; and switching between data input from the host bus via the host bus control unit and data created by the transport stream organizing means. An MPEG data processing circuit, comprising:
JP5417697A 1997-02-21 1997-02-21 MPEG data processing circuit Expired - Fee Related JP2885217B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5417697A JP2885217B2 (en) 1997-02-21 1997-02-21 MPEG data processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5417697A JP2885217B2 (en) 1997-02-21 1997-02-21 MPEG data processing circuit

Publications (2)

Publication Number Publication Date
JPH10243394A true JPH10243394A (en) 1998-09-11
JP2885217B2 JP2885217B2 (en) 1999-04-19

Family

ID=12963247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5417697A Expired - Fee Related JP2885217B2 (en) 1997-02-21 1997-02-21 MPEG data processing circuit

Country Status (1)

Country Link
JP (1) JP2885217B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2350514A (en) * 1999-03-03 2000-11-29 Samsung Electronics Co Ltd Apparatus and method for transferring disc information
EP0949820A3 (en) * 1998-04-08 2004-10-27 Pioneer Electronic Corporation Data stream converting apparatus
US6873629B2 (en) 1999-12-30 2005-03-29 Koninklijke Philips Electronics N.V. Method and apparatus for converting data streams
US6901078B2 (en) 1999-12-30 2005-05-31 Koninklijke Philips Electronics N.V. Method and apparatus for converting data streams

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0949820A3 (en) * 1998-04-08 2004-10-27 Pioneer Electronic Corporation Data stream converting apparatus
GB2350514A (en) * 1999-03-03 2000-11-29 Samsung Electronics Co Ltd Apparatus and method for transferring disc information
GB2350514B (en) * 1999-03-03 2002-04-17 Samsung Electronics Co Ltd Apparatus and method for transferring disc information
US6724981B1 (en) 1999-03-03 2004-04-20 Samsung Electronics Co., Ltd. Apparatus and method for transferring digital versatile disc information
US6873629B2 (en) 1999-12-30 2005-03-29 Koninklijke Philips Electronics N.V. Method and apparatus for converting data streams
US6901078B2 (en) 1999-12-30 2005-05-31 Koninklijke Philips Electronics N.V. Method and apparatus for converting data streams

Also Published As

Publication number Publication date
JP2885217B2 (en) 1999-04-19

Similar Documents

Publication Publication Date Title
TWI327028B (en) Systems and methods for stream format conversion
TW548925B (en) Method and apparatus for converting data streams
JP4437341B2 (en) Target system decoder and data buffering system
RU2273111C2 (en) Method for transformation of packet stream of information signals to stream of information signals with time stamps and vice versa
KR100226528B1 (en) Decoder for compressed and multiplexed video and audio data
JP4322851B2 (en) Video distribution system and video distribution server
US7933411B2 (en) Method of constructing MPEG program streams from encrypted MPEG transport streams
CN100401784C (en) Data synchronization method and apparatus for digital multimedia data receiver
JPH09139937A (en) Moving image stream converter
JP2009525657A (en) Transport stream jitter removal
US6577813B1 (en) Transmitting system and transmitting apparatus
CN100481238C (en) Reproducing method
JP2885217B2 (en) MPEG data processing circuit
JPH11205789A (en) Transmission rate converter of mpeg2 transport stream
US20070165621A1 (en) System and method for transport PID broadcast scheme
US7050436B1 (en) Device and method for processing a stream of data
US20080123732A1 (en) Method and system for configuring decoding based on detecting transport stream input rate
JPH11340936A (en) Method and device for multiplexing data
JP4035802B2 (en) Packet generating apparatus, packet reproducing apparatus and methods thereof
JP3705231B2 (en) Transport stream splicer
JP2000187940A (en) Recording/reproducing device and recorder
JP3380517B2 (en) Special reproduction data creation device and medium
JP2001313905A (en) Recording and reproducing device of multidata, and recording and reproducing method
JP2000269906A (en) Seamless multiplexer
JP2004336332A (en) Digital broadcasting receiver

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990112

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

Free format text: PAYMENT UNTIL: 20080212

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090212

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110212

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees