JP2003037824A - Mpeg stream switching method and apparatus thereof - Google Patents

Mpeg stream switching method and apparatus thereof

Info

Publication number
JP2003037824A
JP2003037824A JP2001224458A JP2001224458A JP2003037824A JP 2003037824 A JP2003037824 A JP 2003037824A JP 2001224458 A JP2001224458 A JP 2001224458A JP 2001224458 A JP2001224458 A JP 2001224458A JP 2003037824 A JP2003037824 A JP 2003037824A
Authority
JP
Japan
Prior art keywords
stream
mpeg
pcr
replacement
elementary
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
JP2001224458A
Other languages
Japanese (ja)
Inventor
Takashi Amayoshi
貴志 天良
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2001224458A priority Critical patent/JP2003037824A/en
Publication of JP2003037824A publication Critical patent/JP2003037824A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an MPEG stream switching method for replacing the desired elementary stream of a transport stream composed of a plurality of elementary streams with a desired stream for replacement by simple method and apparatus, and at the same time for maintaining the continuity of the transport stream and the stream for replacement in the case of the switching of an MPEG stream used for digital broadcasting or the like; and to provide an MPEG stream switching apparatus. SOLUTION: PCR that exists in the desired elementary stream of a transport stream composed of a plurality of elementary streams is reproduced, an elementary stream for replacement is created based on the reproduced PCR, and replacement to the desired elementary stream is carried out for sending the transport stream.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEGストリー
ム切換方法及びMPEGストリーム切換装置に関する。
詳しくは、トランスポートストリームの一部を所望のス
トリームに差し替える時に、トランスポートストリーム
と所望のストリームとの連続性を保持して差し替えを行
うことができるMPEGストリーム切換方法及びMPE
Gストリーム切換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an MPEG stream switching method and an MPEG stream switching device.
More specifically, when a part of the transport stream is replaced with a desired stream, the MPEG stream switching method and the MPE that can carry out the replacement while maintaining the continuity between the transport stream and the desired stream.
The present invention relates to a G stream switching device.

【0002】[0002]

【従来の技術】従来よりローカル放送局(副局)では、
キー局(主局)から配信される放送プログラムのうち、
所望の時間帯のプログラムを各ローカル局独自のCM
(コマーシャル)や放送番組に差し替えて、ローカル局
独自の編成とした放送プログラムを放送している。
2. Description of the Related Art Conventionally, in a local broadcasting station (sub station),
Of the broadcast programs distributed from key stations (main stations),
CM of each local station with program of desired time zone
(Commercial) and replaces the broadcast program, and broadcasts a broadcast program with a unique organization of the local station.

【0003】このようなCMや放送番組の差替えをデジ
タル放送で行う場合について、図4を参照しながら説明
する。図4は、主局(キー局)100Aと、副局(ロー
カル局)200Aと、受信機300Aとから構成される
デジタル放送の送受信システムの概略図である。
A case where such CM or broadcast program replacement is performed by digital broadcasting will be described with reference to FIG. FIG. 4 is a schematic diagram of a digital broadcast transmission / reception system including a main station (key station) 100A, a sub station (local station) 200A, and a receiver 300A.

【0004】主局(キー局)100Aは、各チャンネル
(CH1〜CHn)ごとに映像/音声/データなどをM
EPGフォーマットに従って符号化(パケット化)して
エレメンタリストリームを生成/送出するエンコーダ1
10Aと、各エンコーダ110Aからのエレメンタリス
トリームを多重化して主局ストリーム(トランスポート
ストリーム)として副局200Aに送出する多重化部
(MUX)130Aとを具備している。
The main station (key station) 100A transmits video / audio / data etc. to each channel (CH1 to CHn).
Encoder 1 that encodes (packetizes) according to the EPG format to generate / transmit an elementary stream
10A, and a multiplexing unit (MUX) 130A that multiplexes the elementary streams from each encoder 110A and sends the multiplexed elementary stream as a main station stream (transport stream) to the sub station 200A.

【0005】副局(ローカル局)200Aは、各ローカ
ル局独自のCM(コマーシャル)や放送番組をMEPG
フォーマットに従って符号化(パケット化)する差替ス
トリーム作成部210Aと、主局100Aから配信され
た主局ストリームの所望のCM/放送番組箇所と、差替
ストリーム作成部210Aで作成されたローカル局独自
のCM/放送番組の差替えを行って副局ストリームを作
成して送出する切換え部250Aを備えたストリーム切
換装置を有する。
The sub-station (local station) 200A uses the original commercial (commercial) and broadcast program of each local station as MPEG.
The replacement stream creation unit 210A that encodes (packetizes) according to the format, the desired CM / broadcast program location of the main station stream distributed from the main station 100A, and the local station unique created by the replacement stream creation unit 210A The stream switching device includes a switching unit 250A that replaces the CM / broadcast program and creates and outputs a substation stream.

【0006】受信機300Aは、副局200Aからの副
局ストリームを無線ネットワーク(衛星放送、地上波放
送など)、有線ネットワーク(ケーブルテレビなど)を
介して受信し、所望のチャンネルの放送番組を視聴する
ことができる。
The receiver 300A receives the sub station stream from the sub station 200A via a wireless network (satellite broadcasting, terrestrial broadcasting, etc.) or a wired network (cable television, etc.), and watches a broadcast program of a desired channel. can do.

【0007】図5は、副局200Aのストリーム切換装
置の主要部を具体的に示したブロック図であり、エンコ
ーダ220Aと、PCR生成部240Aとからなる差替
ストリーム作成部210Aと、切換え部250Aとから
なる。
FIG. 5 is a block diagram specifically showing the main part of the stream switching device of the sub-station 200A. The replacement stream creating section 210A including an encoder 220A and a PCR creating section 240A, and a switching section 250A. Consists of.

【0008】PCR生成部240Aは、自局内の基準信
号(ブラックバースト信号)をもとに、放送番組の再生
基準となる時刻情報であるPCR(Program C
lock Refernec)を生成し、エンコーダ2
20Aの映像符号部(PTS/DTS処理部)221A
及び音声符号化部(PTS処理部)222Aと、多重化
部224Aへ供給する。
[0008] The PCR generator 240A is based on a reference signal (black burst signal) in its own station and is PCR (Program C) which is time information serving as a reproduction reference of a broadcast program.
lock Reference), and the encoder 2
20A video coding unit (PTS / DTS processing unit) 221A
And a speech coding unit (PTS processing unit) 222A and a multiplexing unit 224A.

【0009】エンコーダ220Aは、差替え用映像信号
をMEPGフォーマットに従って符号化(パケット化)
すると共に、PCR生成部240Aで生成されたPCR
に基づいてPTS/DTSを付加する映像符号部(PT
S/DTS処理部)221Aと、差替え用音声信号をM
EPGフォーマットに従って符号化(パケット化)する
と共に、PCR生成部240Aで生成されたPCRに基
づいてPTSを付加する音声符号化部(PTS処理部)
222Aと、制御情報や復号化に必要な情報などをME
PGフォーマットに従って生成するPSI(Progr
am Specific Information)生
成部223Aと、PCR生成部240Aで生成されたP
CRと、映像符号部(PTS/DTS処理部)221A
/音声符号化部(PTS処理部)222A/PSI生成
部223Aからの符号化信号(パケット)を多重化して
差替ストリームが作成され切換え部250Aに送出する
多重化部224Aとから構成される。
The encoder 220A encodes (packetizes) the replacement video signal according to the MPEG format.
And the PCR generated by the PCR generation unit 240A.
Video coding unit (PT that adds PTS / DTS based on
S / DTS processing unit) 221A and the replacement audio signal M
A voice encoding unit (PTS processing unit) that encodes (packetizes) according to the EPG format and adds PTS based on the PCR generated by the PCR generation unit 240A.
222A and control information, information necessary for decoding, etc.
PSI (Progr generated according to PG format
am Specific Information) generating unit 223A and P generated by the PCR generating unit 240A.
CR and video coding unit (PTS / DTS processing unit) 221A
/ Voice coding unit (PTS processing unit) 222A / PSI generation unit 223A and a multiplexing unit 224A that multiplexes coded signals (packets) to create a replacement stream and sends it to the switching unit 250A.

