JP5352545B2 - Digital broadcast transmission device - Google Patents

Digital broadcast transmission device Download PDF

Info

Publication number
JP5352545B2
JP5352545B2 JP2010179552A JP2010179552A JP5352545B2 JP 5352545 B2 JP5352545 B2 JP 5352545B2 JP 2010179552 A JP2010179552 A JP 2010179552A JP 2010179552 A JP2010179552 A JP 2010179552A JP 5352545 B2 JP5352545 B2 JP 5352545B2
Authority
JP
Japan
Prior art keywords
unit
switching
pcr
input stream
stream
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.)
Expired - Fee Related
Application number
JP2010179552A
Other languages
Japanese (ja)
Other versions
JP2012039513A (en
Inventor
浩人 佐々木
隆張 石田
淳 阿部
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.)
Hitachi Kokusai Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
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 Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2010179552A priority Critical patent/JP5352545B2/en
Priority to BRPI1104126-9A priority patent/BRPI1104126A2/en
Publication of JP2012039513A publication Critical patent/JP2012039513A/en
Application granted granted Critical
Publication of JP5352545B2 publication Critical patent/JP5352545B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a digital broadcast transmission apparatus which constitutes one broadcast program by switching a plurality of streams of MPEG-2 TS format. <P>SOLUTION: A first correction is performed so that PCR may continue before and after switching. That is, a gap between the PCR and PTS after switching is made to slide as it was, and a correction is performed so that the PCR may continue before and after switching. However, in this correction, the PTS does not always continue. Then, a second correction which secures continuity of the PTS is performed. In addition, a stream after switching is need to be switched from an I frame which is not influenced by a previous frame at the time of carrying out decoding in terms of the property of MPEG-2 TS format stream. Therefore, the PTS of the I frame of the stream after switching is corrected so that the PTS may continue before and after switching. <P>COPYRIGHT: (C)2012,JPO&amp;INPIT

Description

本発明は、デジタル符号化された複数のストリームを切替えて放送番組を構成する技術に関する。   The present invention relates to a technique for configuring a broadcast program by switching a plurality of digitally encoded streams.

デジタル放送の番組構成を容易に実現するために、種々のストリームを切替える手段を備えたデジタル放送送出装置が開示されている。
デジタル放送送出装置は、入力信号を符号化し、多重化および再多重化を行って、放送TS(Transport Stream;トランスポートストリーム)を送出する。例えば、特許文献1は、複数の入力信号に対して、符号化部を同期させることによって、再生信号を断絶することなく、複数の符号化された信号の中から任意の符号化された信号を選択して切替える技術を開示している。また、特許文献2は、符号化部に入力する信号を同期させることによって、2重化したシステムの系統をシームレスに切替える技術を開示している。
なお、これらの切替え技術は、いずれもNTSC(National Television System Committee)等のベースバンド信号を切替えるものである。
In order to easily realize a digital broadcast program structure, a digital broadcast transmission apparatus having means for switching various streams is disclosed.
The digital broadcast transmission apparatus encodes an input signal, performs multiplexing and remultiplexing, and transmits a broadcast TS (Transport Stream). For example, in Patent Document 1, by synchronizing an encoding unit with respect to a plurality of input signals, an arbitrary encoded signal can be obtained from a plurality of encoded signals without interrupting a reproduction signal. A technique for selecting and switching is disclosed. Patent Document 2 discloses a technique for seamlessly switching the system of a duplexed system by synchronizing signals input to an encoding unit.
Note that these switching technologies switch baseband signals such as NTSC (National Television System Committee).

特開2001−145022号公報Japanese Patent Laid-Open No. 2001-145022 特開2000−269864号公報JP 2000-269864 A

デジタル放送の放送番組の構成に用いる素材には、オンラインでMPEG(Moving Picture Experts Group)−2 TS形式に符号化処理されたライブ素材と、予めオフラインで符号化しておいたMPEG−2 TS形式の蓄積素材とがある。すなわち、これらのライブ素材および蓄積素材は、既にMPEG−2 TS形式の信号になっている。
しかしながら、特許文献1および特許文献2に記載の開示技術を用いる場合には、MPEG−2 TS形式の信号を復号化して、一旦ベースバンド信号に戻す必要がある。そのため、何度も符号化および復号化が繰り返されると、ベースバンド信号の品質低下が問題となる。
The material used for the composition of the broadcast program of the digital broadcast includes live material encoded in the MPEG (Moving Picture Experts Group) -2 TS format, and MPEG-2 TS format encoded in advance offline. There are accumulated materials. That is, these live materials and stored materials are already signals in the MPEG-2 TS format.
However, when using the disclosed technologies described in Patent Document 1 and Patent Document 2, it is necessary to decode the MPEG-2 TS format signal and return it to the baseband signal once. For this reason, if encoding and decoding are repeated many times, a deterioration in the quality of the baseband signal becomes a problem.

また、ライブ素材と蓄積素材とを任意のタイミングで切替えて放送番組を構成するためには、復号化されたベースバンド信号の位相を同期させる必要がある。そのため、少なくとも、蓄積素材の復号化、デジタル放送送出装置の符号化、およびスイッチャのタイミングの同期をとることが必要となり、装置構成が複雑になるという問題がある。   Further, in order to configure a broadcast program by switching between live material and stored material at an arbitrary timing, it is necessary to synchronize the phases of the decoded baseband signals. Therefore, it is necessary to synchronize at least the decoding of the stored material, the encoding of the digital broadcast transmission apparatus, and the timing of the switcher, which causes a problem that the apparatus configuration becomes complicated.

そこで、本発明では、MPEG−2 TS形式の複数のストリームを切替えて一つの放送番組を構成するデジタル放送送出装置を提供することを課題とする。   Therefore, an object of the present invention is to provide a digital broadcast transmission apparatus that configures one broadcast program by switching a plurality of MPEG-2 TS format streams.

前記課題を解決するために、デジタル放送送出装置は、ベースバンド信号(例えば、NTSC)を符号化してMPEG−2 TSにパケット化された符号化入力、ASI(Asynchronous Serial Interface)ケーブルを介して入力されたMPEG−2 TS形式のASI入力、RTP(Real Time Protocol)を用いてネットワーク経由で入力されたMPEG−2 TS形式のRTP入力、蓄積ファイルから読み出されたMPEG−2 TS形式のファイル入力を相互に切替えるスイッチャ60を備えている。スイッチャ60は、切替え時のPCR(Program Clock Reference;基準時刻)を連続させて、入力と放送TSとの同期をとる第1の補正を実行する。次に、スイッチャ60は、切替え時のPTS(Presentation Time Stamp;再生時刻)を連続させる第2の補正を実行し、切替え処理を実行する。   In order to solve the above-mentioned problems, the digital broadcast transmission apparatus encodes a baseband signal (for example, NTSC) and packetizes it into MPEG-2 TS, and inputs it via an ASI (Asynchronous Serial Interface) cable. MPEG-2 TS format ASI input, MPEG-2 TS format RTP input input via network using RTP (Real Time Protocol), MPEG-2 TS format file input read from stored file The switcher 60 which switches mutually is provided. The switcher 60 performs a first correction that synchronizes the input and the broadcast TS by continuing the PCR (Program Clock Reference) at the time of switching. Next, the switcher 60 executes the second correction for making the PTS (Presentation Time Stamp) at the time of switching continuous, and executes the switching process.

本発明によれば、MPEG−2 TS形式の複数のストリームを切替えて一つの放送番組を構成するデジタル放送送出装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the digital broadcast transmission apparatus which switches the some stream of an MPEG-2 TS format and comprises one broadcast program can be provided.

切替え処理の概要を示す図である。It is a figure which shows the outline | summary of a switching process. デジタル放送送出装置の構成例を示す図である。It is a figure which shows the structural example of a digital broadcast transmission apparatus. スイッチャの構成例を示す図である。It is a figure which shows the structural example of a switcher. ASI入力の補正フロー例を示す図である。It is a figure which shows the example of a correction flow of ASI input. 擬似PCRパケットの構成例を示す図である。It is a figure which shows the structural example of a pseudo PCR packet. RTP入力の補正フロー例を示す図である。It is a figure which shows the example of a correction | amendment flow of RTP input. ファイル入力の補正フロー例を示す図である。It is a figure which shows the example of a correction flow of file input. ASI/RTP/ファイル入力に切替えるフロー例を示す図である。It is a figure which shows the example of a flow switched to ASI / RTP / file input. 切替PTSを決定する処理の概要を示す図である。It is a figure which shows the outline | summary of the process which determines switching PTS. 符号化入力に切替えるフロー例を示す図である。It is a figure which shows the example of a flow switched to an encoding input.

次に、発明を実施するための形態(以降、「実施形態」と称す。)について、適宜図面を参照しながら詳細に説明する。   Next, modes for carrying out the invention (hereinafter referred to as “embodiments”) will be described in detail with reference to the drawings as appropriate.

(概要)
MPEG−2 TS形式の複数のストリーム(以降、TSまたはTSパケットとも称す。)に対して行う切替え処理の概要について、図1を用いて説明する。ただし、図1は、切替え前のストリームを、切替え後のストリームとして蓄積素材のストリームを用いて切替えるケースを表している。切替え前のストリームおよび切替え後のストリームは、それぞれ独立に符号化されたものである。そのため、単純に切替え処理を行った場合、切替え後のストリームが受信端末に出力されないという現象が発生するケースが起きる。この理由は、図1に示すように、PCRおよびPTSが、切替え前後で連続しないためである。そこで、PCRおよびPTSを切替え前のストリームと切替え後のストリームとの間で連続するように補正する必要がある。
(Overview)
An overview of switching processing performed on a plurality of MPEG-2 TS format streams (hereinafter also referred to as TS or TS packet) will be described with reference to FIG. However, FIG. 1 shows a case where the stream before switching is switched using the stream of stored material as the stream after switching. The stream before switching and the stream after switching are each independently encoded. Therefore, when the switching process is simply performed, a case may occur in which a stream after switching is not output to the receiving terminal. This is because, as shown in FIG. 1, PCR and PTS are not continuous before and after switching. Therefore, it is necessary to correct the PCR and PTS so that they are continuous between the stream before switching and the stream after switching.

