JP2003108193A - Encoder for real-time mpeg2 and multiplexing control method for encoder - Google Patents

Encoder for real-time mpeg2 and multiplexing control method for encoder

Info

Publication number
JP2003108193A
JP2003108193A JP2001375028A JP2001375028A JP2003108193A JP 2003108193 A JP2003108193 A JP 2003108193A JP 2001375028 A JP2001375028 A JP 2001375028A JP 2001375028 A JP2001375028 A JP 2001375028A JP 2003108193 A JP2003108193 A JP 2003108193A
Authority
JP
Japan
Prior art keywords
tsp
unit
frame
multiplexing
encoder
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
JP2001375028A
Other languages
Japanese (ja)
Inventor
Taro Asano
太郎 浅野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2001375028A priority Critical patent/JP2003108193A/en
Publication of JP2003108193A publication Critical patent/JP2003108193A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent an MPEG2 encoder from stopping operating even if a fault occurs to an ES encoding part. SOLUTION: In a real-time MPEG2 voice encoder having an ES encoding part which generates an ES (elementary stream) from a base-band voice signal and a multiplex processing part which generates a PES (packetized elementary stream) and a TSP (transport stream packet) from the ES and further performs multiplex processing together with the TSP of a PSI (program specific information) such as program information to output a TS (transport stream), the multiplex processing part while always monitoring a buffer occupation quantity value added to a frame as an encoding unit of the ES determines a multiplex position of the TSP including the frame head by using the value at need and multiplexes the TSP including the frame head at the determined multiplexing position when the ES of a fixed-bit-rate voice is multiplexed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル放送シス
テムなどで使用されるリアルタイムMPEG2音声エン
コーダに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a real-time MPEG2 audio encoder used in a digital broadcasting system or the like.

【0002】[0002]

【従来の技術】リアルタイムMPEG2音声エンコーダ
は、入力されるベースバンド信号からES(eleme
ntary stream;エレメンタリ・ストリー
ム)を生成し、このESからPES(packetiz
ed elementary stream;パケッタ
イズド・エレメンタリ・ストリーム)を生成して、番組
情報などのPSI(program specific
information;プログラム・スペシフィッ
ク・インフォメーション)のTSP(transpor
t stream packet;トランスポート・ス
トリーム・パケット)と共に多重処理を行い、所定長の
TS(transport stream;トランスポ
ート・ストリーム)パケット化して出力するようにした
エンコーダである。
2. Description of the Related Art A real-time MPEG2 audio encoder uses an input baseband signal as an ES (element) signal.
nary stream; elementary stream) is generated, and PES (packetize) is generated from this ES.
ed elemental stream; packetized elementary stream (PSI) is generated, and PSI (program specific) such as program information is generated.
information; program specific information (TSP)
This is an encoder that performs multiplex processing together with t stream packet (transport stream packet), and forms a TS (transport stream) packet of a predetermined length for output.

【0003】すなわち、リアルタイムMPEG2音声エ
ンコーダは、入力される音声のベースバンド信号から符
号化処理をしてESを生成するES符号化部と、この生
成されたESと他の信号とを多重化処理してTSパケッ
ト化する多重処理部とを有した構成である。ところで、
デジタル放送システムなどで使用されるリアルタイムM
PEG2音声用のエンコーダとしては、障害発生時にお
いてもできる限り、動作を停止しないことが重要であ
る。
That is, the real-time MPEG2 audio encoder is an ES coding unit for coding an input audio baseband signal to generate an ES, and a multiplexing process for the generated ES and other signals. And a multiplex processing unit for converting into TS packets. by the way,
Real-time M used in digital broadcasting systems
As an encoder for PEG2 audio, it is important not to stop the operation as much as possible even when a failure occurs.

【0004】しかしながら、従来のリアルタイムMPE
G2音声エンコーダにおいては、固定ビットレートのE
Sを自己の最終段の構成要素である多重化処理部に送っ
て多重する場合、一定時間に多重するESの量をESの
ビットレートから計算して決定していたため、ES符号
化部に障害が発生するなどして、フレーム数は正しいも
ののこのES符号化部と多重処理部との間で管理してい
る発生符号量に誤差が生じてくると、その時点で多重化
処理部での多重処理が停止する可能性があった。
However, conventional real-time MPE
In the G2 audio encoder, the fixed bit rate E
When S is sent to the multiplex processing unit, which is a component of the final stage of the own device, and is multiplexed, the amount of ES to be multiplexed in a certain period of time is calculated and determined from the bit rate of ES, and thus the ES encoding unit is impaired. If the number of frames is correct and an error occurs in the generated code amount managed between the ES coding unit and the multiplexing processing unit due to the occurrence of error, etc., the multiplexing in the multiplexing processing unit is performed at that point. Processing could stop.

【0005】[0005]

【発明が解決しようとする課題】デジタル放送システム
などで使用されるリアルタイムMPEG2音声用のエン
コーダとしては、障害発生時においてもできる限り、動
作を停止しないようなシステムである必要があるが、従
来のものは、ベースバンド信号から符号化処理をしてE
Sを生成するES符号化部に障害が発生するなどして、
フレーム数は正しいもののこのES符号化部と、このE
S符号化部の下流側にあってデータの多重化処理を実施
してTSパケット化する多重処理部との間で管理してい
る発生符号量に誤差が生じてくると、その時点で多重化
処理部での多重処理が停止する可能性があり、信頼性の
面で課題を抱えていた。
As a real-time MPEG2 audio encoder used in a digital broadcasting system or the like, it is necessary to use a system that does not stop its operation as much as possible even when a failure occurs. In the case of E, the baseband signal is encoded and processed.
If a failure occurs in the ES coding unit that generates S,
Although the number of frames is correct, this ES encoder and this E encoder
If an error occurs in the generated code amount that is managed between the S encoding unit and the multiplexing processing unit that performs data multiplexing processing and TS packetizes, the multiplexing is performed at that point. There is a possibility that the multiple processing in the processing unit may stop, and there was a problem in terms of reliability.