【0010】切換え部250Aは、主局100Aからの
主局ストリームと、差替ストリーム作成部210Aで作
成された差替ストリームとを差替えて、副局200A独
自の編成となる副局ストリームを作成するスイッチ25
1Aと、受信機300A側でストリーム(副局ストリー
ム)の連続性を保つ為に、スイッチ251Aからの副局
ストリームのPID(パケット識別情報)に含まれる放
送番組の再生基準となる時刻情報であるPCRと、各チ
ャンネルのエンコーダ110Aで生成されるエレメンタ
リストリームの表示時刻を管理する時刻情報であるPT
S(Presentation Time Stam
p)と、各エレメンタリストリームの復号時刻を管理す
る時刻情報であるDTS(Decoding Time
Stamp)とを再計算して付け替えて副局ストリー
ムを送出するPID補正部252Aとからなる。
The switching unit 250A replaces the master stream from the master station 100A with the replacement stream created by the replacement stream creation unit 210A to create a sub-station stream having a unique organization of the sub-station 200A. Switch 25
1A and time information which is the reproduction reference of the broadcast program included in the PID (packet identification information) of the sub-station stream from the switch 251A in order to maintain the continuity of the stream (sub-station stream) on the receiver 300A side. PCR and PT that is time information for managing the display time of the elementary stream generated by the encoder 110A of each channel
S (Presentation Time Stam)
p) and DTS (Decoding Time) which is time information for managing the decoding time of each elementary stream.
Samp) and the PID correction unit 252A for sending the sub-station stream after recalculating and replacing.

【0011】上述のような主局100Aと、副局200
Aと、ユーザが所有する受信機300Aとからなるデジ
タル放送の送受信システムにおいて、主局100Aで
は、それぞれのチャンネル(CH1〜CHn)ごとのエ
ンコーダ110Aにより、放送番組の映像/音声/デー
タなどをMEPGフォーマットに従って符号化(パケッ
ト化)してエレメンタリストリームを生成して、多重化
部(MUX)130Aに送る。多重化部(MUX)13
0Aでは、各エンコーダ110Aからのエレメンタリス
トリームを多重化して主局ストリーム(トランスポート
ストリーム)を作成して副局200Aに送出している。
The main station 100A and the sub station 200 as described above.
In a digital broadcast transmission / reception system including A and a receiver 300A owned by the user, in the main station 100A, encoders 110A for respective channels (CH1 to CHn) are used to perform MPEG / MPG for video / audio / data of broadcast programs. It is encoded (packetized) according to the format to generate an elementary stream, which is sent to the multiplexing unit (MUX) 130A. Multiplexer (MUX) 13
In 0A, the elementary streams from the encoders 110A are multiplexed to create a main station stream (transport stream), which is sent to the sub station 200A.

【0012】副局(ローカル局)200Aでは、主局1
00Aからの主局ストリームを受信する。一方、PCR
生成部240Aは、自局内の基準信号(ブラックバース
ト信号)をもとにPCRを生成して、生成したPCRを
差替えストリーム生成部210Aのエンコーダ220A
に送る。
In the substation (local station) 200A, the main station 1
The master station stream from 00A is received. On the other hand, PCR
The generation unit 240A generates a PCR based on the reference signal (black burst signal) in its own station, and replaces the generated PCR with the encoder 220A of the replacement stream generation unit 210A.
Send to.

【0013】差替ストリーム作成部210Aのエンコー
ダ220Aでは、映像信号符号化部(PTS/DTS処
理部)221Aで、差替え用のCMや放送番組等の映像
信号を符号化し、PCR生成部240AからのPCRに
基づいてPTS/DTSを生成して付加して多重化部2
24Aへ送る。音声符号化部(PTS処理部)222A
は、差替え用のCMや放送番組等の音声信号を符号化
し、PCR生成部240AからのPCRに基づいてPT
Sを生成して付加し多重化部224Aへ送る。又、PS
I生成部では、受信機300Aで映像/音声ストリーム
の復号化に必要な制御情報などを生成して多重化部22
4Aへ送る。
In the encoder 220A of the replacement stream creating section 210A, a video signal coding section (PTS / DTS processing section) 221A codes a video signal such as a CM for replacement or a broadcast program, and the PCR generation section 240A outputs the coded signal. PTS / DTS is generated based on PCR and added to the multiplexing unit 2
Send to 24A. Speech coding unit (PTS processing unit) 222A
Encodes an audio signal such as a CM for replacement or a broadcast program, and PTs based on the PCR from the PCR generation unit 240A.
S is generated, added, and sent to the multiplexing unit 224A. Also PS
The I generation unit generates the control information and the like necessary for decoding the video / audio stream in the receiver 300A, and the multiplexing unit 22
Send to 4A.

【0014】多重化部224Aは、PCR生成部240
AからのPCRに基づいて映像符号化部(PTS/DT
S処理部)221A及び音声符号化部(PTS処理部)
222A、PSI生成部240Aからのパケットとを多
重化して主局ストリームの一部と差し替えする為の差替
ストリームを作成して切換え部250Aに送る。
The multiplexing unit 224A has a PCR generation unit 240.
Based on the PCR from A, the video encoding unit (PTS / DT
S processing unit) 221A and speech coding unit (PTS processing unit)
222A and the packet from the PSI generation unit 240A are multiplexed to create a replacement stream for replacing a part of the main station stream and send it to the switching unit 250A.

【0015】切換え部250Aのスイッチ251Aで
は、主局100Aからの主局ストリームの所望の箇所の
CMや放送番組(エレメンタリストリーム)と、差替ス
トリーム作成部210Aで作成した差替ストリームとの
差し替えるために切り換え処理を行って副局ストリーム
を作成する。続いて、PID補正部252Aにより、受
信機300A側でストリーム(副局ストリーム内)の連
続性を保つようにする為、差替ストリームのPCRと主
局ストリームのPCRとのずれを補正すると共に、受信
機側の表示時間を指定するPTSと復号開始時間を指定
するDTSの再計算を行って補正し、補正後のPCR/
PTS/PTSに付け替えた副局ストリームを受信機3
00Aに対して送出する。
The switch 251A of the switching unit 250A replaces the CM or broadcast program (elementary stream) at a desired position of the main station stream from the main station 100A with the replacement stream created by the replacement stream creation unit 210A. Therefore, switching processing is performed to create a sub-station stream. Subsequently, the PID correction unit 252A corrects the shift between the PCR of the replacement stream and the PCR of the main station stream in order to maintain the continuity of the stream (within the sub-station stream) on the receiver 300A side. The PTS that specifies the display time on the receiver side and the DTS that specifies the decoding start time are recalculated and corrected, and the corrected PCR / PCR
The receiver 3 receives the substation stream that has been replaced with PTS / PTS.
Send to 00A.

【0016】このようにして、副局200Aにおいて、
主局ストリーム内の所望のCM(コマーシャル)や放送
番組を差し替えてローカル局独自の編成の放送を行った
場合でも、差替え時に起こる主局ストリームと差替えス
トリームとの再生時の基準時刻情報=PCRのずれを補
正して送出し、受信機300Aで視聴する際のストリー
ムの連続性を維持して障害とならないような方法がとら
れている。
In this way, in the sub station 200A,
Even when the desired CM (commercial) or broadcast program in the main station stream is replaced and the local station's original composition is broadcast, reference time information at the time of reproduction of the main station stream and the replacement stream that occurs at the time of replacement = PCR A method is adopted in which the deviation is corrected and transmitted, and the continuity of the stream when viewed by the receiver 300A is maintained so as not to become an obstacle.