まず、切替え前後で、PCRが連続するように第1の補正を行う。すなわち、図1に示すように、切替え後のPCRとPTSとの間隔を元のままスライドして、切替え前後でPCRが連続するように補正する。ただし、この補正では、PTSが連続するとは限らない。
次に、PTSの連続性を確保する第2の補正を行う。切替え前のストリームにおけるPCRとPTSとの間隔の初期値が、切替え後のストリームにおけるPCRとPTSとの間隔の初期値と同じであったとしても、PCR補正後に切替え前後でPTSが連続するとは限らない。この理由は、符号化されたデータ量がPTSごとに異なるためである。また、MPEG−2 TS形式のストリームの性質上、切替え後のストリームは、復号化時に前のフレームに影響されないIフレームから切替える必要がある。そのため、切替え前後でPTSが連続するように、切替え後のストリームのIフレームのPTSを補正する。なお、以降の説明では、切替え時のPTSを切替PTSと称することにする。
First, before and after switching, the first correction is performed so that PCR continues. That is, as shown in FIG. 1, the interval between the PCR after the switching and the PTS is slid with the original interval, and correction is made so that the PCR continues before and after the switching. However, in this correction, PTS is not always continuous.
Next, a second correction for ensuring the continuity of PTS is performed. Even if the initial value of the interval between the PCR and the PTS in the stream before switching is the same as the initial value of the interval between the PCR and the PTS in the stream after switching, the PTS is not always continuous before and after switching after the PCR correction. Absent. This is because the amount of encoded data differs for each PTS. Further, due to the nature of the MPEG-2 TS format stream, the stream after switching needs to be switched from an I frame that is not affected by the previous frame at the time of decoding. Therefore, the PTS of the I frame of the stream after switching is corrected so that the PTS is continuous before and after switching. In the following description, the PTS at the time of switching will be referred to as switching PTS.

また、切替え前の入力ストリームを切替え後の入力ストリームに切替える同期処理は、切替え後のストリームの入力方式によって異なる。入力方式は、例えば、ベースバンド信号(例えば、NTSC)を符号化してMPEG−2 TSにパケット化された符号化入力、ASIケーブルを介して入力されたMPEG−2 TS形式のASI入力、RTPを用いてネットワーク経由で入力されたMPEG−2 TS形式のRTP入力、蓄積ファイルから読み出されたMPEG−2 TS形式のファイル入力である。ASI入力およびRTP入力の場合には、例えば、PCR等の送出ストリームに同期したクロックを擬似的に入力ストリームに付加することによって、切替え後のストリームを同期させる。また、ファイル入力の場合には、切替え後のストリームの先頭フレームとなるIフレームのPTSを切替PTSに補正することによって同期させる。また、符号化入力の場合には、切替PTSのフレームをIフレーム形式で符号化することにより同期させる。
これによれば、デジタル放送送出装置は、ASI入力、RTP入力、ファイル入力、符号化入力といった複数系統の入力をMPEG−2 TS形式で切替えることが可能となる。
Also, the synchronization process for switching the input stream before switching to the input stream after switching differs depending on the input method of the stream after switching. As an input method, for example, a baseband signal (for example, NTSC) is encoded and packetized into MPEG-2 TS, an ASI input in MPEG-2 TS format input via an ASI cable, and RTP. MPEG-2 TS format RTP input that is input via a network, and MPEG-2 TS format file input that is read from a stored file. In the case of ASI input and RTP input, for example, a post-switching stream is synchronized by artificially adding a clock synchronized with a transmission stream such as PCR to the input stream. In the case of file input, synchronization is performed by correcting the PTS of the I frame that is the first frame of the stream after switching to the switching PTS. In the case of encoding input, the frame of the switching PTS is synchronized by encoding in the I frame format.
According to this, the digital broadcast transmission apparatus can switch a plurality of systems of input such as ASI input, RTP input, file input, and encoding input in the MPEG-2 TS format.

(デジタル放送送出装置の構成)
本実施形態におけるデジタル放送送出装置の構成例について、図2を用いて説明する。図2に示すように、デジタル放送送出装置10は、符号化部20と、蓄積番組ファイル送出部40と、スケジューラ50と、スイッチャ60と、多重化部70と、再多重化部80と、TS送出部90と、PCR生成部100とにより構成される。そして、デジタル放送送出装置10は、音声、映像、データを素材として放送番組を構成する。その放送番組についての番組情報はPSI/SI(Program Specific Information/Service Information)にまとめて記録される。
(Configuration of digital broadcast transmission device)
A configuration example of the digital broadcast transmission apparatus according to this embodiment will be described with reference to FIG. As shown in FIG. 2, the digital broadcast transmission apparatus 10 includes an encoding unit 20, a stored program file transmission unit 40, a scheduler 50, a switcher 60, a multiplexing unit 70, a remultiplexing unit 80, and a TS. The transmission unit 90 and the PCR generation unit 100 are configured. The digital broadcast transmission apparatus 10 constitutes a broadcast program using audio, video, and data as materials. Program information about the broadcast program is collectively recorded in PSI / SI (Program Specific Information / Service Information).

符号化部20は、入力されたNTSC信号をキャプチャして符号化し、MPEG−2 TS形式にパケット化する。例えば、入力音声を、AAC(Advanced Audio Coding)フォーマットに符号化し、TS形式に変換してスイッチャ60に出力する。また、入力映像を、例えば、H.264フォーマットに符号化し、TS形式に変換してスイッチャ60に出力する。
蓄積番組ファイル送出部40は、予め蓄積素材をオフラインで符号化したMPEG−2 TS形式のファイルを保持している。そのMPEG−2 TS形式の信号は、スイッチャ60から自由に読出すことができる。
The encoding unit 20 captures and encodes the input NTSC signal and packetizes it into the MPEG-2 TS format. For example, the input sound is encoded into an AAC (Advanced Audio Coding) format, converted into a TS format, and output to the switcher 60. In addition, the input video is, for example, H.264. The data is encoded into the H.264 format, converted into the TS format, and output to the switcher 60.
The stored program file sending unit 40 holds an MPEG-2 TS format file in which stored material is encoded offline in advance. The MPEG-2 TS format signal can be freely read from the switcher 60.

スケジューラ50は、放送TSとして出力する入力ストリームの切替え時刻を管理し、切替え時刻の所定時間前に切替え時刻をスイッチャ60に通知する。
スイッチャ60は、PCR生成部100によって生成されたPCRを用いて、スケジューラ50から通知された切替え時刻に、符号化部20、後記する蓄積番組配信サーバ30、および蓄積番組ファイル送出部40から受信したMPEG−2 TS形式の入力ストリームを切替えて多重化部70に出力する。つまり、スイッチャ60は、MPEG−2 TS形式の、符号化入力、ASI入力、RTP入力、およびファイル入力を、番組構成用の素材として用いることができる。
The scheduler 50 manages the switching time of the input stream output as the broadcast TS, and notifies the switching time to the switcher 60 a predetermined time before the switching time.
The switcher 60 uses the PCR generated by the PCR generating unit 100 to receive from the encoding unit 20, the stored program distribution server 30 and the stored program file sending unit 40 described later at the switching time notified from the scheduler 50. The input stream in the MPEG-2 TS format is switched and output to the multiplexing unit 70. That is, the switcher 60 can use the MPEG-2 TS format encoding input, ASI input, RTP input, and file input as the material for program composition.

多重化部70は、スイッチャ60から受信した音声TS、映像TS、データ放送用に準備したDSMCC(Digital Storage Media Command and Control)セクションTS等の入力ストリームを多重化し、その多重化した信号を再多重化部80に出力する。
再多重化部80は、多重化部70から受信した信号に、PSI/SIを多重化して、放送TS形式の信号を生成し、その信号をTS送出部90に出力する。
TS送出部90は、再多重化部80から受信した信号を放送TSとして送出する。TS送出部90から送出したTSは図示していないOFDM変調部によってOFDM変調し、放送波として出力する。
PCR生成部100は、放送TSに付加するPCRを生成し、スイッチャ60および再多重化部80に出力する。
The multiplexing unit 70 multiplexes the input streams such as the audio TS, the video TS, and the DSMCC (Digital Storage Media Command and Control) section TS prepared for data broadcasting received from the switcher 60, and remultiplexes the multiplexed signals. To the conversion unit 80.
The remultiplexing unit 80 multiplexes the PSI / SI with the signal received from the multiplexing unit 70 to generate a broadcast TS format signal, and outputs the signal to the TS transmission unit 90.
The TS sending unit 90 sends the signal received from the remultiplexing unit 80 as a broadcast TS. The TS transmitted from the TS transmitter 90 is OFDM-modulated by an OFDM modulator (not shown) and output as a broadcast wave.
The PCR generation unit 100 generates a PCR to be added to the broadcast TS and outputs it to the switcher 60 and the remultiplexing unit 80.

蓄積番組配信サーバ30は、デジタル放送送出装置10と、通信可能に接続される。
蓄積番組配信サーバ30は、例えば、自身の保持しているMPEG−2 TS形式の信号をASI形式でスイッチャ60に出力する。また、蓄積番組配信サーバ30は、保持しているMPEG−2 TS形式の信号を、IP(Internet Protocol)網で用いられるRTP形式で、インターネットあるいは専用回線等を介してスイッチャ60に送出する。
The stored program distribution server 30 is communicably connected to the digital broadcast transmission device 10.
The stored program distribution server 30 outputs, for example, an MPEG-2 TS format signal held by itself to the switcher 60 in the ASI format. In addition, the stored program distribution server 30 sends the MPEG-2 TS format signal it holds to the switcher 60 via the Internet or a dedicated line in the RTP format used in the IP (Internet Protocol) network.