【0006】従って、この発明の目的とするところは、
ES符号化部に障害が発生した場合においても動作停止
し難くして、信頼性の向上を図ったリアルタイムMPE
G2エンコーダおよびそのエンコーダにおける多重化制
御方法を提供することにある。
Therefore, the object of the present invention is to
Real-time MPE that improves reliability by making it difficult to stop operation even when a failure occurs in the ES encoding unit
It is to provide a G2 encoder and a multiplexing control method in the encoder.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
め、本発明は次のように構成する。すなわち、ベースバ
ンド音声信号からES(elementary str
eam)を生成するES符号化部と、ESからPES
(packetized elementary st
ream)、TSP(transport strea
m packet)を生成し、更に番組情報などのPS
I(program specific Infoma
tion)のTSPと共に多重処理を行いTS(tra
nsport stream)を出力する多重処理部と
を有するリアルタイムMPEG2音声エンコーダにおい
て、前記多重処理部は、固定ビットレートの音声のES
を多重する場合において、ESの符号化単位であるフレ
ームに付加されているバッファ占有量値を常時監視しな
がら、必要な時にその値を用いてそのフレーム先頭を含
むTSPの多重位置を決め直し、その決め直した多重位
置にそのフレーム先頭を含むTSPの多重する構成とし
たことを特徴とする。
In order to achieve the above object, the present invention is constructed as follows. That is, an ES (elementary str) is converted from a baseband audio signal.
and an ES encoding unit that generates the
(Packetized elemental st
ream), TSP (transport stream)
m.packet), and further PS such as program information
I (program specific Infoma
(TS) of TS (tra) and TS (tra)
In a real-time MPEG2 audio encoder having a multiplex processing unit for outputting an audio stream, the multiplex processing unit is an ES for audio of a fixed bit rate.
, The buffer occupancy value added to the frame that is the ES encoding unit is constantly monitored, and when necessary, the value is used to redetermine the TSP multiplexing position including the beginning of the frame, The TSP including the frame head is multiplexed at the re-determined multiplexing position.

【0008】この構成によれば、固定ビットレートのE
Sを多重する場合における前記多重処理部での多重化
は、ESの符号化単位であるフレームに付加されている
バッファ占有量値を常時監視しながら、必要な時にその
値を用いてそのフレーム先頭を含むTSPの多重位置を
決め直し、その決め直した多重位置にそのフレーム先頭
を含むTSPの多重する。
According to this structure, the fixed bit rate E
In the case where S is multiplexed, the multiplexing process is performed by constantly monitoring the buffer occupancy value added to the frame, which is the ES encoding unit, and using that value when necessary to start the frame. The multiplexing position of the TSP including the frame is re-determined, and the TSP including the frame head is multiplexed at the determined multiplexing position.

【0009】前記フレーム先頭を含むTSPの多重位置
の決め直しに当たり、その決め直す多重可能位置(TS
パケットが多重可能となる位置)を“TSP_pos”
とすると、この“TSP_pos”は (但し、PTS(単位は[s/27000000])
は、あるTSパケットのフレーム(A(n))の先頭を
有する音声フレームのデコード時刻、Delay(単位
は[s])は、フレームA(n)の遅れDelayA
(n)(単位は[s])、pES(単位は[byt
e])はTSヘッダの直後あるいはPESヘッダがあれ
ばPESヘッダの直後からフレームA(n)の先頭まで
に存在するA(n−1)のESサイズであり、CBR
(単位は[bps])は、ESのビットレートであり、
ptr(単位は[s])は、TSヘッダやPESヘッダ
のバッファリングなどでのオフセット値)より決定す
る。
When the TSP multiplexing position including the frame head is re-determined, the re-determinable multiplexing position (TS
"TSP_pos" is the position at which packets can be multiplexed
Then, this "TSP_pos" is (However, PTS (unit is [s / 27000000])
Is the decoding time of an audio frame having the beginning of a frame (A (n)) of a TS packet, and Delay (unit is [s]) is the delay DelayA of frame A (n).
(N) (unit is [s]), pES (unit is [byte]
e]) is the ES size of A (n-1) that exists immediately after the TS header or immediately after the PES header to the beginning of the frame A (n) if there is a PES header, and is CBR.
(Unit is [bps]) is the bit rate of ES,
ptr (unit: [s]) is determined from the offset value in buffering of the TS header or PES header).

【0010】このように本発明は、多重処理部におい
て、ESの符号化単位であるフレームに付加されている
バッファ占有量値を常時監視しながら、必要なときに、
そのフレーム先頭を含むTSP(TSパケット)の多重
位置を決め直すことで、ES符号化部に障害が発生する
などで、フレーム数は正しいもののES符号化部と多重
処理部との間で管理している発生符号量の誤差が生じた
際に、ES符号化部が管理している発生符号量と多重処
理部が管理している発生符号量を少しでも近づけるよう
にして、その結果、多重処理が停止しなくなり、信頼性
向上を図ることのできるように、フレーム先頭を含むT
SPの多重位置を決め直し、その決め直した多重可能位
置にそのフレーム先頭を含むTSPの多重するので、多
重化処理が停止する心配がなくなり、常に正常に多重化
処理ができるようになる信頼性の高いリアルタイムMP
EG2エンコーダおよびそのエンコーダにおける多重化
制御方法を提供できる。
As described above, according to the present invention, in the multiplex processing unit, the buffer occupancy value added to the frame as the ES encoding unit is constantly monitored, and when necessary,
By re-determining the multiplexing position of the TSP (TS packet) including the head of the frame, a failure occurs in the ES coding unit, and the number of frames is correct, but it is managed between the ES coding unit and the multiplexing processing unit. When an error in the generated code amount occurs, the generated code amount managed by the ES encoding unit and the generated code amount managed by the multiplex processing unit are made as close as possible to each other, resulting in multiplex processing. T does not stop, and T including the beginning of the frame can be used to improve reliability.
Since the SP multiplexing position is re-determined and the TSP including the frame head is multiplexed at the re-determinable multiplexing position, there is no concern that the multiplexing process will stop, and the reliability that the multiplexing process can always be performed normally High real-time MP
An EG2 encoder and a multiplexing control method for the encoder can be provided.

【0011】[0011]

【発明の実施の形態】以下、図面を参照して、本発明の
実施の形態を説明する。図1は本発明によるリアルタイ
ムMPEG2音声用のエンコーダのシステム構成例を示
すブロック図である。図1において、11はES符号化
部、12はPES化部、13はTSパケット化部、14
は多重部である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a system configuration example of an encoder for real-time MPEG2 audio according to the present invention. In FIG. 1, 11 is an ES encoding unit, 12 is a PES conversion unit, 13 is a TS packetization unit, 14
Is the multiplex part.

【0012】これらのうち、ES符号化部11は、入力
される音声のベースバンド信号から符号化処理をしてE
S(elementary stream;エレメンタ
リ・ストリーム)を生成するものであり、PES化部1
2は、このES符号化部11から出力されたESからP
ES(packetized elementarys
tream;パケッタイズド・エレメンタリ・ストリー
ム)を生成して出力するものであり、TSパケット化部
13は、このPESをTSパケット(transpor
t stream packet;トランスポート・ス
トリーム・パケット)に変換するものであり、多重部1
4はこのTSパケット化部13でパケット化された音声
系のTSパケットと、他からの入力である番組情報など
のPSI(program specific inf
ormation;プログラム・スペシフィック・イン
フォメーション)のTSP(transport st
ream packet;トランスポート・ストリーム
・パケット)と共に多重処理を行い、所定長のTS(t
ransport stream;トランスポート・ス
トリーム)パケット化して出力するものである。
Of these, the ES encoding unit 11 performs an encoding process from the input baseband signal of the voice to obtain E.
S (elementary stream) is generated, and the PES conversion unit 1
2 is P from the ES output from the ES encoding unit 11.
ES (packetized elements)
stream; a packetized elementary stream) is generated and output, and the TS packetization unit 13 outputs this PES to a TS packet (transport).
t stream packet; transport stream packet), and the multiplexing unit 1
Reference numeral 4 denotes a voice-type TS packet packetized by the TS packetization unit 13 and a PSI (program specific inf) such as program information input from another.
information; TSP (Transport st) of Program Specific Information
stream packet; transport stream packet) is multiplexed with TS (t) of a predetermined length.
transport stream; transport stream) packetized and output.