【0017】[0017]

【発明が解決しようとする課題】しかしながら、このよ
うな方法では、副局(ローカル局)において、各チャン
ネルからのエレメンタリストリームごとにPCR補正、
PTS/DTSの再計算機能が必要となるという問題が
ある。また、主局ストリームを作成する多重化部では、
各エンコーダからのエレメンタリストリームが非同期な
GOP(Group of Picture)周期で入
力されるため、副局側で主局ストリームと差替ストリー
ムとの差し替えをシームレスに行おうとする為には、切
換え部に容量の大きなメモリを設けると共に、GOP同
期調整機能が必要になるというような問題もある。
However, in such a method, in the sub station (local station), PCR correction is performed for each elementary stream from each channel,
There is a problem that the recalculation function of PTS / DTS is required. Also, in the multiplexing unit that creates the main station stream,
Since the elementary stream from each encoder is input in an asynchronous GOP (Group of Picture) cycle, in order to seamlessly switch the main station stream and the replacement stream on the sub station side, the switching section is There is also a problem that a GOP synchronization adjustment function is required in addition to providing a large capacity memory.

【0018】更に、1つの放送番組に付随する映像、音
声、データ等の情報量は増加傾向にあり、1放送番組に
付随するPID(パケット識別情報)が増加しており、
PCR補正、PTS/DTS再計算の処理量が増大する
ことに伴う補正/計算用回路の規模が大きくなり、非常
に高価なシステムになるという問題を有している。
Furthermore, the amount of information such as video, audio, data, etc. associated with one broadcast program is increasing, and the PID (packet identification information) associated with one broadcast program is increasing.
There is a problem in that the scale of the correction / calculation circuit increases as the processing amount of PCR correction and PTS / DTS recalculation increases, resulting in a very expensive system.

【0019】従って、デジタル放送などに用いるMPE
Gストリームの切り換えを行う場合、複数のエレメンタ
リストリームで構成されるトランスポートストリームの
所望のエレメンタリストリームと、所望の差替え用スト
リームとを簡易な方法/装置により差替え、且つ、トラ
ンスポートストリームと差替え用ストリームとの連続性
を保持できるようにすることに解決しなければならない
課題を有する。
Therefore, MPE used for digital broadcasting, etc.
When the G stream is switched, a desired elementary stream of a transport stream composed of a plurality of elementary streams and a desired replacement stream are replaced by a simple method / apparatus and replaced with the transport stream. There is a problem that must be solved to be able to maintain continuity with the stream for use.

【0020】[0020]

【課題を解決するための手段】前記課題を解決するた
め、本発明に係るMPEGストリーム切換方法及びMP
EGストリーム切換装置は次のような構成にすることで
ある。
In order to solve the above-mentioned problems, an MPEG stream switching method and MP according to the present invention.
The EG stream switching device has the following configuration.

【0021】(1)複数のエレメンタリストリームで構
成されているトランスポートストリームの所望のエレメ
ンタリストリームに存在するPCRを再生し、該再生し
たPCRに基づいて差し替え用のエレメンタリストリー
ムを作成し、前記所望のエレメンタリストリームと差し
替えてトランスポートストリームを送出することを特徴
とするMPEGストリーム切換方法。 (2)前記差し替え用のエレメンタリストリームは、前
記再生したPCRに同期したPTS/DTSを付加する
ようにしたことを特徴とする(1)に記載のMPEGス
トリーム切換方法。 (3)前記所望のエレメンタリストリームに含まれてい
る映像ストリームのフレーム同期信号を検出し、該検出
したフレーム同期信号に基づいて前記差し替え用のエレ
メンタリストリームを作成することを特徴とする(1)
に記載のMPEGストリーム切換方法。 (4)前記差し替え用のエレメンタリストリームは、前
記再生したPCRに基づいてオーディオ信号及びビデオ
信号を符号化して作成することを特徴とする(1)に記
載のMPEGストリーム切換方法。 (5)前記差し替え用のエレメンタリストリームは、前
記再生したPCRに基づいて予め生成されているエレメ
ンタリストリームを用いて作成することを特徴とする
(1)に記載のMPEGストリーム切換方法。 (6)前記差し替え用のエレメンタリストリームは、前
記トランスポートストリームに存在する所望のPIDに
基づいて第2のMEPGストリームを生成することを特
徴とする(1)に記載のMPEGストリーム切換方法。
(1) A PCR existing in a desired elementary stream of a transport stream composed of a plurality of elementary streams is reproduced, and an elementary stream for replacement is created based on the reproduced PCR. An MPEG stream switching method, characterized in that a transport stream is transmitted in place of the desired elementary stream. (2) The MPEG stream switching method according to (1), wherein the PTS / DTS synchronized with the played PCR is added to the replacement elementary stream. (3) A frame synchronization signal of a video stream included in the desired elementary stream is detected, and the replacement elementary stream is created based on the detected frame synchronization signal (1 )
The MPEG stream switching method described in 1. (4) The MPEG stream switching method according to (1), characterized in that the replacement elementary stream is created by encoding an audio signal and a video signal based on the reproduced PCR. (5) The MPEG stream switching method according to (1), characterized in that the replacement elementary stream is created using an elementary stream generated in advance based on the reproduced PCR. (6) The MPEG stream switching method according to (1), wherein the replacement elementary stream generates a second MPEG stream based on a desired PID existing in the transport stream.

【0022】(7)複数のエレメンタリストリームで構
成されている第1のMPEGストリームを受信する手段
と、該受信する手段で受信した第1のMPEGストリー
ムを構成するうちの所望のエレメンタリストリームに存
在する時刻情報を再生する時刻情報再生手段と、該時刻
情報再生手段で再生した時刻情報に基づいて第2のMP
EGストリームを生成するストリーム作成手段と、前記
受信した第1のMPEGストリームの所望のエレメンタ
リストリームと、前記ストリーム作成手段で作成した第
2のMPEGストリームとを差し替えるストリーム差替
手段と、を備えていることを特徴とするMPEGストリ
ーム切換装置。 (8)前記時刻情報再生手段で再生する時刻情報は、P
CRであることを特徴とする(7)に記載のMPEGス
トリーム切換装置。 (9)前記ストリーム作成手段は、前記時刻情報手段で
再生した時刻情報に基づいてオーディオ信号及び/又は
ビデオ信号を符号化して第2のMPEGストリームを作
成することを特徴とする(7)に記載のMPEGストリ
ーム切換装置。 (10)前記ストリーム作成手段は、予め生成されてい
るMPEGストリームを用いて第2のMPEGストリー
ムを作成することを特徴とする(7)に記載のMPEG
ストリーム切換装置。 (11)前記ストリーム作成手段は、前記時刻情報再生
手段により検出する前記所望のエレメンタリストリーム
に含まれている映像ストリームのフレーム同期信号に基
づいて第2のMPEGストリームを作成することを特徴
とする(7)に記載のMPEGストリーム切換装置。 (12)前記ストリーム作成手段は、前記受信した第1
のMPEGストリームに存在する所望のPIDに基づい
て第2のMEPGストリームを生成することを特徴とす
る(7)に記載のMPEGストリーム切換装置。
(7) A means for receiving a first MPEG stream composed of a plurality of elementary streams, and a desired elementary stream of the first MPEG stream received by the means for receiving. Time information reproducing means for reproducing the existing time information, and the second MP based on the time information reproduced by the time information reproducing means.
A stream creating means for creating an EG stream; and a stream replacing means for replacing the desired elementary stream of the received first MPEG stream with the second MPEG stream created by the stream creating means. An MPEG stream switching device characterized in that (8) The time information reproduced by the time information reproducing means is P
The MPEG stream switching device according to (7), which is a CR. (9) The stream creating means creates a second MPEG stream by encoding an audio signal and / or a video signal based on the time information reproduced by the time information means. MPEG stream switching device. (10) The MPEG according to (7), characterized in that the stream creating means creates a second MPEG stream using an MPEG stream generated in advance.
Stream switching device. (11) The stream creating means creates a second MPEG stream based on a frame synchronization signal of a video stream included in the desired elementary stream detected by the time information reproducing means. The MPEG stream switching device according to (7). (12) The stream creating means is configured to receive the received first
The MPEG stream switching device according to (7), wherein the second MPEG stream is generated based on a desired PID existing in the MPEG stream.