(スイッチャの構成)
次に、スイッチャ60の構成例について、図3を用いて説明する。
図3に示すように、スイッチャ60は、切替PTS決定部61と、GOP読出し部65(65a,65b,65c,65d)と、擬似PCR付加部62(62b,62c)と、PCR補正部63(63b,63c)と、PTS補正部64(64b,64c),66(66b,66c,66d)と、フレーム読出し部67dと、TS選択部68と、で構成される。なお、各部は、相互に必要な情報を送受信する。
(Configuration of switcher)
Next, a configuration example of the switcher 60 will be described with reference to FIG.
As shown in FIG. 3, the switcher 60 includes a switching PTS determination unit 61, a GOP reading unit 65 (65a, 65b, 65c, 65d), a pseudo PCR addition unit 62 (62b, 62c), and a PCR correction unit 63 ( 63b, 63c), PTS correction units 64 (64b, 64c), 66 (66b, 66c, 66d), a frame reading unit 67d, and a TS selection unit 68. Each unit transmits and receives necessary information to each other.

切替PTS決定部61は、PCR生成部100からPCRを取得し、切替PTSを決定する。なお、切替PTSの決定方法については、後記する。
GOP読出し部65は、音声映像用のTSパケットを取得し、一時記憶する。
擬似PCR付加部62は、PCR生成部100から取得したPCRに基づいて擬似PCRを生成し、生成した擬似PCRを受信したTSパケットに付加する。なお、擬似PCRは、受信したTSパケットと放送TSとの同期をとるために用いられる。
PCR補正部63は、受信したPCR用のTSパケットに記載されたPCRをストリーム補正値で補正する。ただし、ストリーム補正値は、PCR用のTSパケットに記載されたPCRと擬似PCRとの差分である。
The switching PTS determination unit 61 acquires a PCR from the PCR generation unit 100 and determines a switching PTS. The method for determining the switching PTS will be described later.
The GOP reading unit 65 acquires and temporarily stores an audio / video TS packet.
The pseudo PCR adding unit 62 generates a pseudo PCR based on the PCR acquired from the PCR generating unit 100, and adds the generated pseudo PCR to the received TS packet. The pseudo PCR is used to synchronize the received TS packet with the broadcast TS.
The PCR correction unit 63 corrects the PCR described in the received PCR TS packet with the stream correction value. However, the stream correction value is the difference between the PCR described in the TS packet for PCR and the pseudo PCR.

PTS補正部64は、音声映像用のTSパケットに記述されたPTSを前記ストリーム補正値で補正する。
PTS補正部66は、GOP読出し部65に記憶されている切替え後のTSパケットのPTSを第2のストリーム補正値で補正する。ただし、第2のストリーム補正値は、切替PTS決定部61から取得した切替PTSと、切替え後の先頭フレームとなるIフレームのPTSとの差分である。
The PTS correction unit 64 corrects the PTS described in the audio-video TS packet with the stream correction value.
The PTS correction unit 66 corrects the PTS of the TS packet after switching stored in the GOP reading unit 65 with the second stream correction value. However, the second stream correction value is a difference between the switching PTS acquired from the switching PTS determination unit 61 and the PTS of the I frame that is the first frame after switching.

フレーム読出し部67dは、蓄積番組ファイル送出部40に保持されたファイルから、フレーム(一枚の画像)ごとに音声映像パケットを読出し,GOP読出し部65dに出力する。なお、符号化時において、AU(Access Unit)値は、1とされているものとする。
TS選択部68は、切替PTSの時点において、各PTS補正部66b,66c,66dによって補正された切替え前のTSパケット、またはGOP読出し部65aに保持されたTSパケットのうちから、切替え後のTSパケットを選択するように切替えて、選択したTSパケットを多重化部70に出力する。
The frame reading unit 67d reads out an audio / video packet for each frame (one image) from the file held in the stored program file transmission unit 40, and outputs it to the GOP reading unit 65d. It is assumed that the AU (Access Unit) value is 1 at the time of encoding.
At the time of the switching PTS, the TS selection unit 68 selects the TS packet after switching from the TS packets before switching corrected by the PTS correction units 66b, 66c, and 66d, or the TS packets held in the GOP reading unit 65a. Switching is performed to select a packet, and the selected TS packet is output to the multiplexing unit 70.

(スイッチャの処理)
次に、スイッチャ60の処理フローについて説明する。スイッチャ60における処理は、2段階で行われる。第1の補正処理は、切替えを行う準備段階として、MPEG−2 TSを放送TSに同期させるためのものである。具体的には、PCRを連続させるための補正が行われる。次に、第2の補正処理は、PTSの連続性を確保するためのものである。そして、第2の補正処理の後で、切替え処理が実行される。なお、スイッチャ60における処理の前提として、各映像フレームの先頭はTSパケットの先頭になるように情報を格納することとする。すなわち、AU(Access Unit)値を1とする。
(Switcher processing)
Next, the processing flow of the switcher 60 will be described. Processing in the switcher 60 is performed in two stages. The first correction process is for synchronizing the MPEG-2 TS with the broadcast TS as a preparation stage for switching. Specifically, correction for continuing PCR is performed. Next, the second correction process is for ensuring the continuity of PTS. Then, after the second correction process, a switching process is executed. As a premise of processing in the switcher 60, information is stored so that the head of each video frame is the head of the TS packet. That is, the AU (Access Unit) value is 1.

(ASI入力に対する第1の補正処理)
ASI入力に対する第1の補正処理フローについて、図4を用いて説明する(適宜、図2,図3参照)。
ステップS401では、擬似PCR付加部62bは、蓄積番組配信サーバ30からASI入力でMPEG−2 TS形式のTSパケット(入力ストリーム)を受信したか否かを判定する。
(First correction processing for ASI input)
A first correction processing flow for ASI input will be described with reference to FIG. 4 (see FIGS. 2 and 3 as appropriate).
In step S401, the pseudo PCR adding unit 62b determines whether or not an MPEG-2 TS format TS packet (input stream) is received from the stored program distribution server 30 by ASI input.

また、TSパケットを受信したと判定した場合(ステップS401でYes)、ステップS402では、擬似PCR付加部62bは、PCR生成部100から取得したPCRに基づいて、擬似PCRを生成する。具体的には、擬似PCRの生成は、以下のようにして行われる。(1)TSパケットが多重化部70に入力してTS送出部90から送出されるまでのおよその時間(以降、バッファ時間と称す。)を取得する。バッファ時間は、システム固有の値であり、多重化部70、再多重化部80、TS送出部90の仕様が変更されない限り、一定とする。(2)バッファ時間を、PCR生成部100から取得したPCRに加算した値を擬似PCRとする。すなわち、擬似PCRは、擬似PCR付加部62bが受信したTSパケットが、TS送出部90から送出されるときのPCRになるように設定される。   When it is determined that a TS packet has been received (Yes in step S401), in step S402, the pseudo PCR adding unit 62b generates a pseudo PCR based on the PCR acquired from the PCR generating unit 100. Specifically, the pseudo PCR is generated as follows. (1) An approximate time (hereinafter referred to as buffer time) until a TS packet is input to the multiplexing unit 70 and transmitted from the TS transmission unit 90 is acquired. The buffer time is a value unique to the system, and is constant unless the specifications of the multiplexing unit 70, the remultiplexing unit 80, and the TS transmission unit 90 are changed. (2) A value obtained by adding the buffer time to the PCR acquired from the PCR generation unit 100 is referred to as pseudo-PCR. That is, the pseudo PCR is set so that the TS packet received by the pseudo PCR adding unit 62b is the PCR when it is sent from the TS sending unit 90.

ステップS403では、擬似PCR付加部62bは、ステップS402で生成した擬似PCRを、ステップS401で受信したTSパケットに付加する。
ここで、図5に、擬似PCR501を付加したTSパケット502の一例を示す。擬似PCR501は、PCRと同様に33bitで表す。そして、擬似PCR501は、33bitを超えると、PCRと同じように、0から再び始まるようにループする。このようにすることで、擬似PCR501は、PCRと同様に扱うことができる。
In step S403, the pseudo PCR adding unit 62b adds the pseudo PCR generated in step S402 to the TS packet received in step S401.
Here, FIG. 5 shows an example of the TS packet 502 to which the pseudo PCR 501 is added. The pseudo PCR 501 is represented by 33 bits similarly to the PCR. When the pseudo PCR 501 exceeds 33 bits, it loops so as to start again from 0, similarly to PCR. By doing so, the pseudo-PCR 501 can be handled in the same way as PCR.

図4に戻って、ステップS404では、PCR補正部63bは、TSパケットのPID(Packet Identification)に基づいて、TSパケットがPCR用か否かを判定する。
TSパケットがPCR用であると判定した場合(ステップS404でYes)、ステップS405では、PCR補正部63bは、ストリーム補正値が未計算か否かを判定する。ストリーム補正値とは、受信したTSパケットに記載されたPCRと擬似PCRとの差分のことである。
ストリーム補正値が未計算であると判定した場合(ステップS405でYes)、ステップS406では、PCR補正部63bは、受信したTSパケットに記載されたPCRと擬似PCRとの差分を計算し、ストリーム補正値として設定(保持)する。
Returning to FIG. 4, in step S404, the PCR correction unit 63b determines whether the TS packet is for PCR based on the PID (Packet Identification) of the TS packet.
When it is determined that the TS packet is for PCR (Yes in step S404), in step S405, the PCR correction unit 63b determines whether or not the stream correction value is not calculated. The stream correction value is a difference between the PCR described in the received TS packet and the pseudo PCR.
If it is determined that the stream correction value has not been calculated (Yes in step S405), in step S406, the PCR correction unit 63b calculates the difference between the PCR described in the received TS packet and the pseudo PCR, and performs stream correction. Set (hold) as a value.

