JP2009296501A - Multiplexing control apparatus and multiplexing control method - Google Patents

Multiplexing control apparatus and multiplexing control method Download PDF

Info

Publication number
JP2009296501A
JP2009296501A JP2008150321A JP2008150321A JP2009296501A JP 2009296501 A JP2009296501 A JP 2009296501A JP 2008150321 A JP2008150321 A JP 2008150321A JP 2008150321 A JP2008150321 A JP 2008150321A JP 2009296501 A JP2009296501 A JP 2009296501A
Authority
JP
Japan
Prior art keywords
multiplexing
data
attribute data
encoded data
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008150321A
Other languages
Japanese (ja)
Other versions
JP4835651B2 (en
Inventor
Kazuhiko Morizaki
一彦 森崎
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2008150321A priority Critical patent/JP4835651B2/en
Publication of JP2009296501A publication Critical patent/JP2009296501A/en
Application granted granted Critical
Publication of JP4835651B2 publication Critical patent/JP4835651B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce attribute data from being missed at a receiving side by surely multiplexing attribute data of encoded data. <P>SOLUTION: An attribute data multiplexing time setting section 215 performs setting in such a way as to generate an attribute data multiplexing time at least once for each multiplexing term of each frame on the basis of a system time during a predetermined period after a starting time point of a multiplexing term of each frame and a period excluding before and after the multiplexing term of each frame other than a predetermined period before an ending time point of the multiplexing term. A multiplexing section 216 multiplexes attribute data at one of a plurality of multiplexing times set by the attribute data multiplexing time setting section 215. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、映像や音声等の符号化データと、その符号化データの属性データとを多重化する多重化制御装置および多重化制御方法に関する。   The present invention relates to a multiplexing control device and a multiplexing control method for multiplexing encoded data such as video and audio and attribute data of the encoded data.

映像や音声等の符号化データとその属性データとを多重化する際、属性データは符号化データの再生にとって重要なデータであるので、符号化データよりも属性データを優先的に多重化するようにした多重化制御装置がある(例えば、特許文献1参照)。
特開2001−144711号公報
When multiplexing encoded data such as video and audio and its attribute data, the attribute data is important data for reproduction of the encoded data. There is a multiplexing control device (see, for example, Patent Document 1).
JP 2001-144711 A

しかし、上述の多重化制御装置では、単に、符号化データよりも属性データを優先的に多重化することしか開示されていないので、属性データを確実に符号化できなかったり、受信側において属性データを取りこぼすおそれがある、という課題があった。   However, since the above-described multiplexing control device merely discloses multiplexing attribute data preferentially over encoded data, attribute data cannot be reliably encoded, or attribute data can be received on the receiving side. There was a problem that there was a risk of spilling.

そこで、本発明は、符号化データの属性データを確実に多重化して、受信側における属性データの取りこぼしを低減することができる多重化制御装置および多重化制御方法を提供することを目的とする。   Therefore, an object of the present invention is to provide a multiplexing control device and a multiplexing control method that can reliably multiplex attribute data of encoded data and reduce the loss of attribute data on the receiving side.

上記目的を達成するため、本発明の多重化制御装置は、複数のフレームからなる符号化データと、前記符号化データの属性データとを多重化する多重化制御装置であって、前記符号化データの符号化レートに基づいて、符号化データ仮想バッファの充足量を求める符号化データ充足量演算部と、前記符号化データのフレームレートに対する前記属性データの符号化レートの倍率を設定する属性データ符号化レート倍率設定部と、前記属性データの符号化レートの倍率に基づいて、属性データ仮想バッファの充足量を演算する属性データ充足量演算部と、前記符号化データの多重化時刻と、前記属性データの符号化レートの倍率とに基づいて、前記符号化データの各フレームの開始時点以降の所定期間および終了時点以前の所定期間を除く前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるように、前記属性データの多重化時刻を設定する属性データ多重化時刻設定部と、前記符号化データの多重化時刻と、前記属性データの多重化時刻と、前記符号化データ仮想バッファの充足量と、前記属性データ仮想バッファの充足量とに基づいて、前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるよう、前記符号化データと前記属性データとの多重化を制御する多重化制御部と、を有する。
ここで、前記属性データ符号化レート倍率設定部は、前記符号化データの符号化レートに対する前記属性データの符号化レートの倍率としてN(Nは2以上の自然数)倍を設定し、前記属性データ多重化時刻設定部は、前記符号化データの各フレームの前後除外期間を前記符号化データの各フレームの(N−1)/(2N)にし、前記属性データが多重化されるように、前記属性データの多重化時刻を設定する、ようにしても良い。
また、本発明の多重化制御方法は、複数のフレームからなる符号化データと、前記符号化データの属性データとを多重化する多重化制御方法であって、前記符号化データの符号化レートに基づいて、符号化データ仮想バッファの充足量を求めるステップと、前記符号化データの符号化レートに対する前記属性データの符号化レートの倍率を設定するステップと、前記属性データの符号化レートの倍率に基づいて、属性データ仮想バッファの充足量を演算するステップと、前記符号化データの多重化時刻と、前記属性データの符号化レートの倍率とに基づいて、前記符号化データの各フレームの多重化期間の開始時点以降の所定期間および終了時点以前の所定期間を除く前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるように、前記属性データの多重化時刻を設定するステップと、前記符号化データの多重化時刻と、前記属性データの多重化時刻と、前記符号化データ仮想バッファの充足量と、前記属性データ仮想バッファの充足量とに基づいて、前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるよう、前記符号化データと前記属性データとの多重化を制御するステップと、を有する。
In order to achieve the above object, a multiplexing control apparatus of the present invention is a multiplexing control apparatus that multiplexes encoded data comprising a plurality of frames and attribute data of the encoded data, wherein the encoded data An encoded data filling amount calculation unit for obtaining a sufficient amount of the encoded data virtual buffer based on the encoding rate of the encoded data, and an attribute data code for setting a magnification of the encoding rate of the attribute data with respect to the frame rate of the encoded data An encoding rate magnification setting unit, an attribute data full amount calculation unit for calculating a full amount of the attribute data virtual buffer based on the encoding rate magnification of the attribute data, a multiplexing time of the encoded data, and the attribute Excluding a predetermined period after the start time of each frame of the encoded data and a predetermined period before the end time based on the data encoding rate magnification An attribute data multiplexing time setting unit that sets a multiplexing time of the attribute data so that the attribute data is multiplexed in a period before and after each frame of the encoded data; and a multiplexing time of the encoded data And the attribute data multiplexing time, the encoded data virtual buffer filling amount, and the attribute data virtual buffer filling amount, in the exclusion period before and after each frame of the encoded data. A multiplexing control unit that controls multiplexing of the encoded data and the attribute data so that the data is multiplexed;
Here, the attribute data encoding rate magnification setting unit sets N (N is a natural number of 2 or more) times as a magnification of the encoding rate of the attribute data with respect to the encoding rate of the encoded data, and the attribute data The multiplexing time setting unit sets the exclusion period before and after each frame of the encoded data to (N−1) / (2N) of each frame of the encoded data so that the attribute data is multiplexed. You may make it set the multiplexing time of attribute data.
The multiplexing control method according to the present invention is a multiplexing control method for multiplexing encoded data composed of a plurality of frames and attribute data of the encoded data, wherein the encoding rate of the encoded data is adjusted. Based on the encoding data virtual buffer, a step of setting a ratio of the encoding rate of the attribute data to the encoding rate of the encoded data, and a ratio of the encoding rate of the attribute data. Based on the step of calculating the sufficiency of the attribute data virtual buffer, the multiplexing time of the encoded data, and the magnification of the encoding rate of the attribute data, the multiplexing of each frame of the encoded data The attribute data is multiplexed in the exclusion period before and after each frame of the encoded data excluding a predetermined period after the start time of the period and a predetermined period before the end time. A step of setting a multiplexing time of the attribute data, a multiplexing time of the encoded data, a multiplexing time of the attribute data, a sufficient amount of the encoded data virtual buffer, and the attribute Controlling the multiplexing of the encoded data and the attribute data so that the attribute data is multiplexed in the exclusion period before and after each frame of the encoded data based on the data virtual buffer fullness And having.

本発明では、符号化データの符号化レートに対する前記属性データの符号化レートの倍率を設定し、その倍率に基づいて、属性データ仮想バッファの充足量を演算し、符号化データの多重化時刻と属性データの符号化レートの倍率とに基づいて、属性データの多重化時刻を設定し、符号化データの多重化時刻と、属性データの多重化時刻と、符号化データ仮想バッファの充足量と、属性データ仮想バッファの充足量とに基づいて、符号化データの各フレームの前後除外期間に属性データが多重化されるよう、符号化データと属性データとの多重化を制御するので、符号化データの属性データを確実に多重化できる共に、受信側における属性データの取りこぼしを低減することができる。   In the present invention, the ratio of the encoding rate of the attribute data with respect to the encoding rate of the encoded data is set, and based on the ratio, the sufficient amount of the attribute data virtual buffer is calculated, and the multiplexed time of the encoded data and Based on the magnification of the encoding rate of the attribute data, set the multiplexing time of the attribute data, the multiplexing time of the encoding data, the multiplexing time of the attribute data, the sufficient amount of the encoded data virtual buffer, Since the multiplexing of the encoded data and the attribute data is controlled so that the attribute data is multiplexed in the exclusion period before and after each frame of the encoded data based on the fullness of the attribute data virtual buffer, the encoded data Attribute data can be reliably multiplexed, and the loss of attribute data on the receiving side can be reduced.

実施形態1. Embodiment 1. FIG.

以下、本発明の実施形態1として、ビデオ符号化データと、ビデオ符号化データの符号化属性を記述した属性データを多重化する多重化装置を一例に説明する。本実施形態1では、ビデオ符号化データに含まれるビデオ符号化のデコード時刻(DTS=Decoding Time Stamp)やプレゼンテーション時刻(PTS=Presentation Time Stamp)の時刻情報を基準にしてビデオ属性データの多重化時刻を管理する方法について説明する。   Hereinafter, as a first embodiment of the present invention, a description will be given of a multiplexing apparatus that multiplexes video encoded data and attribute data describing the encoding attribute of the video encoded data as an example. In the first embodiment, the video attribute data multiplexing time is based on the time information of the video encoding decoding time (DTS = Decoding Time Stamp) and presentation time (PTS = Presentation Time Stamp) included in the video encoded data. How to manage

図1は、本発明に係る実施形態1の多重化装置の全体構成図を示すブロック図である。   FIG. 1 is a block diagram showing an overall configuration diagram of a multiplexing apparatus according to Embodiment 1 of the present invention.

図1において、多重化装置は、符号化制御部101、ヘッダ生成部102、ビデオ符号化部103、ビデオ属性データ生成部104、音声符号化部105、音声属性データ生成部106、PSIデータ生成部107、ヘッダデータバッファ108、ビデオ符号化データバッファ109、ビデオ属性データバッファ110、音声符号化データバッファ111、音声属性データバッファ112、PSIデータバッファ113、本発明の多重化制御装置に相当する多重化制御装置114、多重化部115およびストリームバッファ116を有している。   In FIG. 1, the multiplexing apparatus includes an encoding control unit 101, a header generation unit 102, a video encoding unit 103, a video attribute data generation unit 104, an audio encoding unit 105, an audio attribute data generation unit 106, and a PSI data generation unit. 107, header data buffer 108, video encoded data buffer 109, video attribute data buffer 110, audio encoded data buffer 111, audio attribute data buffer 112, PSI data buffer 113, and multiplexing corresponding to the multiplexing control device of the present invention A control device 114, a multiplexing unit 115, and a stream buffer 116 are included.

次に、図1に示す多重化装置の動作を説明する。   Next, the operation of the multiplexing apparatus shown in FIG. 1 will be described.

多重化制御装置114は、MPEGシステム規格およびそれに類するシステム規格に適合するトランスポートストリーム(TS)を生成するために多重化装置の全体制御を行っており、まずは、記録するメディアの形態、画像や音声の品質、記録残量時間、記録モード、符号化レート等の条件を勘案して、本装置の記録レートを設定する。次に、本装置の記録レートを基にして多重化ストリームを構成するビデオや音声の符号化データ、映像データや音声データの属性データ、PSI(Program Specific Information)など、符号化ストリームを構成するすべてのデータ種別の記録レートを決定する。   The multiplexing control device 114 performs overall control of the multiplexing device in order to generate a transport stream (TS) that conforms to the MPEG system standard and similar system standards. The recording rate of this apparatus is set in consideration of conditions such as voice quality, remaining recording time, recording mode, and encoding rate. Next, all of the encoded stream such as video and audio encoded data, video data and audio data attribute data, and PSI (Program Specific Information) that configure the multiplexed stream based on the recording rate of this apparatus The recording rate of the data type is determined.

符号化制御部101は、ビデオ符号化部103や音声符号化部105の制御、符号化されたビデオおよび音声データの属性を記載する属性データ生成部104,106の制御、PSIデータ生成部107の制御を行う。   The encoding control unit 101 controls the video encoding unit 103 and the audio encoding unit 105, controls the attribute data generation units 104 and 106 that describe the attributes of the encoded video and audio data, and the PSI data generation unit 107. Take control.

ビデオ符号部103は、ビデオフレーム(29.97Hz)毎にビデオエレメンタリーの符号化が行われるように制御される。また生成されたビデオ符号化データはリングバッファ形式のビデオ符号化データバッファ109に順次書き込まれる。ビデオ符号化部103へは符号化される前のYUV形式のビデオ画像が入力されてMPEG符号化方式(MPEG2、H.264など)で圧縮される。   The video encoding unit 103 is controlled so that video elementary encoding is performed for each video frame (29.97 Hz). Also, the generated video encoded data is sequentially written in the video encoded data buffer 109 in the ring buffer format. A video image in YUV format before being encoded is input to the video encoding unit 103 and compressed by an MPEG encoding method (MPEG2, H.264, etc.).

音声符号化部105も同様に音声フレーム毎に音声エレメンタリーの符号化が行われ、出力される音声符号化データは音声符号化データバッファ112に書き込まれる。音声符号化部105へはマイク音声やライン入力音声をA/D変換したPCMデジタルデータが入力され、MPEG符号化方式(MP2,MP3)で音声圧縮される。   Similarly, the audio encoding unit 105 performs audio elementary encoding for each audio frame, and the output audio encoded data is written into the audio encoded data buffer 112. PCM digital data obtained by A / D-converting microphone sound or line input sound is input to the sound encoding unit 105, and the sound is compressed by the MPEG encoding method (MP2, MP3).

本装置では、ビデオ符号化のコーディングタイプやPTS/DTSの時刻情報、フレームレートや画像サイズなどの表示情報を記載したビデオ属性データをビデオ符号化データと共に多重化することで、ストリーム再生時にランダムアクセスを効率的に行ったり、ビデオ編集において属性の異なるストリームを連結して編集する場合に属性の変化点が検索しやすくなるので効率的な編集作業が可能となるなどの理由により、ビデオ属性を示すビデオ属性データをトランスポートストリーム(TS)に多重化する。ビデオ属性データ生成部104は、このようなビデオ符号化に関する属性データをビデオ符号化部103や符号化制御部101から収集して属性データのパケットデータに構築してビデオ属性データバッファ110に格納する。   In this device, video attribute data describing display information such as video encoding coding type, PTS / DTS time information, frame rate, and image size is multiplexed with the video encoded data, thereby enabling random access during stream playback. Video attributes can be displayed for reasons such as enabling efficient editing operations because it is easier to search for change points of attributes when video streams are combined and streams with different attributes are combined and edited. Video attribute data is multiplexed into a transport stream (TS). The video attribute data generation unit 104 collects such attribute data relating to video encoding from the video encoding unit 103 or the encoding control unit 101, constructs the attribute data into packet data, and stores the packet data in the video attribute data buffer 110. .

音声の属性データには、PTSなどの時刻情報、サンプリング周期、符号化ビットレートなどの情報がある。音声属性データ生成部106は、これらの情報を収集して音声属性データバッファ112に書き込む。   The audio attribute data includes information such as time information such as PTS, sampling period, and encoding bit rate. The voice attribute data generation unit 106 collects these pieces of information and writes them in the voice attribute data buffer 112.

PSIデータ生成部107は、トランスポートストリーム(TS)に必須のPAT(Program Associatin Table)、PMT(Program MAP Table)、時刻情報であるPCR(Program Clock Reference)パケットを生成してPSIデータバッファ113に書き込む。   The PSI data generation unit 107 generates a PAT (Program Associatin Table), a PMT (Program MAP Table), and a PCR (Program Clock Reference) packet that are time information essential to the transport stream (TS), and stores them in the PSI data buffer 113. Write.

ヘッダ生成部102は、多重化のソースデータとなるビデオや音声の符号化データを分割して188バイトのTSパケット(TS)を生成する場合、TSパケットの先頭に付加するTSヘッダを生成してヘッダデータバッファ108に書きこむ。   When generating the 188-byte TS packet (TS) by dividing the video or audio encoded data that is the source data for multiplexing, the header generator 102 generates a TS header to be added to the head of the TS packet. Write to the header data buffer 108.

多重化部115は、後述する多重化制御部114から多重化が指示されたビデオや音声の符号化データおよび属性データをDMA転送等により多重化するため、送信元アドレスや送信先アドレスの管理やTSヘッダを付加するための制御を行う。また、多重化部115は、パケッタイズされた符号化データおよび属性データの先頭にTSヘッダを付加してTSパケットを生成し、ストリームバッファ116へ順次書き込む。   The multiplexing unit 115 multiplexes video and audio encoded data and attribute data instructed to be multiplexed from the multiplexing control unit 114, which will be described later, by DMA transfer or the like. Control for adding a TS header is performed. In addition, the multiplexing unit 115 generates a TS packet by adding a TS header to the head of the packetized encoded data and attribute data, and sequentially writes the TS packet in the stream buffer 116.

すると、ストリームバッファ116に蓄積されたTSパケットデータは、メディアI/F(図示せず)やファイルシステムマネージャ(図示せず)を経由して、ファイルとして記録媒体に記録されたり、通信I/F(図示せず)を介して多重化ビットストリームとして本装置外へ送信または伝送される。   Then, the TS packet data accumulated in the stream buffer 116 is recorded on a recording medium as a file via a media I / F (not shown) or a file system manager (not shown), or a communication I / F. (Not shown) is transmitted or transmitted outside the apparatus as a multiplexed bit stream.

図2は、図1に示す本実施形態1の多重化制御装置114の詳細な構成を示すブロック図である。   FIG. 2 is a block diagram showing a detailed configuration of the multiplexing control device 114 of the first embodiment shown in FIG.

図2において、多重化制御装置114は、符号化データレート算出部201、属性データ多重化レート倍率設定部202、符号化データ仮想バッファ増加量演算部203、属性データ仮想バッファ増加量演算部204、システム時刻生成部205、符号化データ充足量演算部206、属性データ充足量演算部207、符号化データ読取部208、多重化制御部209、符号化データ多重化時刻算出部210、時刻および属性情報記憶部211、属性データ多重化時刻算出部212、VBVバッファモデル管理部213を有する。   2, the multiplexing control device 114 includes an encoded data rate calculation unit 201, an attribute data multiplexing rate magnification setting unit 202, an encoded data virtual buffer increase amount calculation unit 203, an attribute data virtual buffer increase amount calculation unit 204, System time generation unit 205, encoded data sufficiency calculating unit 206, attribute data sufficiency calculating unit 207, encoded data reading unit 208, multiplexing control unit 209, encoded data multiplexing time calculating unit 210, time and attribute information A storage unit 211, an attribute data multiplexing time calculation unit 212, and a VBV buffer model management unit 213 are included.

符号化データレート算出部201は、ユーザやアプリケーションが指定する記録モード、例えば、高画質記録モード、長時間記録モードなどから装置の記録レートである、TSストリームの記録レートを決定し、この記録レートを基準にしてビデオ符号化データ、音声符号化データ、PSIデータ、ビデオ属性データ、音声属性データ、PCRクロックデータなど多重化するすべてのデータの符号化レートを決定するものである。   The encoded data rate calculation unit 201 determines the recording rate of the TS stream, which is the recording rate of the apparatus, from the recording mode designated by the user or application, for example, the high image quality recording mode, the long time recording mode, etc. Are used to determine the encoding rate of all data to be multiplexed, such as video encoded data, audio encoded data, PSI data, video attribute data, audio attribute data, and PCR clock data.

符号化データ仮想バッファ増加量演算部203は、符号化データレート算出部201により設定されたビデオ符号化データの符号化レートを基に、符号化データを1TSパケット間隔に相当するシステムクロックの時間経過ごとに仮想バッファ(図示せず)へ蓄積していく符号化データの仮想バッファの増加量を算出するものである。   The encoded data virtual buffer increase amount calculation unit 203, based on the encoding rate of the video encoded data set by the encoded data rate calculation unit 201, the elapsed time of the system clock corresponding to 1 TS packet interval. The amount of increase in the virtual buffer of the encoded data accumulated in the virtual buffer (not shown) is calculated every time.

符号化データ充足量演算部206は、仮想バッファのバッファ占有量を管理し、1TPパケット相当のシステムクロック期間毎に仮想バッファ増加量演算部203で算出された増加量ずつ仮想バッファにおける充足量が増加していくが、その充足量がビデオ仮想バッファのサイズに達するとビデオ符号化データの多重化が実行されるとともに、仮想バッファのサイズの分だけ仮想バッファの占有量を減少させるよう制御するものである。   The encoded data filling amount calculation unit 206 manages the buffer occupancy amount of the virtual buffer, and the filling amount in the virtual buffer increases by the increase amount calculated by the virtual buffer increase amount calculation unit 203 every system clock period corresponding to 1TP packet. However, when the sufficient amount reaches the size of the video virtual buffer, multiplexing of the video encoded data is executed and control is performed to reduce the virtual buffer occupancy by the size of the virtual buffer. is there.

図3は、仮想バッファのバッファ占有量の遷移を例示する図である。   FIG. 3 is a diagram illustrating a transition of the buffer occupation amount of the virtual buffer.

本実施形態1では、ビデオ符号化データを実際のメモリに記憶してメモリ占有量を求めるのではなく、図3に示すように、仮想的に想定する仮想バッファを用いてビデオ符号化データの1パケットの占有量を演算で求め、仮想バッファが満杯になったら、1パケットに相当するビデオ符号化データを多重化する、ということを繰り返し行う方式が仮想バッファ方式による多重化の特徴である。   In the first embodiment, video encoded data is not stored in an actual memory and the memory occupation amount is not calculated, but as shown in FIG. A feature of multiplexing by the virtual buffer method is a method of repeatedly calculating that the amount of occupied packet is calculated and multiplexing the video encoded data corresponding to one packet when the virtual buffer is full.

属性データ多重化レート倍率設定部202は、ビデオ符号化データのフレームレートを基準にして、符号化データのフレームレートより高いレートでビデオ属性データの多重化時刻を発生するように、属性データの符号化レート(以下、属性符号化レート)の倍率を設定するものである。   The attribute data multiplexing rate magnification setting unit 202 encodes the attribute data so as to generate the multiplexing time of the video attribute data at a rate higher than the frame rate of the encoded data with reference to the frame rate of the video encoded data. A magnification of a conversion rate (hereinafter, attribute encoding rate) is set.

属性データ仮想バッファ増加量演算部204は、1TPパケットに相当するシステムクロック期間毎に属性データ仮想バッファの増加量を算出するものである。   The attribute data virtual buffer increase amount calculation unit 204 calculates the increase amount of the attribute data virtual buffer every system clock period corresponding to one TP packet.

属性データ充足量演算部207は、属性データ仮想バッファのバッファ蓄積量の増減を管理するものである。   The attribute data full amount calculation unit 207 manages increase / decrease in the buffer accumulation amount of the attribute data virtual buffer.

システム時刻生成部205は、システムクロックの増加や初期化を管理するものである。MPEGシステムでは、PCR(Program Clock Reference)と呼ばれるシステム時刻が定義されており、27MHzの精度でシステムクロックが増加していく。ビデオや音声の符号化データの時刻情報であるPTS(Presentation Time Stamp)やDTS(Decoding Time Stamp)は、このシステムクロックを90KHz精度に換算した時刻である。多重化する時刻の管理もこのシステムクロックを基準にして行われる。   The system time generation unit 205 manages increase or initialization of the system clock. In the MPEG system, a system time called PCR (Program Clock Reference) is defined, and the system clock increases with an accuracy of 27 MHz. PTS (Presentation Time Stamp) and DTS (Decoding Time Stamp), which are time information of encoded data of video and audio, are times obtained by converting the system clock to 90 kHz accuracy. Multiplexing time is also managed based on this system clock.

なお、説明を簡単にするために、多重化制御装置114の詳細構成を示す図2には、ビデオ符号化データと、ビデオ属性データの多重化管理に必要な構成しか記載していないが、実際には音声符号化データ、音声属性データ、PSIデータ、PCRクロックデータの仮想バッファ増加量演算部および仮想バッファの充足量演算部が必要である。これらの演算部の処理内容はビデオ符号化データと同じなので説明は省略する。   For the sake of simplicity, FIG. 2 showing the detailed configuration of the multiplexing control device 114 shows only the configuration necessary for multiplexing management of video encoded data and video attribute data. Requires a virtual buffer increase amount calculation unit for voice encoded data, voice attribute data, PSI data, and PCR clock data, and a virtual buffer fullness calculation unit. Since the processing content of these arithmetic units is the same as that of the video encoded data, description thereof is omitted.

多重化制御部209は、各々独立して動作するビデオ符号化データとその属性データ双方の仮想バッファの充足量演算部206,207の演算結果を収集して、仮想バッファが一杯になったデータを検出して、符号化データおよび属性データの多重化を行うように多重化部115に対し多重化指示を送るものである。   The multiplexing control unit 209 collects the calculation results of the virtual buffer fullness calculation units 206 and 207 for both the video encoded data and the attribute data that operate independently of each other, and stores the data that the virtual buffer is full. This is detected and a multiplexing instruction is sent to the multiplexing unit 115 so as to multiplex the encoded data and the attribute data.

符号化データ読み取り部208は、ビデオや音声の符号化データを読み出して、PTSやDTSの時刻情報を取得し、時刻および属性情報記憶部211に記憶するものである。   The encoded data reading unit 208 reads encoded data of video and audio, acquires time information of PTS and DTS, and stores it in the time and attribute information storage unit 211.

符号化データ多重化時刻算出部210は、ビデオ符号化データの多重化時刻を、例えば、下記式(1)により求める。   The encoded data multiplexing time calculation unit 210 obtains the multiplexing time of the video encoded data by, for example, the following equation (1).

ビデオ符号化データの多重化時刻(90KHzクロック単位)
=DTS(PTS)−(VBVバッファの占有量/符号化レート)×90000
…式(1)
Multiplex time of video encoded data (90KHz clock unit)
= DTS (PTS)-(VBV buffer occupancy / encoding rate) × 90000
... Formula (1)

ここでVBVバッファ(Video Buffering Verifier)とはMPEG2規格で規定するビデオ符号化データである。
VBVバッファはビデオ記録レートが決まると一定の増量で増加するが、ビデオのデコードを行う毎にVBVバッファから1ピクチャのデータ量が減少するようにモデル化されている。そのため、多重化制御装置114においてもVBVバッファの占有量をモデル化して管理する。これを行うのがVBVバッファモデル管理部213である。なお、Intra-PictureやPredictive-PictureはDTS時刻、Bi-directional-PictureはPTS時刻を使って多重化時刻を決定する。Bi-directional-PictureのようにDTS時刻を持たないパケットは、PTS=DTSとみなして処理する。上式(1)は、システムクロックが90KHzクロックでカウントした時間単位で表現している。
Here, the VBV buffer (Video Buffering Verifier) is encoded video data defined by the MPEG2 standard.
The VBV buffer increases with a constant increase when the video recording rate is determined, but is modeled so that the data amount of one picture decreases from the VBV buffer each time video decoding is performed. For this reason, the multiplexing control device 114 also manages the occupation amount of the VBV buffer by modeling it. The VBV buffer model management unit 213 performs this. Note that the multiplexing time is determined using DTS time for Intra-Picture and Predictive-Picture, and PTS time for Bi-directional-Picture. A packet that does not have a DTS time, such as Bi-directional-Picture, is processed assuming that PTS = DTS. The above equation (1) is expressed in units of time counted by the 90 kHz clock of the system clock.

多重化制御部209は、仮想バッファの充足量に基づき、多重化すべきデータが設定された場合、上記式(1)で算出した符号化データの多重化時刻と、現在のシステム時刻とを比較し、多重化時刻が現在の時刻に到達していれば、多重化すべきデータの多重化を決定するものである。   The multiplexing control unit 209 compares the multiplexing time of the encoded data calculated by the above equation (1) with the current system time when the data to be multiplexed is set based on the full capacity of the virtual buffer. If the multiplexing time has reached the current time, the multiplexing of the data to be multiplexed is determined.

ここで、属性データを多重化する時刻は、図4に示すように2通りのケースが想定される。なお、図4、図5では、符号化データおよびその属性データとして、ビデオ符号化データと、ビデオ属性データを一例にして説明している。
本実施形態1ではGOP(Group Of Picture)を構成するピクチャー数を15、Intra-Picture間隔を15、Intra-PictureまたはPredictive-Pictuteの間隔を3として説明するがこれに限定されるものではない。またIntra-PictureおよびPredictive-Pictureの属性を示す属性データのみを多重化する例として説明するがこれに限定されない。
Here, two cases are assumed for the time of multiplexing the attribute data as shown in FIG. In FIG. 4 and FIG. 5, video encoded data and video attribute data are described as an example as encoded data and attribute data thereof.
In the first embodiment, the number of pictures constituting a GOP (Group Of Picture) is 15, the Intra-Picture interval is 15, and the Intra-Picture or Predictive-Pictute interval is 3. However, the present invention is not limited to this. Although an example in which only attribute data indicating attributes of Intra-Picture and Predictive-Picture is multiplexed will be described, the present invention is not limited to this.

図4は、属性データの多重化時刻が「ビデオ符号化データ<ビデオ属性データ」の場合、つまりビデオ符号化データの多重化を行う時刻よりビデオ属性データの多重化を行う時刻が遅い場合について示す説明図である。   FIG. 4 shows a case where the attribute data multiplexing time is “video encoded data <video attribute data”, that is, the video attribute data multiplexing time is later than the video encoded data multiplexing time. It is explanatory drawing.

この場合、符号化データ読み取り部208は、ビデオ符号化データバッファ109に格納されたビデオ符号化データからPTSやDTSの時刻情報を読み取り、例えば、そのDTS時刻情報から例えば3フレーム早い時刻に属性データの多重化を行うので、属性データの多重化時刻がビデオ符号化データの多重化時刻より十分遅い時刻であれば、ビデオ符号化データを多重化した時に符号化データ読み取り部208でDTS時刻情報およびビデオ符号化のコーディングタイプやフレームレートなどの属性情報を時刻およぼ属性情報記憶部211に蓄積しておくと、属性データの多重化時刻が発生する都度に時刻およぼ属性情報記憶部211にすでに蓄積された属性データを用いて、次に発生する属性データの多重化時刻を算出することができる。なお本実施形態1では属性データを多重化する時刻を(ビデオ符号化データのDTS−3フレーム)として説明しているがこれに限定されない。   In this case, the encoded data reading unit 208 reads the time information of PTS and DTS from the video encoded data stored in the video encoded data buffer 109, for example, attribute data at a time that is, for example, three frames earlier from the DTS time information. Therefore, if the multiplexing time of the attribute data is sufficiently later than the multiplexing time of the video encoded data, the encoded data reading unit 208 uses the DTS time information and If the attribute information such as the video coding coding type and the frame rate is accumulated in the time and attribute information storage unit 211, the time and attribute information storage unit 211 already stores the time each time the attribute data is multiplexed. Using the accumulated attribute data, the multiplexing time of the attribute data to be generated next can be calculated. . In the first embodiment, the time at which attribute data is multiplexed is described as (DTS-3 frame of video encoded data), but the present invention is not limited to this.

符号化データ多重化時刻算出部210は、符号化データの多重化が実行される毎に呼び出され、次に多重化するビデオ符号化データのDTS時刻を符号化データ読み取り部208で取得して式(1)に従って符号化データの多重化時刻を算出し、符号化データの多重化時刻を多重化制御部209に設定するものである。   The encoded data multiplexing time calculation unit 210 is called each time the encoded data is multiplexed, and the encoded data reading unit 208 obtains the DTS time of the video encoded data to be multiplexed next to obtain an expression. According to (1), the multiplexing time of the encoded data is calculated, and the multiplexing time of the encoded data is set in the multiplexing control unit 209.

属性データ多重化時刻算出部212は、次に多重化する属性データが参照するビデオ符号化データのDTS時刻を用いて、以下の式(2)により、属性データの多重化時刻を決定し、多重化制御部209に時刻を設定するものである。   The attribute data multiplexing time calculation unit 212 uses the DTS time of the video encoded data referred to by the attribute data to be multiplexed next to determine the multiplexing time of the attribute data by the following equation (2), The time is set in the control unit 209.

属性データの多重化時刻=(DTS−3フレーム)+1/4フレームの時刻
…式(2)
Multiplex time of attribute data = (DTS-3 frame) +1/4 frame time (2)

図5は、属性データの多重化時刻が「ビデオ符号化データ>ビデオ属性データ」の場合、つまりビデオ符号化データの多重化を行う時刻よりビデオ属性データの多重化を行う時刻が早い場合の説明図である。   FIG. 5 illustrates the case where the attribute data multiplexing time is “video encoded data> video attribute data”, that is, the video attribute data multiplexing time is earlier than the video encoded data multiplexing time. FIG.

この場合は、属性データの多重化時刻に属性データの属性を示すビデオ符号化データがまだ多重化されていないので、図4に示した方法(ビデオ符号化データ<属性データの場合)に従うと時刻および属性情報記憶部211に該当するPTS時刻情報が記憶されていない結果となる。よって、属性データ多重化時刻算出部212は、時刻情報記憶部211を検索しても該当するPTS情報が見つからないので、期待する時刻に属性データを多重化することはできない。   In this case, since the video encoded data indicating the attribute data attribute has not been multiplexed at the attribute data multiplexing time, the time according to the method shown in FIG. 4 (in the case of video encoded data <attribute data) is reached. As a result, the PTS time information corresponding to the attribute information storage unit 211 is not stored. Therefore, the attribute data multiplexing time calculation unit 212 cannot multiplex attribute data at the expected time because the corresponding PTS information is not found even if the time information storage unit 211 is searched.

そこで、このような場合に備えてビデオ符号化データバッファ109は、常に4フレーム以上、ビデオ符号化データに蓄えるよう制御する。   Therefore, in preparation for such a case, the video encoded data buffer 109 controls to always store 4 frames or more in the video encoded data.

そして、この場合、多重化部115は、記録開始時はビデオ符号化データバッファ109に4フレームのビデオ符号化データが蓄積された状態になってから多重化を開始する。多重化処理はビデオ符号化処理に比べて処理が簡単なので短い時間で多重化処理が完了する。そこで、ビデオ1フレームの多重化を完了しても、蓄積された残りのビデオの多重化は行なわず、ビデオの符号化が完了するまで待ち、ビデオ符号化データバッファ109に常に4フレームのビデオ符号化データが蓄積される状態を保つように制御する。多重化部115で多重化されたストリームはストリームバッファ116に転送するようにする。   In this case, the multiplexing unit 115 starts multiplexing after 4 frames of video encoded data are stored in the video encoded data buffer 109 at the start of recording. Since the multiplexing process is simpler than the video encoding process, the multiplexing process is completed in a short time. Therefore, even if the multiplexing of one frame of video is completed, the remaining accumulated video is not multiplexed, but waits until the video encoding is completed, and the video encoded data buffer 109 always has four frames of video code. Control is performed so as to maintain a state in which digitized data is accumulated. The stream multiplexed by the multiplexing unit 115 is transferred to the stream buffer 116.

ここで、多重化部115が記録を開始して最初に多重化するフレームは、符号化ストリームの最小のDTSを持つIntra−Pictureのビデオフレームである。このフレームは、DTSを持つフレームなので、属性データの多重化も必要である。そのため、先頭のIntra-Pictureの多重化設定を行うのと同時にビデオ属性の多重化の多重化設定もこのタイミングで実行する。属性データの多重化設定とは属性データのパケットをビデオ属性データバッファ110に設定することと、属性データの多重化時刻を算出し、多重化制御部209に多重化時刻を設定することである。   Here, the frame that is multiplexed first by the multiplexing unit 115 after starting recording is an Intra-Picture video frame having the minimum DTS of the encoded stream. Since this frame is a frame having a DTS, multiplexing of attribute data is also necessary. Therefore, at the same time, the multiplexing setting of the multiplexing of the video attribute is executed at the same time as the multiplexing setting of the first Intra-Picture. The attribute data multiplexing setting means setting the attribute data packet in the video attribute data buffer 110, calculating the attribute data multiplexing time, and setting the multiplexing time in the multiplexing control unit 209.

図6は、従来の多重化制御方法に従って属性データの多重化を行った場合の多重化時刻の発生時刻をプロットした一例を示している。   FIG. 6 shows an example in which the generation times of the multiplexing times are plotted when the attribute data is multiplexed according to the conventional multiplexing control method.

図6に示すように従来は3フレームに1回の割合で属性データを多重化する場合において、多重化すべきフレーム位置を特定していなかった。   As shown in FIG. 6, conventionally, when attribute data is multiplexed at a rate of once every three frames, the frame position to be multiplexed has not been specified.

一方、本実施形態では、仮想バッファによる多重化データのバッファ蓄積量を演算で求める場合、ビデオ1フレームに必ず2回の多重化時刻を発生させるために符号化レートを計算上ピッタリのレートではなく、それよりも若干大きめのレートにする。そうすることで1フレームに少なくとも2回は多重化の機会が与えられることになるが、若干レートが高いために多重化時刻が1フレーム期間の遅い時刻から早い時刻に多重化毎に移動する現象が発生する。   On the other hand, in this embodiment, when the buffer accumulation amount of the multiplexed data by the virtual buffer is obtained by calculation, the encoding rate is not a perfect rate in calculation in order to always generate the multiplexing time twice in one video frame. , Use a slightly higher rate. By doing so, the opportunity of multiplexing is given at least twice per frame, but because the rate is slightly higher, the multiplexing time moves from the later time of one frame period to the earlier time for each multiplexing Will occur.

本実施形態においては、属性データ多重化時刻算出部212は、1フレームに2回の多重化機会を与えるようにし、ビデオフレームの多重化期間の開始時刻からフレーム期間の1/4までの時刻の多重化時刻は無効とし、フレーム期間の1/4以降の期間を有効と判断するように制御すると1フレーム期間の1/4〜3/4に、属性データの多重化時刻が少なくとも1回発生するようにしている。   In the present embodiment, the attribute data multiplexing time calculation unit 212 gives a multiplexing opportunity twice to one frame, and the time from the start time of the multiplexing period of the video frame to ¼ of the frame period. If the multiplexing time is invalid and control is performed so that a period after 1/4 of the frame period is determined to be valid, the attribute data multiplexing time occurs at least once in 1/4 to 3/4 of one frame period. I am doing so.

ビデオ符号化データに記載されたDTS時刻からマイナス3フレームからマイナス2フレームの期間に属性データを多重化すると定めた場合に、従来の方法であれば一定周期でビデオフレームの一番先頭の時刻に近い時刻に多重化が発生する状態からビデオフレームの一番遅い時刻に多重化が発生する状態が出現し、規定した時間範囲から余裕がないケースが周期的に発生するため、従来の方法によって多重化されたTSストリームの属性データを受信したり再生する場合に、データの時間管理が厳しくなるためにデータの取りこぼしが発生したり、取りこぼしを無くすために処理速度の高速化が必要である。   If it is determined that the attribute data is to be multiplexed in the period from minus 3 frames to minus 2 frames from the DTS time described in the video encoded data, the conventional method is set to the first time of the video frame at a fixed period. Since a situation in which multiplexing occurs at the latest time of a video frame from a situation in which multiplexing occurs at a close time occurs, there are periodic cases where there is no margin from the specified time range. When the attribute data of the converted TS stream is received or played back, the time management of the data becomes severe, so that data is lost or the processing speed needs to be increased in order to eliminate the loss.

これに対して、本実施形態の場合は、図7に示すように、符号化データ仮想バッファ増加量演算部203は符号化データの符号化レートに基づいて、符号化データ仮想バッファの増加量を求め、符号化データ充足量演算部206はその増加量に基づいて、符号化データ仮想バッファの充足量を演算する一方、属性データ符号化レート倍率設定部202は符号化データのフレームレートに対する属性データの符号化レートの倍率を設定し、属性データ仮想バッファ増加量演算部204はその倍率(図7の場合、2倍。)に基づいて、属性データ仮想バッファの増加量を求め、属性データ充足量演算部207はその増加量に基づいて、属性データ仮想バッファの充足量を演算し、多重化制御部209は、システム時刻に基づいて、符号化データ仮想バッファの充足量と、属性データ仮想バッファの充足量とが各仮想バッファの最大値に達すると、符号化データ多重化時刻算出部210からの符号化データの多重化時刻と、属性データ多重化時刻算出部212からの属性データの多重化時刻とに基づいて、符号化データの各フレームの前後除外期間に属性データが多重化されるよう、符号化データと属性データとの多重化を制御するので、1フレーム期間の1/4〜3/4に少なくとも1回の多重化時刻が発生するので、従来のような問題は発生しない良好な結果となる。   On the other hand, in the case of this embodiment, as shown in FIG. 7, the encoded data virtual buffer increase amount calculation unit 203 calculates the increase amount of the encoded data virtual buffer based on the encoding rate of the encoded data. The encoded data sufficient amount calculation unit 206 calculates the full amount of the encoded data virtual buffer based on the increase amount, while the attribute data encoding rate magnification setting unit 202 determines the attribute data for the frame rate of the encoded data. The attribute data virtual buffer increase amount calculation unit 204 obtains the increase amount of the attribute data virtual buffer based on the magnification (in the case of FIG. 7, 2 times) and sets the attribute data sufficient amount. The computing unit 207 computes the sufficient amount of the attribute data virtual buffer based on the increase amount, and the multiplexing control unit 209 calculates the encoded data temporary data based on the system time. When the buffer fullness and the attribute data virtual buffer fullness reach the maximum value of each virtual buffer, the encoded data multiplexing time from the encoded data multiplexing time calculation unit 210 and the attribute data multiplexing time Based on the multiplexing time of the attribute data from the calculation unit 212, the multiplexing of the encoded data and the attribute data is controlled so that the attribute data is multiplexed in the exclusion period before and after each frame of the encoded data. Since at least one multiplexing time occurs in one-fourth to three-fourths of one frame period, it is a good result that the conventional problem does not occur.

次に、本実施形態1の多重化の処理手順をフローチャートを用いて説明する。   Next, a multiplexing processing procedure according to the first embodiment will be described with reference to a flowchart.

図8は、本実施形態1の多重化の処理手順を示すフローチャートである。   FIG. 8 is a flowchart showing a multiplexing processing procedure according to the first embodiment.

まず、符号化データレート算出部201は、多重化を開始する前に各機能ブロックに対して初期設定を行うため、指定された記録モードからトランスポートストリーム(TS)の記録レートであるTSレートと、各符号化データの符号化レートを算出する(S801)。例えば、ピクチャ毎に発生符号量が異なるビデオ符号データ等の符号化データの場合、最大符号量が発生しても多重化が適切に行われるように各符号化データの最大レートを算出し、各符号化データの最大符号化レートの総和がTSレートを超えないように算出する。   First, since the encoded data rate calculation unit 201 performs initialization for each functional block before starting multiplexing, a TS rate that is a recording rate of a transport stream (TS) from a specified recording mode is set. Then, the encoding rate of each encoded data is calculated (S801). For example, in the case of encoded data such as video code data having a different generated code amount for each picture, the maximum rate of each encoded data is calculated so that multiplexing is appropriately performed even if the maximum code amount occurs, Calculation is performed so that the sum of the maximum coding rates of the coded data does not exceed the TS rate.

次に、符号化データ仮想バッファ増加量演算部203および属性データ多重化レート倍率設定部202は、符号化データのフレームレートから仮想バッファ増加量を算出する(S802)。つまり、仮想バッファは、TSパケットを送信する/送信しないを決定するための仮想的なバッファであり、TSパケット送信間隔で一定量のバッファ増加を行い、バッファが一杯になるとTSパケットの送信を決定する。符号化データのレートに比例して仮想バッファ増加量を決定する。
仮想バッファのバッファ増加量は次式(3)で算出する。
仮想バッファの増加量=仮想バッファの最大値×TSパケットの送信周期/符号化データのパケット送信周期・・・式(3)
例えば、TSパケット10個に1回の割合で符号化データを多重化する場合は、バッファ増加量は仮想バッファの最大値の1/10の値に設定する。
Next, the encoded data virtual buffer increase amount calculation unit 203 and the attribute data multiplexing rate magnification setting unit 202 calculate the virtual buffer increase amount from the frame rate of the encoded data (S802). In other words, the virtual buffer is a virtual buffer for deciding whether or not to send a TS packet. The buffer is increased by a certain amount at the TS packet transmission interval, and the TS packet is decided to be sent when the buffer is full. To do. The virtual buffer increase amount is determined in proportion to the encoded data rate.
The buffer increase amount of the virtual buffer is calculated by the following equation (3).
Increase amount of virtual buffer = maximum value of virtual buffer × transmission cycle of TS packet / packet transmission cycle of encoded data (3)
For example, when the encoded data is multiplexed at a rate of once per 10 TS packets, the buffer increase amount is set to 1/10 of the maximum value of the virtual buffer.

次に、図1に示す多重化部115は、ヘッダバッファ108、ビデオ符号化データバッファ109、音声符号化データバッファ111の各領域のアドレスの初期化等の多重化開始設定を行う(S803)。また、多重化ストリームを出力するストリームバッファ116のアドレスの初期化や、パケットの全部あるいは一部が毎回同じデータを多重化するPSIデータバッファ113やビデオ属性データバッファ110、音声属性データバッファ112の初期化を行う。   Next, the multiplexing unit 115 shown in FIG. 1 performs multiplexing start setting such as initialization of addresses of the respective areas of the header buffer 108, the video encoded data buffer 109, and the audio encoded data buffer 111 (S803). In addition, initialization of the address of the stream buffer 116 that outputs the multiplexed stream and initialization of the PSI data buffer 113, the video attribute data buffer 110, and the audio attribute data buffer 112 that multiplex the same data every time or all of the packets are performed. To do.

次に、図2に示す多重化制御装置114の符号化データ読み取り部208は、多重化するビデオ符号化データが多重化対象に設定されているか確認する(ステップS804)。ここで、多重化対象に設定されている状態とは、多重化するデータがビデオ符号化データバッファ109に記憶されていると共に、符号化データ多重化時刻算出部210にて、多重化時刻も算出されて設定されて、多重化制御部209に設定されている状態であることをいう。符号化データ読み取り部208は、1ピクチャ毎に多重化対象を切り替えていく。音声の場合は音声フレーム毎に多重化対象を切り替えて設定する。   Next, the encoded data reading unit 208 of the multiplexing control device 114 shown in FIG. 2 confirms whether the encoded video data to be multiplexed is set as a multiplexing target (step S804). Here, the state set as the multiplexing target means that the data to be multiplexed is stored in the video encoded data buffer 109, and the encoded data multiplexing time calculation unit 210 also calculates the multiplexing time. In other words, it is set in the multiplexing control unit 209. The encoded data reading unit 208 switches the multiplexing target for each picture. In the case of voice, the multiplexing target is switched and set for each voice frame.

符号化データ読み取り部208は、ビデオ符号化データが多重化対象に設定されていないと判断した場合のみ(ステップS804“設定されていない")、ビデオ符号化データを読み出すための領域設定を行う(S805)。   Only when the encoded data reading unit 208 determines that the video encoded data is not set to be multiplexed (“not set” in step S804), the encoded data reading unit 208 performs region setting for reading the video encoded data ( S805).

次に、符号化データ多重化時刻算出部210は、符号化データ読み取り部208が読み取った多重化すべきビデオ符号化データに記載されているDTS(Decoding Time Stamp)時刻からビデオ符号化データの多重化時刻(以下、ビデオ多重化時刻という。)を算出する(S806)。ここで、符号化データ多重化時刻算出部210は、ビデオ多重化時刻を、VBVバッファモデル管理部213が算出するVBVバッファのモデルに従ったのビデオ符号化データバッファのデータ占有量から、先に示した(1)を用いて算出する。   Next, the encoded data multiplexing time calculation unit 210 multiplexes the video encoded data from the DTS (Decoding Time Stamp) time described in the video encoded data to be multiplexed read by the encoded data reading unit 208. Time (hereinafter referred to as video multiplexing time) is calculated (S806). Here, the encoded data multiplexing time calculation unit 210 first calculates the video multiplexing time from the data occupancy amount of the video encoded data buffer according to the VBV buffer model calculated by the VBV buffer model management unit 213. It calculates using shown (1).

ビデオ多重化時刻=ビデオのDTS − ビデオのVBVバッファ占有量/ビデオ符号化レート・・・式(3)   Video multiplexing time = Video DTS-Video VBV buffer occupancy / Video encoding rate (3)

式(3)によれば、VBVバッファの占有量が大きいほど、ビデオ多重化時刻の値が小さな時刻を示すのでより早い時刻に多重化を開始することになる。   According to Equation (3), the larger the VBV buffer occupancy, the smaller the value of the video multiplexing time, so that multiplexing starts at an earlier time.

一方、時刻および属性情報記憶部211は、符号化データ読み取り部208が読み取ったビデオ符号化データより、ビデオ符号化データのピクチャタイプ、フレームレート、DTS/PTS時刻情報等を記憶する(S807)。ただし、本実施形態では、ビデオ属性データの多重化はIntra-PcitureとPredictive-Pictureに限定して多重化するので時刻および属性情報記憶部211は、Intra-PcitureとPredictive-PictureのDTS時刻や属性データのみを記憶する。   On the other hand, the time and attribute information storage unit 211 stores the picture type, frame rate, DTS / PTS time information, and the like of the video encoded data from the video encoded data read by the encoded data reading unit 208 (S807). However, in this embodiment, since the multiplexing of video attribute data is limited to Intra-Pciture and Predictive-Picture, the time and attribute information storage unit 211 does not include the DTS time and attributes of Intra-Pciture and Predictive-Picture. Remember only the data.

この時、属性データの多重化時刻設定がされているか判断を行い(S808)、設定されていない場合(S808の”設定なし”)は、属性データ多重化時刻算出部212は、時刻および属性情報記憶部211により記憶されたビデオ符号化データのピクチャタイプと、DTS/PTS情報とから、先に示した式(2)により、属性データの多重化時刻を決定して多重化制御部209に設定する(S809)。   At this time, it is determined whether or not the attribute data multiplexing time is set (S808). If it is not set ("No setting" in S808), the attribute data multiplexing time calculation unit 212 determines the time and attribute information. Based on the picture type of the video encoded data stored in the storage unit 211 and the DTS / PTS information, the multiplexing time of the attribute data is determined and set in the multiplexing control unit 209 by the equation (2) described above. (S809).

属性データの多重化時刻=DTS時刻−3フレーム+1/4フレーム・・・(式4)   Multiplexing time of attribute data = DTS time-3 frames + 1/4 frames (Expression 4)

式(4)によれば、フレームの中央に属性データが多重化されるように多重化時刻は算出される。   According to Equation (4), the multiplexing time is calculated so that the attribute data is multiplexed at the center of the frame.

次に符号化データ充足量演算部206と、属性データ充足量演算部207は、それぞれの仮想バッファの占有量に、S802にて算出した仮想バッファ増加量を加算して更新する(S810)。   Next, the encoded data sufficiency calculation unit 206 and the attribute data sufficiency calculation unit 207 update the virtual buffer occupancy by adding the virtual buffer increase calculated in S802 (S810).

多重化制御部209は、全仮想バッファのデータ占有量を調べ、仮想バッファ量が100%を超えている仮想バッファがあるか否かを判断し、多重化するデータを決定する(S811)。ここで、多重化制御部209は、仮想バッファ量が100%を超えている符号化データが1つである場合は、その符号化データの多重化機会を与えることに決定する   The multiplexing control unit 209 checks the data occupation amount of all virtual buffers, determines whether there is a virtual buffer whose virtual buffer amount exceeds 100%, and determines data to be multiplexed (S811). Here, the multiplexing control unit 209 determines to give a multiplexing opportunity of the encoded data when there is one encoded data whose virtual buffer amount exceeds 100%.

なお、複数の符号化データが同時にそれぞれの仮想バッファの100%を越えている場合、多重化制御部209は、例えば、仮想バッファの100%を越えている複数の符号化データの優先度等に従って、最適な1つの符号化データに多重化機会を与えるようにする。ここで、符号化データの優先度とは、例えば、多重化時刻の間隔を正確に制御する必要のあるPSIやPCRのパケットは、最も優先順位が高い。次に、属性データパケットも時間に対する制限が高いので優先順位は高く設定される。これに対して、多重化時刻の一番多いビデオパケットは、最も優先順位が低い。   When a plurality of encoded data exceeds 100% of each virtual buffer at the same time, the multiplexing control unit 209 determines, for example, according to the priority of the plurality of encoded data exceeding 100% of the virtual buffer. A multiplexing opportunity is given to one piece of optimum encoded data. Here, with regard to the priority of encoded data, for example, a PSI or PCR packet that needs to accurately control the multiplexing time interval has the highest priority. Next, since the attribute data packet has a high restriction on time, the priority is set high. On the other hand, the video packet with the most multiplexed time has the lowest priority.

そして、多重化制御部209は、仮想バッファのデータ占有量が100%を超えている仮想バッファがあれば、多重化データが存在すると判断して(S811 "占有量を超えている”)、以下のようにして多重化を実行する(S812〜S816)。   The multiplexing control unit 209 determines that there is multiplexed data if there is a virtual buffer whose virtual buffer data occupancy exceeds 100% (S811 “exceeds occupancy”), and so on. Multiplexing is executed as described above (S812 to S816).

まず仮想バッファの占有量を超えた多重化要素において、システム時刻生成部205からのシステム時刻に基づき、設定されている多重化時刻と比較を行う。設定された多重化時刻がシステム時刻より小さい場合は多重化時刻が到来したと判断し、多重化を行うと判断する (S812の”時刻に達している”)。   First, in the multiplexing element exceeding the occupied amount of the virtual buffer, the set multiplexing time is compared based on the system time from the system time generation unit 205. If the set multiplexing time is smaller than the system time, it is determined that the multiplexing time has arrived, and it is determined that multiplexing is to be performed (“time has been reached” in S812).

多重化部115は、多重化制御部209からの多重化指示に従い、多重化すべき符号化データまたは属性データをビデオ符号化データバッファ109や、属性データバッファ110、音声符号化データバッファ111、音声属性データバッファ112から読み出しTSパケット化して、1TSパケットだけ多重化し、多重化したTSパケットをストリームバッファ116に出力する。このため、多重化されたデータのアドレスも増加するので、ストリームバッファ116に出力されたTSパケットのアドレスも1TSのデータ量だけ増加することになる(S813)。
多重化を行ったので仮想バッファの占有量から仮想バッファのサイズ値を減算して仮想バッファの占有量をゼロにリセットする(S814)。
この後続いて多重化制御部209は、まず、その多重化データが属性データであるか、あるいは符号化データであるかを判断する(S815)。
In accordance with the multiplexing instruction from the multiplexing control unit 209, the multiplexing unit 115 converts the encoded data or attribute data to be multiplexed into the video encoded data buffer 109, the attribute data buffer 110, the audio encoded data buffer 111, the audio attribute. The data is read from the data buffer 112, converted into TS packets, multiplexed by one TS packet, and the multiplexed TS packet is output to the stream buffer 116. For this reason, since the multiplexed data address also increases, the address of the TS packet output to the stream buffer 116 also increases by the amount of data of 1 TS (S813).
Since multiplexing has been performed, the virtual buffer size value is subtracted from the virtual buffer occupation amount to reset the virtual buffer occupation amount to zero (S814).
Subsequently, the multiplexing control unit 209 first determines whether the multiplexed data is attribute data or encoded data (S815).

多重化したデータが属性データである場合(S815“属性データである”)、多重化制御部209は、属性データ多重化時刻算出部215によって設定された多重化時刻を無効化する。これは、属性データは、1TSパケットで完結するので、続けて多重化されることはないので、その多重化時刻を一度無効化することにする。さらにS809で説明したのと同じ手順で次に多重化する属性データの多重化時刻を再度設定する(S816)。
なお、属性データ多重化時刻算出部212は、この時刻時点で記憶された符号化データのPTS/DTS時刻を調べ、次に多重化するビデオパケットがまだ記憶されていないと判断した場合は、多重化時刻の算出はできないので多重化時刻は無効化したままでよい。
When the multiplexed data is attribute data (S815 “is attribute data”), the multiplexing control unit 209 invalidates the multiplexing time set by the attribute data multiplexing time calculation unit 215. This is because attribute data is completed in one TS packet and is not subsequently multiplexed, so the multiplexing time is invalidated once. Further, the multiplexing time of attribute data to be multiplexed next is set again by the same procedure as described in S809 (S816).
The attribute data multiplexing time calculation unit 212 checks the PTS / DTS time of the encoded data stored at this time, and determines that the video packet to be multiplexed next is not stored yet. The multiplexing time cannot be calculated, so the multiplexing time may remain invalidated.

一方、S812で”時刻に達していない”と判断した場合はその要素が属性データであるかを判断する(S917)。属性データである場合は仮想バッファから仮想バッファのサイズと同じ値を減じて仮想バッファをゼロにクリアする(S818)。   On the other hand, if it is determined that the time has not been reached in S812, it is determined whether the element is attribute data (S917). If it is attribute data, the virtual buffer is cleared to zero by subtracting the same value as the size of the virtual buffer from the virtual buffer (S818).

そして、システム時刻生成部205は、システム時刻を1TSパケット分更新する(S819)。   Then, the system time generation unit 205 updates the system time by one TS packet (S819).

そして、多重化制御部114は、多重化を終了するか否かを判断し(S820)、多重化を続ける場合は(S820“終了しない”)、S804の処理に戻る一方、多重化を終了する場合は(S820“終了する”)、多重化終了の設定を行う(S821)。つまり、多重化制御部114は、すべての多重化時刻を無効化し、ビデオ符号化や多重化を停止する。   Then, the multiplexing control unit 114 determines whether or not to end the multiplexing (S820). When the multiplexing is continued (S820 “does not end”), the process returns to the process of S804, and the multiplexing is ended. In this case (S820 “end”), the end of multiplexing is set (S821). That is, the multiplexing control unit 114 invalidates all multiplexing times and stops video encoding and multiplexing.

従って、本実施形態1によれば、符号化データ仮想バッファ増加量演算部203は符号化データの符号化レートに基づいて、符号化データ仮想バッファの増加量を求め、符号化データ充足量演算部206はその増加量に基づいて、符号化データ仮想バッファの充足量を演算する一方、属性データ符号化レート倍率設定部202は符号化データのフレームレートに対する属性データの符号化レートの倍率を設定し、属性データ仮想バッファ増加量演算部204はその倍率に基づいて、属性データ仮想バッファの増加量を求め、属性データ充足量演算部207はその増加量に基づいて、属性データ仮想バッファの充足量を演算し、多重化制御部209は、システム時刻に基づいて、符号化データ仮想バッファの充足量と、属性データ仮想バッファの充足量とが各仮想バッファの最大値に達すると、符号化データ多重化時刻算出部210からの符号化データの多重化時刻と、属性データ多重化時刻算出部212からの属性データの多重化時刻とに基づいて、符号化データの各フレームの前後除外期間に属性データが多重化されるよう、符号化データと属性データとの多重化を制御する。   Therefore, according to the first embodiment, the encoded data virtual buffer increase amount calculation unit 203 obtains the increase amount of the encoded data virtual buffer based on the encoding rate of the encoded data, and the encoded data sufficient amount calculation unit. 206 calculates the fullness of the encoded data virtual buffer based on the increase amount, while the attribute data encoding rate magnification setting unit 202 sets the ratio of the encoding rate of the attribute data to the frame rate of the encoded data. The attribute data virtual buffer increase amount calculation unit 204 calculates the increase amount of the attribute data virtual buffer based on the magnification, and the attribute data full amount calculation unit 207 calculates the satisfaction amount of the attribute data virtual buffer based on the increase amount. The multiplexing control unit 209 calculates the fullness of the encoded data virtual buffer and the attribute data virtual buffer based on the system time. When the fullness reaches the maximum value of each virtual buffer, the multiplexed time of the encoded data from the encoded data multiplexing time calculation unit 210 and the multiplexing time of the attribute data from the attribute data multiplexing time calculation unit 212 Based on the above, the multiplexing of the encoded data and the attribute data is controlled so that the attribute data is multiplexed in the exclusion period before and after each frame of the encoded data.

このため、本実施形態1の多重化制御装置によれば、ビデオや音声の符号化データの符号化属性を記載した属性データを多重化する際に、属性データの多重化時刻が各フレーム期間の中央に位置するように多重化されるので、各フレームの多重化期間の開始時刻ないし終了時刻に対して十分な余裕を持って多重化することができる。その結果、多重化されたトランスポートストリーム(TS)を受信して再生する受信側において属性データの取りこぼしや符号化データと属性データの関連付けを誤ったりすることが発生しない安定した多重化装置を提供できる。   For this reason, according to the multiplexing control apparatus of the first embodiment, when the attribute data describing the encoding attribute of the encoded data of video or audio is multiplexed, the multiplexing time of the attribute data is set for each frame period. Since multiplexing is performed so as to be located at the center, multiplexing can be performed with a sufficient margin with respect to the start time or end time of the multiplexing period of each frame. As a result, it is possible to provide a stable multiplexing device that does not cause a loss of attribute data or an error in association between encoded data and attribute data on the receiving side that receives and reproduces the multiplexed transport stream (TS). it can.

本実施形態1ではビデオ属性データの多重化機会をビデオ符号化フレームのN=2倍の例で説明した。N=2の場合はビデオフレームの1/4から3/4の期間に属性データの符号化を有効にすることができる。前半の無効化期間および後半の無効化期間は1/4である。これを図9(1)に示す。   In the first embodiment, the video attribute data multiplexing opportunity has been described as an example of N = 2 times the video encoded frame. When N = 2, encoding of attribute data can be validated during a period from 1/4 to 3/4 of the video frame. The invalidation period in the first half and the invalidation period in the second half are ¼. This is shown in FIG.

ビデオ属性データの多重化機会をビデオ符号化フレームのN=3倍に設定すると図9(2)のように1/3から2/3の期間に属性データの符号化を有効にすることができる。   When the multiplexing opportunity of video attribute data is set to N = 3 times the video encoding frame, encoding of attribute data can be made effective in a period of 1/3 to 2/3 as shown in FIG. 9 (2). .

前半の無効化期間および後半の無効化期間は1/3である。   The invalidation period in the first half and the invalidation period in the second half are 1/3.

さらにビデオ属性データの多重化機会をビデオ符号化フレームのN=4倍に設定すると図9(3)のように3/8から6/8の期間に属性データの符号化を有効にすることができる。前半の無効化期間および後半の無効化期間は3/8である。   Furthermore, if the video attribute data multiplexing opportunity is set to N = 4 times the video encoding frame, the encoding of the attribute data may be enabled during the period of 3/8 to 6/8 as shown in FIG. 9 (3). it can. The invalidation period in the first half and the invalidation period in the second half are 3/8.

これらをまとめると、符号化データのフレームレートに対して属性データの符号化レートの倍率N(Nは2以上の自然数)とすると、有効期間はフレーム中央の1/Nとなる。また無効期間のフレーム前半部あるいはフレーム後半部の期間は(N−1)/(2N)として一般化して表現できる。   In summary, when the magnification N of the encoding rate of the attribute data (N is a natural number of 2 or more) with respect to the frame rate of the encoded data, the effective period is 1 / N at the center of the frame. The period of the first half of the invalid period or the second half of the frame can be generalized as (N-1) / (2N).

本発明は、MPEG等の高能率符号化を用いて符号化されたビデオや音声データの多重化を行ってトランスポートストリーム(TS)を生成してファイル蓄積したりネットワーク経由で送信したりするデジタルレコーダ機器やデジタルビデオカメラ等の多重化装置および多重化制御方法に適用できる。   The present invention digitally multiplexes video and audio data encoded using high-efficiency encoding such as MPEG to generate a transport stream (TS) and store it in a file or transmit it via a network. The present invention can be applied to a multiplexing device and a multiplexing control method such as a recorder device and a digital video camera.

本発明に係る多重化制御装置と、多重化装置の全体構成例を示す図である。It is a figure which shows the multiplexing control apparatus which concerns on this invention, and the example of whole structure of a multiplexing apparatus. 実施形態1の多重化制御装置114の詳細構成例を示すブロック図である。3 is a block diagram illustrating a detailed configuration example of a multiplexing control device 114 according to the first embodiment. FIG. 実施形態1の仮想バッファのバッファ占有量を示す図である。It is a figure which shows the buffer occupation amount of the virtual buffer of Embodiment 1. ビデオ符号化データ<ビデオ属性データの場合の属性データの多重化時刻の例を示す図である。It is a figure which shows the example of the multiplexing time of attribute data in the case of video encoding data <video attribute data. ビデオ属性データ<ビデオ符号化データの場合の属性データの多重化時刻の例を示す図である。It is a figure which shows the example of the multiplexing time of attribute data in the case of video attribute data <video encoding data. 従来の属性データの多重化時刻の例を示す図である。It is a figure which shows the example of the multiplexing time of the conventional attribute data. 実施形態1の属性データの多重化時刻の例を示す図である。It is a figure which shows the example of the multiplexing time of the attribute data of Embodiment 1. 実施形態1における多重化制御の手順を示すフローチャートである。4 is a flowchart illustrating a multiplexing control procedure according to the first embodiment. 実施形態1の符号化レートN倍の有効無効期間を示す図である。It is a figure which shows the effective / ineffective period of the encoding rate N times of Embodiment 1. FIG.

符号の説明Explanation of symbols

100 多重化装置
101 符号化装置
102 ヘッダー生成部
103 ビデオ符号化部
104 ビデオ属性データ生成部
105 音声符号化部
106 音声属性データ生成部
107 PSIデータ生成部
108 ヘッダーデータバッファ
109 ビデオ符号化データバッファ
110 ビデオ属性データバッファ
111 音声符号化データバッファ
112 音声属性データバッファ
113 PSIデータバッファ
114 多重化制御装置
115 多重化部
116 ストリームバッファ
201 符号化レート算出部
202 属性データ多重化レート倍率設定部
203 符号化データ仮想バッファ増加量演算部
204、属性データ仮想バッファ増加量演算部
205 システム時刻生成部
206 符号化データ充足量演算部
207 属性データ充足量演算部
208 符号化データ読取部
209、多重化制御部
210 符号化データ多重化時刻算出部
211 時刻および属性情報記憶部
212 属性データ多重化時刻算出部
213 VBVバッファモデル管理部
DESCRIPTION OF SYMBOLS 100 Multiplexer 101 Encoding apparatus 102 Header generation part 103 Video encoding part 104 Video attribute data generation part 105 Audio | voice encoding part 106 Audio | voice attribute data generation part 107 PSI data generation part 108 Header data buffer 109 Video encoding data buffer 110 Video attribute data buffer 111 Audio encoded data buffer 112 Audio attribute data buffer 113 PSI data buffer 114 Multiplexing controller 115 Multiplexing unit 116 Stream buffer 201 Coding rate calculation unit 202 Attribute data multiplexing rate magnification setting unit 203 Encoded data Virtual buffer increase amount calculation unit 204, attribute data virtual buffer increase amount calculation unit 205 system time generation unit 206 encoded data full amount calculation unit 207 attribute data full amount calculation unit 208 No. data reading unit 209, the multiplexing control unit 210 encoded data multiplexing time calculating unit 211 time and attribute information storage unit 212 the attribute data multiplexing time calculating unit 213 VBV buffer model management unit

Claims (3)

複数のフレームからなる符号化データと、前記符号化データの属性データとを多重化する多重化制御装置であって、
前記符号化データの符号化レートに基づいて、符号化データ仮想バッファの充足量を求める符号化データ充足量演算部と、
前記符号化データのフレームレートに対する前記属性データの符号化レートの倍率を設定する属性データ符号化レート倍率設定部と、
前記属性データの符号化レートの倍率に基づいて、属性データ仮想バッファの充足量を演算する属性データ充足量演算部と、
前記符号化データの多重化時刻と、前記属性データの符号化レートの倍率とに基づいて、前記符号化データの各フレームの開始時点以降の所定期間および終了時点以前の所定期間を除く前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるように、前記属性データの多重化時刻を設定する属性データ多重化時刻設定部と、
前記符号化データの多重化時刻と、前記属性データの多重化時刻と、前記符号化データ仮想バッファの充足量と、前記属性データ仮想バッファの充足量とに基づいて、前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるよう、前記符号化データと前記属性データとの多重化を制御する多重化制御部と、
を有する多重化制御装置。
A multiplexing control device that multiplexes encoded data composed of a plurality of frames and attribute data of the encoded data,
An encoded data sufficient amount calculation unit for determining a sufficient amount of the encoded data virtual buffer based on an encoding rate of the encoded data;
An attribute data encoding rate magnification setting unit for setting a magnification of the encoding rate of the attribute data with respect to a frame rate of the encoded data;
An attribute data sufficiency calculator that calculates the sufficiency of the attribute data virtual buffer based on the magnification of the encoding rate of the attribute data;
The encoding excluding a predetermined period after the start time of each frame of the encoded data and a predetermined period before the end time based on a multiplexing time of the encoded data and a rate of encoding of the attribute data An attribute data multiplexing time setting unit that sets a multiplexing time of the attribute data so that the attribute data is multiplexed in a period before and after each frame of data;
Each frame of the encoded data based on the multiplexed time of the encoded data, the multiplexed time of the attribute data, the fullness of the encoded data virtual buffer, and the fullness of the attribute data virtual buffer A multiplexing control unit that controls multiplexing of the encoded data and the attribute data so that the attribute data is multiplexed in the period before and after
A multiplexing control device.
請求項1記載の多重化制御装置において、
前記属性データ符号化レート倍率設定部は、
前記符号化データのフレームレートに対する前記属性データの符号化レートの倍率としてN(Nは2以上の自然数)倍を設定し、
前記属性データ多重化時刻設定部は、
前記符号化データの各フレームの前後除外期間を前記符号化データの各フレームの(N−1)/(2N)にし、前記属性データが多重化されるように、前記属性データの多重化時刻を設定する、多重化制御装置。
The multiplexing control device according to claim 1,
The attribute data encoding rate magnification setting unit
Set N (N is a natural number of 2 or more) times as a magnification of the encoding rate of the attribute data with respect to the frame rate of the encoded data;
The attribute data multiplexing time setting unit
The exclusion period before and after each frame of the encoded data is set to (N−1) / (2N) of each frame of the encoded data, and the multiplexing time of the attribute data is set so that the attribute data is multiplexed. Multiplexing control device to be set.
複数のフレームからなる符号化データと、前記符号化データの属性データとを多重化する多重化制御方法であって、
前記符号化データの符号化レートに基づいて、符号化データ仮想バッファの充足量を求めるステップと、
前記符号化データのフレームレートに対する前記属性データの符号化レートの倍率を設定するステップと、
前記属性データの符号化レートの倍率に基づいて、属性データ仮想バッファの充足量を演算するステップと、
前記符号化データの多重化時刻と、前記属性データの符号化レートの倍率とに基づいて、前記符号化データの各フレームの開始時点以降の所定期間および終了時点以前の所定期間を除く前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるように、前記属性データの多重化時刻を設定するステップと、
前記符号化データの多重化時刻と、前記属性データの多重化時刻と、前記符号化データ仮想バッファの充足量と、前記属性データ仮想バッファの充足量とに基づいて、前記符号化データの各フレームの前後除外期間に、前記属性データが多重化されるよう、前記符号化データと前記属性データとの多重化を制御するステップと、
を有する多重化制御方法。
A multiplexing control method for multiplexing encoded data composed of a plurality of frames and attribute data of the encoded data,
Obtaining a fullness of the encoded data virtual buffer based on the encoding rate of the encoded data;
Setting a magnification of the encoding rate of the attribute data with respect to the frame rate of the encoding data;
Calculating a sufficient amount of the attribute data virtual buffer based on a magnification of the encoding rate of the attribute data;
The encoding excluding a predetermined period after the start time of each frame of the encoded data and a predetermined period before the end time based on the multiplexing time of the encoded data and the encoding rate magnification of the attribute data Setting a multiplexing time of the attribute data so that the attribute data is multiplexed in the exclusion period before and after each frame of data;
Each frame of the encoded data based on the multiplexed time of the encoded data, the multiplexed time of the attribute data, the fullness of the encoded data virtual buffer, and the fullness of the attribute data virtual buffer Controlling the multiplexing of the encoded data and the attribute data so that the attribute data is multiplexed during the period before and after
A multiplexing control method comprising:
JP2008150321A 2008-06-09 2008-06-09 Multiplexing control apparatus and multiplexing control method Active JP4835651B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008150321A JP4835651B2 (en) 2008-06-09 2008-06-09 Multiplexing control apparatus and multiplexing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008150321A JP4835651B2 (en) 2008-06-09 2008-06-09 Multiplexing control apparatus and multiplexing control method

Publications (2)

Publication Number Publication Date
JP2009296501A true JP2009296501A (en) 2009-12-17
JP4835651B2 JP4835651B2 (en) 2011-12-14

Family

ID=41544220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008150321A Active JP4835651B2 (en) 2008-06-09 2008-06-09 Multiplexing control apparatus and multiplexing control method

Country Status (1)

Country Link
JP (1) JP4835651B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02272851A (en) * 1989-04-14 1990-11-07 Oki Electric Ind Co Ltd Assembly system and disassembly system of picture packet
JPH06253282A (en) * 1993-03-01 1994-09-09 Hitachi Ltd Coding and decoding device for picture signal
JPH1174868A (en) * 1996-09-02 1999-03-16 Toshiba Corp Information transmission method, coder/decoder in information transmission system adopting the method, coding multiplexer/decoding inverse multiplexer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02272851A (en) * 1989-04-14 1990-11-07 Oki Electric Ind Co Ltd Assembly system and disassembly system of picture packet
JPH06253282A (en) * 1993-03-01 1994-09-09 Hitachi Ltd Coding and decoding device for picture signal
JPH1174868A (en) * 1996-09-02 1999-03-16 Toshiba Corp Information transmission method, coder/decoder in information transmission system adopting the method, coding multiplexer/decoding inverse multiplexer

Also Published As

Publication number Publication date
JP4835651B2 (en) 2011-12-14

Similar Documents

Publication Publication Date Title
JP4221676B2 (en) Information processing apparatus, information processing method, recording medium, and program
JP6225446B2 (en) Moving image data distribution apparatus, method, program, and system
JP4515465B2 (en) Moving picture photographing apparatus and moving picture photographing method, moving picture reproducing apparatus and moving picture reproducing method for reproducing a video signal recorded on a recording medium
JPH1188874A (en) Method for inserting editable point in encoding device and the encoding device
JP2006203910A (en) Method for transmitting data with no jitter in synchronizing ethernet (r) system
JP4835651B2 (en) Multiplexing control apparatus and multiplexing control method
US6999090B2 (en) Data processing apparatus, data processing method, information storing medium, and computer program
JP5046907B2 (en) Recording apparatus, control method therefor, and program
JP2006303611A (en) Video processing apparatus, video processing method, and computer program
JP2006066995A (en) Image reproducer, its control method and program, and storage medium
JP2003052040A (en) Mpeg data reproduction equipment
WO2004006576A1 (en) Image data processing device and method
JP2004096474A (en) Reproducing method and system of moving picture data
JP3897783B2 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JP2008177874A (en) Recorder, recording method, program, and storage medium
JP2009049855A (en) Content-playback apparatus
JP2009038704A (en) Imaging data recorder
JP2004297829A (en) Mpeg data reproduction equipment
JP2007325304A (en) Mpeg data recording and reproducing method
JP2008005520A (en) Mpeg data recording and reproducing method
JP2003092733A (en) Mpeg data recorder
JP2003235011A (en) Program stream production apparatus and recording and reproducing apparatus employing the same
JP2006074625A (en) Digital data recorder and digital data recording method
JP2002158968A (en) Video/audio signal reproducing device and its method and video/audio signal recording/reproducing device and its method
JP2007074358A (en) Video signal recording device, recording medium, and video signal reproducing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110608

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110812

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110912

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4835651

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350