JP5677018B2 - Data multiplexing apparatus, data multiplexing method and system - Google Patents

Data multiplexing apparatus, data multiplexing method and system Download PDF

Info

Publication number
JP5677018B2
JP5677018B2 JP2010234412A JP2010234412A JP5677018B2 JP 5677018 B2 JP5677018 B2 JP 5677018B2 JP 2010234412 A JP2010234412 A JP 2010234412A JP 2010234412 A JP2010234412 A JP 2010234412A JP 5677018 B2 JP5677018 B2 JP 5677018B2
Authority
JP
Japan
Prior art keywords
data
real
time
time data
multiplexed
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
JP2010234412A
Other languages
Japanese (ja)
Other versions
JP2012090039A (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.)
NTT Docomo Inc
Mitsubishi Electric Corp
Original Assignee
NTT Docomo Inc
Mitsubishi Electric 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 NTT Docomo Inc, Mitsubishi Electric Corp filed Critical NTT Docomo Inc
Priority to JP2010234412A priority Critical patent/JP5677018B2/en
Publication of JP2012090039A publication Critical patent/JP2012090039A/en
Application granted granted Critical
Publication of JP5677018B2 publication Critical patent/JP5677018B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

この発明は、例えば、複数の番組のメディアデータを効率よく多重化して出力するデータ多重化装置及びデータ多重化方法に関するものである。   The present invention relates to a data multiplexing apparatus and a data multiplexing method for efficiently multiplexing and outputting media data of a plurality of programs, for example.

例えば、デジタル放送のように、伝送帯域が限られている状況化では、複数の番組を効率よく多重化して出力する必要があり、以下の特許文献1には、複数の番組を効率よく多重化して出力するデータ多重化装置(統計多重を行うデータ多重化装置)が開示されている。
一般に、ビデオデータを符号化する場合、入力画像の複雑さや動きの大きさなどが異なると、同じ画質のビデオ符号化データを生成する場合でも符号量が大きく変動する。
上記のデータ多重化装置では、複数の番組を多重化して出力する際、複数の番組のビデオの画質が均等になるように、各番組の入力画像の複雑さを符号化前に調査し、複雑な入力画像の番組には多くの符号量を割り当て、複雑でない入力画像の番組には少ない符号量を割り当てるようにしている。
このとき、符号量の合計が伝送帯域と一致するように制御することで、限られた伝送帯域の中で、複数の番組の画質を同等に保ちながら、複数の番組の多重化を行うことが可能となる。
For example, in a situation where the transmission band is limited as in digital broadcasting, it is necessary to efficiently multiplex and output a plurality of programs. Patent Document 1 below efficiently multiplexes a plurality of programs. A data multiplexing apparatus (data multiplexing apparatus that performs statistical multiplexing) is disclosed.
In general, when video data is encoded, if the complexity of the input image, the size of the motion, and the like are different, the code amount greatly fluctuates even when video encoded data having the same image quality is generated.
In the above data multiplexing device, when a plurality of programs are multiplexed and output, the complexity of the input images of each program is checked before encoding so that the video quality of the plurality of programs is equalized. A large code amount is assigned to a program with a simple input image, and a small code amount is assigned to a program with a non-complex input image.
At this time, by controlling the total code amount to match the transmission band, it is possible to multiplex a plurality of programs while maintaining the same image quality of the plurality of programs within the limited transmission band. It becomes possible.

また、以下の特許文献2には、統計多重を行う際に、空いている帯域で他のデータを多重する方法が開示されている。
統計多重によって可変レートのデータの総和を出力レートに合わせ込めない場合、空いている帯域で他のデータを多重することで効率的な多重化を達成することができる。
Patent Document 2 below discloses a method of multiplexing other data in an available band when performing statistical multiplexing.
If the sum of the variable rate data cannot be matched to the output rate by statistical multiplexing, it is possible to achieve efficient multiplexing by multiplexing other data in an available band.

特許第4441839号Patent No. 4441839 特許第4206559号Japanese Patent No. 4206559

従来のデータ多重化装置は以上のように構成されているので、ある時刻において、複数の番組の画質を均等にすることを目的として、符号量の配分を行うようにしている。このため、入力画像が複雑な番組と入力画像が複雑でない番組が混在する場合、入力画像が複雑でない番組に割り当てる符号量を減らして、入力画像が複雑な番組により多くの符号量を割り当てることで、入力画像が複雑な番組の画質低下を抑えることができる。しかし、全ての番組の入力画像が複雑な場合、符号量を減らせる番組が存在しないため、全ての番組で画質低下が発生してしまう課題があった。
また、ある時刻において、複数の番組の画質を均等にすることは可能であるが、ある1つの番組に着目すると、時刻の経過に伴って画質が変動してしまうため(番組の入力画像の複雑さは逐次変動するため)、時間軸方向では番組の画質を安定させることが困難である課題があった。
さらに、他のデータを用いて出力レートの合わせ込みを行う場合には、他のデータの伝送容量が保証できないという課題があった。
Since the conventional data multiplexing apparatus is configured as described above, the code amount is distributed for the purpose of equalizing the image quality of a plurality of programs at a certain time. For this reason, when a program with a complex input image and a program with a complex input image are mixed, the amount of code allocated to a program with a complex input image is reduced, and a larger amount of code is allocated to a program with a complex input image. Therefore, it is possible to suppress a deterioration in the image quality of a program having a complicated input image. However, when the input images of all the programs are complicated, there is no program that can reduce the code amount, and there is a problem that the image quality is deteriorated in all the programs.
In addition, it is possible to make the image quality of a plurality of programs uniform at a certain time, but if attention is paid to a certain program, the image quality changes with the passage of time (the complexity of the input image of the program). Since the time fluctuates sequentially, there is a problem that it is difficult to stabilize the image quality of the program in the time axis direction.
Furthermore, when the output rate is adjusted using other data, there is a problem that the transmission capacity of the other data cannot be guaranteed.

この発明は上記のような課題を解決するためになされたもので、複数の番組の画質の均等化を図りながら、画質の時間的変動を抑えて、高画質な番組多重を図ることができるデータ多重化装置及びデータ多重化方法を得ることを目的とする。
さらに、同時に送出する他のデータの伝送容量を保証することができるデータ多重化装置及びデータ多重化方法を得ることを目的とする。
The present invention has been made in order to solve the above-described problems, and is a data that can achieve high-quality program multiplexing while suppressing temporal fluctuations in image quality while equalizing the image quality of a plurality of programs. An object is to obtain a multiplexing device and a data multiplexing method.
It is another object of the present invention to provide a data multiplexing apparatus and a data multiplexing method capable of guaranteeing the transmission capacity of other data sent simultaneously.

この発明に係るデータ多重化装置は、予め設定されている伝送レートの範囲内で、リアルタイムデータ符号化手段から出力された符号化データを多重化し、その多重化した符号化データのデータレートと所定の伝送レートの差分の範囲内で、非リアルタイムデータ出力手段から出力された非リアルタイムデータをさらに多重化して多重化データを出力する多重化手段を設け、リアルタイムデータレート制御手段が、多重化手段から多重化データの出力が開始された時点から多重化データに含まれている符号化データのデータ量を累積するとともに、その多重化データの出力が開始された時点から現時点に至るまでの経過時間と予め設定されている基準レートを乗算して、その乗算結果と上記データ量の累積値との差分を算出し、その差分が所定の範囲を超えた場合に、その差分が小さくなるように上記符号化データの符号量を制御する指示をリアルタイムデータ符号化手段に与えるようにしたものである。 The data multiplexing apparatus according to the present invention multiplexes the encoded data output from the real-time data encoding means within a preset transmission rate range, and sets the data rate of the multiplexed encoded data to a predetermined value. A non-real time data output from the non-real time data output means is further multiplexed within the range of the transmission rate difference to output multiplexed data, the real time data rate control means from the multiplexing means Accumulate the amount of encoded data included in the multiplexed data from the time when output of the multiplexed data is started, and the elapsed time from the time when output of the multiplexed data is started until the present time by multiplying the reference rate which is set in advance, calculates the difference between the cumulative value of the multiplication result and the data amount, the difference is Tokoro If it exceeds the range, in which the give an instruction for controlling the code amount of the coded data so that the difference becomes smaller time data encoding means.

この発明によれば、予め設定されている伝送レートの範囲内で、リアルタイムデータ符号化手段から出力された符号化データを多重化し、その多重化した符号化データのデータレートと所定の伝送レートの差分の範囲内で、非リアルタイムデータ出力手段から出力された非リアルタイムデータをさらに多重化して多重化データを出力する多重化手段を設け、リアルタイムデータレート制御手段が、多重化手段から多重化データの出力が開始された時点から多重化データに含まれている符号化データのデータ量を累積するとともに、その多重化データの出力が開始された時点から現時点に至るまでの経過時間と予め設定されている基準レートを乗算して、その乗算結果と上記データ量の累積値との差分を算出し、その差分が所定の範囲を超えた場合に、その差分が小さくなるように上記符号化データの符号量を制御する指示をリアルタイムデータ符号化手段に与えるように構成したので、複数の番組の画質の均等化を図りながら、画質の時間的変動を抑えて、高画質な番組多重を図ることができる効果がある。 According to the present invention, the encoded data output from the real-time data encoding means is multiplexed within a preset transmission rate range, and the data rate of the multiplexed encoded data and a predetermined transmission rate are set. Within the range of the difference, a non-real time data output from the non real time data output means is further provided with multiplexing means for outputting multiplexed data, and the real time data rate control means receives the multiplexed data from the multiplexing means. The amount of encoded data included in the multiplexed data is accumulated from the time when the output is started, and an elapsed time from the time when the output of the multiplexed data is started until the present time is preset. by multiplying the reference rate are, calculates a difference between the accumulated value of the multiplication result and the data amount, the difference exceeds a predetermined range The case, since it is configured to provide instructions to control the code amount of the coded data so that the difference becomes smaller real time data coding means, while achieving equalization of the image quality of a plurality of programs, the quality time There is an effect that it is possible to multiplex programs with high image quality while suppressing global fluctuations.