ステップS407では、PCR補正部63bは、受信したTSパケットに記載されているPCRをストリーム補正値で補正する。
ステップS408では、PTS補正部64bは、受信したTSパケットのPIDに基づいて、TSパケットが音声映像用か否かを判定する。
TSパケットが音声映像用であると判定した場合(ステップS408でYes)、ステップS409では、PTS補正部64bは、受信したTSパケットのPTSをストリーム補正値で補正する。
In step S407, the PCR correction unit 63b corrects the PCR described in the received TS packet with the stream correction value.
In step S408, the PTS correction unit 64b determines whether the TS packet is for audio / video based on the received PID of the TS packet.
When it is determined that the TS packet is for audio / video (Yes in step S408), in step S409, the PTS correction unit 64b corrects the PTS of the received TS packet with the stream correction value.

なお、ステップS401で、TSパケットを受信していないと判定した場合(ステップS401でNo)、処理は終了する。
また、ステップS404で、TSパケットがPCR用でないと判定した場合(ステップS404でNo)、処理は、ステップS408へ進む。
また、ステップS405で、ストリーム補正値が未計算でないと判定した場合(ステップS405でNo)、処理は、ステップS407へ進む。
また、ステップS408で、TSパケットが音声映像用でないと判定した場合(ステップS408でNo)、処理は、終了する。
以上の処理によって、ASI入力のMPEG−2 TSを放送TSに同期することが可能となる。
If it is determined in step S401 that a TS packet has not been received (No in step S401), the process ends.
If it is determined in step S404 that the TS packet is not for PCR (No in step S404), the process proceeds to step S408.
If it is determined in step S405 that the stream correction value is not yet calculated (No in step S405), the process proceeds to step S407.
If it is determined in step S408 that the TS packet is not for audio / video (No in step S408), the process ends.
With the above processing, it is possible to synchronize MPEG-2 TS with ASI input with broadcast TS.

(RTP入力に対する第1の補正処理)
RTP入力に対する第1の補正の処理フローについて、図6を用いて説明する(適宜、図2,図3参照)。
RTP入力の場合、蓄積番組配信サーバ30から出力されたTSパケットがスイッチャ60に到着するタイミングは、ネットワークを伝達する際にルータの輻輳等によって、揺らぐことがある。そこで、RTP入力に対する第1の補正処理は、ASI入力の場合と比較して、TSパケットの到着時間の揺らぎであるジッタを考慮している点が異なる。
(First correction processing for RTP input)
The processing flow of the first correction for the RTP input will be described with reference to FIG. 6 (see FIGS. 2 and 3 as appropriate).
In the case of RTP input, the timing at which the TS packet output from the stored program distribution server 30 arrives at the switcher 60 may fluctuate due to router congestion or the like when it is transmitted over the network. Therefore, the first correction processing for the RTP input is different from the case of the ASI input in that a jitter which is a fluctuation in the arrival time of the TS packet is taken into consideration.

ステップS601では、擬似PCR付加部62cは、蓄積番組配信サーバ30からRTP入力でMPEG−2 TS形式のTSパケット(入力ストリーム)を受信したか否かを判定する。
TSパケットを受信したと判定した場合(ステップS601でYes)、ステップS602では、擬似PCR付加部62cは、PCR生成部100から取得したPCRに基づいて、擬似PCRを生成する。具体的には、擬似PCRの生成は、図4のステップS402に示すASI入力の場合と同様である。
In step S601, the pseudo PCR adding unit 62c determines whether or not an MPEG-2 TS format TS packet (input stream) is received from the stored program distribution server 30 by RTP input.
When it is determined that the TS packet has been received (Yes in step S601), in step S602, the pseudo PCR adding unit 62c generates a pseudo PCR based on the PCR acquired from the PCR generating unit 100. Specifically, the generation of the pseudo PCR is the same as in the case of the ASI input shown in step S402 of FIG.

ステップS603では、擬似PCR付加部62cは、ステップS602で生成した擬似PCRを、ステップS601で受信したTSパケットに付加する。付加の方法は、図4のステップS403に示すASI方式の場合と同様である(図5参照)。
ステップS604では、PCR補正部63cは、TSパケットのPIDに基づいて、TSパケットがPCR用か否かを判定する。
TSパケットがPCR用であると判定した場合(ステップS604でYes)、ステップS605では、PCR補正部63cは、ストリーム補正値が未計算か否かを判定する。ストリーム補正値とは、受信したTSパケットに記載されたPCRと擬似PCRとの差分のことである。
In step S603, the pseudo PCR adding unit 62c adds the pseudo PCR generated in step S602 to the TS packet received in step S601. The addition method is the same as in the case of the ASI method shown in step S403 in FIG. 4 (see FIG. 5).
In step S604, the PCR correction unit 63c determines whether the TS packet is for PCR based on the PID of the TS packet.
When it is determined that the TS packet is for PCR (Yes in step S604), in step S605, the PCR correction unit 63c determines whether or not the stream correction value is not calculated. The stream correction value is a difference between the PCR described in the received TS packet and the pseudo PCR.

ストリーム補正値が未計算であると判定した場合(ステップS605でYes)、ステップS606では、PCR補正部63cは、受信したTSパケットに記載されたPCRと擬似PCRとの差分を計算し、ストリーム補正値として設定(保持)する。
ステップS607では、PCR補正部63cは、TSパケットに記載されている番組配信サーバ30からの出力時間であるSTC(System Time Clock)値と擬似PCRとの差分をジッタ基準値として保持する。
ステップS608では、PCR補正部63cは、ステップS607で算出したジッタ基準値が、既に保持されているジッタ基準値から外れているか否かを判定する。具体的には、ステップS607で算出したジッタ基準値が、既に保持されているジッタ基準値より大きい(外れている)か否かが判定される。
If it is determined that the stream correction value has not been calculated (Yes in step S605), in step S606, the PCR correction unit 63c calculates the difference between the PCR described in the received TS packet and the pseudo PCR, and performs stream correction. Set (hold) as a value.
In step S607, the PCR correcting unit 63c holds, as a jitter reference value, a difference between an STC (System Time Clock) value that is an output time from the program distribution server 30 described in the TS packet and the pseudo PCR.
In step S608, the PCR correction unit 63c determines whether or not the jitter reference value calculated in step S607 is out of the already held jitter reference value. Specifically, it is determined whether or not the jitter reference value calculated in step S607 is larger (out of) the already held jitter reference value.

ジッタ基準値から外れていると判定した場合(ステップS608でYes)、ステップS609では、PCR補正部63cは、ストリーム補正値およびジッタ基準値をそれぞれ再計算し、保持(更新)する。
ステップS610では、PCR補正部63cは、受信したTSパケットに記載されているPCRを、保持しているストリーム補正値で補正する。
ステップS611では、PTS補正部64cは、受信したTSパケットのPIDに基づいて、TSパケットが音声映像用か否かを判定する。
受信したTSパケットが音声映像用であると判定した場合(ステップS611でYes)、ステップS612では、PTS補正部64cは、受信したTSパケットに記載されたPTSを、保持されているストリーム補正値で補正する。そして、処理は、終了する。
If it is determined that it is out of the jitter reference value (Yes in step S608), in step S609, the PCR correction unit 63c recalculates and holds (updates) the stream correction value and the jitter reference value.
In step S610, the PCR correction unit 63c corrects the PCR described in the received TS packet with the held stream correction value.
In step S611, the PTS correction unit 64c determines whether the TS packet is for audio / video based on the received PID of the TS packet.
If it is determined that the received TS packet is for audio-video (Yes in step S611), in step S612, the PTS correction unit 64c uses the stream correction value stored in the PTS described in the received TS packet. to correct. Then, the process ends.

なお、ステップS601で、TSパケットを受信していないと判定した場合(ステップS601でNo)、処理は終了する。
また、ステップS604で、TSパケットがPCR用でないと判定した場合(ステップS604でNo)、処理は、ステップS611へ進む。
また、ステップS605で、ストリーム補正値が未計算でないと判定した場合(ステップS605でNo)、処理は、ステップS608へ進む。
また、ステップS608で、ジッタ基準値から外れていないと判定した場合(ステップS608でNo)、処理は、ステップS610へ進む。
また、ステップS611で、受信したTSパケットが音声映像用でないと判定した場合(ステップS611でNo)、処理は、終了する。
以上の処理によって、RTP入力のMPEG−2 TSを、ジッタが大きい場合においても再同期しながら放送TSに同期させることが可能となる。
If it is determined in step S601 that a TS packet has not been received (No in step S601), the process ends.
If it is determined in step S604 that the TS packet is not for PCR (No in step S604), the process proceeds to step S611.
If it is determined in step S605 that the stream correction value has not been calculated (No in step S605), the process proceeds to step S608.
If it is determined in step S608 that the jitter reference value is not deviated (No in step S608), the process proceeds to step S610.
If it is determined in step S611 that the received TS packet is not for audio / video (No in step S611), the process ends.
Through the above processing, the MPEG-2 TS with RTP input can be synchronized with the broadcast TS while resynchronizing even when jitter is large.

(ファイル入力に対する第1の補正処理)
ファイル入力の場合には、MPEG−2 TSを放送TSに同期させる際に、PCRの代わりにPTSを用いる。これは、蓄積素材ではファイルサイズを予め計測できるため、GOP(Group of Pictures)単位でビットレートを調節することによって、蓄積素材の作成時に生じたビットレートの変動を軽減(平均化)させて、放送TSに同期させることが可能となる。
そこで、蓄積番組ファイル送出部40に保持されているファイルから読出したMPEG−2 TSを入力ストリームとする、ファイル入力に対する処理フローについて、図7を用いて説明する(適宜、図2,図3参照)。
(First correction processing for file input)
In the case of file input, PTS is used instead of PCR when synchronizing MPEG-2 TS with broadcast TS. This is because the file size can be measured in advance for the stored material, so adjusting the bit rate in GOP (Group of Pictures) units reduces (averages) the fluctuations in the bit rate that occurred when creating the stored material, It becomes possible to synchronize with the broadcast TS.
Therefore, a processing flow for file input using MPEG-2 TS read from a file held in the stored program file transmission unit 40 as an input stream will be described with reference to FIG. 7 (see FIGS. 2 and 3 as appropriate). ).