【0023】このようなMPEGストリーム切換方法及
びMPEGストリーム切換装置により、第1のMPEG
ストリーム(トランスポートストリーム)の所望のエレ
メンタリストリームに存在するPCRを再生し、再生し
たPCRに基づいて第2のMEPGストリーム(差替え
用ストリーム)を作成するので、第1のMPEGストリ
ームと第2のMPEGストリームが同じ時刻情報(PC
R)によるストリームとなり、ストリームの差し替えの
際に、切換え部でPCRやPTS/DTSの再計算機能
など煩雑な処理機能を具備しなくても、ストリームの連
続性を保持することができる。
With the MPEG stream switching method and the MPEG stream switching device, the first MPEG
Since the PCR existing in the desired elementary stream of the stream (transport stream) is reproduced and the second MPEG stream (replacement stream) is created based on the reproduced PCR, the first MPEG stream and the second MPEG stream are generated. The same time information (PC
The stream becomes a stream according to R), and when the stream is replaced, the continuity of the stream can be maintained even if the switching unit does not have a complicated processing function such as a PCR or a PTS / DTS recalculation function.

【0024】又、第1のMPEGストリームを構成する
エレメンタリストリーム(CMや放送番組)が個々にP
CRを有している場合においても、差替えを行いたいエ
レメンタリストリーム(CMや放送番組)のPIDを指
定すれば、第1のMPEGストリーム中の所望のCMや
放送番組と同じ時刻情報(PCR)で差替え用ストリー
ムとなる第2のMPEGストリームが作成され、ストリ
ームの連続性を保持することができる。
Also, the elementary streams (CM and broadcast programs) that compose the first MPEG stream are individually P
Even if it has a CR, if the PID of the elementary stream (CM or broadcast program) to be replaced is specified, the same time information (PCR) as the desired CM or broadcast program in the first MPEG stream is specified. A second MPEG stream, which is a replacement stream, is created by and the continuity of the stream can be maintained.

【0025】更に、時刻情報再生手段において、受信し
た第1のMPEGストリームに含まれる映像ストリーム
のフレーム同期信号を検出し、ストリーム作成手段にお
いて、時刻情報再生手段で検出したフレーム同期信号に
同期して符号化処理を行って第2のMEPGストリーム
を作成することで、GOP同期調整機能がなくても、所
望のエレメンタリストリームと差替え用ストリームとを
GOP単位で差替え、且つ、ストリームの連続性を保持
することができる。
Further, the time information reproducing means detects the frame synchronizing signal of the video stream included in the received first MPEG stream, and the stream creating means synchronizes with the frame synchronizing signal detected by the time information reproducing means. By performing the encoding process to create the second MPEG stream, the desired elementary stream and the replacement stream can be replaced in GOP units and the continuity of the stream can be maintained even without the GOP synchronization adjustment function. can do.

【0026】[0026]

【発明の実施の形態】次に、本発明に係るMPEGスト
リーム切換方法及びMPEGストリーム切換装置の実施
の形態を図面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Next, an embodiment of an MPEG stream switching method and an MPEG stream switching device according to the present invention will be described with reference to the drawings.

【0027】図1は、主局100と、副局200と、受
信機300とから構成されるデジタル放送送受信システ
ムの概略図である。
FIG. 1 is a schematic diagram of a digital broadcast transmitting / receiving system including a main station 100, a sub station 200, and a receiver 300.

【0028】主局100は、放送番組の再生基準となる
時刻情報であるPCR(Program Clock
Refernec)を生成するPCR生成部120を備
え、各チャンネル(CH1〜CHn)ごとに映像/音声
/データなどをMEPGフォーマットに従ってエレメン
タリストリームとして生成/送出するエンコーダ110
と、各エンコーダ110からのエレメンタリストリーム
を多重化して主局ストリーム(トランスポートストリー
ム)として副局200に送出する多重化(MUX)部1
30とを具備している。
The main station 100 uses a PCR (Program Clock) which is time information as a reproduction reference of a broadcast program.
An encoder 110 that includes a PCR generation unit 120 that generates a Reference), and that generates / transmits video / audio / data and the like as an elementary stream according to the MPEG format for each channel (CH1 to CHn).
And a multiplexing (MUX) unit 1 that multiplexes the elementary streams from the encoders 110 and sends them to the sub station 200 as a main station stream (transport stream).
30 and 30 are provided.

【0029】副局(ローカル局)200は、各ローカル
局独自のCM(コマーシャル)や放送番組をMEPGフ
ォーマットに従って符号化(パケット化)して送出する
差替ストリーム作成部210と、主局100からの主局
ストリームを受信し、差替ストリーム作成部210から
のローカル局独自のCM/放送番組、即ち差替ストリー
ムを主局ストリームの所定位置のストリームと差替える
為の切換え部250とを具備したMEPGストリーム切
換装置を有する。
The sub station (local station) 200 is provided with a replacement stream creating section 210 for encoding (packetizing) CM (commercial) or broadcast program unique to each local station in accordance with the MPEG format, and transmitting the same. And a switching unit 250 for replacing the CM / broadcast program unique to the local station from the replacement stream creation unit 210, that is, the replacement stream with a stream at a predetermined position of the main station stream. It has an MPEG stream switching device.

【0030】差替ストリーム作成部210は、PCR再
生部240を備え、差し替え用のCMや放送番組の映像
/音声/データなどをMEPGフォーマットに従って差
替ストリームとして生成/送出するエンコーダ220
と、PCR再生部240を備え、差し替え用のCMや放
送番組の音声/映像信号をMPEGフォーマットに従っ
て変換して、差替ストリームとして予め蓄積してあるサ
ーバ230とを備えている。
The replacement stream creating section 210 includes a PCR reproducing section 240, and an encoder 220 for creating / transmitting replacement CM, video / audio / data of a broadcast program, etc. as a replacement stream according to the MPEG format.
And a server 230 which is provided with a PCR reproducing unit 240, which converts a replacement CM or an audio / video signal of a broadcast program in accordance with the MPEG format and stores it in advance as a replacement stream.

【0031】受信機300は、副局200からの副局ス
トリームを無線ネットワーク(衛星放送、地上波放送な
ど)、有線ネットワーク(ケーブルテレビなど)を介し
て受信し、所望のチャンネルの放送番組を視聴すること
ができる。
The receiver 300 receives the sub station stream from the sub station 200 via a wireless network (satellite broadcasting, terrestrial broadcasting, etc.) or a wired network (cable television, etc.) and views a broadcast program of a desired channel. can do.

【0032】図2は、副局200のMPEGストリーム
切換装置の主要部を具体的に示したブロック図であり、
エンコーダ220と、PCR再生部240と、切換え部
250とから構成されている。尚、サーバ230は省略
してある。
FIG. 2 is a block diagram specifically showing the main part of the MPEG stream switching device of the substation 200.
It is composed of an encoder 220, a PCR reproducing section 240, and a switching section 250. The server 230 is omitted.