この発明の実施の形態1によるデータ多重化装置を示す構成図である。It is a block diagram which shows the data multiplexing apparatus by Embodiment 1 of this invention. この発明の実施の形態1によるデータ多重化装置の処理内容(データ多重化方法)を示すフローチャートである。It is a flowchart which shows the processing content (data multiplexing method) of the data multiplexing apparatus by Embodiment 1 of this invention. 多重化部3から出力される多重化データの一例を示す説明図である。It is explanatory drawing which shows an example of the multiplexed data output from the multiplexing part. 3種類のビデオ画質をほぼ一定にしてビデオデータを符号化したときの各ビデオデータの符号化データのビットレートを示す説明図である。It is explanatory drawing which shows the bit rate of the encoding data of each video data when encoding video data by making three types of video image quality substantially constant. 図4のビデオデータの符号化データの情報量の累計結果を示す説明図である。FIG. 5 is an explanatory diagram illustrating a cumulative result of information amount of encoded data of the video data of FIG. 情報量の累計結果と、所望の累計情報量(リアルタイムデータの符号化データの所望の平均レートを120kbpsとする場合の所望の累計情報量)との差を示す説明図である。It is explanatory drawing which shows the difference of the accumulation result of information amount, and desired accumulation information amount (desired accumulation information amount when the desired average rate of the encoding data of real-time data shall be 120 kbps). この発明の実施の形態2によるデータ多重化装置を示す構成図である。It is a block diagram which shows the data multiplexing apparatus by Embodiment 2 of this invention. この発明の実施の形態2によるデータ多重化装置の処理内容(データ多重化方法)を示すフローチャートである。It is a flowchart which shows the processing content (data multiplexing method) of the data multiplexing apparatus by Embodiment 2 of this invention.

実施の形態1.
図1はこの発明の実施の形態1によるデータ多重化装置を示す構成図である。
図1において、リアルタイムデータ符号化部1a,1bは例えばエンコーダなどから構成されており、復号装置側でリアルタイムに復号されて再生されることが想定されるリアルタイムデータ(例えば、ビデオデータやオーディオデータなどを含むメディアデータ)をリアルタイムに符号化して、そのリアルタイムデータの符号化データを出力する処理を実施する。
図1では、2台のリアルタイムデータ符号化部1a,1bがデータ多重化装置に多重化されている例を示しているが、1台だけ搭載されていてもよし、3台以上搭載されていてもよい。
なお、リアルタイムデータ符号化部1a,1bはリアルタイムデータ符号化手段を構成している。
Embodiment 1 FIG.
1 is a block diagram showing a data multiplexing apparatus according to Embodiment 1 of the present invention.
In FIG. 1, real-time data encoders 1a and 1b are composed of encoders, for example, and real-time data (for example, video data, audio data, etc.) assumed to be decoded and reproduced in real time on the decoding device side. Is encoded in real time, and the encoded data of the real time data is output.
Although FIG. 1 shows an example in which two real-time data encoding units 1a and 1b are multiplexed in the data multiplexing device, only one unit may be installed or three or more units may be installed. Also good.
The real-time data encoding units 1a and 1b constitute real-time data encoding means.

非リアルタイムデータ出力部2a,2bは例えばサーバなどから構成されており、復号装置側で非リアルタイムに復号されて再生(復号装置側で一旦蓄積されてから復号されて再生)されることが想定される非リアルタイムデータ(例えば、以前から蓄積している符号化されたデータやファイルなど)を出力する処理を実施する。
図1では、2台の非リアルタイムデータ出力部2a,2bがデータ多重化装置に多重化されている例を示しているが、1台だけ搭載されていてもよいし、3台以上搭載されていてもよい。
なお、非リアルタイムデータ出力部2a,2bは非リアルタイムデータ出力手段を構成している。
The non-real-time data output units 2a and 2b are composed of, for example, a server and the like, and are assumed to be decoded and reproduced in non-real time on the decoding device side (once stored on the decoding device side and then decoded and reproduced). Non-real-time data (for example, encoded data or files that have been accumulated previously) is output.
Although FIG. 1 shows an example in which two non-real-time data output units 2a and 2b are multiplexed in the data multiplexing device, only one or three or more may be installed. May be.
The non-real time data output units 2a and 2b constitute non-real time data output means.

多重化部3は例えばCPUを実装している半導体集積回路、あるいは、ワンチップマイコンなどから構成されており、リアルタイムデータ符号化部1a,1b及び非リアルタイムデータ出力部2a,2bから出力された符号化データのうち、リアルタイムデータ符号化部1a,1bから出力されたリアルタイムデータの符号化データを優先的に多重化し、その多重化データの帯域と所定の伝送レートの差分の範囲内(残っている伝送レートの範囲内)で、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータを多重化して出力する処理を実施する。
なお、多重化部3は多重化手段を構成している。
The multiplexing unit 3 is composed of, for example, a semiconductor integrated circuit on which a CPU is mounted or a one-chip microcomputer, and the codes output from the real-time data encoding units 1a and 1b and the non-real-time data output units 2a and 2b. Among the encoded data, the encoded data of the real-time data output from the real-time data encoding units 1a and 1b is preferentially multiplexed, and remains within the difference between the band of the multiplexed data and a predetermined transmission rate (remaining Within the range of the transmission rate), the non-real time data output from the non-real time data output units 2a and 2b is multiplexed and output.
The multiplexing unit 3 constitutes multiplexing means.

リアルタイムデータレート制御部4は例えばCPUを実装している半導体集積回路、あるいは、ワンチップマイコンなどから構成されており、多重化部3から出力された多重化データに含まれているリアルタイムデータの符号化データの平均レートを計測し、その平均レートが所望の平均レートに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御する処理を実施する。
即ち、リアルタイムデータレート制御部4は多重化部3から出力された多重化データに含まれているリアルタイムデータの符号化データの平均レートが所望の平均レートより高い場合、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与え、そのリアルタイムデータの符号化データの平均レートが所望の平均レートより低い場合、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与える処理を実施する。
なお、リアルタイムデータレート制御部4はリアルタイムデータレート制御手段を構成している。
The real-time data rate control unit 4 is composed of, for example, a semiconductor integrated circuit on which a CPU is mounted, a one-chip microcomputer or the like, and a code of real-time data included in the multiplexed data output from the multiplexing unit 3 The average rate of the encoded data is measured, and the process of controlling the code amount of the encoded data output from the real-time data encoding units 1a and 1b is performed so that the average rate approaches the desired average rate.
That is, the real time data rate control unit 4 determines the code amount of the encoded data when the average rate of the encoded data of the real time data included in the multiplexed data output from the multiplexing unit 3 is higher than the desired average rate. If the average rate of the encoded data of the real-time data is lower than the desired average rate, an instruction to increase the code amount of the encoded data is given to the real-time data encoding unit 1a, 1b. The process given to 1b is implemented.
The real time data rate control unit 4 constitutes a real time data rate control means.

図1では、データ多重化装置の構成要素であるリアルタイムデータ符号化部1a,1b、非リアルタイムデータ出力部2a,2b、多重化部3及びリアルタイムデータレート制御部4のそれぞれが専用のハードウェアで構成されているものを想定しているが、データ多重化装置がコンピュータで構成される場合、リアルタイムデータ符号化部1a,1b、非リアルタイムデータ出力部2a,2b、多重化部3及びリアルタイムデータレート制御部4の処理内容を記述しているプログラムをコンピュータのメモリに格納し、当該コンピュータのCPUが当該メモリに格納されているプログラムを実行するようにしてもよい。
図2はこの発明の実施の形態1によるデータ多重化装置の処理内容(データ多重化方法)を示すフローチャートである。
In FIG. 1, each of the real-time data encoding units 1a and 1b, the non-real-time data output units 2a and 2b, the multiplexing unit 3 and the real-time data rate control unit 4 which are components of the data multiplexing apparatus is a dedicated hardware. However, when the data multiplexing apparatus is configured by a computer, the real-time data encoding units 1a and 1b, the non-real-time data output units 2a and 2b, the multiplexing unit 3, and the real-time data rate are assumed. A program describing the processing content of the control unit 4 may be stored in a memory of a computer, and the CPU of the computer may execute the program stored in the memory.
FIG. 2 is a flowchart showing the processing contents (data multiplexing method) of the data multiplexing apparatus according to Embodiment 1 of the present invention.

次に動作について説明する。
まず、リアルタイムデータ符号化部1a,1bは、初期画質レベルを設定する(ステップST1)。
リアルタイムデータ符号化部1a,1bは、復号装置側でリアルタイムに復号されて再生されることが想定されるリアルタイムデータ(例えば、ビデオデータを含むメディアデータ)を入力すると、その設定した画質レベルが得られるように、そのリアルタイムデータをリアルタイムに符号化して、そのリアルタイムデータの符号化データを出力する(ステップST2)。
Next, the operation will be described.
First, the real-time data encoding units 1a and 1b set an initial image quality level (step ST1).
When the real-time data encoding units 1a and 1b input real-time data (for example, media data including video data) that is assumed to be decoded and reproduced in real time on the decoding device side, the set image quality level is obtained. As shown, the real-time data is encoded in real time, and the encoded data of the real-time data is output (step ST2).

リアルタイムデータ符号化部1a,1bでは、画質を安定させるため、出力する符号化データのデータ量が時間の経過に伴って変化することを想定している。
即ち、入力画像が複雑であれば、符号化データのデータ量が一時的に多くなる一方、入力画像が複雑でなければ、符号化データのデータ量が少なくなることを想定している。
なお、リアルタイムデータ符号化部1a,1bは、デジタル放送で、1つの番組を構成する複数のメディアを含む符号化データ列(例えば、MPEG−2 TS)を出力する装置に相当する。
In the real-time data encoding units 1a and 1b, in order to stabilize the image quality, it is assumed that the amount of encoded data to be output changes with time.
That is, it is assumed that if the input image is complicated, the amount of encoded data is temporarily increased, whereas if the input image is not complicated, the amount of encoded data is decreased.
The real-time data encoding units 1a and 1b correspond to devices that output an encoded data sequence (for example, MPEG-2 TS) including a plurality of media constituting one program in digital broadcasting.

非リアルタイムデータ出力部2a,2bは、復号装置側で非リアルタイムに復号されて再生(復号装置側で一旦蓄積されてから復号されて再生)されることが想定される非リアルタイムデータ(例えば、以前から蓄積している符号化されたデータやファイルなど)を出力する(ステップST3)。
なお、非リアルタイムデータは、図示せぬ非リアルタイムデータ出力部2a,2bの内部メモリに蓄積されているデータであってもよいし、外部から入力されたデータであってもよい。
The non-real-time data output units 2a and 2b are non-real-time data that is assumed to be decoded in non-real time on the decoding device side and reproduced (they are stored once on the decoding device side and then decoded and reproduced) (for example, (Encoded data, files, etc.) stored in (step ST3).
The non-real time data may be data stored in the internal memory of the non-real time data output units 2a and 2b (not shown) or may be data input from the outside.

多重化部3は、リアルタイムデータ符号化部1a,1bからリアルタイムデータの符号化データを受け、非リアルタイムデータ出力部2a,2bから非リアルタイムデータを受けると、それらの符号化データの中で、リアルタイムデータ符号化部1a,1bから出力されたリアルタイムデータの符号化データを優先的に多重化する(ステップST4)。
ただし、多重化部3は、所定の伝送レートTRNrateの範囲内で、リアルタイムデータの符号化データを多重化する。
Multiplexer 3 receives real-time encoded data from real-time data encoders 1a and 1b and receives non-real-time data from non-real-time data output units 2a and 2b. The encoded data of the real-time data output from the data encoding units 1a and 1b is preferentially multiplexed (step ST4).
However, the multiplexing unit 3 multiplexes the encoded data of the real-time data within a predetermined transmission rate TRNrate.

多重化部3は、リアルタイムデータの符号化データが多重化されている多重化データの帯域である出力レートOUTrateが所定の伝送レートTRNrateに到達していなければ(OUTrate<TRNrate)、残っている伝送レート(=TRNrate−OUTrate)の範囲内で、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータを多重化する(ステップST5,ST6)。
多重化データの出力レートOUTrateが所定の伝送レートTRNrateに到達していれば(OUTrate=TRNrate)、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータは多重化されない。
If the output rate OUTrate, which is a band of multiplexed data in which encoded data of real-time data is multiplexed, does not reach the predetermined transmission rate TRNrate (OUTrate <TRNrate), the multiplexing unit 3 performs the remaining transmission. Within the range of the rate (= TRNrate−OUTrate), the non-real time data output from the non-real time data output units 2a and 2b is multiplexed (steps ST5 and ST6).
If the output rate OUTrate of the multiplexed data has reached the predetermined transmission rate TRNrate (OUTrate = TRNrate), the non-realtime data output from the non-realtime data output units 2a and 2b is not multiplexed.

多重化部3は、リアルタイムデータの符号化データが多重化されている多重化データの出力レートOUTrateが一時的に所定の伝送レートTRNrateを超えることがある場合を想定して、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータを一時的に格納する入力バッファ等を内部に備えており、一時的な符号化データの過多に対応可能な構成になっている。
したがって、多重化部3は、非リアルタイムデータ出力部2a,2bから出力された全ての非リアルタイムデータを多重化することができない場合、一部の非リアルタイムデータを入力バッファに一時的に格納し、多重化が可能なタイミングで、入力バッファから非リアルタイムデータを読み出して多重化する。
The multiplexing unit 3 is a non-real-time data output unit assuming that the output rate OUTrate of multiplexed data in which encoded data of real-time data is multiplexed may temporarily exceed a predetermined transmission rate TRNrate. An input buffer or the like for temporarily storing the non-real time data output from 2a and 2b is provided inside, and is configured to be able to cope with a temporary excess of encoded data.
Therefore, when the multiplexing unit 3 cannot multiplex all the non-real time data output from the non-real time data output units 2a and 2b, it temporarily stores some non-real time data in the input buffer, The non-real time data is read from the input buffer and multiplexed at a timing at which multiplexing is possible.

多重化部3は、リアルタイムデータの符号化データ及び非リアルタイムデータを多重化すると、その多重化データを出力する(ステップST7)。
多重化部3が上記のような処理を行うことで、リアルタイムデータ符号化部1a,1bから出力されたリアルタイムデータの符号化データを優先して多重化しながら、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータを所定の伝送レートTRNrateになるまで多重化することができる。
仮に、リアルタイムデータの符号化データと非リアルタイムデータを合わせても、多重化データの出力レートOUTrateが所定の伝送レートTRNrateに到達しない場合は、例えば、スタッフィングデータ等を多重化することで、多重化データの出力レートOUTrateが所定の伝送レートTRNrateに達するようにすることも可能である。
Multiplexer 3 multiplexes the encoded data of the real-time data and the non-real-time data, and outputs the multiplexed data (step ST7).
The multiplexing unit 3 performs the processing as described above, so that the encoded data of the real-time data output from the real-time data encoding units 1a and 1b is preferentially multiplexed while the non-real-time data output units 2a and 2b The outputted non-real time data can be multiplexed until a predetermined transmission rate TRNrate is reached.
If the output rate OUTrate of the multiplexed data does not reach the predetermined transmission rate TRNrate even if the encoded data of the real-time data and the non-realtime data are combined, for example, multiplexing is performed by multiplexing stuffing data or the like. It is also possible to make the data output rate OUTrate reach a predetermined transmission rate TRNrate.

リアルタイムデータレート制御部4は、多重化部3が多重化データを出力すると、その多重化データに含まれているリアルタイムデータの符号化データの平均レートAVErateを計測する(ステップST8)。
リアルタイムデータレート制御部4は、リアルタイムデータの符号化データの平均レートAVErateを計測すると、その平均レートAVErateが所望の平均レートAVEraterefに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御する。
When the multiplexing unit 3 outputs the multiplexed data, the real-time data rate control unit 4 measures the average rate AVErate of the encoded data of the real-time data included in the multiplexed data (step ST8).
When the real-time data rate control unit 4 measures the average rate AVErate of the encoded data of the real-time data, the real-time data rate control unit 4 outputs the average rate AVErate from the real-time data encoding units 1a and 1b so that the average rate AVErate approaches the desired average rate AVErate ref. Controls the amount of encoded data.

即ち、リアルタイムデータレート制御部4は、リアルタイムデータの符号化データの平均レートAVErateが所望の平均レートAVEraterefより高い場合(ステップST9)、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与える(ステップST10)。
符号化データの符号量を下げる指示としては、例えば、先に設定されている画質レベルを下げる(画質を低下させる)指示が考えられる。
これにより、リアルタイムデータ符号化部1a,1bから出力されるリアルタイムデータの符号化データの平均レートAVErateが下がるため、リアルタイムデータの符号化データの平均レートAVErateを所望の平均レートAVEraterefに近づけることが可能になる。
That is, when the average rate AVErate of the encoded data of the real-time data is higher than the desired average rate AVErate ref (step ST9), the real-time data rate control unit 4 gives an instruction to reduce the code amount of the encoded data. 1a and 1b are provided (step ST10).
As an instruction to reduce the code amount of the encoded data, for example, an instruction to lower the previously set image quality level (decrease the image quality) can be considered.
As a result, the average rate AVErate of the encoded data of the real-time data output from the real-time data encoding units 1a and 1b is lowered, so that the average rate AVErate of the encoded data of the real-time data can be made closer to the desired average rate AVErate ref. It becomes possible.

リアルタイムデータレート制御部4は、リアルタイムデータの符号化データの平均レートAVErateが所望の平均レートAVEraterefより低い場合(ステップST9)、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与える(ステップST11)。
符号化データの符号量を上げる指示としては、例えば、先に設定されている画質レベルを上げる(画質を向上させる)指示が考えられる。
これにより、リアルタイムデータ符号化部1a,1bから出力されるリアルタイムデータの符号化データの平均レートAVErateが上がるため、リアルタイムデータの符号化データの平均レートAVErateを所望の平均レートAVEraterefに近づけることが可能になる。
When the average rate AVErate of the encoded data of the real-time data is lower than the desired average rate AVErate ref (step ST9), the real-time data rate control unit 4 gives an instruction to increase the code amount of the encoded data in the real-time data encoding unit 1a, 1b (step ST11).
As an instruction to increase the code amount of encoded data, for example, an instruction to increase a previously set image quality level (improve image quality) can be considered.
As a result, the average rate AVErate of the encoded data of the real-time data output from the real-time data encoding units 1a and 1b is increased, so that the average rate AVErate of the encoded data of the real-time data can be made closer to the desired average rate AVErate ref It becomes possible.

ここでは、リアルタイムデータの符号化データの平均レートAVErateが所望の平均レートAVEraterefより高い場合、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与える一方、リアルタイムデータの符号化データの平均レートAVErateが所望の平均レートAVEraterefより低い場合、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与えるものを示したが、リアルタイムデータの符号化データの平均レートAVErateと所望の平均レートAVEraterefとの差が小さい場合(差が所定の閾値より小さい場合)、符号化データの符号量を変更する指示をリアルタイムデータ符号化部1a,1bに与えないようにしてもよい。
この場合、リアルタイムデータの符号化データの平均レートAVErateと所望の平均レートAVEraterefが近いときには画質レベルが変更されなくなるため、画質を安定させることができる。
Here, when the average rate AVErate of the encoded data of the real-time data is higher than the desired average rate AVErate ref, an instruction to reduce the code amount of the encoded data is given to the real-time data encoding units 1a and 1b, while the code of the real-time data is encoded. When the average rate AVErate of the encoded data is lower than the desired average rate AVErate ref, an instruction to increase the code amount of the encoded data is given to the real-time data encoding units 1a and 1b. When the difference between the average rate AVErate and the desired average rate AVErate ref is small (when the difference is smaller than a predetermined threshold), an instruction to change the code amount of the encoded data is not given to the real-time data encoding units 1a and 1b It may be.
In this case, since the image quality level is not changed when the average rate AVErate of the encoded data of the real-time data is close to the desired average rate AVErate ref , the image quality can be stabilized.

なお、リアルタイムデータレート制御部4は、多重化部3から出力された多重化データの調査を行わずに、多重化部3よりリアルタイムデータのレート情報の通知を受けて、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するようにしてもよい。
以降、ステップST2の処理に戻り、ステップST2〜ST11の処理が繰り返し実施される。
The real-time data rate control unit 4 receives the notification of the rate information of the real-time data from the multiplexing unit 3 without checking the multiplexed data output from the multiplexing unit 3, and receives the real-time data encoding unit 1a. , 1b, the code amount of the encoded data may be controlled.
Thereafter, the process returns to step ST2, and the processes of steps ST2 to ST11 are repeatedly performed.

ここで、図3は多重化部3から出力される多重化データの一例を示す説明図である。
ただし、図3では、3台のリアルタイムデータ符号化部1と、1台の非リアルタイムデータ出力部2がデータ多重装置に搭載されている場合の多重化データの一例を示している。
多重化部3は、上述したように、多重化データの出力レートOUTrateが所定の伝送レートTRNrateと一致するように、リアルタイムデータの符号化データ(1)〜(3)と非リアルタイムデータとを多重化するので、リアルタイムデータの符号化データ(1)〜(3)と非リアルタイムデータとの合計レートは、常に伝送レートTRNrateと一致する。
Here, FIG. 3 is an explanatory diagram showing an example of multiplexed data output from the multiplexing unit 3.
However, FIG. 3 shows an example of multiplexed data when three real-time data encoding units 1 and one non-real-time data output unit 2 are mounted on the data multiplexing device.
As described above, the multiplexing unit 3 multiplexes the encoded data (1) to (3) of the real-time data and the non-real-time data so that the output rate OUTrate of the multiplexed data matches the predetermined transmission rate TRNrate. Therefore, the total rate of the encoded data (1) to (3) of the real-time data and the non-real-time data always matches the transmission rate TRNrate.

ただし、リアルタイムデータの符号化データ(1)〜(3)の出力レートは、入力画像の複雑さ等により変動する。
このため、所望の平均レートAVErateref(図3の中段の点線)が予め設定され、リアルタイムデータの符号化データ(1)〜(3)の出力レートの合計が、所望の平均レートAVEraterefの付近で変動する。
However, the output rate of the encoded data (1) to (3) of the real-time data varies depending on the complexity of the input image.
For this reason, a desired average rate AVErate ref (the middle dotted line in FIG. 3) is preset, and the sum of the output rates of the encoded data (1) to (3) of the real-time data is in the vicinity of the desired average rate AVErate ref . Fluctuates.

例えば、リアルタイムデータの符号化データ(1)〜(3)の出力レートの合計が、所望の平均レートAVEraterefを超えた場合には、リアルタイムデータレート制御部4が、3台のリアルタイムデータ符号化部1に対して、符号化データの符号量を下げる指示を出力することで、リアルタイムデータの符号化データ(1)〜(3)の出力レートが下がり、最終的に符号化データ(1)〜(3)の出力レートの合計が所望の平均レートAVEraterefに近づくことになる。
逆に、リアルタイムデータの符号化データ(1)〜(3)の出力レートの合計が、所望の平均レートAVEraterefに満たない場合には、リアルタイムデータレート制御部4が、3台のリアルタイムデータ符号化部1に対して、符号化データの符号量を上げる指示を出力することで、リアルタイムデータの符号化データ(1)〜(3)の出力レートが上がり、最終的に符号化データ(1)〜(3)の出力レートの合計が所望の平均レートAVEraterefに近づくことになる。
For example, when the sum of the output rates of the encoded data (1) to (3) of the real-time data exceeds a desired average rate AVErate ref , the real-time data rate control unit 4 encodes three real-time data By outputting an instruction to reduce the code amount of the encoded data to the unit 1, the output rate of the encoded data (1) to (3) of the real-time data is lowered, and finally the encoded data (1) to The sum of the output rates in (3) approaches the desired average rate AVErate ref .
On the other hand, when the total output rate of the encoded data (1) to (3) of the real-time data is less than the desired average rate AVErate ref , the real-time data rate control unit 4 uses the three real-time data codes. By outputting an instruction for increasing the code amount of the encoded data to the encoding unit 1, the output rate of the encoded data (1) to (3) of the real-time data is increased, and finally the encoded data (1) The sum of the output rates of (3) approaches the desired average rate AVErate ref .

このように、実際に出力しているリアルタイムデータの符号化データ(1)〜(3)の出力レートの合計を監視し、所望の平均レートAVEraterefとの差に応じて符号化データ(1)〜(3)の符号量を調整することで、リアルタイムデータの総レートと非リアルタイムデータの総レートを所望のレートに近づけることができる。
このとき、リアルタイムデータの符号化データ(1)〜(3)の一時的な符号量の増減を許しているため、急激な画質低下は発生せずに、安定した画質のリアルタイム番組の多重化が行える。
In this way, the sum of the output rates of the encoded data (1) to (3) of the real-time data that is actually output is monitored, and the encoded data (1) according to the difference from the desired average rate AVErate ref. By adjusting the amount of code in (3), the total rate of real-time data and the total rate of non-real-time data can be brought close to desired rates.
At this time, since the temporary code amount of the encoded data (1) to (3) of the real-time data is allowed to increase / decrease, a real-time program with stable image quality can be multiplexed without causing a sharp image quality degradation. Yes.

ただし、リアルタイムデータレート制御部4は、リアルタイムデータの符号化データの平均レートAVErateを計測する際、ある期間毎に平均レートAVErateを計測して、その平均レートAVErateが所望の平均レートAVEraterefに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御しようとすると、その時点でのリアルタイムデータの符号化データの平均レートAVErateを所望の平均レートAVEraterefに近づけることができるが、長い期間で見ると、リアルタイムデータの符号化データの平均レートAVErateが所望の平均レートAVEraterefからずれてしまうことがある。 However, when the real-time data rate control unit 4 measures the average rate AVErate of the encoded data of the real-time data, the real-time data rate control unit 4 measures the average rate AVErate every certain period, and the average rate AVErate approaches the desired average rate AVErate ref . As described above, when the code amount of the encoded data output from the real-time data encoding units 1a and 1b is to be controlled, the average rate AVErate of the encoded data of the real-time data at that time is brought close to the desired average rate AVErate ref . However, when viewed over a long period, the average rate AVErate of the encoded data of real-time data may deviate from the desired average rate AVErate ref .

そこで、リアルタイムデータレート制御部4は、多重化部3から多重化データの出力が開始された時点TSTARTから多重化データに含まれているリアルタイムデータの符号化データのデータ量Dを累積するとともに、その出力開始時点TSTARTから現時点TNOWに至るまでの経過時間ΔT(=TNOW−TSTART)と所望の平均レートAVEraterefを乗算する。
そして、リアルタイムデータレート制御部4は、データ量Dの累積値Daccumと、経過時間ΔTと所望の平均レートAVEraterefの乗算結果ΔT×AVEraterefとを比較し、データ量Dの累積値Daccumが乗算結果ΔT×AVEraterefより大きければ、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与える。
一方、データ量Dの累積値Daccumが乗算結果ΔT×AVEraterefより小さければ、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与える。
このようにすることで、データ量Dの累積値Daccumを所望のデータ総量に近づけることができるため、長い期間で見ても、リアルタイムデータの符号化データの平均レートAVErateを所望の平均レートAVEraterefに近づけることができる。
Therefore, the real-time data rate control unit 4 accumulates the data amount D of the encoded data of the real-time data included in the multiplexed data from the time T START when the output of the multiplexed data from the multiplexing unit 3 is started. The elapsed time ΔT (= T NOW −T START ) from the output start time T START to the current time T NOW is multiplied by the desired average rate AVErate ref .
The real-time data rate control unit 4 compares the accumulated value Daccum of the data amount D with the multiplication result ΔT × AVErate ref of the elapsed time ΔT and the desired average rate AVErate ref , and multiplies the accumulated value Daccum of the data amount D. If the result is larger than ΔT × AVErate ref, an instruction to reduce the code amount of the encoded data is given to the real-time data encoding units 1a and 1b.
On the other hand, if the accumulated value Daccum of the data amount D is smaller than the multiplication result ΔT × AVErate ref, an instruction to increase the code amount of the encoded data is given to the real-time data encoding units 1a and 1b.
In this way, since the accumulated value Daccum of the data amount D can be brought close to the desired total data amount, the average rate AVErate of the encoded data of the real-time data can be set to the desired average rate AVErate ref even in a long period of time. Can be approached.

図4は3種類のビデオ画質をほぼ一定にしてビデオデータを符号化したときの各ビデオデータの符号化データのビットレートを示す説明図である。
各ビデオデータの符号化データは、ビットレートが時々刻々と変動し、3つの符号化データの総出力レートも変動する。
図5は図4のビデオデータの符号化データの情報量の累計結果を示す説明図である。
また、図6は情報量の累計結果と、所望の累計情報量(リアルタイムデータの符号化データの所望の平均レートを120kbpsとする場合の所望の累計情報量)との差を示す説明図である。
図5のように、符号化データの総出力レートのレート変動を多少許容することで、画質が一定の符号化処理を行えるとともに、所望の平均レートも達成することができる。
FIG. 4 is an explanatory diagram showing the bit rate of the encoded data of each video data when the video data is encoded with the three types of video image quality being substantially constant.
The bit rate of the encoded data of each video data varies from moment to moment, and the total output rate of the three encoded data also varies.
FIG. 5 is an explanatory diagram showing a cumulative result of the information amount of the encoded data of the video data in FIG.
FIG. 6 is an explanatory diagram showing the difference between the accumulated information amount and the desired accumulated information amount (desired accumulated information amount when the desired average rate of encoded data of real-time data is 120 kbps). .
As shown in FIG. 5, by allowing the rate variation of the total output rate of encoded data to some extent, it is possible to perform encoding processing with a constant image quality and to achieve a desired average rate.

以上で明らかなように、この実施の形態1によれば、リアルタイムデータ符号化部1a,1b及び非リアルタイムデータ出力部2a,2bから出力された符号化データのうち、リアルタイムデータ符号化部1a,1bから出力されたリアルタイムデータの符号化データを優先的に多重化し、その多重化データの出力レートOUTrateと所定の伝送レートTRNrateの差分の範囲内で、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータを多重化して出力する多重化部3を設け、リアルタイムデータレート制御部4が、多重化部3から出力された多重化データに含まれているリアルタイムデータの符号化データの平均レートAVErateを計測し、その平均レートAVErateが所望の平均レートAVEraterefに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するように構成したので、複数の番組の画質の均等化を図りながら、画質の時間的変動を抑えて、高画質な番組多重を図ることができる効果を奏する。 As apparent from the above, according to the first embodiment, among the encoded data output from the real-time data encoding units 1a and 1b and the non-real-time data output units 2a and 2b, the real-time data encoding unit 1a, The encoded data of the real-time data output from 1b is preferentially multiplexed and output from the non-real-time data output units 2a and 2b within the range of the difference between the output rate OUTrate of the multiplexed data and a predetermined transmission rate TRNrate. A multiplexing unit 3 for multiplexing and outputting the non-real-time data, and the real-time data rate control unit 4 determines the average rate of the encoded data of the real-time data included in the multiplexed data output from the multiplexing unit 3 AVErate is measured, and the average rate AVErate is the desired average rate AVE so as to approach the ate ref, real-time data encoding unit 1a, since it is configured to control the code amount of the coded data outputted from the 1b, while achieving equalization of the image quality of a plurality of programs, the time of image quality There is an effect that it is possible to multiplex programs with high image quality while suppressing fluctuations.

実施の形態2.
上記実施の形態1では、リアルタイムデータレート制御部4が、多重化部3から出力された多重化データに含まれているリアルタイムデータの符号化データの平均レートAVErateを計測し、その平均レートAVErateが所望の平均レートAVEraterefに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するものを示したが、多重化部3から出力された多重化データに含まれている非リアルタイムデータの平均レートAVErate’を計測し、その平均レートAVErate’が所望の平均レートAVErateref’に近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するようにしてもよい。
Embodiment 2. FIG.
In the first embodiment, the real-time data rate control unit 4 measures the average rate AVErate of the encoded data of the real-time data included in the multiplexed data output from the multiplexing unit 3, and the average rate AVErate is Although the control of the code amount of the encoded data output from the real-time data encoding units 1a and 1b so as to approach the desired average rate AVErate ref has been shown, the multiplexed data output from the multiplexing unit 3 is The average rate AVErate ′ of the included non-real-time data is measured, and the encoded data output from the real-time data encoding units 1a and 1b is adjusted so that the average rate AVErate ′ approaches the desired average rate AVErate ref ′. The code amount may be controlled.

図7はこの発明の実施の形態2によるデータ多重化装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
リアルタイムデータレート制御部5は例えばCPUを実装している半導体集積回路、あるいは、ワンチップマイコンなどから構成されており、多重化部3から出力された多重化データに含まれている非リアルタイムデータの平均レートAVErate’を計測し、その平均レートAVErat’が所望の平均レートAVErateref’に近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御する処理を実施する。
即ち、リアルタイムデータレート制御部5は多重化部3から出力された多重化データに含まれている非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’より高い場合、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与え、その非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’より低い場合、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与える処理を実施する。
なお、リアルタイムデータレート制御部5はリアルタイムデータレート制御手段を構成している。
FIG. 7 is a block diagram showing a data multiplexing apparatus according to Embodiment 2 of the present invention. In FIG. 7, the same reference numerals as those in FIG.
The real-time data rate control unit 5 is composed of, for example, a semiconductor integrated circuit on which a CPU is mounted or a one-chip microcomputer, and the non-real-time data included in the multiplexed data output from the multiplexing unit 3 The average rate AVErate ′ is measured, and the process of controlling the code amount of the encoded data output from the real-time data encoding units 1a and 1b is performed so that the average rate AVErate ′ approaches the desired average rate AVErate ref ′ To do.
That is, if the average rate AVErate ′ of the non-real-time data included in the multiplexed data output from the multiplexing unit 3 is higher than the desired average rate AVErate ref ′, the real-time data rate control unit 5 An instruction to increase the amount is given to the real-time data encoding units 1a and 1b, and if the average rate AVErate ′ of the non-real-time data is lower than the desired average rate AVErate ref ′, an instruction to decrease the code amount of the encoded data is provided. The process given to the conversion units 1a and 1b is performed.
The real time data rate control unit 5 constitutes a real time data rate control means.

図7では、データ多重化装置の構成要素であるリアルタイムデータ符号化部1a,1b、非リアルタイムデータ出力部2a,2b、多重化部3及びリアルタイムデータレート制御部5のそれぞれが専用のハードウェアで構成されているものを想定しているが、データ多重化装置がコンピュータで構成される場合、リアルタイムデータ符号化部1a,1b、非リアルタイムデータ出力部2a,2b、多重化部3及びリアルタイムデータレート制御部5の処理内容を記述しているプログラムをコンピュータのメモリに格納し、当該コンピュータのCPUが当該メモリに格納されているプログラムを実行するようにしてもよい。
図8はこの発明の実施の形態2によるデータ多重化装置の処理内容(データ多重化方法)を示すフローチャートである。
In FIG. 7, each of the real-time data encoding units 1a and 1b, the non-real-time data output units 2a and 2b, the multiplexing unit 3 and the real-time data rate control unit 5 which are components of the data multiplexing apparatus is a dedicated hardware. However, when the data multiplexing apparatus is configured by a computer, the real-time data encoding units 1a and 1b, the non-real-time data output units 2a and 2b, the multiplexing unit 3, and the real-time data rate are assumed. A program describing the processing contents of the control unit 5 may be stored in a memory of a computer, and the CPU of the computer may execute the program stored in the memory.
FIG. 8 is a flowchart showing the processing contents (data multiplexing method) of the data multiplexing apparatus according to the second embodiment of the present invention.

次に動作について説明する。
ただし、リアルタイムデータレート制御部5以外は、上記実施の形態1と同様であるため、リアルタイムデータレート制御部5の処理内容のみを説明する。
リアルタイムデータレート制御部5は、多重化部3が多重化データを出力すると、その多重化データに含まれている非リアルタイムデータの平均レートAVErate’を計測する(ステップST21)。
リアルタイムデータレート制御部5は、非リアルタイムデータの平均レートAVErate’を計測すると、その平均レートAVErate’が所望の平均レートAVErateref’に近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御する。
Next, the operation will be described.
However, since the components other than the real-time data rate control unit 5 are the same as those in the first embodiment, only the processing contents of the real-time data rate control unit 5 will be described.
When the multiplexing unit 3 outputs the multiplexed data, the real-time data rate control unit 5 measures the average rate AVErate ′ of the non-real time data included in the multiplexed data (step ST21).
When the real-time data rate control unit 5 measures the average rate AVErate ′ of the non-real-time data, the real-time data rate control unit 5 outputs the average rate AVErate ′ from the real-time data encoding units 1a and 1b so as to approach the desired average rate AVErate ref ′. Controls the amount of encoded data.

即ち、リアルタイムデータレート制御部5は、非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’より高い場合(ステップST22)、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与える(ステップST23)。
符号化データの符号量を上げる指示としては、例えば、先に設定されている画質レベルを上げる(画質を向上させる)指示が考えられる。
これにより、リアルタイムデータ符号化部1a,1bから出力されるリアルタイムデータの符号化データの平均レートAVErateが上がるため、多重化部3で非リアルタイムデータ出力部2a,2bから出力される非リアルタイムデータが多重化される割合が低下する。そのため、非リアルタイムデータの平均レートAVErate’を所望の平均レートAVErateref’に近づけることが可能になる。
That is, when the average rate AVErate ′ of the non-real-time data is higher than the desired average rate AVErate ref ′ (step ST22), the real-time data rate control unit 5 gives an instruction to increase the code amount of the encoded data. , 1b (step ST23).
As an instruction to increase the code amount of encoded data, for example, an instruction to increase a previously set image quality level (improve image quality) can be considered.
As a result, the average rate AVErate of the encoded data of the real-time data output from the real-time data encoding units 1a and 1b increases, so that the non-real-time data output from the non-real-time data output units 2a and 2b in the multiplexing unit 3 The rate of multiplexing is reduced. Therefore, the average rate AVErate ′ of the non-real time data can be brought close to the desired average rate AVErate ref ′.

リアルタイムデータレート制御部5は、非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’より低い場合(ステップST22)、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与える(ステップST24)。
符号化データの符号量を下げる指示としては、例えば、先に設定されている画質レベルを下げる(画質を低下させる)指示が考えられる。
これにより、リアルタイムデータ符号化部1a,1bから出力されるリアルタイムデータの符号化データの平均レートAVErateが下がるため、多重化部3で非リアルタイムデータ出力部2a,2bから出力される非リアルタイムデータが多重化される割合が上昇する。そのため、非リアルタイムデータの平均レートAVErate’を所望の平均レートAVErateref’に近づけることが可能になる。
When the average rate AVErate ′ of the non-real-time data is lower than the desired average rate AVErate ref ′ (step ST22), the real-time data rate control unit 5 gives an instruction to reduce the code amount of the encoded data in the real-time data encoding units 1a and 1b. (Step ST24).
As an instruction to reduce the code amount of the encoded data, for example, an instruction to lower the previously set image quality level (decrease the image quality) can be considered.
As a result, the average rate AVErate of the encoded data of the real-time data output from the real-time data encoding units 1a and 1b is lowered, so that the non-real-time data output from the non-real-time data output units 2a and 2b in the multiplexing unit 3 The rate of multiplexing increases. Therefore, the average rate AVErate ′ of the non-real time data can be brought close to the desired average rate AVErate ref ′.

ここでは、非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’より高い場合、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与える一方、非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’より低い場合、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与えるものを示したが、非リアルタイムデータの平均レートAVErate’と所望の平均レートAVErateref’との差が小さい場合(差が所定の閾値より小さい場合)、符号化データの符号量を変更する指示をリアルタイムデータ符号化部1a,1bに与えないようにしてもよい。
この場合、非リアルタイムデータの平均レートAVErate’と所望の平均レートAVErateref’が近いときには画質レベルが変更されなくなるため、画質を安定させることができる。
Here, when the average rate AVErate ′ of the non-real-time data is higher than the desired average rate AVErate ref ′, an instruction to increase the code amount of the encoded data is given to the real-time data encoding units 1a and 1b, while the average of the non-real-time data is averaged In the case where the rate AVErate ′ is lower than the desired average rate AVErate ref ′, an instruction to reduce the code amount of the encoded data is given to the real-time data encoding units 1a and 1b. When the difference from the desired average rate AVErate ref ′ is small (when the difference is smaller than a predetermined threshold), an instruction to change the code amount of the encoded data may not be given to the real-time data encoding units 1a and 1b. Good.
In this case, since the image quality level is not changed when the average rate AVErate ′ of the non-real time data is close to the desired average rate AVErate ref ′, the image quality can be stabilized.

また、リアルタイムデータレート制御部5は、多重化部3から出力された多重化データの調査を行わずに、多重化部3より非リアルタイムデータのレート情報の通知を受けて、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するようにしてもよい。
以降、ステップST2の処理に戻り、ステップST2〜ST24の処理が繰り返し実施される。
Further, the real-time data rate control unit 5 receives the notification of the rate information of the non-real-time data from the multiplexing unit 3 without checking the multiplexed data output from the multiplexing unit 3, and receives the real-time data encoding unit. You may make it control the code amount of the coding data output from 1a, 1b.
Thereafter, the process returns to step ST2, and the processes of steps ST2 to ST24 are repeatedly performed.

ただし、リアルタイムデータレート制御部5は、非リアルタイムデータの平均レートAVErate’を計測する際、ある期間毎に平均レートAVErate’を計測して、その平均レートAVErate’が所望の平均レートAVErateref’に近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御しようとすると、その時点での非リアルタイムデータの平均レートAVErate’を所望の平均レートAVErateref’に近づけることができるが、長い期間で見ると、非リアルタイムデータの平均レートAVErate’が所望の平均レートAVErateref’からずれてしまうことがある。 However, when the real-time data rate control unit 5 measures the average rate AVErate ′ of the non-real-time data, the real-time data rate control unit 5 measures the average rate AVErate ′ every certain period, and the average rate AVErate ′ becomes the desired average rate AVErate ref ′. If the code amount of the encoded data output from the real-time data encoders 1a and 1b is controlled so as to approach, the average rate AVErate ′ of the non-real-time data at that time is brought close to the desired average rate AVErate ref ′. However, when viewed over a long period of time, the average rate AVErate ′ of the non-real-time data may deviate from the desired average rate AVErate ref ′.

そこで、リアルタイムデータレート制御部5は、多重化部3から多重化データの出力が開始された時点TSTARTから多重化データに含まれている非リアルタイムデータのデータ量Dを累積するとともに、その出力開始時点TSTARTから現時点TNOWに至るまでの経過時間ΔT(=TNOW−TSTART)と所望の平均レートAVErateref’を乗算する。
そして、リアルタイムデータレート制御部5は、データ量Dの累積値Daccumと、経過時間ΔTと所望の平均レートAVErateref’の乗算結果ΔT×AVErateref’とを比較し、データ量Dの累積値Daccumが乗算結果ΔT×AVErateref’より大きければ、符号化データの符号量を上げる指示をリアルタイムデータ符号化部1a,1bに与える。
一方、データ量Dの累積値Daccumが乗算結果ΔT×AVErateref’より小さければ、符号化データの符号量を下げる指示をリアルタイムデータ符号化部1a,1bに与える。
このようにすることで、データ量Dの累積値Daccumを所望のデータ総量に近づけることができるため、長い期間で見ても、非リアルタイムデータの平均レートAVErate’を所望の平均レートAVErateref’に近づけることができる。
Therefore, the real-time data rate control unit 5 accumulates the data amount D of the non-real-time data included in the multiplexed data from the time T START when the output of the multiplexed data from the multiplexing unit 3 is started, and outputs the accumulated data amount D. The elapsed time ΔT (= T NOW −T START ) from the start time T START to the current time T NOW is multiplied by a desired average rate AVErate ref ′.
Then, the real-time data rate control unit 5 compares the accumulated value Daccum of the data amount D with the multiplication result ΔT × AVErate ref ′ of the elapsed time ΔT and the desired average rate AVErate ref ′, and the accumulated value Daccum of the data amount D Is larger than the multiplication result ΔT × AVErate ref ′, an instruction to increase the code amount of the encoded data is given to the real-time data encoding units 1a and 1b.
On the other hand, if the accumulated value Daccum of the data amount D is smaller than the multiplication result ΔT × AVErate ref ′, an instruction to reduce the code amount of the encoded data is given to the real-time data encoding units 1a and 1b.
In this way, since the accumulated value Daccum of the data amount D can be brought close to the desired total data amount, the average rate AVErate ′ of the non-real-time data can be changed to the desired average rate AVErate ref ′ even in a long period. You can get closer.

以上で明らかなように、この実施の形態2によれば、リアルタイムデータ符号化部1a,1b及び非リアルタイムデータ出力部2a,2bから出力された符号化データのうち、リアルタイムデータ符号化部1a,1bから出力されたリアルタイムデータの符号化データを優先的に多重化し、その多重化データの出力レートOUTrateと所定の伝送レートTRNrateの差分の範囲内で、非リアルタイムデータ出力部2a,2bから出力された非リアルタイムデータを多重化して出力する多重化部3を設け、リアルタイムデータレート制御部5が、多重化部3から出力された多重化データに含まれている非リアルタイムデータの平均レートAVErate’を計測し、その平均レートAVErate’が所望の平均レートAVEraterefに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するように構成したので、複数の番組の画質の均等化を図りながら、画質の時間的変動を抑えて、高画質な番組多重を図ることができるとともに、非リアルタイムデータの平均レートを保証することができる効果を奏する。 As is apparent from the above, according to the second embodiment, among the encoded data output from the real-time data encoding units 1a and 1b and the non-real-time data output units 2a and 2b, the real-time data encoding unit 1a, The encoded data of the real-time data output from 1b is preferentially multiplexed and output from the non-real-time data output units 2a and 2b within the range of the difference between the output rate OUTrate of the multiplexed data and a predetermined transmission rate TRNrate. The non-real time data is multiplexed and output by the multiplexing unit 3, and the real time data rate control unit 5 sets the average rate AVErate 'of the non-real time data included in the multiplexed data output from the multiplexing unit 3. measured, the average rate AVErate 'desired average rate AVErate ref Since the code amount of the encoded data output from the real-time data encoding units 1a and 1b is controlled so as to approach, the temporal variation of the image quality is suppressed while equalizing the image quality of a plurality of programs. Thus, high-quality program multiplexing can be achieved, and the average rate of non-real-time data can be guaranteed.

なお、この実施の形態2では、リアルタイムデータレート制御部5が、多重化部3から出力された多重化データに含まれている非リアルタイムデータの平均レートAVErate’が所望の平均レートAVEraterefに近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するものを示したが、非リアルタイムデータ出力部2a,2bが非リアルタイムデータを固定レートで多重化部3に出力し、多重化部3が、非リアルタイムデータを一時的に入力バッファ(図示せず)に蓄積しながら多重化を行う場合、リアルタイムデータレート制御部5が、多重化部3の入力バッファに蓄積された非リアルタイムデータのデータ総量に基づいて、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するようにしてもよい。
この場合も、非リアルタイムデータの出力データ総量を所望の値に保つことができる。また、リアルタイムデータに含まれるビデオ画質の急激な変動を抑えることができる。
In the second embodiment, the real-time data rate control unit 5 causes the average rate AVErate ′ of the non-real-time data included in the multiplexed data output from the multiplexing unit 3 to approach the desired average rate AVErate ref . As described above, the control unit controls the code amount of the encoded data output from the real-time data encoding units 1a and 1b, but the non-real-time data output units 2a and 2b multiplex the non-real-time data at a fixed rate. When the multiplexing unit 3 performs multiplexing while temporarily storing non-real-time data in an input buffer (not shown), the real-time data rate control unit 5 stores the non-real-time data in the input buffer of the multiplexing unit 3. Based on the accumulated total amount of non-real time data, it is output from the real time data encoding units 1a and 1b. It may be controlled code amount of No. data.
Also in this case, the total output data amount of the non-real time data can be kept at a desired value. In addition, it is possible to suppress a sudden change in video image quality included in the real-time data.

図6に示すように、実際のリアルタイムデータの総量と所望のリアルタイムデータの総量との差が大きくなると、非リアルタイムデータの総量も所望の非リアルタイムデータの総量からずれてしまう。
例えば、非リアルタイムデータを或るレートで伝送することを想定した場合、実際のデータ総量と想定のデータ総量の差を想定レートで割った時間だけ、非リアルタイムデータの送信タイミングがずれることになる。
図6の例では、非リアルタイムデータの想定レートが120kbpsとして、実際のリアルタイムデータの総量と所望のリアルタイムデータの総量との差が12kbyteであった場合、12k×8/120k=0.8となり、非リアルタイムデータの送信タイミングが、0.8秒だけ想定のタイミングよりずれることになる。
As shown in FIG. 6, when the difference between the total amount of actual real-time data and the total amount of desired real-time data increases, the total amount of non-real-time data also deviates from the total amount of desired non-real-time data.
For example, when it is assumed that non-real-time data is transmitted at a certain rate, the transmission timing of non-real-time data is shifted by the time obtained by dividing the difference between the actual total data amount and the assumed total data amount by the assumed rate.
In the example of FIG. 6, when the assumed rate of non-real-time data is 120 kbps, and the difference between the total amount of actual real-time data and the total amount of desired real-time data is 12 kbytes, 12k × 8 / 120k = 0.8, The transmission timing of the non-real time data is shifted from the assumed timing by 0.8 seconds.

そのため、非リアルタイムデータの実際のデータ総量と想定のデータ総量との差が、ある閾値を超えないように、リアルタイムデータレート制御部5が、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御することで、非リアルタイムデータの送信タイミングが、想定の送信タイミングから大きく変動することがなくなる。
このように、非リアルタイムデータの実際のデータ総量と想定のデータ総量との差が所定の閾値以下になるように制御することで、非リアルタイムデータの送信タイミングが、想定の送信タイミングから大きくずれることがなくなり、復号装置側で想定したタイミングで受信することが可能になる。
For this reason, the real-time data rate control unit 5 performs the encoding output from the real-time data encoding units 1a and 1b so that the difference between the actual total data amount of the non-real-time data and the assumed total data amount does not exceed a certain threshold. By controlling the code amount of data, the transmission timing of non-real-time data does not vary greatly from the assumed transmission timing.
In this way, by controlling the difference between the actual total amount of non-real-time data and the estimated total amount of data to be equal to or less than a predetermined threshold, the transmission timing of non-real-time data is greatly deviated from the assumed transmission timing. Therefore, it is possible to receive at the timing assumed on the decoding device side.

上記実施の形態1,2では、リアルタイムデータ符号化部1a,1bが、リアルタイムデータとして、例えば、ビデオデータを含むメディアデータを符号化する際、設定した画質レベルが得られるように、そのリアルタイムデータをリアルタイムに符号化(ビデオ画質が一定になるように符号化)し、リアルタイムデータレート制御部4,5から符号量を下げる指示を受けると、画質が少し低下するように符号化処理を実施して、符号化データの符号量を低下させる。逆に、リアルタイムデータレート制御部4,5から符号量を上げる指示を受けると、画質が少し向上するように符号化処理を実施して、符号化データの符号量を増加させる。
このように、リアルタイムデータ符号化部1a,1bでは、符号化データの出力レートを直接制御するのではなく、画質レベルを制御するようにしているので、リアルタイムデータレート制御部4,5から指示を受けなければ、画質が一定になる。また、リアルタイムデータレート制御部4,5から指示を受けても、画質を安定的に少しだけ調整するため、画質の変動は抑えられる。
なお、リアルタイムデータ符号化部1a,1bが画質レベルを制御するのではなく、符号化データの出力レートを所望のレートに合わせようとすると、入力画像の複雑さに依存して画質レベルが変動してしまうため、画質レベルが安定しなくなる不具合を生じることが想定される。
In the first and second embodiments, when the real-time data encoding units 1a and 1b encode media data including video data as real-time data, for example, the real-time data is obtained so that a set image quality level is obtained. Is encoded in real time (encoding so that the video image quality is constant), and when an instruction to reduce the code amount is received from the real time data rate control units 4 and 5, the encoding process is performed so that the image quality is slightly reduced. Thus, the code amount of the encoded data is reduced. Conversely, when an instruction to increase the code amount is received from the real-time data rate control units 4 and 5, encoding processing is performed so that the image quality is slightly improved, and the code amount of the encoded data is increased.
Thus, since the real-time data encoding units 1a and 1b do not directly control the output rate of the encoded data, but control the image quality level, the real-time data rate control units 4 and 5 give instructions. If not, the image quality will be constant. Further, even if an instruction is received from the real-time data rate control units 4 and 5, the image quality is stably adjusted only slightly, so that fluctuations in image quality can be suppressed.
When the real-time data encoding units 1a and 1b do not control the image quality level but try to match the output rate of the encoded data to a desired rate, the image quality level varies depending on the complexity of the input image. Therefore, it is assumed that the image quality level becomes unstable.

上記実施の形態1,2では、リアルタイムデータレート制御部4,5が、逐次、平均レートAVErate(AVErate’)が所望の平均レートAVErateref(AVErateref’)に近づくように、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するものを示したが、リアルタイムデータレート制御部4,5が制御を行う度に、リアルタイムデータ符号化部1a,1bから出力される符号化データの画質が変動する。
リアルタイムデータ符号化部1a,1bから出力される符号化データの画質の変動を抑制するため、リアルタイムデータレート制御部4,5における符号量の制御回数及び制御幅を制限し、所定の制御回数及び制御幅の範囲内で、リアルタイムデータレート制御部4,5が符号化データの符号量を制御するようにしてもよい。
In the first and second embodiments, the real-time data rate control units 4 and 5 sequentially change the real-time data encoding unit so that the average rate AVErate (AVErate ′) approaches the desired average rate AVErate ref (AVErate ref ′). Although the control of the code amount of the encoded data output from 1a and 1b is shown, the code output from the real-time data encoding units 1a and 1b each time the real-time data rate control units 4 and 5 perform control. The image quality of the digitized data varies.
In order to suppress fluctuations in the image quality of the encoded data output from the real-time data encoding units 1a and 1b, the number of control times and the control width of the code amount in the real-time data rate control units 4 and 5 are limited. The real-time data rate controllers 4 and 5 may control the code amount of the encoded data within the control width.

リアルタイムデータレート制御部4,5における符号量の制御回数として、例えば、1分間の上限制御回数“N回”が設定された場合、リアルタイムデータレート制御部4,5における制御回数が、1分間でN回を超えないように制限される。
また、リアルタイムデータレート制御部4,5における符号量の制御幅として、例えば、1回の制御による画質の上限変動幅Wが設定された場合、リアルタイムデータレート制御部4,5における1回の制御で、画質の上限変動幅Wを超えないように制限される。
For example, when the upper limit control count “N times” for 1 minute is set as the number of times of code amount control in the real-time data rate control units 4 and 5, the control count in the real-time data rate control units 4 and 5 is 1 minute. It is limited not to exceed N times.
Further, as the control range of the code amount in the real-time data rate control units 4 and 5, for example, when the upper limit fluctuation width W of the image quality by one control is set, the control in one time in the real-time data rate control units 4 and 5 Thus, the image quality is limited so as not to exceed the upper limit fluctuation range W of the image quality.

ここでは、リアルタイムデータレート制御部4,5における符号量の制御回数及び制御幅を制限するものを示したが、リアルタイムデータレート制御部4,5が、多重化部3から多重化データの出力が開始された時点TSTARTから非リアルタイムデータのデータ量Dを累積し、そのデータ量Dの累積値Daccumと所望のデータ総量の差が所定値を超えた場合に限り、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量を制御するようにしてもよい。
これにより、データ量Dの累積値Daccumと所望のデータ総量の差が所定値の範囲内で変動している間は、リアルタイムデータ符号化部1a,1bから出力される符号化データの符号量が制御されないため、リアルタイムデータの画質が安定する。また、差が所定値の範囲を超えた場合でも、大きく画質を変えるような制御を与えず、少しずつ画質を変更するようにすることで、画質変化をなだらかに推移させることができる。
Here, what restricts the number of times of control and the control width of the code amount in the real-time data rate control units 4 and 5 has been shown, but the real-time data rate control units 4 and 5 accumulating the data amount D of the non-real-time data from the start point in time T sTART, only if the difference between the desired total data amount and the accumulated value Daccum the data amount D exceeds a predetermined value, the real-time data encoding unit 1a, The code amount of the encoded data output from 1b may be controlled.
Thereby, while the difference between the accumulated value Daccum of the data amount D and the desired total amount of data fluctuates within a predetermined value range, the code amount of the encoded data output from the real-time data encoding units 1a and 1b is increased. Since it is not controlled, the image quality of real-time data is stabilized. Even when the difference exceeds the range of the predetermined value, the image quality change can be made to change smoothly by changing the image quality little by little without giving control that greatly changes the image quality.

なお、本願発明はその発明の範囲内において、各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。   In the present invention, within the scope of the invention, any combination of the embodiments, or any modification of any component in each embodiment, or omission of any component in each embodiment is possible. .

1a,1b リアルタイムデータ符号化部(リアルタイムデータ符号化手段)、2a,2b 非リアルタイムデータ出力部(非リアルタイムデータ出力手段)、3 多重化部(多重化手段)、4,5 リアルタイムデータレート制御部(リアルタイムデータレート制御手段)。   1a, 1b Real-time data encoding section (real-time data encoding means), 2a, 2b Non-real-time data output section (non-real-time data output means), 3 Multiplexing section (multiplexing means), 4, 5 Real-time data rate control section (Real time data rate control means).

Claims (9)

復号装置側でリアルタイムに復号されて再生されることが想定されるリアルタイムデータをリアルタイムに符号化して、上記リアルタイムデータに係る可変レートの符号化データを出力するリアルタイムデータ符号化手段と、
上記復号装置側で非リアルタイムに再生されることが想定される非リアルタイムデータを出力する非リアルタイムデータ出力手段と、
予め設定されている伝送レートの範囲内で、上記リアルタイムデータ符号化手段から出力された上記符号化データを多重化し、その多重化した上記符号化データのデータレートと所定の伝送レートの差分の範囲内で、上記非リアルタイムデータ出力手段から出力された非リアルタイムデータをさらに多重化して多重化データを出力する多重化手段と、
上記多重化手段から多重化データの出力が開始された時点から上記多重化データに含まれている上記符号化データのデータ量を累積するとともに、上記多重化データの出力が開始された時点から現時点に至るまでの経過時間と予め設定されている基準レートを乗算して、その乗算結果と上記データ量の累積値との差分を算出し、上記差分が所定の範囲を超えた場合に、上記差分が小さくなるように上記符号化データの符号量を制御する指示を上記リアルタイムデータ符号化手段に与えるリアルタイムデータレート制御手段と
を備えたデータ多重化装置。
Real-time data encoding means for encoding real-time data assumed to be decoded and reproduced in real time on the decoding device side in real time, and outputting variable rate encoded data related to the real-time data;
Non-real time data output means for outputting non-real time data assumed to be reproduced in non-real time on the decoding device side;
The encoded data output from the real-time data encoding means is multiplexed within a preset transmission rate range, and the range of the difference between the data rate of the multiplexed encoded data and a predetermined transmission rate A multiplexing means for further multiplexing the non-real time data output from the non-real time data output means and outputting multiplexed data;
The amount of encoded data included in the multiplexed data is accumulated from the time when output of multiplexed data from the multiplexing means is started, and the current time from the time when output of the multiplexed data is started. Multiply the elapsed time to reach the preset reference rate, calculate the difference between the multiplication result and the accumulated value of the data amount, and if the difference exceeds a predetermined range, A data multiplexing apparatus comprising: real-time data rate control means for giving an instruction to control the code amount of the encoded data to the real-time data encoding means so that.
上記リアルタイムデータレート制御手段は、上記差分が所定の範囲を超えており、上記累積値が上記乗算結果より大きい場合、上記符号化データの符号量を下げる指示を上記リアルタイムデータ符号化手段に与え、上記累積値が上記乗算結果より小さい場合、上記符号化データの符号量を上げる指示を上記リアルタイムデータ符号化手段に与えることを特徴とする請求項1記載のデータ多重化装置。 The real-time data rate control means gives an instruction to the real-time data encoding means to reduce the code amount of the encoded data when the difference exceeds a predetermined range and the accumulated value is larger than the multiplication result, 2. The data multiplexing apparatus according to claim 1, wherein when the accumulated value is smaller than the multiplication result, an instruction to increase the code amount of the encoded data is given to the real-time data encoding means. 復号装置側でリアルタイムに復号されて再生されることが想定されるリアルタイムデータをリアルタイムに符号化して、上記リアルタイムデータに係る可変レートの符号化データを出力するリアルタイムデータ符号化手段と、
上記復号装置側で非リアルタイムに再生されることが想定される非リアルタイムデータを出力する非リアルタイムデータ出力手段と、
予め設定されている伝送レートの範囲内で、上記リアルタイムデータ符号化手段から出力された上記符号化データを多重化し、その多重化した上記符号化データのデータレートと所定の伝送レートの差分の範囲内で、上記非リアルタイムデータ出力手段から出力された非リアルタイムデータをさらに多重化して多重化データを出力する多重化手段と、
上記多重化手段から多重化データの出力が開始された時点から上記多重化データに含まれている上記非リアルタイムデータのデータ量を累積するとともに、上記多重化データの出力が開始された時点から現時点に至るまでの経過時間と予め設定されている基準レートを乗算して、その乗算結果と上記データ量の累積値との差分を算出し、上記差分が所定の範囲を超えた場合に、上記差分が小さくなるように上記符号化データの符号量を制御する指示を上記リアルタイムデータ符号化手段に与えるリアルタイムデータレート制御手段と
を備えたデータ多重化装置。
Real-time data encoding means for encoding real-time data assumed to be decoded and reproduced in real time on the decoding device side in real time, and outputting variable rate encoded data related to the real-time data;
Non-real time data output means for outputting non-real time data assumed to be reproduced in non-real time on the decoding device side;
The encoded data output from the real-time data encoding means is multiplexed within a preset transmission rate range, and the range of the difference between the data rate of the multiplexed encoded data and a predetermined transmission rate A multiplexing means for further multiplexing the non-real time data output from the non-real time data output means and outputting multiplexed data;
The amount of the non-real time data included in the multiplexed data is accumulated from the time when output of the multiplexed data from the multiplexing means is started, and the current time from the time when output of the multiplexed data is started Multiply the elapsed time to reach the preset reference rate, calculate the difference between the multiplication result and the accumulated value of the data amount, and if the difference exceeds a predetermined range, A data multiplexing apparatus comprising: real-time data rate control means for giving an instruction to control the code amount of the encoded data to the real-time data encoding means so that.
上記リアルタイムデータレート制御手段は、上記差分が所定の範囲を超えており、上記累積値が上記乗算結果より大きい場合、上記符号化データの符号量を上げる指示を上記リアルタイムデータ符号化手段に与え、上記累積値が上記乗算結果より小さい場合、上記符号化データの符号量を下げる指示を上記リアルタイムデータ符号化手段に与えることを特徴とする請求項3記載のデータ多重化装置。 The real-time data rate control means gives an instruction to the real-time data encoding means to increase the code amount of the encoded data when the difference exceeds a predetermined range and the accumulated value is larger than the multiplication result, 4. The data multiplexing apparatus according to claim 3, wherein when the accumulated value is smaller than the multiplication result, an instruction to reduce the code amount of the encoded data is given to the real-time data encoding means. 上記リアルタイムデータレート制御手段は、上記差分が所定値以下になるように、上記リアルタイムデータ符号化手段から出力される符号化データの符号量を制御することを特徴とする請求項1から請求項4のうちのいずれか1項記載のデータ多重化装置。   5. The real-time data rate control means controls a code amount of encoded data output from the real-time data encoding means so that the difference becomes a predetermined value or less. The data multiplexing device according to any one of the above. 上記リアルタイムデータ符号化手段は、上記リアルタイムデータがビデオデータを含むメディアデータである場合、上記リアルタイムデータを符号化する際、上記ビデオデータの画質が一定になるように符号化を行うことを特徴とする請求項1から請求項のうちのいずれか1項記載のデータ多重化装置。 When the real-time data is media data including video data, the real-time data encoding means performs encoding so that the image quality of the video data is constant when the real-time data is encoded. The data multiplexing device according to any one of claims 1 to 5 . リアルタイムデータ符号化手段が、復号装置側でリアルタイムに復号されて再生されることが想定されるリアルタイムデータをリアルタイムに符号化して、上記リアルタイムデータに係る可変レートの符号化データを出力するリアルタイムデータ符号化処理ステップと、
非リアルタイムデータ出力手段が、上記復号装置側で非リアルタイムに再生されることが想定される非リアルタイムデータを出力する非リアルタイムデータ出力処理ステップと、
多重化手段が、予め設定されている伝送レートの範囲内で、上記リアルタイムデータ符号化処理ステップによって出力された上記符号化データを多重化し、その多重化した上記符号化データのデータレートと所定の伝送レートの差分の範囲内で、上記非リアルタイムデータ出力処理ステップによって出力された非リアルタイムデータをさらに多重化して多重化データを出力する多重化処理ステップと、
リアルタイムデータレート制御手段が、上記多重化処理ステップによって上記多重化データの出力が開始された時点から上記多重化データに含まれている上記符号化データのデータ量を累積するとともに、上記多重化データの出力が開始された時点から現時点に至るまでの経過時間と予め設定されている基準レートを乗算して、その乗算結果と上記データ量の累積値との差分を算出し、上記差分が所定の範囲を超えた場合に、上記差分が小さくなるように上記符号化データの符号量を制御する指示を上記リアルタイムデータ符号化処理ステップに与えるリアルタイムデータレート制御処理ステップと
を備えたデータ多重化方法。
A real-time data encoding unit that encodes real-time data assumed to be decoded and reproduced in real time on a decoding device side in real time, and outputs variable-rate encoded data related to the real-time data Processing step,
A non-real-time data output means for outputting non-real-time data that is assumed to be reproduced in non-real time on the decoding device side;
Multiplexing means multiplexes the encoded data output by the real-time data encoding processing step within a preset transmission rate range, and a data rate of the multiplexed encoded data and a predetermined value Within the range of the transmission rate difference, a multiplexing process step for further multiplexing the non-real time data output by the non-real time data output processing step and outputting multiplexed data;
The real-time data rate control means accumulates the data amount of the encoded data included in the multiplexed data from the time when the output of the multiplexed data is started by the multiplexing processing step, and the multiplexed data Multiply the elapsed time from the start of the output to the current time by a preset reference rate to calculate the difference between the multiplication result and the accumulated value of the data amount . A data multiplexing method comprising: a real-time data rate control processing step for giving an instruction to control the code amount of the encoded data to the real-time data encoding processing step so that the difference becomes small when the range is exceeded .
リアルタイムデータ符号化手段が、復号装置側でリアルタイムに復号されて再生されることが想定されるリアルタイムデータをリアルタイムに符号化して、上記リアルタイムデータに係る可変レートの符号化データを出力するリアルタイムデータ符号化処理ステップと、
非リアルタイムデータ出力手段が、上記復号装置側で非リアルタイムに再生されることが想定される非リアルタイムデータを出力する非リアルタイムデータ出力処理ステップと、
多重化手段が、予め設定されている伝送レートの範囲内で、上記リアルタイムデータ符号化処理ステップによって出力された上記符号化データを多重化し、その多重化した上記符号化データのデータレートと所定の伝送レートの差分の範囲内で、上記非リアルタイムデータ出力処理ステップによって出力された非リアルタイムデータをさらに多重化して多重化データを出力する多重化処理ステップと、
リアルタイムデータレート制御手段が、上記多重化処理ステップによって上記多重化データの出力が開始された時点から上記多重化データに含まれている上記非リアルタイムデータのデータ量を累積するとともに、上記多重化データの出力が開始された時点から現時点に至るまでの経過時間と予め設定されている基準レートを乗算して、その乗算結果と上記データ量の累積値との差分を算出し、上記差分が所定の範囲を超えた場合に、上記差分が小さくなるように上記符号化データの符号量を制御する指示を上記リアルタイムデータ符号化処理ステップに与えるリアルタイムデータレート制御処理ステップと
を備えたデータ多重化方法。
A real-time data encoding unit that encodes real-time data assumed to be decoded and reproduced in real time on a decoding device side in real time, and outputs variable-rate encoded data related to the real-time data Processing step,
A non-real-time data output means for outputting non-real-time data that is assumed to be reproduced in non-real time on the decoding device side;
Multiplexing means multiplexes the encoded data output by the real-time data encoding processing step within a preset transmission rate range, and a data rate of the multiplexed encoded data and a predetermined value Within the range of the transmission rate difference, a multiplexing process step for further multiplexing the non-real time data output by the non-real time data output processing step and outputting multiplexed data;
The real-time data rate control means accumulates the data amount of the non-real-time data included in the multiplexed data from the time when output of the multiplexed data is started by the multiplexing processing step, and the multiplexed data Multiply the elapsed time from the start of the output to the current time by a preset reference rate to calculate the difference between the multiplication result and the accumulated value of the data amount . A data multiplexing method comprising: a real-time data rate control processing step for giving an instruction to control the code amount of the encoded data to the real-time data encoding processing step so that the difference becomes small when the range is exceeded .
請求項1から請求項のうちのいずれか1項記載のデータ多重化装置と、
上記データ多重化装置から出力された多重化データを受信し、上記多重化データに多重化されている符号化データからリアルタイムデータを復号して、上記リアルタイムデータを再生するとともに、上記多重化データに多重化されている非リアルタイムデータを再生する復号装置
を備えたシステム。
A data multiplexing device according to any one of claims 1 to 6 ,
The multiplexed data output from the data multiplexer is received, the real-time data is decoded from the encoded data multiplexed in the multiplexed data, the real-time data is reproduced, and the multiplexed data is converted into the multiplexed data. A decoding device for reproducing multiplexed non-real-time data ;
System with.
JP2010234412A 2010-10-19 2010-10-19 Data multiplexing apparatus, data multiplexing method and system Expired - Fee Related JP5677018B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010234412A JP5677018B2 (en) 2010-10-19 2010-10-19 Data multiplexing apparatus, data multiplexing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010234412A JP5677018B2 (en) 2010-10-19 2010-10-19 Data multiplexing apparatus, data multiplexing method and system

Publications (2)

Publication Number Publication Date
JP2012090039A JP2012090039A (en) 2012-05-10
JP5677018B2 true JP5677018B2 (en) 2015-02-25

Family

ID=46261200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010234412A Expired - Fee Related JP5677018B2 (en) 2010-10-19 2010-10-19 Data multiplexing apparatus, data multiplexing method and system

Country Status (1)

Country Link
JP (1) JP5677018B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028950A (en) * 2015-09-17 2018-05-11 索尼公司 Dispensing device, reception device and data processing method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10349099B2 (en) 2014-06-20 2019-07-09 Sony Corporation Transmission device, transmission method, reception device, and reception method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05260091A (en) * 1992-03-13 1993-10-08 Fujitsu Ltd Multimedium multiplexing system
JP4206559B2 (en) * 1999-05-12 2009-01-14 ソニー株式会社 Signal multiplexing method and apparatus
JP4313926B2 (en) * 2000-03-30 2009-08-12 キヤノン株式会社 Signal processing apparatus and signal processing method
JP2001359061A (en) * 2000-04-11 2001-12-26 Sony Corp Data transmitter, data receiver, data transmission method, and data reception method
JP4441839B2 (en) * 2000-08-17 2010-03-31 ソニー株式会社 Statistical multiplexing system, statistical multiplexing control device, and statistical multiplexing method
JP4246935B2 (en) * 2001-09-06 2009-04-02 株式会社東芝 Program transmission processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028950A (en) * 2015-09-17 2018-05-11 索尼公司 Dispensing device, reception device and data processing method
CN108028950B (en) * 2015-09-17 2021-03-05 索尼公司 Transmitting apparatus, receiving apparatus, and data processing method

Also Published As

Publication number Publication date
JP2012090039A (en) 2012-05-10

Similar Documents

Publication Publication Date Title
EP3022884B1 (en) Quality optimization with buffer and horizon constraints in adaptive streaming
US11729109B2 (en) Excess bitrate distribution based on quality gain in SABR server
US9866605B2 (en) Streaming manifest quality control
US7983160B2 (en) Method and apparatus for transmitting a coded video signal
US8928804B2 (en) Managing encoder parameters for parallel transcoding
JP4489794B2 (en) Generalized reference decoder for video or video processing
US8910229B2 (en) Methods and devices for efficient adaptive bitrate streaming
EP1563689B1 (en) Transmission of video
EP2612495B1 (en) Adaptive streaming of video at different quality levels
US20180027039A1 (en) Client Feedback Enhanced Methods and Devices for Efficient Adaptive Bitrate Streaming
US7843824B2 (en) Method and apparatus for statistically multiplexing services
US20110270913A1 (en) Controlling an adaptive streaming of digital content
US8135061B1 (en) Variable bit rate encoding
US8996713B2 (en) Video streaming
US9571871B2 (en) Method for delivering video content encoded at one or more quality levels over a data network
JP2009017314A (en) Transcoder
JP5677018B2 (en) Data multiplexing apparatus, data multiplexing method and system
JP2009171339A (en) Apparatus, method and program for encoding moving image
JP2007208377A (en) Moving picture encoder and method therefor, and program
Yu et al. An adaptive streaming system for mpeg-4 scalable to lossless audio
EP2408204A1 (en) Video streaming

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140521

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140527

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140723

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140916

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141114

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: 20141202

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141226

R150 Certificate of patent or registration of utility model

Ref document number: 5677018

Country of ref document: JP

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

LAPS Cancellation because of no payment of annual fees