ステップS701では、フレーム読出し部67dは、蓄積番組ファイル送出部40に保持されたファイルからフレームごとに音声映像パケットを読出し、GOP読出し部65dに出力する。
ステップS702では、GOP読出し部65dは、次のIフレームまで、つまりGOP1つ分のフレームを読出し完了しているか否かを判定する。
次のIフレームまで読出しが完了していると判定した場合(ステップS702でYes)、ステップS703では、GOP読出し部65dは、Iフレーム間のPTSの差分からGOP1つ分の再生時間を取得する。
In step S701, the frame reading unit 67d reads out the audio / video packet for each frame from the file held in the stored program file sending unit 40, and outputs it to the GOP reading unit 65d.
In step S702, the GOP reading unit 65d determines whether or not reading up to the next I frame, that is, one frame of GOP has been completed.
If it is determined that reading has been completed up to the next I frame (Yes in step S702), in step S703, the GOP reading unit 65d obtains the playback time for one GOP from the PTS difference between the I frames.

ステップS704では、GOP読出し部65dは、GOP1つ分のデータサイズを取得する。
ステップS705では、GOP読出し部65dは、データサイズを再生時間で除算し、読出したGOP1つ分の音声映像パケットを送出するビットレートを算出する。なお、GOP読出し部65dは、読出したGOP1つ分の音声映像パケットを、算出したビットレートで送出し終わると、フレーム読出し部67dから、次のGOP1つ分の音声映像パケットを取得する。
ステップS706では、GOP読出し部65dは、ファイルの最後のフレームまで読出しが完了しているか否かを判定する。
In step S704, the GOP reading unit 65d acquires the data size for one GOP.
In step S705, the GOP reading unit 65d divides the data size by the reproduction time, and calculates a bit rate for sending out the audio / video packet for one read GOP. When the GOP reading unit 65d finishes sending out the read audio video packet for one GOP at the calculated bit rate, the GOP reading unit 65d acquires the next one GOP audio video packet from the frame reading unit 67d.
In step S706, the GOP reading unit 65d determines whether reading has been completed up to the last frame of the file.

ファイルの最後のフレームまで読出しが完了していると判定した場合(ステップS706でYes)、ステップS707では、GOP読出し部65dは、Iフレームと最後のフレームとのPTSの差分から、読出した音声映像パケットの再生時間を取得する。
ステップS708では、GOP読出し部65dは、読出した音声映像パケットのデータサイズを取得する。
ステップS709では、GOP読出し部65dは、データサイズを再生時間で除算し、読出した音声映像パケットを送出するビットレートを算出する。なお、GOP読出し部65dは、読出した音声映像パケットを、算出されたビットレートで送出し終わると、蓄積番組ファイル送出部40からのファイル読出しを終了する。
If it is determined that the reading has been completed up to the last frame of the file (Yes in step S706), in step S707, the GOP reading unit 65d reads the audio video read from the difference between the PTS of the I frame and the last frame. Get packet playback time.
In step S708, the GOP reading unit 65d acquires the data size of the read audio-video packet.
In step S709, the GOP reading unit 65d divides the data size by the reproduction time, and calculates a bit rate for transmitting the read audio / video packet. When the GOP reading unit 65d finishes sending the read audio / video packet at the calculated bit rate, the GOP reading unit 65d finishes reading the file from the stored program file sending unit 40.

なお、ステップS702で、次のIフレームまで読出しが完了していないと判定した場合(ステップS702でNo)、処理は、ステップS706へ進む。
また、ステップS706で、ファイルの最後のフレームまで読出しが完了していないと判定した場合(ステップS706でNo)、処理は、終了する。
以上の処理によって、ファイル入力のMPEG−2 TSを、蓄積素材の作成時に生じたビットレートの変動をGOP単位で平均化し、放送TSに同期させることが可能となる。
If it is determined in step S702 that reading has not been completed until the next I frame (No in step S702), the process proceeds to step S706.
If it is determined in step S706 that reading has not been completed up to the last frame of the file (No in step S706), the process ends.
Through the above processing, the MPEG-2 TS of file input can be synchronized with the broadcast TS by averaging the fluctuations in the bit rate generated at the time of creating the storage material in units of GOP.

(符号化入力に対する第1の補正処理)
符号化入力に関しては、符号化部20が元々放送TSに同期したTSを生成しているため、第1の補正処理は必要ない。
(First correction processing for encoded input)
Regarding the encoding input, the encoding unit 20 originally generates a TS synchronized with the broadcast TS, so the first correction process is not necessary.

(ASI入力、RTP入力、ファイル入力に対する第2の補正処理および切替え処理)
次に、入力をASI入力、RTP入力、またはファイル入力に切替える場合に実行する、PTSの連続性を確保する第2の補正と切替え処理とについて、図8を用いて説明する(適宜、図2,図3参照)。
なお、以降の説明では、入力を切替える際に、切替え前のTSに対して処理を行う各部を「切替え前・・部(例えば、切替え前GOP読出し部)」、切替え後のTSに対して処理を行う各部を「切替え後・・部(例えば、切替え後GOP読出し部)」と称する。
(Second correction processing and switching processing for ASI input, RTP input, and file input)
Next, the second correction for ensuring the continuity of PTS and the switching process executed when the input is switched to the ASI input, the RTP input, or the file input will be described with reference to FIG. FIG. 3).
In the following description, when switching the input, each unit that performs processing on the TS before switching is referred to as “before switching unit (for example, GOP reading unit before switching)”, and processing is performed on the TS after switching. Each unit that performs the process is referred to as a “after switching unit” (for example, a GOP reading unit after switching).

ステップS801では、切替PTS決定部61は、スケジューラ50に設定された切替え時刻の時間T(所定時間)前になったか否かを判定する。
切替え時刻の時間T前になったと判定した場合(ステップS801でYes)、ステップS802では、切替PTS決定部61は、PCR生成部100からPCRを取得し、その取得したPCRに切替え時刻までの時間TおよびPTS開始値を加算して切替PTSを決定する。ここで、時間Tは、ステップS402で擬似PCRを生成した際に用いたバッファ時間より少しだけ大きな値とする。また、PTS開始値は、切替え後のTSの先頭フレームに付されたPCRとPTSとの差分(すなわち、初期値の差分)である。切替PTSを決定する処理の詳細については後で詳述する。
In step S <b> 801, the switching PTS determination unit 61 determines whether or not the time T (predetermined time) before the switching time set in the scheduler 50 has come.
When it is determined that the time T has elapsed before the switching time (Yes in step S801), in step S802, the switching PTS determination unit 61 acquires the PCR from the PCR generation unit 100, and the acquired PCR has a time until the switching time. The switching PTS is determined by adding T and the PTS start value. Here, the time T is set to a value slightly larger than the buffer time used when the pseudo PCR is generated in step S402. The PTS start value is the difference between the PCR and the PTS attached to the first frame of the TS after switching (that is, the difference between the initial values). Details of the process for determining the switching PTS will be described later.

ステップS803では、切替え後GOP読出し部65は、切替え後のTSを保持する。なお、当該切替え後のTSは、切替え時にIフレームを先頭とするために、切替PTSより若干前のPTSを持ったフレームから保持される。
ステップS804では、切替え後GOP読出し部65は、切替え後のTSから先頭のIフレームのPTSを取得し、該Iフレーム以前のPTSを持つTSを廃棄する。
ステップS805では、切替え後PTS補正部66は、切替PTS決定部61から取得した切替PTSと、前記先頭のIフレームのPTSとの差分を計算し、これを切替え後のTSの第2のストリーム補正値として決定する。
ステップS806では、切替え後PTS補正部66は、該第2のストリーム補正値で、切替え後GOP読出し部65に保持している切替え後のTSのPTSを補正する。
In step S803, the GOP reading unit 65 after switching holds the TS after switching. Note that the TS after switching is held from a frame having a PTS slightly before the switching PTS in order to set the I frame at the head at the time of switching.
In step S804, the post-switching GOP reading unit 65 obtains the PTS of the first I frame from the TS after switching, and discards the TS having the PTS before the I frame.
In step S805, the post-switching PTS correction unit 66 calculates the difference between the switching PTS acquired from the switching PTS determination unit 61 and the PTS of the first I frame, and this is the second stream correction of the TS after switching. Determine as value.
In step S806, the post-switching PTS correction unit 66 corrects the PTS of the switched TS held in the post-switching GOP reading unit 65 with the second stream correction value.

ステップS807では、切替え前PTS補正部66は切替え前GOP読出し部65に保持するTSのPTSを、既に計算済の切替え前のTSの第2のストリーム補正値で補正する。ただし、切替え前のTSが符号化入力の場合、切替え前GOP読出し部65aに保持するTSのPTSは更新しない。
ステップS808では、TS選択部68は、切替え前PTS補正部66が補正した切替え前のTS、または、切替え前GOP読出し部65aに保持するTSのうち、切替PTSより小さいPTSのTSを選択し、多重化部70に出力する。
ステップS809では、TS選択部68は、切替え後PTS補正部66が補正したTSを選択し、多重化部70に出力する。
ステップS810では、TS選択部68は、カレントストリームを切替え後のTSに更新し(切替えた状態にして)、切替え処理を終了する。
In step S807, the pre-switching PTS correction unit 66 corrects the PTS of the TS held in the pre-switching GOP reading unit 65 with the already calculated second stream correction value of the TS before switching. However, when the TS before switching is an encoded input, the PTS of the TS held in the GOP reading unit 65a before switching is not updated.
In step S808, the TS selection unit 68 selects a TS before switching, which is corrected by the pre-switching PTS correction unit 66, or a TS of a PTS smaller than the switching PTS among TSs held in the pre-switching GOP reading unit 65a, The data is output to the multiplexing unit 70.
In step S809, the TS selection unit 68 selects the TS corrected by the post-switching PTS correction unit 66 and outputs the selected TS to the multiplexing unit 70.
In step S810, the TS selection unit 68 updates the current stream to the TS after switching (in a switched state), and ends the switching process.