【0033】エンコーダ220は、差替え用映像信号を
MEPGフォーマットに従って符号化(パケット化)す
ると共に、PCR再生部240で再生されたPCRに基
づいてPTS/DTSを付加する映像符号部(PTS/
DTS処理部)221と、差替え用音声信号をMEPG
フォーマットに従って符号化(パケット化)すると共
に、PCR再生部240で再生されたPCRに基づいて
PTSを付加する音声符号化部(PTS処理部)222
と、制御情報や復号化に必要な情報などをMEPGフォ
ーマットに従って生成するPSI(Program S
pecificInformation)生成部223
と、PCR再生部240で再生されたPCRと、映像符
号部(PTS/DTS処理部)221/音声符号化部
(PTS処理部)222/PSI生成部223からの符
号化信号(パケット)を多重化して差替ストリームを作
成して切換え部250に送出する多重化部224とから
構成される。尚、映像符号部(PTS/DTS処理部)
221には、PCR再生部240からのタイムスタンプ
に同期して符号化処理する機能を設けるようにしても良
い。
The encoder 220 encodes (packetizes) the replacement video signal in accordance with the MPEG format, and adds a PTS / DTS based on the PCR reproduced by the PCR reproducing unit 240.
DTS processing unit 221 and the replacement audio signal to MPEG.
A voice encoding unit (PTS processing unit) 222 that encodes (packetizes) according to the format and adds PTS based on the PCR reproduced by the PCR reproducing unit 240
And PSI (Program S) that generates control information and information necessary for decoding in accordance with the MPEG format.
(specificInformation) generation unit 223
And the PCR reproduced by the PCR reproducing unit 240 and the encoded signal (packet) from the video encoding unit (PTS / DTS processing unit) 221 / audio encoding unit (PTS processing unit) 222 / PSI generation unit 223. It is composed of a multiplexing unit 224 that converts the data into a replacement stream and sends it to the switching unit 250. The video coding unit (PTS / DTS processing unit)
The function 221 may be provided with a function of performing encoding processing in synchronization with the time stamp from the PCR reproducing unit 240.

【0034】PCR再生部240は、差替ストリーム作
成部210を構成するエンコーダ220やサーバ230
内に設けられており、図3に示すように、主局ストリー
ム(のTSパケット)の中からPCR(主局)を抽出し
てPCRパケットラッチ242に送るPID(Pack
et Identification)フィルタ241
と、ラッチ制御パルスに従い、PIDフィルタ241か
らのPCR(主局)を比較器243に送るPCRパケッ
トラッチ242と、PCRパケットラッチ242からの
PCR(主局)とPCRカウンタ246で生成したPC
Rとの位相差を比較した比較値をDA部244へ送る比
較器243と、比較器243からの比較値をD/A変換
(交流成分カット)して制御電圧とし、VCXO245
に送るDA部244と、DA部244の制御電圧に従い
所定のクロック信号(27MHz)を発振するVCXO
(Voltage Controlled Cryst
al Oscillator;電圧制御水晶発振器)2
45と、VCXO246のクロック信号に基づいてPC
Rを再生して外部へ出力すると共に、PCRカウンタラ
ッチ247に送るPCRカウンタ246と、ラッチ制御
パルスに従ってPCRカウンタ246で再生されたPC
Rを比較器243に送るPCRカウンタラッチ247と
から構成される。尚、PCR再生部240に、主局スト
リームに含まれる符号化されている映像ストリーム(パ
ケット群)からシーケンスヘッダやGOPヘッダを検出
し、これらヘッダに含まれるタイムスタンプ(時刻情報
=フレーム同期信号)を抽出して、映像符号部(PTS
/DTS処理部)221へ送出する機能を設けるように
しても良い。
The PCR reproducing section 240 includes an encoder 220 and a server 230 which form the replacement stream creating section 210.
As shown in FIG. 3, the PID (Pack) that is provided in the PCR packet latch 242 and extracts the PCR (main station) from (the TS packet of) the main station stream.
et Identification) filter 241
According to the latch control pulse, a PCR packet latch 242 for sending the PCR (main station) from the PID filter 241 to the comparator 243, a PCR (main station) from the PCR packet latch 242, and a PC generated by the PCR counter 246.
The comparator 243 that sends a comparison value that compares the phase difference with R to the DA unit 244, and the comparison value from the comparator 243 is D / A converted (AC component cut) into a control voltage, and the VCXO 245
To the DA unit 244 and the VCXO that oscillates a predetermined clock signal (27 MHz) according to the control voltage of the DA unit 244.
(Voltage Controlled Cryst
al Oscillator; Voltage controlled crystal oscillator) 2
45 and a PC based on the clock signal of the VCXO 246.
A PCR counter 246 which reproduces R and outputs it to the outside, and sends it to the PCR counter latch 247, and a PC reproduced by the PCR counter 246 according to the latch control pulse.
A PCR counter latch 247 for sending R to the comparator 243. The PCR reproducing unit 240 detects the sequence header and GOP header from the encoded video stream (packet group) included in the main station stream, and the time stamp (time information = frame synchronization signal) included in these headers. To extract the video code part (PTS
/ DTS processing unit) 221 may be provided.

【0035】切換え部250は、主局100からの主局
ストリームと、差替ストリーム作成部210で作成され
た差替えストリームとを差替えて、副局200独自の編
成となる副局ストリームを作成して受信機300へ送出
する。
The switching unit 250 replaces the main station stream from the main station 100 with the replacement stream created by the replacement stream creation unit 210 to create a sub-station stream having an organization unique to the sub-station 200. It is sent to the receiver 300.

【0036】このような主局100と、副局200と、
受信機300とから構成されるデジタル放送送受信シス
テムにおいて、主局ストリームの所望位置に差替ストリ
ームを差替えて副局ストリームを作成して受信機300
へ送出する時の動作について説明する。
Such a main station 100, a sub station 200,
In the digital broadcast transmission / reception system configured with the receiver 300, the receiver 300 is created by replacing the replacement stream with a desired position of the main station stream to create a sub station stream.
The operation at the time of sending to will be described.

【0037】まず、主局100では、各チャンネル(C
H1〜CHn)ごとのエンコーダ110のPCR生成部
120で、放送番組の再生基準となる時刻情報であるP
CR(主局)を生成して、放送番組の映像/音声/デー
タなどをPCR(主局)に基づいてMEPGフォーマッ
トに従い変換し、エレメンタリストリームとして生成し
て多重化部(MUX)130に送出する。尚、各エンコ
ーダ110は、それぞれ固有のPCR(主局)を有して
おり、多重化部130にはランダムに送出されている。
多重化部130は、各エンコーダ110からランダムに
送られてくるエレメンタリストリームを多重化して主局
ストリーム(トランスポートストリーム)を作成して副
局200に送出する。
First, in the main station 100, each channel (C
In the PCR generation unit 120 of the encoder 110 for each of H1 to CHn), the time information P that is the reproduction reference of the broadcast program is generated.
A CR (main station) is generated, video / audio / data, etc. of a broadcast program are converted according to the MPEG format based on a PCR (main station), generated as an elementary stream, and sent to the multiplexing unit (MUX) 130. To do. Each encoder 110 has its own PCR (main station) and is randomly sent to the multiplexing unit 130.
The multiplexing unit 130 multiplexes the elementary streams sent at random from each encoder 110 to create a main station stream (transport stream) and sends it to the sub station 200.

【0038】副局(ローカル局)200では、主局10
0からの主局ストリーム(トランスポートストリーム)
を受信すると、各ローカル局独自のCM(コマーシャ
ル)や放送番組を主局ストリームの所定箇所と差替える
ために、差替ストリーム作成部210に送る。
In the sub station (local station) 200, the main station 10
Master station stream from 0 (transport stream)
Is received, the CM (commercial) or broadcast program unique to each local station is sent to the replacement stream creating unit 210 in order to replace it with a predetermined location of the main station stream.