【0013】このような構成の本システムは、入力され
るベースバンド信号からES符号化部11ではES(エ
レメンタリ・ストリーム)を生成して、PES化部12
に渡し、PES化部12ではこのESからPES(パケ
ッタイズド・エレメンタリ・ストリーム)を生成して、
TSパケット化部13に渡す。TSパケット化部13で
はこのPESをTSパケットにする。そして、このTS
パケットをTS多重部に渡す。TS多重部14では、T
Sパケット化部13にてパケット化されたTSパケット
と、他から入力される番組情報などのPSI(プログラ
ム・スペシフィック・インフォメーション)のTSパケ
ット(トランスポート・ストリーム・パケット)と共に
多重処理を行い、所定長のTSパケットにして出力す
る。
In the present system having such a configuration, the ES coding section 11 generates an ES (elementary stream) from the input baseband signal, and the PES conversion section 12
And the PES conversion unit 12 generates a PES (packetized elementary stream) from this ES,
It is passed to the TS packetization unit 13. The TS packetization unit 13 converts this PES into a TS packet. And this TS
Pass the packet to the TS multiplexer. In the TS multiplexing unit 14, T
The TS packet packetized by the S-packetization unit 13 and a TS packet (transport stream packet) of PSI (program specific information) such as program information input from the other side are subjected to a multiplexing process, and predetermined processing is performed. It is output as a long TS packet.

【0014】具体的には、例えば、リアルタイムMPE
G2音声エンコーダにおいては、PES(パケッタイズ
ド・エレメンタリ・ストリーム)パケットは、その1パ
ケット長を音声ES(エレメンタリ・ストリーム)の符
号化単位であるフレームの整数倍の構成としている。従
って、その合計の長さがPESのパケット長となる。
Specifically, for example, real-time MPE
In the G2 audio encoder, one packet length of a PES (packetized elementary stream) packet is configured to be an integral multiple of a frame which is a coding unit of an audio ES (elementary stream). Therefore, the total length is the PES packet length.

【0015】MPEG2システムでは、これを188
[byte]長構成のTSパケットにて伝送することに
なるが、この場合、図1に示すPES化部12にてPE
S化されて得られたPESパケットの構成ビット列を、
TSパケット化部13では先頭から順にTSパケット
(TSP)の容量分ずつTSパケットに乗せていくかた
ちでTSパケット化していく。そして、これをTS多重
化部14ではPSI情報などの他のTSパケットと多重
していく。
In the MPEG2 system, this is 188
The TS packet having a [byte] length is transmitted. In this case, the PES conversion unit 12 shown in FIG.
The constituent bit string of the PES packet obtained by S conversion is
In the TS packetization unit 13, the capacity of the TS packet (TSP) is sequentially added to the TS packet from the beginning to form the TS packet. Then, the TS multiplexing unit 14 multiplexes this with other TS packets such as PSI information.

【0016】ここで、このような本システムは、TS多
重化部14では、多重開始時、及びES符号化部11に
おいて何らかの障害で一定期間に一定量多重ができなく
なったときなど、必要時には次に示すような制御を実施
することにより、多重位置を決めて多重を行なう。
[0016] Here, in the present system as described above, when necessary, such as when the TS multiplexing unit 14 starts multiplexing and when the ES encoding unit 11 cannot perform a certain amount of multiplexing for a certain period of time. By carrying out the control as shown in (1), the multiplexing position is determined and multiplexing is performed.