なお、ステップS801において、切替え時刻の時間T前に達していないと判定した場合(ステップS801でNo)、つまり、切替え処理中でない場合は、ステップS811では、PTS補正部66は、カレントストリームに対して既に算出済の第2のストリーム補正値でカレントストリームのPTSを補正する。ただし、カレントストリームが符号化入力の場合、カレントストリームのPTSは更新されない。
ステップS812では、TS選択部68は、カレントストリームを選択し、多重化部70に出力する。
以上の処理によって、切替え前後のストリームのPTSは連続した値を取り、かつ切替え後のストリームの開始はIフレームから始まることになる。これにより、受信端末で視聴した際にストリームをシームレスに切替えて再生することが可能となる。
If it is determined in step S801 that the time T has not been reached before the switching time (No in step S801), that is, if the switching process is not being performed, in step S811, the PTS correction unit 66 determines that the current stream Then, the PTS of the current stream is corrected with the already calculated second stream correction value. However, when the current stream is an encoded input, the PTS of the current stream is not updated.
In step S812, the TS selection unit 68 selects the current stream and outputs it to the multiplexing unit 70.
Through the above processing, the PTS of the stream before and after switching takes a continuous value, and the start of the stream after switching starts from the I frame. This makes it possible to seamlessly switch and reproduce the stream when viewed on the receiving terminal.

ここで、切替PTSを決定する処理の概要について、図9を用いて説明する(適宜、図3参照)。切替え時刻の時間T前901、切替え時刻902、および切替PTS903は、それぞれ、ステップS802において、切替PTS決定部61がPCRを取得し、そのPCRに切替え時刻902までの時間TおよびPTS開始値を加算して切替PTSを決定するときに用いた要素の関係を示している。ここで、切替え時刻までの時間TをステップS402で用いたバッファ時間より少しだけ大きな値にすると、切替え時刻の時間T前901に擬似PCRを付加されたTSの出力タイミングは擬似PCR904の位置となる。つまり、切替え時刻の時間T前901に擬似PCR904を付加したTSパケットが丁度切替えを行う少し手前のTSパケットとなり、切替え処理が間に合うようになる。   Here, an outline of the process for determining the switching PTS will be described with reference to FIG. 9 (see FIG. 3 as appropriate). Before the switching time T, the switching time 902, and the switching PTS 903, in step S802, the switching PTS determination unit 61 acquires the PCR, and adds the time T until the switching time 902 and the PTS start value to the PCR. The relationship of the elements used when determining the switching PTS is shown. Here, if the time T until the switching time is set to a value slightly larger than the buffer time used in step S402, the output timing of the TS to which the pseudo PCR is added 901 before the switching time T is the position of the pseudo PCR 904. . That is, the TS packet to which the pseudo PCR 904 is added at the time 901 before the switching time T becomes a TS packet just before the switching, and the switching process is in time.

前記したようにして、切替PTS903を決定することによって、蓄積番組配信サーバ30から出力されたMPEG−2 TSに切替わるタイミングを、切替え時刻の時間T前901にスイッチャ60に入力された最初のIフレームにすることが可能となる。また、切替えごとに、切替PTS903で出力されるTSのPTSがPCRの値にPTS開始値を加算した値となるため、切替え処理を重ねてもPTSとPCRの間隔は、適正に保たれる。   As described above, by determining the switching PTS 903, the timing for switching to the MPEG-2 TS output from the stored program distribution server 30 is set to the first I input to the switcher 60 at 901 before the switching time T. It becomes possible to make a frame. Further, every time switching is performed, the PTS of the TS output from the switching PTS 903 becomes a value obtained by adding the PTS start value to the PCR value, so that the interval between the PTS and the PCR is properly maintained even when the switching process is repeated.

(符号化入力に対する第2の補正処理および切替え処理)
符号化入力を切替え後のTSとした場合の第2の補正と切替え処理について、図10を用いて説明する(適宜、図3参照)。符号化入力の場合、キャプチャ開始からの経過時間でMPEG−2 TSの切替えタイミングを決めることとなる。したがって、切替え後のTSをIフレームで開始するために、PTSを付替えることができない。そこで、切替えタイミングのフレームをIフレームで符号化するように符号化部20を制御することにより、符号化入力のMPEG−2 TSを放送TSに同期させる。
(Second correction processing and switching processing for encoded input)
The second correction and switching process in the case where the encoding input is the TS after switching will be described with reference to FIG. 10 (see FIG. 3 as appropriate). In the case of encoding input, the MPEG-2 TS switching timing is determined by the elapsed time from the start of capture. Therefore, since the TS after switching starts with the I frame, the PTS cannot be replaced. Therefore, the encoding unit 20 is controlled to encode the switching timing frame with the I frame, thereby synchronizing the MPEG-2 TS of the encoded input with the broadcast TS.

ステップS1001では、切替PTS決定部61は、切替え時刻の時間T前になったか否かを判定する。
切替え時刻の時間T前になったと判定した場合(ステップS1001でYes)、ステップS1002では、切替PTS決定部61は、PCR生成部100からPCRを取得し、その取得したPCRに切替え時刻までの時間TおよびPTS開始値を加算して、切替PTSを決定する。
ステップS1003では、切替PTS決定部61は、切替PTSに関する情報を符号化部20へ通知する。
In step S1001, the switching PTS determination unit 61 determines whether or not the time T before the switching time has come.
When it is determined that the time T has elapsed before the switching time (Yes in step S1001), in step S1002, the switching PTS determination unit 61 acquires the PCR from the PCR generation unit 100, and the acquired PCR has a time until the switching time. The switch PTS is determined by adding T and the PTS start value.
In step S1003, the switching PTS determination unit 61 notifies the encoding unit 20 of information related to the switching PTS.

ステップS1004では、符号化部20は、切替PTSを持つフレームを符号化する際、Iフレームで符号化する。
ステップS1005では、切替え後GOP読出し部65aは、符号化されたIフレームから切替え後のTSを保持する。
ステップS1006では、切替え後GOP読出し部65aは、切替PTSより前のPTSを持つTSをGOP読出し部65aから廃棄する。
ステップS1007では、切替え前PTS補正部66(66b,66c,66d)は切替え前GOP読出し部65(65b,65c,65d)に保持するTSのPTSを、既に計算済の切替え前のTSの第2のストリーム補正値で補正する。
In step S1004, the encoding unit 20 encodes a frame having a switching PTS with an I frame.
In step S1005, the switched GOP read unit 65a holds the switched TS from the encoded I frame.
In step S1006, the post-switching GOP reading unit 65a discards the TS having the PTS before the switching PTS from the GOP reading unit 65a.
In step S1007, the pre-switching PTS correction unit 66 (66b, 66c, 66d) uses the TS PTS held in the pre-switching GOP reading unit 65 (65b, 65c, 65d) as the second TS of the pre-switching TS that has already been calculated. Correct with the stream correction value.

ステップS1008では、TS選択部68は、切替え前PTS補正部66(66b,66c,66d)が補正したTSのうち、切替PTSより小さいPTSのTSを選択し、多重化部70に出力する。
ステップS1009では、TS選択部68は、切替え後GOP読出し部65aに保持するTSを選択し、多重化部70に出力する。
ステップS1010では、TS選択部68は、カレントストリームを切替え後のTSに更新し(切替えた状態にして)、切替え処理を終了する。
In step S1008, the TS selection unit 68 selects a TS with a PTS smaller than the switching PTS from the TSs corrected by the pre-switching PTS correction unit 66 (66b, 66c, 66d), and outputs the selected TS to the multiplexing unit 70.
In step S1009, the TS selection unit 68 selects a TS held in the post-switching GOP reading unit 65a and outputs the TS to the multiplexing unit 70.
In step S1010, the TS selection unit 68 updates the current stream to the TS after switching (in a switched state), and ends the switching process.

なお、ステップS1001において、切替え時刻の時間T前に達していない場合(ステップS1001でNo)、つまり、切替え処理中でない場合、ステップS1011では、PTS補正部66(66b,66c,66d)は、カレントストリームに対して既に算出済の第2のストリーム補正値でカレントストリームのPTSを補正する。
また、ステップS1012では、TS選択部68は、カレントストリームを選択し、多重化部70に出力する。
以上の処理によって、切替え前後のTSのPTSは連続した値を取り、かつ切替え後のTSの開始はIフレームから始まることになる。これにより、各入力をシームレスに切替えることが可能となる。
In step S1001, if the time T has not been reached before the switching time (No in step S1001), that is, if the switching process is not being performed, in step S1011, the PTS correction unit 66 (66b, 66c, 66d) The PTS of the current stream is corrected with the second stream correction value that has already been calculated for the stream.
In step S1012, the TS selection unit 68 selects a current stream and outputs the current stream to the multiplexing unit 70.
With the above processing, the TS PTS before and after switching takes a continuous value, and the start of the TS after switching starts from the I frame. Thereby, each input can be switched seamlessly.

以上、本実施形態におけるデジタル放送送出装置は、ベースバンド信号(例えば、NTSC信号)を符号化してMPEG−2 TSにパケット化された符号化入力、ASIケーブルを介して入力されたMPEG−2 TS形式のASI入力、RTPを用いてネットワーク経由で入力されたMPEG−2 TS形式のRTP入力、蓄積ファイルから入力されたMPEG−2 TS形式のファイル入力を相互に切替えるスイッチャ60を備えている。スイッチャ60は、切替え時のPCRを連続させる第1の補正を実行する。次に、スイッチャ60は、切替え時のPTSを連続させる第2の補正を実行し、切替えを行う。   As described above, the digital broadcast transmission apparatus according to the present embodiment encodes a baseband signal (for example, an NTSC signal) and packetizes it into MPEG-2 TS, or MPEG-2 TS input via an ASI cable. A switcher 60 that switches between an ASI input in a format, an RTP input in an MPEG-2 TS format input via a network using RTP, and an MPEG-2 TS format file input input from a stored file is provided. The switcher 60 executes a first correction that causes the PCR at the time of switching to continue. Next, the switcher 60 performs the second correction for making the PTSs at the time of switching continuous, and performs the switching.