【0039】差替ストリーム作成部210では、まず、
エンコーダ220やサーバ230が備えているPCR再
生部240により、PIDフィルタ241が主局ストリ
ーム(のTSパケット)の中から差替え対象となるPC
R(主局)を含んだパケットを抽出し、PCR(主局)
を取り出してPCRパケットラッチ242に送り、PC
Rパケットラッチ242がラッチ制御パルスに従い、P
IDフィルタ241からのPCR(主局)を比較器24
3に送る。そして、比較器243によりPCRカウンタ
246で生成したPCRとPCR(主局)と位相差を比
較して、その比較値をDA部244に送り、DA部24
4で比較器243からの比較値をD/A変換(交流成分
カット)し制御電圧としてVCXO245に送る。VC
XO245は、DA部244の制御電圧に従い所定のク
ロック信号(27MHz)を発振してPCRカウンタ2
46に送る。PCRカウンタ246では、VCXO24
6のクロック信号に基づいてPCRを再生して外部へ出
力する、又、再生したPCRをPCRカウンタラッチ2
47に送る。PCR247では、ラッチ制御パルスに従
ってPCRカウンタ246で再生されたPCRを比較器
243に送る。このようにして、主局ストリーム中の所
望の差替え箇所のPCR(主局)に基づいて、差替スト
リームを作成する為のPCRを再生する。
In the replacement stream creating section 210, first,
The PC to be replaced by the PID filter 241 from (the TS packet of) the main station stream by the PCR reproducing unit 240 included in the encoder 220 or the server 230.
The packet including R (main station) is extracted and PCR (main station)
Take out and send to PCR packet latch 242, PC
The R packet latch 242 follows P in accordance with the latch control pulse.
The PCR (main station) from the ID filter 241 is compared with the comparator 24.
Send to 3. Then, the phase difference between the PCR generated by the PCR counter 246 and the PCR (main station) is compared by the comparator 243, and the comparison value is sent to the DA unit 244.
In 4, the comparison value from the comparator 243 is D / A converted (AC component cut) and sent to the VCXO 245 as a control voltage. VC
The XO 245 oscillates a predetermined clock signal (27 MHz) according to the control voltage of the DA unit 244 to generate the PCR counter 2.
Send to 46. In the PCR counter 246, the VCXO24
The PCR is reproduced based on the clock signal of 6 and output to the outside, and the reproduced PCR is transmitted to the PCR counter latch 2
Send to 47. The PCR 247 sends the PCR reproduced by the PCR counter 246 to the comparator 243 in accordance with the latch control pulse. In this way, the PCR for creating the replacement stream is reproduced based on the PCR (main station) at the desired replacement location in the main station stream.