【0017】いま、TS上で、ある音声フレーム先頭を
含むTSパケットが多重可能となる位置をTSP_po
sとする。TSP_posは、その音声を含む番組の番
組構成を示すパケットであるPMTに記述されたPCR
(program clock reference:
27[MHz]の基準クロック)を重畳したTSPから
計算できる27[MHz]のカウント値として表現す
る。計算方法は、ISO13818−1で規定されてい
る。
Now, on the TS, the position where the TS packet including the beginning of a certain voice frame can be multiplexed is TSP_po.
Let s. TSP_pos is a PCR described in PMT, which is a packet indicating a program configuration of a program including the audio.
(Program clock reference:
It is expressed as a count value of 27 [MHz] that can be calculated from the TSP on which the reference clock of 27 [MHz] is superimposed. The calculation method is specified in ISO13818-1.

【0018】従って、TSP_pos(単位は[s/2
7000000])は以下のように計算できる。
Therefore, TSP_pos (unit is [s / 2
7000000]) can be calculated as follows.

【0019】 但し、PTS[s/27000000]は27[MH
z]のカウント値で表現されたその音声フレームのデコ
ード時刻であり、X(単位は[bits])はISO1
3818−7に示されるminimum_decode
r_nput_bufferと呼ばれる仮想デコーダ上
のバッファで、その音声フレームがデコードされる直前
のバッファ占有量である。 ここで、adts_buffer_fullness
は、その音声フレームのヘッダに記述されたadtsb
ufferf_fullnessフィールドの値であ
り、channel_numは、その音声のminim
um_decoder_input_bufferサイ
ズ計算時に用いられたチャンネル数であり、frame
_lengthはその音声フレームのヘッダに記述され
たframe_lengthフィールド値である。ま
た、pES(bits)はその音声フレームの先頭を含
むTSパケットに、そのフレームの前のフレームのES
が重畳されている場合、その重畳されているESサイ
ズ、そして、br(bits/s)はその音声ESのビ
ットレート、ptr(s)は、後続機器などの遅延を考
慮して早めに送る場合などのオフセット値である。
[0019] However, PTS [s / 27000000] is 27 [MH
z] is the decoding time of the audio frame represented by the count value, and X (the unit is [bits]) is ISO1.
3818-7 minimum_decode
The buffer occupancy immediately before the audio frame is decoded in the buffer on the virtual decoder called r_nput_buffer. Where adts_buffer_fullness
Is the adtsb described in the header of the audio frame.
The value of the "ufferf_fullness" field, and "channel_num" is the minimum of the voice.
um_decoder_input_buffer Number of channels used in size calculation, frame
_Length is a frame_length field value described in the header of the audio frame. In addition, pES (bits) is a TS packet including the beginning of the audio frame and the ES of the frame before the frame.
Is superimposed, then the superimposed ES size, br (bits / s) is the bit rate of the audio ES, and ptr (s) is sent earlier considering the delay of subsequent devices. Is an offset value such as.

【0020】なお、この計算方法で多重位置を決めたな
ら、TS上の27[MHz]のカウント値としての位置
を、1TSP毎(単位TSパケット毎)に計算し、TS
P_posと常に比較して、TS上の位置が、TSP_
posを越えたとき、そこから、その音声フレームの先
頭を含むTSP(TSパケット)の多重を開始を可能と
する。それ以外は、ビットレートに合わせて一定期間て
一定量の多重とする。このような制御を本システムにお
けるTS多重部14では実施する。
If the multiplex position is determined by this calculation method, the position as a count value of 27 [MHz] on the TS is calculated for each TSP (each unit TS packet), and the TS is calculated.
Compared with P_pos, the position on TS is always TSP_
When pos is exceeded, multiplexing of TSP (TS packet) including the head of the audio frame can be started from there. Other than that, a certain amount of multiplexing is performed for a certain period according to the bit rate. Such control is performed by the TS multiplexing unit 14 in this system.

【0021】もう少し詳しく説明する。以下では、音声
ESをISO13818.7のAAC(advance
d audio coding)方式を想定する。
A more detailed description will be given. In the following, the audio ES is referred to as AAC (advance) of ISO13818.7.
The d audio coding method is assumed.

【0022】固定ビットトレートの音声ESの各音声フ
レームの符号量は、MPEGの規格ISO13818−
7で規定されるデコーダの入力バッファに、固定ビット
レートでESを入力した際に、入力バッファのオーバー
フローやアンダーフローが生じないように制御される必
要がある。
The code amount of each audio frame of the audio ES of the fixed bit rate is the MPEG standard ISO13818-.
It is necessary to control so that overflow or underflow of the input buffer does not occur when ES is input at a fixed bit rate to the input buffer of the decoder defined by 7.

【0023】例えば、図2に示す如きであり、ある音声
ESがMPEGの規格で規定される音声デコーダの入力
バッファに入力されたとき、各音声フレームの符号量が
規格を満たす場合のバッファ占有量の遷移例がこの図で
ある。
For example, as shown in FIG. 2, when a certain audio ES is input to the input buffer of the audio decoder specified by the MPEG standard, the buffer occupancy when the code amount of each audio frame satisfies the standard. The transition example of is shown in this figure.

【0024】ここで、バッファの蓄積量変化の傾きは、
ESのビットレートであり、音声フレームのデコード時
刻に瞬時にデコードされ、入力バッファから除去される
という前提である。
Here, the slope of the change in the accumulated amount of the buffer is
It is the bit rate of ES, and is assumed to be instantaneously decoded at the decoding time of the audio frame and removed from the input buffer.

【0025】StA(1),StA(2),StA
(3),StA(4)…といったタイミングで各音声フ
レームのバッファ入力が開始され、DtA(1),Dt
A(2),DtA(3),DtA(4)…といったタイ
ミングで各音声フレームのデコードが開始される。音声
フレームのバッファ入力が開始されるとバッファ内のデ
ータ占有量は時間経過と歩調を合わせて一定の傾きで増
加し、溢れが生じない前に、バッファ内からデータが取
り出されてデコード処理されている。デコード処理され
るためにバッファ内から取り出された量がA(1),A
(2),A(3),A(4)…で示される音声フレーム
である。データがバッファ内から取り出されることによ
り、減った位置から次の音声フレームのデータがバッフ
ァ内に蓄積されていくがその再び蓄積が開始された時点
より蓄積の傾きを逆に辿ってバッファ占有量が“0”に
達する時刻位置が現在蓄積中のフレームの前の音声フレ
ームについてのバッファ入力終了時刻の推定時刻とす
る。
StA (1), StA (2), StA
(3), StA (4) ... At the timing, buffer input of each audio frame is started, and DtA (1), Dt
Decoding of each audio frame is started at the timing of A (2), DtA (3), DtA (4), .... When the audio frame buffer input is started, the data occupancy in the buffer increases at a constant slope in time with the pace, and data is taken out from the buffer and decoded before the overflow occurs. There is. The amount fetched from the buffer for decoding is A (1), A
(2), A (3), A (4) ... Are voice frames. As the data is taken out of the buffer, the data of the next audio frame is accumulated in the buffer from the reduced position. The time position at which “0” is reached is the estimated time of the buffer input end time for the audio frame before the currently accumulated frame.

【0026】図2の例の場合、バッファ占有量は、バッ
ファの上限及び下限を超えていない。バッファに蓄積さ
れていくデータを、本発明のようにして読み出し制御
し、TS多重部14で多重処理していくと、MPEGの
規格ISO13818−7で規定されるデコーダの入力
バッファに、固定ビットレートで音声ESを入力した際
に、入力バッファのオーバーフローやアンダーフローが
生じないように制御できることが分かる。
In the case of the example of FIG. 2, the buffer occupancy does not exceed the upper and lower limits of the buffer. When the data stored in the buffer is read-controlled as in the present invention and multiplexed by the TS multiplexing unit 14, a fixed bit rate is input to the input buffer of the decoder defined by MPEG standard ISO13818-7. It can be seen that control can be performed so that overflow or underflow of the input buffer does not occur when the voice ES is input.

【0027】ここで、音声フレームA(n)のバッファ
入力開始時刻StA(n)とデコード時刻DtA(n)
の位置関係は、以下の式で表される。 ここで、上述のadts_buffer_fullne
ss(32bitword/Channel_num)
はMPEGの規格ISO13818.7に記述された音
声フレームAnのヘッダに記述されたadts_buf
fer_fullnessフィールドの値、Chann
el_numはMPEGの規格ISO13818.7に
記述された音声フレームAnのminium_deco
der_input_bufferサイズ計算時に用い
られたチャンネル数(Channel_configu
rationフィールド値より算出できる)、fram
e_length(単位は[byte])は、MPEG
の規格ISO13818.7に記述された音声フレーム
Anのヘッダに記述されたframe_lengthフ
ィールド値、CBR(単位は[bps])はESのビッ
トレートである。
Here, the buffer input start time StA (n) and the decoding time DtA (n) of the audio frame A (n) are set.
The positional relationship of is expressed by the following formula. Here, the above-mentioned ads_buffer_fullne
ss (32bitword / Channel_num)
Is ads_buf described in the header of the audio frame An described in MPEG standard ISO13818.7.
value of the fer_fullness field, Chann
el_num is the minimum_deco of the audio frame An described in the MPEG standard ISO13818.7.
der_input_buffer number of channels used in size calculation (Channel_configu
can be calculated from the relation field value), frame
e_length (unit is [byte]) is MPEG
The frame_length field value and CBR (unit: [bps]) described in the header of the audio frame An described in the standard ISO13818.7 are the bit rate of ES.

【0028】更に音声フレームA(n)の後ろからL
[byte]がバッファに入力される時刻は、 と表される。
From the rear of the audio frame A (n), L
The time when [byte] is input to the buffer is Is expressed as

【0029】このことを踏まえてTS多重のタイミング
制御をどのように行うかを具体的に説明する。
Based on this, how to perform the TS multiplex timing control will be specifically described.

【0030】[TS多重方法]ESをPES化してから
TSパケット化し、これより得られたTSパケットを更
に、多重する場合には、MPEGの規格ISO1381
8.1に従う。TSパケットの多重においては、ESの
場合と同様に当該規格で規定されているT−STD(T
ransport Stream systemtar
get decoder)と呼ばれるデコーダに付属す
るバッファを、オーバーフロー/アンダーフローさせな
いように制御しながら多重する必要がある。
[TS Multiplexing Method] When ES is converted into PES and then converted into TS packets, and TS packets obtained from this are further multiplexed, MPEG standard ISO1381 is used.
Follow 8.1. In multiplexing TS packets, similar to the case of ES, T-STD (T
transport Stream system
It is necessary to multiplex a buffer called a get decoder, which is attached to a decoder, while controlling so as not to overflow / underflow.

【0031】このバッファは、上記に示したESのバッ
ファと、その他PESパケット及びTSパケットをバッ
ファリングするバッファから構成されており、基本的に
はTSパケットのペイロードに重畳されたESが、でき
るだけ固定ビットレートになるように均等に多重し、S
ta(n)とDtA(n)の関係を保つようにMPEG
のシステム規格で規定されているタイムスタンプを打て
ば、バッファの条件を満たすことができる。
This buffer is composed of the above ES buffer and a buffer for buffering other PES packets and TS packets. Basically, the ES superimposed on the payload of the TS packet is fixed as much as possible. Evenly multiplex the bit rate, and
MPEG to maintain the relationship between ta (n) and DtA (n)
The buffer conditions can be met by stamping the time stamps specified in the system standard.

【0032】そこで、本システムでは、音声フレームの
先頭を含むTSパケットについて、そのTSパケットが
多重可能となる位置(多重可能位置)を以下のように決
めて、その位置で多重を行なうようにする。
Therefore, in the present system, with respect to the TS packet including the beginning of the audio frame, the position where the TS packet can be multiplexed (multiplexable position) is determined as follows, and multiplexing is performed at that position. .

【0033】まず、音声フレームの先頭を含むTSパケ
ットについて、そのTSパケットが多重可能となる位置
を“TSP_pos”とする。
First, regarding the TS packet including the beginning of the audio frame, the position where the TS packet can be multiplexed is defined as "TSP_pos".

【0034】そして、当該“TSP_pos”は、その
音声を含む番組の番組構成を示すPMT(プログラム・
マップ・テーブル)に記述されたPCR(progra
mclock referrence;27[MHz]
の基準クロック)を重畳したTSパケットから計算でき
る27[MHz]のカウント値として表現する。その計
算方法は、MPEGの規格ISO13818.1に従
う。その結果、TSパケット多重可能位置“TSP_p
os”(単位は[s/27000000])は以下のよ
うに計算できる。
The "TSP_pos" is a PMT (program.
PCR described in the map table)
mclock reference; 27 [MHz]
It is expressed as a count value of 27 [MHz] that can be calculated from the TS packet on which the (reference clock of) is superimposed. The calculation method complies with the MPEG standard ISO13818.1. As a result, the TS packet multiplexable position "TSP_p"
os ”(unit is [s / 27000000]) can be calculated as follows.

【0035】 但し、PTS(単位は[s/27000000])は、
あるTSパケットのフレームの先頭を有する音声フレー
ムのデコード時刻(ESに関して言えばDtA(n)
[s]に相当する時刻)であり、Delay(単位は
[s])は、前述したDelayA(n)(単位は
[s])であり、pES(単位は[byte])はTS
ヘッダの直後あるいはPESヘッダがあればPESヘッ
ダの直後から音声フレームA(n)の先頭までに存在す
るA(n−1)のESサイズであり、CBR(単位は
[bps])は、音声ESのビットレートであり、pt
r(単位は[s])は、TSヘッダやPESヘッダのバ
ッファリングや、後続機器などの遅延を考慮して早めに
送る場合、などでのオフセット値である。
[0035] However, PTS (the unit is [s / 27000000]) is
Decoding time of an audio frame having the head of a frame of a TS packet (DtA (n) in terms of ES)
Time (corresponding to [s]), Delay (unit is [s]) is DelayA (n) (unit is [s]) described above, and pES (unit is [byte]) is TS.
If it is immediately after the header or if there is a PES header, it is the ES size of A (n-1) existing immediately after the PES header to the beginning of the audio frame A (n), and CBR (unit: [bps]) is the audio ES. Is the bit rate of
r (unit: [s]) is an offset value for buffering the TS header or PES header, or when sending earlier in consideration of delay of subsequent devices.

【0036】この方法で多重位置を決めたなら、TS上
の27[MHz]のカウント値としての位置を、1TS
P(単位TSパケット)毎に計算し、TSP_posと
常に比校して、TS上の位置が、TSP_posを越え
たとき、そこから、多重開始を可能とする。
If the multiplex position is determined by this method, the position as the count value of 27 [MHz] on the TS is set to 1TS.
It is calculated for each P (unit TS packet) and is constantly compared with TSP_pos. When the position on the TS exceeds TSP_pos, the multiplexing start is possible from there.

【0037】それ以外のTSパケットについては、ES
のビットレート以上のレートで多重する。なお、ESの
ビットレート以上で多重するとISO13818.1の
T−STDに付属するバッファの規格においてオーバー
フローする可能性あるので、バッファの占有量について
常時監視しながら、オーバーフローしそうな場合は、T
Sパケット多重を一時中止する処理をし、規格を満たす
ようにする。
For other TS packets, ES
Multiplex at a rate higher than the bit rate of. Note that if multiplexing is performed at a bit rate of ES or more, the buffer standard attached to the T-STD of ISO13818.1 may overflow. Therefore, while monitoring the buffer occupancy at all times, if overflow is likely to occur, T
The process of temporarily stopping the S packet multiplexing is performed so that the standard is satisfied.

【0038】なお、上記のESビットレート以上のレー
トは、基本的にはいくらでも良いが、あまり、高すぎる
と、TSパケットの多重が平滑化されず、バースト的に
なるので、後続機器において更に多くの映像や音声など
のTSパケットと多重される鳩合などでは他のストリー
ムの多重位置に影響を及ぼすおそれがあるので、このこ
とを念頭において適宜なる範囲で実施する必要がある。
また、ES符号化部からの符号量が出すぎた場合には、
ESビットレートに近いほど、遅くなってしまった多重
位置をもとに戻すのに時間がかかる。また、ptr
[s]も“0”以上の値であるが、後続概器などでの最
低限の遅延を考慮して決定するのが望ましく、従って、
あまり大きくすると、バッファがオーバーフローするの
で注意する必要がある。
The rate above the ES bit rate may be basically any number, but if the rate is too high, the multiplexing of TS packets is not smoothed and becomes bursty, so that it is further increased in subsequent devices. Since there is a risk that the multiplexing position of other streams will be affected in the case of multiplexing with TS packets such as video and audio, it is necessary to carry out this within an appropriate range.
If the code amount from the ES coding unit is too large,
The closer to the ES bit rate, the longer it takes to restore the delayed multiplex position. Also, ptr
[S] is also a value of "0" or more, but it is desirable to determine it by taking into account the minimum delay in the trailing outliner and the like.
If you make it too big, the buffer will overflow, so be careful.

【0039】以上のことを適用して多重処理させるTS
多重部14での処理フローを図3に示しておく。TS多
重部14は、次に多重すべき音声TSパケットの情報を
取得する(図3のS1)。そして、音声フレーム先頭を
含むTSパケットか否かを調べ(図3のS2)、その結
果、次に多重すべき音声TSパケットが音声フレーム先
頭を含むTSパケットであったならば、このTSパケッ
トが現時点のタイミングにおいて、多重可能な位置か否
かを調べる(図3のS3)。
TS for which multiple processing is performed by applying the above
The processing flow in the multiplexing unit 14 is shown in FIG. The TS multiplexing unit 14 acquires the information of the audio TS packet to be multiplexed next (S1 in FIG. 3). Then, it is checked whether or not the TS packet includes the head of the audio frame (S2 in FIG. 3). As a result, if the audio TS packet to be multiplexed next is the TS packet including the head of the audio frame, this TS packet is At the current timing, it is checked whether or not it is a position where multiplexing is possible (S3 in FIG. 3).

【0040】その結果、多重可能な位置になければ、多
重可能な位置に来るまで待つ(図3のS3)。
As a result, if it is not at the position where multiplexing is possible, it waits until it comes to the position where multiplexing is possible (S3 in FIG. 3).

【0041】多重可能な位置にあれば、所定のレートで
TSパケットを多重する(図3のS4)。そして、ステ
ップS1の処理に戻って、ステップS1以降の処理を繰
り返す。
If there is a position where multiplexing is possible, TS packets are multiplexed at a predetermined rate (S4 in FIG. 3). Then, the process returns to step S1 and the processes after step S1 are repeated.

【0042】一方、ステップS2のチェックの結果、次
に多重すべき音声TSパケットが音声フレーム先頭を含
むTSパケットでなかったならば、このTSパケット所
定のレートでTSパケットを多重する(図3のS4)。
そして、ステップS1の処理に戻って、ステップS1以
降の処理を繰り返す。このような制御をTS多重部14
で行わせる。
On the other hand, as a result of the check in step S2, if the next audio TS packet to be multiplexed is not a TS packet including the beginning of an audio frame, this TS packet is multiplexed at a predetermined rate (see FIG. 3). S4).
Then, the process returns to step S1 and the processes after step S1 are repeated. Such control is performed by the TS multiplexing unit 14
Let's do it in.

【0043】このような制御を実施することで、つぎの
ような効果が確保できる。
By carrying out such control, the following effects can be secured.

【0044】〔本発明適用の効果]適用例として、次の
ような例を考える。TSのビットレート及びその音声E
Sのビットレートから計算して、ある一定時間丁に対し
て、その音声ESがTSPに換算して5パケット分、多
重される場合である。
[Effect of application of the present invention] As an application example, consider the following example. Bit rate of TS and its audio E
This is the case where the voice ES is converted into TSP and multiplexed for 5 packets for a certain fixed time calculated from the bit rate of S.