第1の補正では、ASI入力の場合、PCR生成部100から取得したPCRに基づいて擬似PCRを生成し、TSパケットに記載のPCRと擬似PCRとの差分をストリーム補正値として、PCRおよびPTSをストリーム補正値で補正する。また、RTP入力の場合、ジッタを考慮して、TSパケットに記載のSTC値と擬似PCRとの差分をジッタ基準値として保持し、ジッタ基準値から外れていると判定した場合には、ストリーム補正値とジッタ基準値とを再計算した後、ASI入力の場合と同様に、PCRおよびPTSをストリーム補正値で補正する。ファイル入力の場合、GOP単位で、ビットレートを計算し、算出したビットレートに基づいて、音声映像パケットを送出する。なお、符号化入力の場合は、第1の補正は必要ない。   In the first correction, in the case of ASI input, a pseudo PCR is generated based on the PCR acquired from the PCR generation unit 100, and the difference between the PCR and the pseudo PCR described in the TS packet is set as a stream correction value, and the PCR and PTS are calculated. Correct with the stream correction value. In addition, in the case of RTP input, considering the jitter, the difference between the STC value described in the TS packet and the pseudo PCR is held as a jitter reference value, and if it is determined that it is out of the jitter reference value, stream correction is performed. After recalculating the value and the jitter reference value, the PCR and the PTS are corrected with the stream correction value as in the case of the ASI input. In the case of file input, a bit rate is calculated for each GOP, and an audio / video packet is transmitted based on the calculated bit rate. In the case of coding input, the first correction is not necessary.

次に、第2の補正では、ASI入力/RTP入力/ファイル入力へ切替える場合、切替え時刻の時間T前に、TSパケットから取得したPCRに、時間TおよびPTS開始値を加算して切替PTSを決定する。切替え後のTSパケットの中から、先頭のIフレームのPTSを取得し、切替PTSと当該先頭のIフレームのPTSとの差分を計算し、第2のストリーム補正値とする。切替え後のTSを第2のストリーム補正値で補正し、切替え時刻に、切替え処理を行う。また、符号化入力へ切替える場合、切替えタイミングのフレームをIフレームで符号化するように、符号化部20を制御する。   Next, in the second correction, when switching to ASI input / RTP input / file input, the time T and the PTS start value are added to the PCR acquired from the TS packet before the time T at the switching time, and the switching PTS is changed. decide. The PTS of the first I frame is acquired from the TS packet after the switching, and the difference between the switching PTS and the PTS of the first I frame is calculated and used as the second stream correction value. The TS after switching is corrected with the second stream correction value, and switching processing is performed at the switching time. When switching to the coding input, the coding unit 20 is controlled so that the frame at the switching timing is coded with the I frame.

10 デジタル放送送出装置
20 符号化部
30 蓄積番組配信サーバ
40 蓄積番組ファイル送出部
50 スケジューラ
60 スイッチャ(切替部)
61 切替PTS決定部
62 擬似PCR付加部
63,63b,63c PCR補正部
64,64b,64c PTS補正部
65,65a,65b,65c,65d GOP読出し部
66,66b,66c,66d PTS補正部
67d フレーム読出し部
68 TS選択部
70 多重化部
80 再多重化部
90 TS送出部
100 PCR生成部
501 擬似PCR
903 切替PTS
DESCRIPTION OF SYMBOLS 10 Digital broadcast transmission apparatus 20 Encoding part 30 Stored program delivery server 40 Stored program file transmission part 50 Scheduler 60 Switcher (switching part)
61 switching PTS determining unit 62 pseudo-PCR adding unit 63, 63b, 63c PCR correcting unit 64, 64b, 64c PTS correcting unit 65, 65a, 65b, 65c, 65d GOP reading unit 66, 66b, 66c, 66d PTS correcting unit 67d frame Reading unit 68 TS selection unit 70 Multiplexing unit 80 Remultiplexing unit 90 TS sending unit 100 PCR generation unit 501 Pseudo PCR
903 switching PTS

Claims (6)