【0040】エンコーダ220では、映像符号部(PT
S/DTS処理部)221で、MEPGフォーマットに
従って挿入するCMや放送番組などの映像信号を符号化
(パケット化)すると共に、PCR再生部240で再生
されたPCRに基づいてPTS/DTSを生成して付加
して多重化部240に送る。音声符号化部(PTS処理
部)222により、MEPGフォーマットに従って挿入
するCMや放送番組などの音声信号を符号化(パケット
化)し、PCR再生部240で再生されたPCRに基づ
いてPTSを生成して付加して多重化部240に送る。
又、PSI生成部223で制御情報や復号化に必要な情
報などをMEPGフォーマットに従ってパケット化して
多重化部224に送る。多重化部224では、PCR再
生部240で再生されたPCRに基づいてPCR映像符
号部(PTS/DTS処理部)221/音声符号化部
(PTS処理部)222/PSI生成部223からのパ
ケットを多重化して差替ストリームを作成して切換え部
250に送出する。
In the encoder 220, the video code part (PT
(S / DTS processing unit) 221 encodes (packetizes) a video signal such as a CM or a broadcast program to be inserted according to the MPEG format, and also generates a PTS / DTS based on the PCR reproduced by the PCR reproducing unit 240. Are added and sent to the multiplexing unit 240. An audio encoding unit (PTS processing unit) 222 encodes (packetizes) an audio signal such as a CM or a broadcast program to be inserted according to the MPEG format, and generates a PTS based on the PCR reproduced by the PCR reproducing unit 240. Are added and sent to the multiplexing unit 240.
Also, the PSI generation unit 223 packetizes control information, information necessary for decoding, and the like according to the MPEG format and sends it to the multiplexing unit 224. In the multiplexing unit 224, the packet from the PCR video encoding unit (PTS / DTS processing unit) 221 / audio encoding unit (PTS processing unit) 222 / PSI generation unit 223 is generated based on the PCR reproduced by the PCR reproducing unit 240. The multiplexed stream is created by multiplexing and is sent to the switching unit 250.

【0041】一方、サーバ230では、差し替え用のC
Mや放送番組の音声/映像信号をMPEGフォーマット
に従って変換したエレメンタリストリームとして予め蓄
積しており、PCR再生部240で再生されたPCRに
基づいて差替ストリームを作成して切換え部250に送
出する。
On the other hand, in the server 230, the replacement C
An audio / video signal of M or a broadcast program is previously stored as an elementary stream converted according to the MPEG format, and a replacement stream is created based on the PCR reproduced by the PCR reproducing unit 240 and is sent to the switching unit 250. .

【0042】切換え部250は、主局100からの主局
ストリームと、差替ストリーム作成部210のエンコー
ダ220又はサーバ230で作成された差替えストリー
ムとの差替えを行い、主局ストリームの所望位置に差替
ストリームを差替えて副局200独自の編成となる副局
ストリームを作成して受信機300へ送出する。
The switching unit 250 replaces the main station stream from the main station 100 with the replacement stream created by the encoder 220 of the replacement stream creating unit 210 or the server 230, and moves to the desired position of the main station stream. The replacement stream is replaced to create a substation stream having a unique organization of the substation 200, and the substation stream is sent to the receiver 300.

【0043】尚、PCR再生部240に、主局ストリー
ムに含まれる符号化されている映像ストリーム(パケッ
ト群)からシーケンスヘッダやGOPヘッダを検出し、
これらヘッダに含まれるタイムスタンプ(フレーム同期
信号)を抽出して、映像符号部(PTS/DTS処理
部)221へ送る機能を設け、エンコーダ220の映像
符号部(PTS/DTS処理部)221には、PCR再
生部240からのタイムスタンプに同期して符号化処理
する機能を設けることで、切換え部250では、主局ス
トリームと差替ストリームをGOP単位で差替えること
が可能となる。
The PCR reproducing unit 240 detects the sequence header and GOP header from the encoded video stream (packet group) included in the main station stream,
A function is provided for extracting the time stamp (frame synchronization signal) included in these headers and sending it to the video coding unit (PTS / DTS processing unit) 221, and the video coding unit (PTS / DTS processing unit) 221 of the encoder 220 has By providing the function of performing the encoding process in synchronization with the time stamp from the PCR reproducing unit 240, the switching unit 250 can replace the master station stream and the replacement stream in GOP units.

【0044】受信機300は、副局200からの副局ス
トリームを無線ネットワーク(衛星放送、地上波放送な
ど)、有線ネットワーク(ケーブルテレビなど)を介し
て所望のチャンネルを受信すると、CMや放送番組がロ
ーカル局独自のものに差替えられた放送を視聴すること
になる。
When the receiver 300 receives a desired channel from the substation stream from the substation 200 via a wireless network (satellite broadcasting, terrestrial broadcasting, etc.) or a wired network (cable TV, etc.), a CM or broadcast program is received. Will watch the broadcast replaced by the one unique to the local station.

【0045】[0045]

【発明の効果】以上説明したように、主局ストリーム
(トランスポートストリーム)の所望のエレメンタリス
トリームに含まれる時刻情報(PCR)に基づいて、M
PEGストリーム切換装置でPCRを再生し、この再生
したPCRによって差替えストリームを作成するので、
トランスポートストリームと差替え用ストリームが同じ
時刻情報(PCR)により作成されることになり、スト
リームの差し替えの際に、切換え部でPCRやPTS/
DTSの再計算機能など煩雑な処理機能を具備しなくて
も、トランスポートストリームと差替え用ストリームの
連続性が保持される。従って、PCRやPTS/DTS
の再計算機能など処理機能が不要となり簡易な回路構成
の切換装置でCMや放送番組の差替えを行うことができ
る。
As described above, based on the time information (PCR) included in the desired elementary stream of the main station stream (transport stream), M
Since the PCR is reproduced by the PEG stream switching device and the replacement stream is created by the reproduced PCR,
The transport stream and the replacement stream are created with the same time information (PCR), and when the stream is replaced, PCR or PTS /
The continuity of the transport stream and the replacement stream is maintained even if the DTS recalculation function and other complicated processing functions are not provided. Therefore, PCR and PTS / DTS
Since the processing function such as the recalculation function is unnecessary, the CM or the broadcast program can be replaced by the switching device having a simple circuit configuration.

【0046】又、主局ストリームを構成するエレメンタ
リストリームのCMや放送番組が固有のPCRに基づい
て作成されている場合においても、MPEGストリーム
切換装置で、差替えを行いたいCMや放送番組のPID
を指定すれば、主局ストリーム中の所望のCMや放送番
組の固有のPCRに基づいて再生されたPCRで差替ス
トリームを作成するので、ストリームの差し替えを行っ
た際、トランスポートストリームと差替え用ストリーム
の連続性は保持される。
Further, even when the CM or broadcast program of the elementary stream forming the main station stream is created based on the unique PCR, the PID of the CM or broadcast program desired to be replaced by the MPEG stream switching device.
If you specify, the replacement stream will be created with the PCR that is played back based on the PCR that is unique to the desired CM or broadcast program in the main station stream, so when you replace the stream, you can replace it with the transport stream. Stream continuity is maintained.

【0047】更に、PCR再生部に、主局ストリームに
含まれる所望の映像ストリームのフレーム同期信号を検
出し、映像符号化処理部が抽出したフレーム同期信号に
同期して符号化処理を行い、差替え用ストリームを作成
することで、GOP同期調整機能がなくても、主局スト
リームの所望のエレメンタリストリームと差替え用スト
リームとをGOP単位で差替え、且つ、ストリームの連
続性を保持することができるので、容量が大きなメモリ
を必要とするGOP同期調整機能が不要になり、切換え
部の回路構成を簡素化することができる。
Further, the PCR reproducing section detects a frame sync signal of a desired video stream included in the main station stream, performs coding processing in synchronization with the frame sync signal extracted by the video coding processing section, and replaces it. By creating the stream for use, it is possible to replace the desired elementary stream of the main station stream with the replacement stream on a GOP basis and maintain the continuity of the stream without the GOP synchronization adjustment function. The GOP synchronization adjustment function, which requires a large-capacity memory, becomes unnecessary, and the circuit configuration of the switching unit can be simplified.

【0048】また、主局のエンコーダに設けるPCR生
成部や副局のエンコーダに設けるPCR再生部は、受信
機等で用いるPCR再生部の回路構成と殆ど同じである
ので、各エンコーダへの追加は容易であり、主局の各チ
ャンネル毎に独自のPCRに基づてエレメンタリストリ
ームを作成することも可能である。
Further, the PCR generating section provided in the encoder of the main station and the PCR reproducing section provided in the encoder of the sub station are almost the same as the circuit configuration of the PCR reproducing section used in the receiver and the like, so that addition to each encoder is not required. It is easy and it is possible to create an elementary stream based on a unique PCR for each channel of the main station.

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

【図1】本発明に係るMPEGストリーム切換方法によ
るデジタル放送の送受信システムの概略を示した構成図
である。
FIG. 1 is a configuration diagram showing an outline of a digital broadcast transmission / reception system by an MPEG stream switching method according to the present invention.

【図2】本発明に係るMPEGストリーム切換装置の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an MPEG stream switching device according to the present invention.

【図3】本発明に係るMPEGストリーム切換装置のP
CR再生部のブロック図である。
[Fig. 3] P of an MPEG stream switching device according to the present invention
It is a block diagram of a CR reproducing unit.

【図4】従来技術によるMPEGストリーム切換装置に
よる送受信システムの構成を示した概略図である。
FIG. 4 is a schematic diagram showing a configuration of a transmission / reception system using an MPEG stream switching device according to a conventional technique.

【図5】従来技術におけるMPEGストリーム切換装置
のブロック図である。
FIG. 5 is a block diagram of an MPEG stream switching device in the prior art.

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

100;主局、110;エンコーダ、120;PCR生
成部、130;多重化(MUX)部、200;副局、2
10;差替ストリーム作成部、220;エンコーダ、2
21;映像符号化部(PTS/DTS処理部)、22
2;音声符号化部(PTS処理部)、223;PSI生
成部、224;多重化部、230;サーバ、240;P
CR再生部、241;PIDフィルタ、242;PCR
パケットラッチ、243;比較部、244;DA部、2
45;VCXO、246;PCRカウンタ、247;P
CRカウンタラッチ、250;切換え部、300;受信
機100A;主局、110A;エンコーダ、120A;
PCR生成部、130;多重化(MUX)部、200
A;副局、210A;差替ストリーム作成部、220
A;エンコーダ、221A;映像符号化部(PTS/D
TS処理部)、222A;音声符号化部(PTS処理
部)、223A;PSI生成部、224A;多重化部、
240A;PCR生成部、250A;切換え部、251
A;スイッチ、252A;PID補正部、300A;受
信機
100; Main station, 110; Encoder, 120; PCR generation section, 130; Multiplexing (MUX) section, 200; Sub station, 2
10; replacement stream creation unit, 220; encoder, 2
21: video encoding unit (PTS / DTS processing unit), 22
2; voice coding unit (PTS processing unit), 223; PSI generation unit, 224; multiplexing unit, 230; server, 240; P
CR reproducing unit, 241; PID filter, 242; PCR
Packet latch, 243; comparison section, 244; DA section, 2
45; VCXO, 246; PCR counter, 247; P
CR counter latch, 250; switching unit, 300; receiver 100A; master station, 110A; encoder, 120A;
PCR generation unit, 130; Multiplexing (MUX) unit, 200
A: Substation, 210A; Replacement stream creation unit, 220
A: Encoder, 221A: Video coding unit (PTS / D
TS processing unit), 222A; voice encoding unit (PTS processing unit), 223A; PSI generation unit, 224A; multiplexing unit,
240A; PCR generation unit, 250A; switching unit, 251
A: switch, 252A; PID correction unit, 300A; receiver

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK39 MA00 RB01 RB10 RC03 RC04 RC32 RE04 SS02 UA02 UA09 5C063 AB03 AB07 AC01 AC05 AC10 CA11 CA14 CA23 CA36 5K028 AA07 BB04 CC05 DD03 EE03 MM16 NN01 5K047 AA16 CC02 CC08 DD02 HH01 HH42 MM02 MM11    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C059 KK39 MA00 RB01 RB10 RC03                       RC04 RC32 RE04 SS02 UA02                       UA09                 5C063 AB03 AB07 AC01 AC05 AC10                       CA11 CA14 CA23 CA36                 5K028 AA07 BB04 CC05 DD03 EE03                       MM16 NN01                 5K047 AA16 CC02 CC08 DD02 HH01                       HH42 MM02 MM11

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】複数のエレメンタリストリームで構成され
ているトランスポートストリームの所望のエレメンタリ
ストリームに存在するPCRを再生し、該再生したPC
Rに基づいて差し替え用のエレメンタリストリームを作
成し、前記所望のエレメンタリストリームと差し替えて
トランスポートストリームを送出することを特徴とする
MPEGストリーム切換方法。
1. A PCR existing in a desired elementary stream of a transport stream composed of a plurality of elementary streams is reproduced, and the reproduced PC is reproduced.
An MPEG stream switching method, characterized in that an elementary stream for replacement is created based on R, and the transport stream is sent after replacing it with the desired elementary stream.
【請求項2】前記差し替え用のエレメンタリストリーム
は、前記再生したPCRに同期したPTS/DTSを付
加するようにしたことを特徴とする請求項1に記載のM
PEGストリーム切換方法。
2. The M according to claim 1, wherein the PTS / DTS synchronized with the reproduced PCR is added to the replacement elementary stream.
PEG stream switching method.
【請求項3】前記所望のエレメンタリストリームに含ま
れている映像ストリームのフレーム同期信号を検出し、
該検出したフレーム同期信号に基づいて前記差し替え用
のエレメンタリストリームを作成することを特徴とする
請求項1に記載のMPEGストリーム切換方法。
3. A frame synchronization signal of a video stream included in the desired elementary stream is detected,
The MPEG stream switching method according to claim 1, wherein the replacement elementary stream is created based on the detected frame synchronization signal.
【請求項4】前記差し替え用のエレメンタリストリーム
は、前記再生したPCRに基づいてオーディオ信号及び
ビデオ信号を符号化して作成することを特徴とする請求
項1に記載のMPEGストリーム切換方法。
4. The MPEG stream switching method according to claim 1, wherein the replacement elementary stream is created by encoding an audio signal and a video signal based on the reproduced PCR.
【請求項5】前記差し替え用のエレメンタリストリーム
は、前記再生したPCRに基づいて予め生成されている
エレメンタリストリームを用いて作成することを特徴と
する請求項1に記載のMPEGストリーム切換方法。
5. The MPEG stream switching method according to claim 1, wherein the replacement elementary stream is created by using an elementary stream generated in advance based on the reproduced PCR.
【請求項6】前記差し替え用のエレメンタリストリーム
は、前記トランスポートストリームに存在する所望のP
IDに基づいて第2のMEPGストリームを生成するこ
とを特徴とする請求項1に記載のMPEGストリーム切
換方法。
6. The desired elementary stream existing in the transport stream is the replacement elementary stream.
The MPEG stream switching method according to claim 1, wherein the second MPEG stream is generated based on the ID.
【請求項7】複数のエレメンタリストリームで構成され
ている第1のMPEGストリームを受信する手段と、該
受信する手段で受信した第1のMPEGストリームを構
成するうちの所望のエレメンタリストリームに存在する
時刻情報を再生する時刻情報再生手段と、該時刻情報再
生手段で再生した時刻情報に基づいて第2のMPEGス
トリームを生成するストリーム作成手段と、前記受信し
た第1のMPEGストリームの所望のエレメンタリスト
リームと、前記ストリーム作成手段で作成した第2のM
PEGストリームとを差し替えるストリーム差替手段
と、を備えていることを特徴とするMPEGストリーム
切換装置。
7. A means for receiving a first MPEG stream composed of a plurality of elementary streams, and a desired elementary stream included in the first MPEG stream received by the receiving means. Time information reproducing means for reproducing the time information to be reproduced, stream creating means for generating a second MPEG stream based on the time information reproduced by the time information reproducing means, and a desired element of the received first MPEG stream. The mental stream and the second M created by the stream creating means.
An MPEG stream switching device, comprising: a stream replacing means for replacing a PEG stream.
【請求項8】前記時刻情報再生手段で再生する時刻情報
は、PCRであることを特徴とする請求項7に記載のM
PEGストリーム切換装置。
8. The M according to claim 7, wherein the time information reproduced by the time information reproducing means is PCR.
PEG stream switching device.
【請求項9】前記ストリーム作成手段は、前記時刻情報
手段で再生した時刻情報に基づいてオーディオ信号及び
/又はビデオ信号を符号化して第2のMPEGストリー
ムを作成することを特徴とする請求項7に記載のMPE
Gストリーム切換装置。
9. The stream creating means creates a second MPEG stream by encoding an audio signal and / or a video signal based on the time information reproduced by the time information means. MPE described in
G stream switching device.
【請求項10】前記ストリーム作成手段は、予め生成さ
れているMPEGストリームを用いて第2のMPEGス
トリームを作成することを特徴とする請求項7に記載の
MPEGストリーム切換装置。
10. The MPEG stream switching device according to claim 7, wherein the stream creating means creates a second MPEG stream by using an MPEG stream that is generated in advance.
【請求項11】前記ストリーム作成手段は、前記時刻情
報再生手段により検出する前記所望のエレメンタリスト
リームに含まれている映像ストリームのフレーム同期信
号に基づいて第2のMPEGストリームを作成すること
を特徴とする請求項7に記載のMPEGストリーム切換
装置。
11. The stream creating means creates a second MPEG stream based on a frame synchronization signal of a video stream included in the desired elementary stream detected by the time information reproducing means. The MPEG stream switching device according to claim 7.
【請求項12】前記ストリーム作成手段は、前記受信し
た第1のMPEGストリームに存在する所望のPIDに
基づいて第2のMEPGストリームを生成することを特
徴とする請求項7に記載のMPEGストリーム切換装
置。
12. The MPEG stream switching according to claim 7, wherein the stream creating means generates a second MPEG stream based on a desired PID existing in the received first MPEG stream. apparatus.
JP2001224458A 2001-07-25 2001-07-25 Mpeg stream switching method and apparatus thereof Pending JP2003037824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001224458A JP2003037824A (en) 2001-07-25 2001-07-25 Mpeg stream switching method and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001224458A JP2003037824A (en) 2001-07-25 2001-07-25 Mpeg stream switching method and apparatus thereof

Publications (1)

Publication Number Publication Date
JP2003037824A true JP2003037824A (en) 2003-02-07

Family

ID=19057608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001224458A Pending JP2003037824A (en) 2001-07-25 2001-07-25 Mpeg stream switching method and apparatus thereof

Country Status (1)

Country Link
JP (1) JP2003037824A (en)

Similar Documents

Publication Publication Date Title
US6404818B1 (en) Video transmission device and its method
US8189679B2 (en) Content receiving apparatus, method of controlling video-audio output timing and content providing system
US7983345B2 (en) Content receiving apparatus, video/audio output timing control method, and content provision system
JP4481444B2 (en) Image encoding device
EP2498495B1 (en) Decoder and method at the decoder for synchronizing the rendering of contents received through different networks
JP4208398B2 (en) Moving picture decoding / reproducing apparatus, moving picture decoding / reproducing method, and multimedia information receiving apparatus
JP5399984B2 (en) Transmission device, server device, and reception device
US20060034337A1 (en) Data synchronization method and apparatus for digital multimedia data receiver
US7075994B2 (en) Signal transmission method and signal transmission apparatus
WO2004019575A1 (en) Method and system for compensating for timing violations of a multiplex of at least two media packet streams
JP3906712B2 (en) Data stream processing device
US20040263689A1 (en) Broadcast system and apparatus, sync information replacing apparatus and method, program, and recording medium recording the program
JP3893643B2 (en) Signal multiplexing method and transmission signal generating apparatus using the same
JP3400681B2 (en) Data packet remultiplexing method and remultiplexing apparatus
JP4192766B2 (en) Receiving apparatus and method, recording medium, and program
JP2003037824A (en) Mpeg stream switching method and apparatus thereof
JP4660377B2 (en) Wireless video transmission device, video transmission device, wireless video reception device, video reception device, wireless video transmission / reception system, and video transmission / reception system
JP4146104B2 (en) Digital broadcast program relay transmission system
JP7120399B2 (en) Sending method
JP2000244433A (en) Data multiplexer and data multiplexing method
JP2000244437A (en) Data multiplexer and data multiplexing method
JP2008011430A (en) Method for retransmitting contents, method for receiving contents, and apparatus for receiving contents
JP2005027006A (en) Data transmitting device
JPH11340936A (en) Method and device for multiplexing data
JP3736092B2 (en) Frame synchronization method and decoding apparatus