【0045】図4は、問題の起きない定常状態の例であ
る。(a)は従来方式、(b)は本発明を適用した例を
示している。点が散りばめられている領域はある音声の
フレーム先頭を含むTSP(TSパケット)の多重され
ている領域を示し、網掛け模様の領域はその音声フレー
ムの残りのTSP(TSパケットの残り分)が多重され
ている領域を示し、無地の領域はその音声ES以外のT
SP(TSパケット)が多重されている領域を示してい
る。
FIG. 4 shows an example of a steady state where no problem occurs. (A) shows a conventional method and (b) shows an example to which the present invention is applied. An area in which dots are scattered indicates an area in which TSP (TS packets) including the head of a certain voice frame is multiplexed, and a shaded area indicates the remaining TSP (the remaining portion of the TS packet) of the voice frame. The multiplexed area is shown, and the solid area is the T other than the voice ES.
An area in which SPs (TS packets) are multiplexed is shown.

【0046】図4にしめすように、平常時は従来方式
も、また、本発明方式も全く変わりはない。
As shown in FIG. 4, there is no difference between the conventional system and the system of the present invention during normal operation.

【0047】次に、異常時を比較してみる。図5は、符
号量が減った場合の例であり、ES符号化部の障害等
で、2フレーム目と3フレーム目のヘッダは保存されて
いるが、符号量が1/3になった場合の例である。図5
(a)に示す従来方式ではTの期間に一定量を多重する
ため、最初のTの期間に3フレーム分多重してしまう。
そのため、次のTの期間において符号が存在しないの
で、その後、どう多重すれぱいいか判断がつかず問題が
発生する。
Next, let us compare the abnormal times. FIG. 5 is an example of the case where the code amount is reduced, and the headers of the second frame and the third frame are preserved due to a failure of the ES encoding unit, etc., but the code amount becomes 1/3. Is an example of. Figure 5
In the conventional method shown in (a), since a certain amount is multiplexed in the period of T, three frames are multiplexed in the first period of T.
Therefore, since there is no code in the next T period, it is not possible to determine how to multiplex thereafter, which causes a problem.

【0048】これに対し、図5(b)の発明方式ではフ
レームに対して多重位置を計算し直し、求めた位置をも
とに多重開始するので、エラーが発生せずに動作を継続
できる。
On the other hand, in the invention system of FIG. 5B, since the multiplex position is recalculated for the frame and the multiplex is started based on the calculated position, the operation can be continued without any error.

【0049】一方、符号量が増えた場合の例を図6に示
す。この場合には上記において、ES符号化部の11の
障害発生等で、2フレーム目の符号量が4/3倍になっ
たとすると、この場合、図6(a〉の従来の方式ではT
の期間に一定量を多重するため、3フレーム目以降の多
重が遅れたままとなる。
On the other hand, FIG. 6 shows an example in which the code amount is increased. In this case, if it is assumed in the above that the code amount of the second frame has increased 4/3 times due to the occurrence of 11 failures in the ES encoding unit, in this case, in the conventional method of FIG.
Since a fixed amount is multiplexed in the period of, the multiplexing of the third frame and thereafter remains delayed.

【0050】これに対し、図6(b)の本発明方式では
TSパケットの出力位置が後ろになったので、次のフレ
ーム先頭はすぐに、多重可能となり、すぐに多重を開始
する。そのため多重位置が4フレーム目で元に戻る。
On the other hand, in the method of the present invention shown in FIG. 6B, since the output position of the TS packet is behind, the next frame head can be multiplexed immediately and the multiplexing is started immediately. Therefore, the multiplex position returns to the original position at the fourth frame.

【0051】このように、本発明は、固定レートで入力
される音声ESの音声フレームの先頭を含むTSパケッ
トについて、そのTSパケットが多重可能となる位置
(多重可能位置)“TSP_pos”をTSP_pos
=PTS−(Delay+pES/CBR+ptr)×
(1/27000000)より決定して、その位置で多
重を行なうようにするものである。
As described above, according to the present invention, for the TS packet including the beginning of the voice frame of the voice ES input at a fixed rate, the position (multiplexable position) "TSP_pos" at which the TS packet can be multiplexed is set to TSP_pos.
= PTS- (Delay + pES / CBR + ptr) *
(1/27000000), and multiplexing is performed at that position.

【0052】本発明においては、エンコーダの構成要素
である多重部において、ESの符号化単位であるフレー
ムに付加されているバッファ占有量値を常時監視しなが
ら、必要なときに、そのフレーム先頭を含むTSPの多
重位置を決め直して、その位置から多重を開始すること
で、ES符号化部に障害が発生するなどで、フレーム数
は正しいもののES符号化部と多重部との間で管理して
いる発生符号量の誤差が生じた際に、ES符号化部が管
理している発生符号量と多重部が管理している発生符号
量を少しでも近づけることができるようになり、その結
果、多重処理が停止しないようにエンコーダを機能させ
ることができる。従って、本発明によれば、多重処理停
止がなくなり、信頼性を確保することができるようにな
る。
In the present invention, in the multiplexing unit which is a constituent element of the encoder, the buffer occupancy value added to the frame which is the ES encoding unit is constantly monitored, and the frame head is added when necessary. By re-determining the multiplexing position of the TSP that contains it and starting multiplexing from that position, a failure occurs in the ES encoding unit, and the number of frames is correct, but it is managed between the ES encoding unit and the multiplexing unit. When an error in the generated code amount occurs, the generated code amount managed by the ES coding unit and the generated code amount managed by the multiplexing unit can be brought closer to each other as a result. The encoder can be operated so that the multiprocessing does not stop. Therefore, according to the present invention, it is possible to prevent the multiprocessing from being stopped and ensure the reliability.

【0053】本発明は上述の音声の他、映像などMPE
Gの符号化データにおいて、各フレームに対してデコー
ダバッファの占有量が記述されている場合で、伝送にI
SO13818・1のシステム規格を使用する場合は、
上記Dolayをそれぞれの規格に合わせて計算するこ
とで、全て適用できる。
In addition to the above-mentioned audio, the present invention provides MPE such as video.
When the occupancy of the decoder buffer is described for each frame in the G encoded data, the I
When using the SO13818 / 1 system standard,
All can be applied by calculating the above-mentioned Dolay according to each standard.

【0054】なお、本発明は上述した実施形態に限定さ
れるものではなく、種々変形して実施可能であり、音声
のみならず映像などMPEG2の符号化データにおい
て、本発明は適用して効果がある。また、本発明におい
て、上記実施形態には種々の段階の発明が含まれてお
り、開示される複数の構成要件における適宜な組み合わ
せにより種々の発明が抽出され得る。例えば、実施形態
に示される全構成要件から幾つかの構成要件が削除され
ても、発明が解決しようとする課題の欄で述べた課題の
少なくとも1つが解決でき、発明の効果の欄で述べられ
ている効果の少なくとも1つが得られる場合には、この
構成要件が削除された構成が発明として抽出され得る。
The present invention is not limited to the above-described embodiment, but can be implemented by being modified in various ways, and the present invention can be applied and applied to not only audio but also MPEG2 encoded data such as video. is there. Further, in the present invention, the above embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some of the constituent elements are deleted from all the constituent elements shown in the embodiment, at least one of the problems described in the section of the problem to be solved by the invention can be solved and described in the section of the effect of the invention. When at least one of the effects described above is obtained, a configuration in which this constituent element is deleted can be extracted as an invention.

【0055】また、本発明における実施形態に記載した
手法は、コンピュータに実行させることのできるプログ
ラムとして、磁気ディスク(フレキシブルディスク、ハ
ードディスクなど)、光ディスク(CD−ROM、CD
−R、CD−RW、DVD、MOなど)、半導体メモリ
などの記録媒体に格納して頒布することもでき、また、
ネットワークを介しての伝送により、頒布することもで
きる。
The method described in the embodiments of the present invention is a program that can be executed by a computer, such as a magnetic disk (flexible disk, hard disk, etc.), optical disk (CD-ROM, CD).
-R, CD-RW, DVD, MO, etc.), and can be distributed by being stored in a recording medium such as a semiconductor memory.
It can also be distributed by transmission via a network.

【0056】[0056]

【発明の効果】以上、詳述したように、ES符号化部に
障害が発生した場合においても動作停止し難くして、信
頼性の向上を図ったリアルタイムMPEG2用のエンコ
ーダおよびエンコーダにおける多重化制御方法を提供す
ることができる。
As described above in detail, even when a failure occurs in the ES coding unit, it is difficult to stop the operation and the reliability of the encoder for real-time MPEG2 and the multiplexing control in the encoder are improved. A method can be provided.

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

【図1】本発明システムの要部構成例を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration example of a main part of a system of the present invention.

【図2】本発明を説明するための図である。FIG. 2 is a diagram for explaining the present invention.

【図3】本発明システムにおけるTS多重部14での制
御フロー例を示す図である。
FIG. 3 is a diagram showing an example of a control flow in the TS multiplexer 14 in the system of the present invention.

【図4】従来技術と対比して本発明の効果を説明するた
めの図である。
FIG. 4 is a diagram for explaining an effect of the present invention in comparison with a conventional technique.

【図5】従来技術と対比して本発明の効果を説明するた
めの図である。
FIG. 5 is a diagram for explaining an effect of the present invention in comparison with a conventional technique.

【図6】従来技術と対比して本発明の効果を説明するた
めの図である。
FIG. 6 is a diagram for explaining an effect of the present invention in comparison with a conventional technique.

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

11…ES符号化部、12…PES化部、13…TSパ
ケット化部、14…多重部。
11 ... ES coding unit, 12 ... PES conversion unit, 13 ... TS packetization unit, 14 ... Multiplexing unit.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】ベースバンド音声信号からES(elem
entary stream)を生成するES符号化部
と、ESからPES(packetized elem
entary stream)、TSP(transp
ort stream packet)を生成し、更に
番組情報などのPSI(program specif
ic infomation)のTSPと共に多重処理
を行いTS(transport stream)を出
力する多重処理部とを有するリアルタイムMPEG2音
声エンコーダにおいて、 前記多重処理部は、固定ビットレートの音声のESを多
重する場合において、 ESの符号化単位であるフレームに付加されているバッ
ファ占有量値を常時監視しながら、必要な時にその値を
用いてそのフレーム先頭を含むTSPの多重可能位置を
決め直し、その決め直した多重可能位置にそのフレーム
先頭を含むTSPの多重する構成としたことを特徴とす
るリアルタイムMPEG2用のエンコーダ。
1. From a baseband audio signal to an ES (elem)
An ES coding unit that generates an entry stream, and a PES (packetized element) from the ES.
entry stream), TSP (transp)
ort stream packet), and further PSI (program specif) such as program information.
In a real-time MPEG2 audio encoder having a multiplex processing unit that performs multiplex processing together with TSP of ic information) and outputs a TS (transport stream), the multiplex processing unit is configured to multiplex ES of fixed bit rate audio. While constantly monitoring the buffer occupancy value added to the frame, which is the encoding unit of TSP, the value is used when necessary to redetermine the TSP multiplexing position including the beginning of the frame, and the determined multiplexing capability An encoder for real-time MPEG2, characterized in that a TSP including the frame head at a position is multiplexed.
【請求項2】入力される信号からES(element
ary stream)を生成するES符号化部と、E
SからPES(packetized element
ary stream)、第1の種類のTSP(tra
nsport streampacket)を生成し、
更に他のTSPと共に多重処理を行い、TS(tran
sport stream)を出力する多重処理部とを
有するリアルタイムMPEG2エンコーダにおいて、 前記多重処理部は、固定ビットレートのESを多重する
場合において、 ESの符号化単位であるフレームに付加されているバッ
ファ占有量値を常時監視しながら、必要な時にその値を
用いてそのフレーム先頭を含むTSPの多重可能位置を
決め直し、その決め直した多重可能位置にそのフレーム
先頭を含むTSPの多重する構成としたことを特徴とす
るリアルタイムMPEG2用のエンコーダ装置。
2. An ES (element) based on an input signal.
an ES encoding unit for generating an (ary stream), and E
S to PES (packetized element)
ary stream), the first type of TSP (tra
nstream streampacket),
Furthermore, multiple processing is performed together with other TSP, and TS (trans
In a real-time MPEG2 encoder having a multiplex processing unit for outputting a sport stream), the multiplex processing unit, when multiplexing the ES having a fixed bit rate, has a buffer occupation amount added to a frame which is a coding unit of the ES. While constantly monitoring the value, the value is used to redetermine the multiplexing possible position of the TSP that includes the frame head, and the TSP that includes the frame beginning is multiplexed at the redeterminable multiplexing position. An encoder device for real-time MPEG2 characterized by the following.
【請求項3】前記フレーム先頭を含むTSPの多重位置
の決め直しに当たり、その決め直す多重可能位置を“T
SP_pos”とすると、この“TSP_pos”を (但し、PTS(単位は[s/27000000])
は、あるTSパケットのフレーム(A(n))の先頭を
有する音声フレームのデコード時刻、Delay(単位
は[s])は、フレームA(n)の遅れDelayA
(n)(単位は[s])、pES(単位は[byt
e])はTSヘッダの直後あるいはPESヘッダがあれ
ばPESヘッダの直後からフレームA(n)の先頭まで
に存在するA(n−1)のESサイズであり、CBR
(単位は[bps])は、ESのビットレートであり、
ptr(単位は[s])は、TSヘッダやPESヘッダ
のバッファリングなどでのオフセット値)より決定する
ことを特徴する請求項1または2いずれか1項に記載の
リアルタイムMPEG2用のエンコーダ。
3. When re-determining the multiplex position of the TSP including the frame head, the multiplexable position to be re-determined is "T".
If SP_pos ”, then this“ TSP_pos ”is (However, PTS (unit is [s / 27000000])
Is the decoding time of an audio frame having the beginning of a frame (A (n)) of a TS packet, and Delay (unit is [s]) is the delay DelayA of frame A (n).
(N) (unit is [s]), pES (unit is [byte]
e]) is the ES size of A (n-1) that exists immediately after the TS header or immediately after the PES header to the beginning of the frame A (n) if there is a PES header, and is CBR.
(Unit is [bps]) is the bit rate of ES,
The encoder for real-time MPEG2 according to claim 1 or 2, wherein ptr (unit: [s]) is determined from an offset value in buffering of a TS header or a PES header.
【請求項4】ベースバンド音声信号からES(elem
entary stream)を生成するES符号化部
と、ESからPES(packetized elem
entary stream)、TSP(transp
ort stream packet)を生成し、更に
番組情報などのPSI(program specif
ic infomation)のTSPと共に多重処理
を行いTS(transport stream)を出
力する多重処理部とを有するリアルタイムMPEG2音
声エンコーダにおける多重化制御方法において、 固定ビットレートのESを多重する場合における前記多
重処理部での多重化は、 ESの符号化単位であるフレームに付加されているバッ
ファ占有量値を常時監視しながら、必要な時にその値を
用いてそのフレーム先頭を含むTSPの多重可能位置を
決め直し、その決め直した多重可能位置にそのフレーム
先頭を含むTSPの多重することを特徴とするリアルタ
イムMPEG2用のエンコーダにおける多重化制御方
法。
4. An ES (elem) from a baseband audio signal.
An ES coding unit that generates an entry stream, and a PES (packetized element) from the ES.
entry stream), TSP (transp)
ort stream packet), and further PSI (program specif) such as program information.
In a multiplexing control method in a real-time MPEG2 audio encoder having a multiplex processing unit that performs multiplex processing with TSP of ic information and outputs TS (transport stream), the multiplex processing unit in the case of multiplexing ES with a fixed bit rate In the multiplexing of, while constantly monitoring the buffer occupancy value added to the frame which is the ES encoding unit, the value is used when necessary to redetermine the TSP multiplexing possible position including the frame head, A multiplexing control method in an encoder for real-time MPEG2, characterized in that TSP including the frame head is multiplexed at the redeterminable multiplexing position.
【請求項5】前記フレーム先頭を含むTSPの多重位置
の決め直しに当たり、その決め直す多重可能位置を“T
SP_pos”とすると、この“TSP_pos”を (但し、PTS(単位は[s/27000000])
は、あるTSパケットのフレーム(A(n))の先頭を
有する音声フレームのデコード時刻、Delay(単位
は[s])は、フレームA(n)の遅れDelayA
(n)(単位は[s])、pES(単位は[byt
e])はTSヘッダの直後あるいはPESヘッダがあれ
ばPESヘッダの直後からフレームA(n)の先頭まで
に存在するA(n−1)のESサイズであり、CBR
(単位は[bps])は、ESのビットレートであり、
ptr(単位は[s])は、TSヘッダやPESヘッダ
のバッファリングなどでのオフセット値)より決定する
ことを特徴する請求項4記載のリアルタイムMPEG2
用のエンコーダにおける多重化制御方法。
5. When re-determining the multiplexing position of the TSP including the frame head, the re-determinable multiplexing position is designated as "T".
If SP_pos ”, then this“ TSP_pos ”is (However, PTS (unit is [s / 27000000])
Is the decoding time of an audio frame having the beginning of a frame (A (n)) of a TS packet, and Delay (unit: [s]) is the delay DelayA of frame A (n).
(N) (unit is [s]), pES (unit is [byte]
e]) is the ES size of A (n-1) existing immediately after the TS header or immediately after the PES header to the beginning of the frame A (n) if there is a PES header, and is CBR.
(Unit is [bps]) is the bit rate of ES,
5. The real-time MPEG2 according to claim 4, wherein ptr (unit: [s]) is determined from offset value in buffering of TS header or PES header.
Control method in encoder for video.
JP2001375028A 2001-09-29 2001-09-29 Encoder for real-time mpeg2 and multiplexing control method for encoder Pending JP2003108193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001375028A JP2003108193A (en) 2001-09-29 2001-09-29 Encoder for real-time mpeg2 and multiplexing control method for encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001375028A JP2003108193A (en) 2001-09-29 2001-09-29 Encoder for real-time mpeg2 and multiplexing control method for encoder

Publications (1)

Publication Number Publication Date
JP2003108193A true JP2003108193A (en) 2003-04-11

Family

ID=19183481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001375028A Pending JP2003108193A (en) 2001-09-29 2001-09-29 Encoder for real-time mpeg2 and multiplexing control method for encoder

Country Status (1)

Country Link
JP (1) JP2003108193A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007067020A1 (en) * 2005-12-09 2007-06-14 Electronics And Telecommunications Research Institute System and method for transmitting/receiving three dimensional video based on digital broadcasting
US8483269B2 (en) 2005-12-09 2013-07-09 Electronics And Telecommunications Research Institute System and method for transmitting/receiving three dimensional video based on digital broadcasting

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007067020A1 (en) * 2005-12-09 2007-06-14 Electronics And Telecommunications Research Institute System and method for transmitting/receiving three dimensional video based on digital broadcasting
US8483269B2 (en) 2005-12-09 2013-07-09 Electronics And Telecommunications Research Institute System and method for transmitting/receiving three dimensional video based on digital broadcasting
US9380288B2 (en) 2005-12-09 2016-06-28 Electronics And Telecommunications Research Institute System and method for transmitting/receiving three dimensional video based on digital broadcasting

Similar Documents

Publication Publication Date Title
US20060291475A1 (en) Selective forward error correction
US7342961B2 (en) Encoded data outputting apparatus and method
JP4678486B2 (en) Multiplexing device, multiplexing method, program, and recording medium
US9654812B2 (en) Encoding apparatus and the method
JP4041137B2 (en) VIDEO ENCODING / TRANSMITTING DEVICE, VIDEO ENCODING / TRANSMITTING METHOD, VIDEO ENCODING / TRANSMITTING PROGRAM, AND RECORDING MEDIUM THEREOF
JP4294660B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, AND RECORDING MEDIUM THEREOF
US8249433B2 (en) Data multiplexing apparatus
JP2010212996A (en) Information processing apparatus and multiplexing processing method
US7729383B2 (en) Multiplexer and multiplexing method
JP3622451B2 (en) Data processing apparatus, data processing method, and recording medium
JP2003108193A (en) Encoder for real-time mpeg2 and multiplexing control method for encoder
US20090080514A1 (en) Sender side channel adaptive video transmission
JPH11341055A (en) Encoder, digital transmitter and digital transmission system
JPH11112947A (en) Device and method for data multiplexing, device and method for data processing, and transmission medium
JP4016215B2 (en) Digital signal encoding method and apparatus, and digital signal transmission method and apparatus
JP2000216816A (en) Device and method for encoding and computer-readable storing medium
JP2009171339A (en) Apparatus, method and program for encoding moving image
JP2008176918A (en) Reproducing apparatus and method, and recording medium
JP4559878B2 (en) DIGITAL BROADCAST SIGNAL TRANSMITTING APPARATUS AND METHOD FOR CONTROLLING THE DIGITAL BROADCAST SIGNAL TRANSMITTING APPARATUS
JP3161686B2 (en) Packet transmission equipment
JP4767283B2 (en) Transcoder device
JP2003108194A (en) Packet constituting method of mpeg2 encoder
JP4788251B2 (en) Video signal encoding apparatus
JP2005142612A (en) Image coding apparatus and image coding method
JP2000270018A (en) Multiplexing device, encoding device, information processing system, multiplexing method, and storage medium