MPEG−2 TS(Moving Picture Experts Group-2 Transport Stream)形式の入力ストリームを多重化する多重化部と、
前記多重化部の出力信号にPSI/SI(Program Specific Information/Service Information)を多重化した放送TSを生成する再多重化部と、
2以上のMPEG−2 TS形式の入力ストリームを受信し、受信した前記入力ストリームと前記放送TSとを同期させて、受信した前記入力ストリームを、受信した他の前記入力ストリームに切替えて前記多重化部へ出力する切替部と、
前記放送TSに付加するPCR(Program Clock Reference)を生成するPCR生成部と、
前記放送TSを変調して放送波として出力するTS送出部と、
を備え、
前記切替部が受信した前記入力ストリームが、ASI(Asynchronous Serial Interface)形式で入力されたASI入力であった場合、
前記切替部は、
前記切替部の出力信号が前記多重化部、前記再多重化部、および前記TS送出部において処理されるのに掛かる時間を示すバッファ時間を、前記PCR生成部から取得した前記PCRに加算して、擬似PCRを算出し、
前記入力ストリームに記載されたPCRと前記擬似PCRとの差分を示すストリーム補正値を算出し、
前記切替え後のストリームのPCRを前記ストリーム補正値で補正して、当該入力ストリームと前記放送TSとの同期をとる
ことを特徴とするデジタル放送送出装置。
A multiplexing unit for multiplexing an input stream in MPEG-2 TS (Moving Picture Experts Group-2 Transport Stream) format;
A remultiplexing unit for generating a broadcast TS in which PSI / SI (Program Specific Information / Service Information) is multiplexed on the output signal of the multiplexing unit;
Two or more MPEG-2 TS format input streams are received, the received input stream and the broadcast TS are synchronized, and the received input stream is switched to the other received input stream and the multiplexed A switching unit that outputs to the unit,
A PCR generator for generating a PCR (Program Clock Reference) to be added to the broadcast TS;
A TS transmission unit for modulating the broadcast TS and outputting it as a broadcast wave ;
With
When the input stream received by the switching unit is an ASI input input in an ASI (Asynchronous Serial Interface) format,
The switching unit is
A buffer time indicating a time required for the output signal of the switching unit to be processed in the multiplexing unit, the remultiplexing unit, and the TS transmission unit is added to the PCR acquired from the PCR generation unit. Calculate pseudo-PCR,
Calculating a stream correction value indicating a difference between the PCR described in the input stream and the pseudo-PCR,
Corrects the PCR of the stream after the switching in the stream correction value, wherein the to Lud digital broadcast sending device to synchronize with the input stream and the broadcast TS.
MPEG−2 TS形式の入力ストリームを多重化する多重化部と、
前記多重化部の出力信号にPSI/SIを多重化した放送TSを生成する再多重化部と、
2以上のMPEG−2 TS形式の入力ストリームを受信し、受信した前記入力ストリームと前記放送TSとを同期させて、受信した前記入力ストリームを、受信した他の前記入力ストリームに切替えて前記多重化部へ出力する切替部と、
前記放送TSに付加するPCRを生成するPCR生成部と、
前記放送TSを変調して放送波として出力するTS送出部と、
を備え、
前記切替部が受信した前記入力ストリームが、RTP(Real Time Protocol)を用いてネットワーク経由で入力されたRTP入力であった場合、
前記切替部は、
前記切替部の出力信号が前記多重化部、前記再多重化部、および前記TS送出部において処理されるのに掛かる時間を示すバッファ時間を、前記PCR生成部から取得した前記PCRに加算して、擬似PCRを算出し、
前記入力ストリームに記載されたPCRと前記擬似PCRとの差分を示すストリーム補正値を算出し、
RTPパケットに記載される、そのRTPパケットの発出時間を示すSTC(System Time Clock)値と前記擬似PCRとの差分をジッタ基準値として保持し、
前記差分が、既に保持している前記ジッタ基準値より大きいと判定したとき、
前記入力ストリームに記載されたPCRと前記擬似PCRとの差分を示すストリーム補正値および前記ジッタ基準値をそれぞれ算出し、算出した前記ジッタ基準値で前記保持している前記ジッタ基準値を更新し、
前記切替え後のストリームのPCRを前記ストリーム補正値で補正して、当該入力ストリームと前記放送TSとの同期をとる
とを特徴とするデジタル放送送出装置。
A multiplexing unit for multiplexing an input stream in the MPEG-2 TS format;
A remultiplexing unit for generating a broadcast TS obtained by multiplexing PSI / SI on the output signal of the multiplexing unit;
Two or more MPEG-2 TS format input streams are received, the received input stream and the broadcast TS are synchronized, and the received input stream is switched to the other received input stream and the multiplexed A switching unit that outputs to the unit,
A PCR generator for generating a PCR to be added to the broadcast TS;
A TS transmission unit for modulating the broadcast TS and outputting it as a broadcast wave ;
With
When the input stream received by the switching unit is an RTP input input via a network using RTP (Real Time Protocol),
The switching unit is
A buffer time indicating a time required for the output signal of the switching unit to be processed in the multiplexing unit, the remultiplexing unit, and the TS transmission unit is added to the PCR acquired from the PCR generation unit. Calculate pseudo-PCR,
Calculating a stream correction value indicating a difference between the PCR described in the input stream and the pseudo-PCR,
A difference between an STC (System Time Clock) value indicating an emission time of the RTP packet described in the RTP packet and the pseudo PCR is held as a jitter reference value,
When it is determined that the difference is larger than the jitter reference value already held,
Calculating a stream correction value indicating the difference between the PCR described in the input stream and the pseudo-PCR and the jitter reference value, and updating the held jitter reference value with the calculated jitter reference value;
The PCR of the stream after the switching is corrected with the stream correction value, and the input stream and the broadcast TS are synchronized.
It features a call and be Lud digital broadcast delivery device.
MPEG−2 TS形式の入力ストリームを多重化する多重化部と、
前記多重化部の出力信号にPSI/SIを多重化した放送TSを生成する再多重化部と、
2以上のMPEG−2 TS形式の入力ストリームを受信し、受信した前記入力ストリームと前記放送TSとを同期させて、受信した前記入力ストリームを、受信した他の前記入力ストリームに切替えて前記多重化部へ出力する切替部と
を備え、
前記切替部が受信した前記入力ストリームが、MPEG−2 TSで符号化済みのファイルから読み出されたファイル入力であった場合、
前記切替部は、
GOP(Group of Pictures)単位で、そのデータサイズおよびその再生時間を取得し、前記データサイズを前記再生時間で除算して、ビットレートを算出し、当該ビットレートの変動を平均化するように当該GOPの出力を制御して、当該入力ストリームを前記放送TSに同期させる
ことを特徴とするデジタル放送送出装置。
A multiplexing unit for multiplexing an input stream in the MPEG-2 TS format;
A remultiplexing unit for generating a broadcast TS obtained by multiplexing PSI / SI on the output signal of the multiplexing unit;
Two or more MPEG-2 TS format input streams are received, the received input stream and the broadcast TS are synchronized, and the received input stream is switched to the other received input stream and the multiplexed Switching unit that outputs to the
With
When the input stream received by the switching unit is a file input read from a file encoded with MPEG-2 TS,
The switching unit is
The GOP (Group of Pictures) unit obtains the data size and the playback time, divides the data size by the playback time, calculates the bit rate, and averages the fluctuation of the bit rate. by controlling the output of the GOP, features and to Lud digital broadcast sending device that synchronizes the input stream to the broadcast TS.
前記切替部は、
前記入力ストリームの切替え時刻の所定時間前に、
前記PCR生成部から取得した前記PCRに、前記所定時間、および切替え後の入力ストリームの先頭フレームに付されたPCRとPTS(Presentation Time Stamp)との差分を加算し、その加算値を切替PTSとして設定し、
切替え後の入力ストリームの先頭フレームが、Iフレームとなるように選択し、かつ、当該フレームのPTSを前記切替PTSに補正して、当該入力ストリームに切替える
ことを特徴とする請求項ないし請求項のいずれか一項に記載のデジタル放送送出装置。
The switching unit is
A predetermined time before the switching time of the input stream,
The difference between the PCR and the PTS (Presentation Time Stamp) attached to the first frame of the input stream after the predetermined time and switching is added to the PCR acquired from the PCR generation unit, and the added value is used as the switching PTS. Set,
First frame of the input stream after switching, selected to be I frames, and corrects the PTS of the frame to the switching PTS, claims 1 and switches to the input stream digital broadcasting transmission apparatus according to any one of 3.
MPEG−2 TS形式の入力ストリームを多重化する多重化部と、
前記多重化部の出力信号にPSI/SIを多重化した放送TSを生成する再多重化部と、
2以上のMPEG−2 TS形式の入力ストリームを受信し、受信した前記入力ストリームと前記放送TSとを同期させて、受信した前記入力ストリームを、受信した他の前記入力ストリームに切替えて前記多重化部へ出力する切替部と、
前記放送TSに付加するPCRを生成するPCR生成部と、
放送用の映像信号を符号化して前記MPEG−2 TS形式の入力ストリームを生成し前記切替部へ出力する符号化部
を備え、
前記切替部は、
前記入力ストリームの切替え時刻の所定時間前に、
前記PCR生成部から取得した前記PCRに、前記所定時間、および切替え後の入力ストリームの先頭フレームに付されたPCRとPTSとの差分を加算し、その加算値を切替PTSとして設定し、
前記切替PTSに関する情報を前記符号化部に送信し、
前記符号化部から、切替え後の入力ストリームの先頭のフレームが、Iフレームとなるように符号化され、かつ、当該フレームに前記切替PTSが付された入力ストリームを受信して、当該入力ストリームに切替える
ことを特徴とするデジタル放送送出装置。
A multiplexing unit for multiplexing an input stream in the MPEG-2 TS format;
A remultiplexing unit for generating a broadcast TS obtained by multiplexing PSI / SI on the output signal of the multiplexing unit;
Two or more MPEG-2 TS format input streams are received, the received input stream and the broadcast TS are synchronized, and the received input stream is switched to the other received input stream and the multiplexed A switching unit that outputs to the unit,
A PCR generator for generating a PCR to be added to the broadcast TS;
An encoding unit that encodes the video signal for broadcasting to generate an input stream of the MPEG-2 TS format for output to the switching unit,
With
The switching unit is
A predetermined time before the switching time of the input stream,
Add the difference between the PCR and the PTS attached to the first frame of the input stream after switching to the PCR acquired from the PCR generation unit, and set the added value as the switching PTS,
Sending information on the switching PTS to the encoding unit;
From the encoding unit, an input stream in which the first frame of the input stream after switching is encoded to be an I frame and the switching PTS is added to the frame is received, and the input stream is received. features and to Lud digital broadcast sending device to switch.
前記入力ストリームは、AU(Access Unit)値を1として符号化されている
ことを特徴とする請求項1ないし請求項のいずれか一項に記載のデジタル放送送出装置。
It said input stream, AU (Access Unit) value of a digital broadcast transmitting apparatus according to any one of claims 1 to 5, characterized in that it is encoded as 1.
JP2010179552A 2010-08-10 2010-08-10 Digital broadcast transmission device Expired - Fee Related JP5352545B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010179552A JP5352545B2 (en) 2010-08-10 2010-08-10 Digital broadcast transmission device
BRPI1104126-9A BRPI1104126A2 (en) 2010-08-10 2011-08-10 Digital broadcasting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010179552A JP5352545B2 (en) 2010-08-10 2010-08-10 Digital broadcast transmission device

Publications (2)

Publication Number Publication Date
JP2012039513A JP2012039513A (en) 2012-02-23
JP5352545B2 true JP5352545B2 (en) 2013-11-27

Family

ID=45850970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010179552A Expired - Fee Related JP5352545B2 (en) 2010-08-10 2010-08-10 Digital broadcast transmission device

Country Status (2)

Country Link
JP (1) JP5352545B2 (en)
BR (1) BRPI1104126A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101577815B1 (en) * 2014-08-08 2015-12-15 주식회사 마루이엔지 Stream Generator for Digital Broadcasting and Method Thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU761704B2 (en) * 1998-01-14 2003-06-05 Skystream Corporation Video program bearing transport stream remultiplexer
JP2000332830A (en) * 1999-03-17 2000-11-30 Sony Corp Communicate device, communication method and recording medium
JP2003101976A (en) * 2001-09-26 2003-04-04 Toshiba Corp Stream generator
JP2003163898A (en) * 2001-11-26 2003-06-06 Sony Corp Signal processor and signal processing method, recording medium, and program
JP2005130065A (en) * 2003-10-22 2005-05-19 Ikegami Tsushinki Co Ltd Transport stream multiplexer
JP4689231B2 (en) * 2004-10-25 2011-05-25 池上通信機株式会社 Transport stream switching device
JP4337707B2 (en) * 2004-10-27 2009-09-30 ソニー株式会社 Information reproducing apparatus, buffer control method, and program
JP4565011B2 (en) * 2008-03-14 2010-10-20 株式会社日立製作所 Digital broadcast multiplexer

Also Published As

Publication number Publication date
BRPI1104126A2 (en) 2015-08-04
JP2012039513A (en) 2012-02-23

Similar Documents

Publication Publication Date Title
US9426335B2 (en) Preserving synchronized playout of auxiliary audio transmission
US8300667B2 (en) Buffer expansion and contraction over successive intervals for network devices
AU754879B2 (en) Processing coded video
US7983345B2 (en) Content receiving apparatus, video/audio output timing control method, and content provision system
JP3925311B2 (en) Data distribution system
JP6302274B2 (en) Transmitting apparatus and receiving apparatus
KR20070058483A (en) Content receiver, video-audio output timing control method, and content providing system
JP4565011B2 (en) Digital broadcast multiplexer
JP7120352B2 (en) Switching method, IP retransmission system, IP retransmission device and control device
KR20130121058A (en) Video reproduction apparatus for 3dtv and method for processing by video reproduction apparatus
JP2007281868A (en) Transmission apparatus and receiving apparatus
EP3195533B1 (en) Video network
JP6813933B2 (en) Video / audio transmission system, transmission method, transmitter and receiver
JP5352545B2 (en) Digital broadcast transmission device
Veenhuizen et al. Frame accurate media synchronization of heterogeneous media sources in an HBB context
JP4192766B2 (en) Receiving apparatus and method, recording medium, and program
JP2007518333A (en) Introducing jitter in data transmission systems
JP5466633B2 (en) Stream switching method and digital broadcast transmission system
JP2008244781A (en) Ip retransmission system of terrestrial digital broadcast, and seamless switchover control method therefor in mottled composition
KR102001067B1 (en) The method and apparatus for multiplexing broadcast signal transmission
KR20170093637A (en) Method for buffering media transport stream in heterogeneous networks environment and image receiving apparatus using the method
JP6684433B2 (en) Transmission device, transmission method, and program
JP5632710B2 (en) Transmitting apparatus, receiving apparatus and transmission system
JP2024001432A (en) Ip program changeover device and ip program changeover program
JPH1127668A (en) Transmitter, its method, receiver and transmitter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121023

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121213

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130826

R150 Certificate of patent or registration of utility model

Ref document number: 5352545

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees