JP4212794B2 - Stream multiplexing transmission method - Google Patents
Stream multiplexing transmission method Download PDFInfo
- Publication number
- JP4212794B2 JP4212794B2 JP2001257252A JP2001257252A JP4212794B2 JP 4212794 B2 JP4212794 B2 JP 4212794B2 JP 2001257252 A JP2001257252 A JP 2001257252A JP 2001257252 A JP2001257252 A JP 2001257252A JP 4212794 B2 JP4212794 B2 JP 4212794B2
- Authority
- JP
- Japan
- Prior art keywords
- packet
- video
- transmission
- audio
- pes
- 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
Links
Images
Landscapes
- Television Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Time-Division Multiplex Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、MPEG−2(Moving Picture Experts Group-2)のトランスポートストリームのように、複数のストリームを入力しパケット多重化する装置に関するものである。
【0002】
【従来の技術】
近年、コーデック技術の発展に伴い、伝送容量の小さな伝送路でも膨大なデータ量の映像信号等を伝送することが可能になった。
トランスポートストリーム(以後、TSと称す)は、映像信号や音声信号を圧縮したデータをペイロードとするパケット群である。
音声信号の符号化レートは、通常固定の符号化レート(例えば384kbit/s)であるため、伝送路の伝送容量が用途により異なっても音声信号の符号化レートは決まり、残りの伝送路の伝送容量に映像信号の伝送レートを割り当てることになる。
図3に、従来技術におけるパケット多重装置の構成例を示し、動作説明する。図3は、ビデオデコーダ301、フォーマット検出部302、オーディオA/D変換部303、CPU304、ビデオMPEGエンコーダ305、オーディオMPEGエンコーダ306、STCカウンタ部307、ビデオPESパケット生成部308、オーディオPESパケット生成部309、プライベートPESパケット生成部310、STCカウンタ値ホールド部311、ビデオペイロードメモリ312、オーディオペイロードメモリ313、プライベートペイロードメモリ314、PCR符号化部315、ビデオTSパケット制御部316、オーディオTSパケット制御部317、プライベートTS制御部318、PAT・TSパケット制御部319、PMT・TSパケット制御部320、PCR・TSパケット制御部321、バイトカウンタ部322、TSパケットカウンタ部323、TSパケット送出指示情報格納ROM324、伝送モード切り替え部325より構成される。
【0003】
ビデオデコーダ301、フォーマット検出部302、オーディオA/D変換部303、ビデオMPEGエンコーダ305、オーディオMPEGエンコーダ306、ビデオPESパケット生成部308、オーディオPESパケット生成部309、プライベートPESパケット生成部310、ビデオペイロードメモリ312の書き込み側、オーディオペイローオメモリ313の書き込み側、プライベートペイロードメモリ314の書き込み側、STCカウンタ部307は、ビデオデコーダ301の出力である映像用クロック329を基準として動作する。 例えば、27MHzである。
また、ビデオペイロードメモリ312の読み出し側、オーディオペイロードメモリ313の読み出し側、プライベートペイロードメモリ314の読み出し側、ビデオTSパケット生成部316、オーディオTSパケット生成部317、プライベートTSパケット生成部318、PAT・TSパケット生成部319、PMT・TSパケット生成部320、PCR・TSパケット生成部321、バイトカウンタ部322、TSパケットカウンタ部323、TSパケット送出指示情報格納ROM324は、伝送路から得られる伝送クロック372を基準として動作する。 例えば、伝送容量が8Mbit/sの場合は、バイト処理のため1/8となり、1MHzとなる。
【0004】
続いて、このパケット多重装置の動作について詳しく説明する。
ビデオデコーダ301は、アナログ映像信号325(例えばNTSC信号)を得ると、上記信号をA/D変換してデコードし、デジタル映像信号328と、映像用クロック329を出力する。
フォーマット検出部302はデジタル映像信号328と映像用クロック329を得ると、デジタル映像信号328のフォーマットが正常であるか異常であるかを検出する。 例えば、デジタル映像信号328がITU−R656である場合デジタル映像信号328に存在するSAV(Start Active Video)をトリガとし、映像用クロック329を基準とする画素カウンタおよびラインカウンタを動作させ、順次SAVを得た時点の上記カウンタ値が常に一定値であるかの判断によりフォーマットの正常と異常を判断する。
オーディオA/D変換部303はアナログ音声信号326を得ると、上記信号をA/D変換し、デジタル音声信号333(例えばPCM信号)とデジタルオーディオクロック379を出力する。
ビデオMPEGエンコーダ305は、CPU304から得るビデオ符号化レート情報378に基づき、デジタル映像信号330を圧縮し、圧縮したビデオ圧縮データ334とビデオ圧縮クロック335を出力する。
【0005】
CPU304は、伝送モード切替部325からのモード設定情報376を得ると、ビデオ符号化レート情報378を生成し、ビデオMPEGエンコーダ305に出力する。 なお、モード設定情報376はターゲットの伝送容量に対応したビデオ符号化レートの情報を外部からスイッチ等で設定するものである。
オーディオMPEGエンコーダ306は、デジタル音声信号333とデジタルオーディオクロック379を得ると、上記信号を圧縮し、圧縮したオーディオ圧縮データ336とオーディオ圧縮クロック337を出力する。
伝送モード切替部325は複数の伝送路の伝送容量に対応したスイッチ情報に基づき、ビデオ符号化レート設定情報376を出力する。
ビデオPES生成部308は、ビデオ圧縮データ334とビデオ圧縮クロック335を得ると、上記データにヘッダ等を付加してパケット化したビデオPESデータ338と書き込み信号339を生成し、ビデオPESデータ338を、ビデオペイロードメモリ312に書き込む。 ここで、PESとは、Packetized Elementary Streamの略である。
オーディオPES生成部309は、オーディオ圧縮データ336とオーディオ圧縮クロック337を得ると、上記データにヘッダ等を付加してパケット化したオーディオPESデータ340と書き込み信号341を生成し、オーディオ圧縮データ340をオーディオペイロードメモリ313に書き込む。
プライベートPES生成部310は、プライベートデータ327を得ると上記データにヘッダ等を付加してパケット化したプライベートPESデータ342とプライベートクロック343を生成し、プライベートPESデータ342をプライベートペイロードメモリ314に書き込む。
【0006】
STCカウンタ部307は、映像用クロック331を得ると、上記クロックを基準として42bitのカウンタを動作させる。 STCとは、System Clock Referenceの略であり、上記映像用クロック331と同一のクロックを受信側で再生させるためのPLL処理で必要なカウンタ値である。
STCカウンタ値ホールド部311は、PCR符号化部315からのホールド信号346に従い、STCカウンタ値344をホールドし、ホールドされたSTCカウンタ値345を出力する。
PCRとは、Program Clock Referenceの略であり、STCカウンタ値を符号化した値である。
PCR符号化部315は、PCR・TSパケット制御部321からのPCR読み出し信号357に従い、ホールドされたSTCカウンタ値345を符号化し、PCR値356を出力する。
バイトカウンタ部322は、伝送クロック372を得ると伝送クロック372を基準として188バイトまたは204バイトのカウンタを繰り返し動作させ、TSパケットのTSパケット開始指示信号359と上記カウンタ値358を出力する。 188バイトまたは204バイトは1TSパケットを意味する。
TSパケットカウンタ部323はTSパケット開始指示信号359をイネーブルとして伝送クロック372を基準に動作するカウンタを動かし、TSパケットカウンタ値374をTSパケット送出指示情報格納ROM324に出力する。
TSパケット送出指示情報格納ROM324は、TSパケットカウンタ値374に従い、ROM内部の情報、所謂ビデオTSパケット送出指示信号361、オーディオTSパケット送出指示信号363、プライベートTSパケット送出指示信号365、PAT・TSパケット送出指示信号367、PMT・TSパケット送出指示信号369、PCR・TSパケット送出指示信号371を出力する。
ビデオTSパケット制御部316はビデオTSパケット送出指示信号361とビデオペイロードメモリ312の蓄積状態349により、読み出し信号348を生成し、ビデオペイロードメモリ312からビデオPESデータ347を読み出し、バイトカウンタ値358とTSパケット開始指示信号359に基づきヘッダ等を付加し、ビデオTSパケット360を生成し出力する。
【0007】
オーディオTSパケット制御部317はオーディオTSパケット送出指示信号363とオーディオペイロードメモリ313の蓄積状態352により、読み出し信号351を生成し、オーディオペイロードメモリ313からオーディオPESデータ350を読み出し、バイトカウンタ値358とTSパケット開始指示信号359に基づきヘッダ等を付加し、オーディオTSパケット362を生成し出力する。
プライベートTSパケット制御部318はプライベートTSパケット送出指示信号365とプライベートペイロードメモリ314の蓄積状態355により、読み出し信号354を生成し、プライベートペイロードメモリ314からプライベートPESデータ353を読み出し、バイトカウンタ値358とTSパケット開始指示信号359に基づきヘッダ等を付加し、プライベートTSパケット364を生成し出力する。
PAT・TSパケット制御部319はPAT・TSパケット送出指示信号367に従い、バイトカウンタ値358とTSパケット開始指示信号359に基づきヘッダ等を付加し、PAT・TSパケット366を生成し出力する。
PMT・TSパケット制御部320はPMT・TSパケット送出指示信号369に従い、バイトカウンタ値358とTSパケット開始指示信号359に基づきヘッダ等を付加し、PMT・TSパケット368を生成し出力する。
PCR・TS制御部321はPCR・TSパケット送出指示信号371に従い、読み出し信号357を生成し、PCR符号化部315からPCR値356を読み出し、バイトカウンタ値358とTSパケット開始指示信号359に基づきヘッダ等を付加し、PCR・TSパケット370を生成し出力する。 以上のようにして、上記TSパケットが多重されTS375が生成される。
【0008】
続いて、TSパケット送出指示情報格納ROM324の送出指示情報の生成方法とそれぞれのペイロードメモリとの関係について説明する。 まず、送出指示情報の生成方法について説明する。
ここでは、TSパケット送出指示情報格納ROM324は、8192バイトの容量を持つものとする。 ここで、4つの異なる伝送路の伝送容量に対応するように、この容量8192を4分割し、2048を1つの伝送容量に対応させその2048バイトの空間に、それぞれのTSパケット送出指示情報を格納する。 そして、TSパケットカウンタ部323からのTSパケットカウンタ値374と設定情報376に従い、それぞれのTSパケット送出指示信号が出力される。運用上、100msに1回以上の伝送が規定されているTSパケットは、PCR・TSパケットとPAT・TSパケット、PMT・TSパケットである。
例えば、伝送路の伝送容量が10Mbit/sの場合、伝送クロック372はバイト単位のクロックになるため、1/8されて1.25MHzとなる。
そこで、1TSパケットの時間は、(1/1.25MHz)×188によって、150.4μsとなる。 そのため、2048バイトの空間が一回りする時間は150.4μs×2048で308msとなる。 ここで、PCR・TSパケット、PAT・TSパケット、PMT・TSパケットの送出指示情報を2048空間に1回の割り当てとすると、1回/308msとなり前記規定に違反する。 従って、2048空間に6回の割り当てをすると、1回/77msとなり、前記規定を満足する。
同様に、オーディオTSパケットは、オーディオ符号化レート384kbit/s固定のため、ヘッダ等の付加されたオーディオTSパケットの伝送レートは上記算出方法で2048空間に112割り当てれば、オーディオTSパケットの伝送レートを満足する。 プライベートTSパケットの伝送レートも同様に算出し、仮に19.2kbit/sであれば、2048空間に7回割り当てればプライベートTSパケットの伝送レートを満足する。
ビデオTSパケットの割り当ては、2048空間から上記ビデオTSパケット以外の割り当て分を差し引いた1905となり、ビデオTSパケットの伝送レートが決定する。 このように伝送路の伝送容量に依存し、それぞれのTSパケットの割り当てを計算してROMに格納し、4つの伝送路を外部より選択することになる。
【0009】
続いて、図4で送出指示信号とペイロードメモリ蓄積状態について説明する。各送出指示信号は、Lowレベルでアクティブとする。 また、各ペイロードメモリの蓄積状態は、Highレベルで送出可能なペイロードデータがメモリに蓄積されているものとする。
ビデオTSパケット送出指示信号361がLowで、かつ、ビデオペイロードメモリ蓄積状態349がHighの時、ビデオTSパケット360を送出する。ビデオペイロードメモリ蓄積状態349がLowの時は、NULL・TSパケットを送出する。 なお、NULL・TSパケットとは本来意味のないパケットである。
オーディオTSパケット送出指示信号363がLowで、かつオーディオペイロードメモリ蓄積状態352がHighの時、オーディオTSパケット362を送出する。 オーディオメモリ蓄積状態349がLowの時は、NULL・TSパケットを送出する。
プライベートTSパケット送出指示信号365がLowで、かつプライベートペイロードメモリ蓄積状態355がHighの時は、プライベートTSパケット364を送出する。 プライベートメモリ蓄積状態349がLowの時は、NULL・TSパケットを送出する。
PAT・TSパケット送出指示信号367がLowの時、PAT・TSパケット366を送出する。 PMT・TSパケット送出指示信号369がLowの時、PMT・TSパケット368を送出する。 PCR・TSパケット送出指示信号371がLowの時、PCR・TSパケット370を送出する。
以上の様にしてそれぞれのTSパケットが多重されTS375が生成される。ところで、ビデオTSパケット以外のTSパケットの伝送レートは、伝送路の伝送容量が異なっても固定である。
【0010】
【発明が解決しようとする課題】
前述した様に、TSパケット送出指示情報格納ROMを使用するTSパケットの伝送指示方法では、予めターゲットの伝送路の伝送容量から各TSパケットの送出指示情報を計算し、ROMに格納する必要がある。 また、複数の伝送路に対応するには複数の送出指示情報を用意し、ターゲットの伝送路に対応する前記情報を外部より選択する必要がある。
したがって、伝送路の伝送容量が異なる度に送出指示情報の計算と送出指示情報の選択が必要になり、装置としての汎用性が失われることになる。
本発明はこれらの欠点を除去し、伝送容量に依存しない各TSパケットの多重が実現できるパケット多重装置を提供することを目的とする。
【0011】
【課題を解決するための手段】
本発明は上記目的を達成するため、複数のデータストリームをそれぞれパケット化し1つのデータストリームに多重して伝送するストリーム多重化伝送方法において、上記複数のデータストリームの多重化を、それぞれ予め定められたパケットの多重化割り当て順位に基づき制御し、1つのデータストリームに多重化するものである。
また、複数のデータストリームの多重化を、パケットの多重される間隔が規定されているデータストリームは所定フレーム単位で行い、伝送レートが固定のデータストリームは、少なくとも1パケットの構成に必要なペイロードがメモリに蓄積されている場合に行い、これらデータストリームのパケットレートの合計と伝送レートの差分をビデオデータストリームのパケットの伝送レートに割り当て多重化するものである。
また、複数のデータストリームの多重化を、パケットの多重される間隔が規定されているデータストリームは映像信号のフレーム単位で行い、入力データがパケットのペイロードに格納されるビデオデータを含む複数の種類のデータストリームは、パケットの構成に必要なペイロードのメモリの蓄積状態をそれぞれ監視し、ペイロードがメモリに蓄積されている場合に行い、ビデオデータストリームを除く他のデータストリームのパケットレートの合計と伝送レートの差分をビデオデータストリームのパケットの伝送レートに自動的に割り当て多重化するものである。
【0012】
【発明の実施の形態】
図1に、本発明によるパケット多重装置の一実施例のブロック構成を示し以下詳細に説明する。
図1は、ビデオデコーダ101、フォーマット検出部102、オーディオA/D変換部103、CPU104、ビデオMPEGエンコーダ105、オーディオMPEGエンコーダ106、STCカウンタ部107、ビデオPESパケット生成部108、オーディオPESパケット生成部109、プライベートPESパケット生成部110、STCカウンタ値ホールド部111、ビデオペイロードメモリ112、オーディオペイロードメモリ113、プライベートペイロードメモリ114、PCR符号化部115、ビデオTSパケット制御部116、オーディオTSパケット制御部117、プライベートTS制御部118、PAT・TSパケット制御部119、PMT・TSパケット制御部120、PCR・TSパケット制御部121、バイトカウンタ部122、メモリ蓄積状態検出部123、ビデオ符号化レート計算部173より構成される。
ビデオデコーダ101、フォーマット検出部102、オーディオA/D変換部103、ビデオMPEGエンコーダ105、オーディオMPEGエンコーダ106、ビデオPESパケット生成部108、オーディオPESパケット生成部109、プライベートPESパケット生成部110、ビデオペイロードメモリ112の書き込み側、オーディオペイローオメモリ113の書き込み側、プライベートペイロードメモリ114の書き込み側、STCカウンタ部107は、ビデオデコーダ101の出力と、例えば27MHzである映像用クロック128を基準として動作する。
【0013】
ビデオペイロードメモリ112の読み出し側、オーディオペイロードメモリ113の読み出し側、プライベートペイロードメモリ114の読み出し側、ビデオTSパケット生成部116、オーディオTSパケット生成部117、プライベートTSパケット生成部118、PAT・TSパケット生成部119、PMT・TSパケット生成部120、PCR・TSパケット生成部121、バイトカウンタ部122、メモリ蓄積状態検出部123は、伝送路から得られる伝送クロック171を基準として動作する。 例えば、伝送容量が8Mbit/sの場合はバイト処理のため、1/8となり1MHzとなる。
続いて、本発明のパケット多重装置の動作について詳しく説明する。 ビデオデコーダ101はアナログ映像信号124(例えばNTSC信号)を得ると上記信号をA/D変換してデコードし、デジタル映像信号127とこのデジタル映像信号と同位相の映像用クロック128を出力する。
フォーマット検出部102はデジタル映像信号127と映像用クロック128を得ると、デジタル映像信号127のフォーマット(例えばITU−R656)が正常か異常かを検出する。 例えば、デジタル映像信号127に存在するSAVをトリガとし映像用クロック128を基準とする画素カウンタ及びラインカウンタを動作させ、順次SAVを認識した時点の上記カウンタ値が常に一定値であるかの判断によって、フォーマットの正常と異常を判断する。 一方、映像信号の3フレームパルス129を出力する。 3フレームパルスとは3フレーム間隔のパルス、所謂99ms間隔のパルスである。
【0014】
オーディオA/D変換部103はアナログ音声信号125を得ると上記信号をA/D変換し、デジタル音声信号179(例えばPCM信号)とデジタルオーディオクロック181を出力する。
ビデオMPEGエンコーダ105は、CPU104からのビデオ符号化レート情報178に基づき、デジタル映像信号130を圧縮し、圧縮したビデオ圧縮データ133とビデオ圧縮クロック134を出力する。
CPU104は、ビデオ符号化レート計算部173からの伝送容量情報176を得て、ビデオ符号化レート情報178をビデオMPEGエンコーダ105に出力する。
オーディオMPEGエンコーダ106は、デジタル音声信号179とデジタルオーディオクロック181を得ると、上記信号を圧縮し、圧縮したオーディオ圧縮データ135とオーディオ圧縮クロック136を出力する。
ビデオ符号化レート計算部173は伝送クロック171を基準とするカウンタとクロック174を基準とするカウンタを動作させ、後者のカウンタ値の所定の値で、前者のカウンタ値を周期的にサンプルし、サンプルしたカウンタ値から伝送路の伝送容量を計算し、伝送容量情報176を出力する。 クロック174は外部の水晶発振器等のクロック、または映像用クロック128であってもよい。
【0015】
ビデオPES生成部108は、ビデオ圧縮データ133とビデオ圧縮クロック134を得ると上記データにヘッダ等を付加してパケット化したビデオPESデータ138と書き込み信号139を生成し、ビデオPESデータ138をビデオペイロードメモリ112に書き込む。
オーディオPES生成部109はオーディオ圧縮データ135とオーディオ圧縮クロック136を得ると上記データにヘッダ等を付加しパケット化したオーディオPESデータ140と書き込み信号141を生成し、オーディオ圧縮データ140をオーディオペイロードメモリ113に書き込む。
プライベートPES生成部110は、プライベートデータ126を得ると上記データにヘッダ等を付加してパケット化したプライベートPESデータ142とプライベートクロック143を生成し、プライベートPESデータ142をプライベートペイロードメモリ314に書き込む。
STCカウンタ部107は、映像用クロック131を基準として42bitのカウンタを動作させ、STCカウンタ値137を出力する。
【0016】
STCカウンタ値ホールド部111はPCR符号化部115からのホールド信号145に従い、STCカウンタ値137をホールドし、ホールドされたSTCカウンタ値144を出力する。
PCR符号化部115はPCR・TSパケット制御部121からのPCR読み出し信号156に従い、ホールドされたSTCカウンタ値144を符号化して、PCR155を出力する。
バイトカウンタ部122は伝送クロック171を得ると、伝送クロック171を基準として188バイトまたは204バイトのカウンタを繰り返し動作させ、バイトカウンタ開始指示信号158と、バイトカウンタ値157を出力する。 ここで、188バイトまたは204バイトは、1TSパケットを意味する。
ビデオTSパケット制御部116は、ビデオ送出指示信号160とビデオペイロードメモリ112の蓄積状態148によって、読み出し信号147を生成し、ビデオペイロードメモリ112からビデオPESデータ146を読み出し、バイトカウンタ値157とTSパケット開始指示信号158に従いヘッダ等を付加し、ビデオTSパケット159を生成し出力する。
オーディオTSパケット制御部117は、オーディオ送出指示信号162とオーディオペイロードメモリ113の蓄積状態151により、読み出し信号150を生成し、オーディオペイロードメモリ113からオーディオPESデータ149を読み出し、バイトカウンタ値157とTSパケット開始指示信号158に従いヘッダ等を付加し、オーディオTSパケット161を生成し出力する。
プライベートTSパケット制御部118は、プライベート送出指示信号164とプライベートペイロードメモリ114の蓄積状態154により、読み出し信号153を生成し、プライベートペイロードメモリ114からプライベートPESデータ152を読み出し、バイトカウンタ値157とTSパケット開始指示信号158に従いヘッダ等を付加し、プライベートTSパケット163を生成し出力する。
【0017】
PCR・TS制御部121は、フォーマット検出部102からの3フレームパルス129を得て、PCR読み出し信号156を生成し、PCR値155を読み出し、バイトカウンタ値157とTSパケット開始指示信号158に従いヘッダ等を付加し、PCR・TSパケット168を生成し出力する。 また、PCR・TSパケットを送出したことを示す送出完了信号180を出力する。
PMT・TSパケット制御部120は、PCR・TSパケット送出完了信号180を得てバイトカウンタ値157とTSパケット開始指示信号158に従い、ヘッダ等を付加しPMT・TSパケット167を生成し出力する。 また、PCR・TSパケットとPMT・TSパケットの送出が完了した事を示す完了信号190を出力する。
PAT・TSパケット制御部119は、PCR・TSパケットとPMT・TSパケットの送出完了信号190を得てバイトカウンタ値157とTSパケット開始指示信号158に従いヘッダ等を付加し、PAT・TSパケット165を生成し出力する。 また、PAT、PMT、PCRのTSパケットの送出が完了したことを示す送出完了信号166をメモリ蓄積状態検出部123に出力する。
メモリ状態検出部123は、PAT、PMT、PCRのTSパケット送出完了信号166を得、PAT、PMT、PCRのTSパケット送出以外のタイミングにおいて、オーディオペイロードメモリ113の蓄積状態信号152と、プライベートペイロードメモリ114の蓄積状態信号152を検出し、TSパケット送出に必要なペイロードがメモリに蓄積されている場合、TSパケットを生成し送出し、PAT、PMT、PCR、オーディオ、プライベート以外のタイミング全てをビデオTSパケットの送出に割り当てる。 以上の様に、各TSパケットが多重されてTS172が生成される。
【0018】
続いて、本発明のパケット多重化の送出方法ついて、図2で詳細に説明する。ビデオペイロードメモリ蓄積状態信号148とオーディオペイロードメモリ蓄積状態信号151とプライベートペイロードメモリ蓄積状態信号154はHighレベルで送出可能なペイロードが蓄積されていることを示す。
運用上、100ms以内に1回以上と規定されているPCR・TSパケット、PAT・TSパケット、PMT・TSパケットの伝送は、伝送クロックに依存しない3フレームパルス129(99ms)をトリガとして、次のTSパケット開始指示信号158でPCR・TSパケット168、PMT・TSパケット167、PAT・TSパケット166を順に伝送する。
オーディオTSパケット161とプライベートTSパケット163の伝送は、TSパケット開始指示信号158に従って、各ペイロードメモリの蓄積状態が、Highの時に伝送する。 共にメモリ状態がHighの場合はどちらかを優先して伝送する。
ビデオTSパケットの伝送は、上記TSパケット以外の伝送タイミングで同様にメモリの蓄積状態により伝送する。
続いて、ビデオ符号化レートの計算について説明する。 ビデオ符号化レート計算部173は伝送クロック171を基準とするカウンタとクロック174を基準とするカウンタを動作させる。 例えば、クロック174を27MHzと仮定するとクロック174を基準とするカウンタ値を、0から27000000まで(1秒)繰り返しカウントさせ、カウンタ値が0の時に外部クロック171を基準とするカウンタ値をホールドし、カウンタ値から外部クロック、所謂伝送容量を計算し、上記情報をCPU104に出力する。 CPU104は、上記情報を得て、伝送容量からビデオTSパケット以外のパケット伝送容量合計を差し引き、ビデオ符号化レートを計算し、ビデオMPEGエンコーダに設定する。
【0019】
【発明の効果】
以上のように、本発明によって異なる伝送容量の伝送路に自動的に対応できるパケット多重が実現でき、汎用的なパケット多重装置を提供することができる。
【図面の簡単な説明】
【図1】本発明のパケット多重装置の概要を示すブロック図
【図2】本発明のパケット多重装置のパケット多重のタイムチャート
【図3】従来技術のパケット多重の概要を示すブロック図
【図4】従来技術のパケット多重のタイムチャート
【符号の説明】
101:ビデオデコーダ、102:フォーマット検出部、103:オーディオA/D変換部、104:CPU、105:ビデオMPEGエンコーダ、106:オーディオMPEGエンコーダ、107:STCカウンタ部、108:ビデオPESパケット生成部、109:オーディオPESパケット生成部、110:プライベートPESパケット生成部、111:STCカウンタ値ホールド部、112:ビデオペイロードメモリ、113:オーディオペイロードメモリ、114:プライベートペイロードメモリ、115:PCR符号化部、116:ビデオTSパケット制御部、117:オーディオTSパケット制御部、118:プライベートTSパケット制御部、119:PAT・TSパケット制御部、120:PMT・TSパケット制御部、121:PCR・TSパケット制御部、122:バイトカウンタ部、123:メモリ状態検出部、173:ビデオ符号化レート計算部。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an apparatus for inputting and multiplexing a plurality of streams such as a transport stream of MPEG-2 (Moving Picture Experts Group-2).
[0002]
[Prior art]
In recent years, with the development of codec technology, it has become possible to transmit a video signal or the like having an enormous amount of data even on a transmission path having a small transmission capacity.
A transport stream (hereinafter referred to as TS) is a packet group having a payload of data obtained by compressing a video signal or an audio signal.
The encoding rate of the audio signal is normally a fixed encoding rate (for example, 384 kbit / s). Therefore, the encoding rate of the audio signal is determined even if the transmission capacity of the transmission path differs depending on the application, and transmission of the remaining transmission paths The transmission rate of the video signal is assigned to the capacity.
FIG. 3 shows an example of the configuration of a conventional packet multiplexing apparatus, and its operation will be described. 3 shows a
[0003]
The
[0004]
Next, the operation of this packet multiplexer will be described in detail.
When the
When the
When the audio A /
The
[0005]
Upon obtaining the
When the
The transmission
When the video
When the audio
When the private PES generation unit 310 obtains the
[0006]
Upon obtaining the
The STC counter
PCR is an abbreviation for Program Clock Reference, and is a value obtained by encoding an STC counter value.
The
When obtaining the
The TS
According to the TS
The video TS
[0007]
The audio TS packet control unit 317 generates a read signal 351 based on the audio TS packet
The private TS
The PAT / TS
The PMT / TS
The PCR /
[0008]
Next, the relationship between the generation method of the transmission instruction information in the TS packet transmission instruction
Here, it is assumed that the TS packet transmission instruction
For example, when the transmission capacity of the transmission path is 10 Mbit / s, the
Therefore, the time of one TS packet is 150.4 μs by (1 / 1.25 MHz) × 188. Therefore, the time required for the 2048-byte space to make a round is 150.4 μs × 2048, which is 308 ms. Here, if the transmission instruction information of the PCR / TS packet, PAT / TS packet, and PMT / TS packet is assigned once to the 2048 space, it becomes 1 time / 308 ms, which violates the above-mentioned rule. Therefore, if 6 assignments are made to the 2048 space, 1 time / 77 ms is obtained, which satisfies the above-mentioned rule.
Similarly, since the audio TS packet is fixed at an audio encoding rate of 384 kbit / s, if the transmission rate of the audio TS packet to which a header or the like is added is assigned to 2048 space by the above calculation method, the transmission rate of the audio TS packet is Satisfied. The transmission rate of the private TS packet is calculated in the same manner, and if it is 19.2 kbit / s, the transmission rate of the private TS packet is satisfied if it is allocated seven times in the 2048 space.
The video TS packet allocation is 1905 obtained by subtracting the allocation other than the video TS packet from the 2048 space, and the transmission rate of the video TS packet is determined. Thus, depending on the transmission capacity of the transmission path, the allocation of each TS packet is calculated and stored in the ROM, and four transmission paths are selected from the outside.
[0009]
Next, the transmission instruction signal and the payload memory accumulation state will be described with reference to FIG. Each transmission instruction signal is active at a low level. In addition, the accumulation state of each payload memory is assumed to be that payload data that can be transmitted at a high level is accumulated in the memory.
When the video TS packet
When the audio TS packet
When the private TS packet
When the PAT / TS packet
As described above, the TS packets are multiplexed and TS375 is generated. By the way, the transmission rate of TS packets other than video TS packets is fixed even if the transmission capacity of the transmission path differs.
[0010]
[Problems to be solved by the invention]
As described above, in the TS packet transmission instruction method using the TS packet transmission instruction information storage ROM, it is necessary to calculate the transmission instruction information of each TS packet in advance from the transmission capacity of the target transmission path and store it in the ROM. . In order to support a plurality of transmission lines, it is necessary to prepare a plurality of transmission instruction information and select the information corresponding to the target transmission line from the outside.
Therefore, it is necessary to calculate the transmission instruction information and select the transmission instruction information every time the transmission capacity of the transmission line is different, and the versatility of the apparatus is lost.
An object of the present invention is to provide a packet multiplexing apparatus that eliminates these drawbacks and can realize multiplexing of TS packets independent of transmission capacity.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a stream multiplexing transmission method in which a plurality of data streams are packetized and multiplexed into a single data stream, and the multiplexing of the plurality of data streams is predetermined. Control is performed based on the multiplexing allocation order of packets, and multiplexing is performed in one data stream.
Multiple data streams are multiplexed in a predetermined frame unit for data streams in which the interval at which packets are multiplexed is specified, and a data stream having a fixed transmission rate has a payload required for at least one packet configuration. When the data is stored in the memory, the difference between the total packet rate of these data streams and the transmission rate is assigned to the transmission rate of the video data stream packet and multiplexed.
In addition, a plurality of data streams are multiplexed in a data stream in which a packet multiplexing interval is defined for each frame of a video signal, and input data includes a plurality of types including video data stored in a packet payload. For each data stream, the storage status of the payload memory necessary for packet configuration is monitored, and when the payload is stored in the memory, the total packet rate of other data streams excluding the video data stream is transmitted. The rate difference is automatically allocated and multiplexed to the transmission rate of the packet of the video data stream.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 shows a block configuration of an embodiment of a packet multiplexing apparatus according to the present invention, which will be described in detail below.
1 shows a
[0013]
Next, the operation of the packet multiplexer of the present invention will be described in detail. When the
When the
[0014]
When the audio A /
The
The
When the
The video encoding
[0015]
When the video
When the audio
When the private
The STC counter unit 107 operates a 42-bit counter based on the
[0016]
The STC counter
The
When the
The video TS
The audio TS
The private TS
[0017]
The PCR /
The PMT / TS
The PAT / TS
The memory
[0018]
Next, the packet multiplexing transmission method of the present invention will be described in detail with reference to FIG. The video payload memory accumulation state signal 148, the audio payload memory
In operation, the transmission of PCR / TS packets, PAT / TS packets, and PMT / TS packets defined as one or more times within 100 ms is triggered by 3 frame pulses 129 (99 ms) independent of the transmission clock. In response to the TS packet
The
The video TS packet is transmitted according to the storage state of the memory at the same transmission timing other than the TS packet.
Next, calculation of the video encoding rate will be described. The video encoding
[0019]
【The invention's effect】
As described above, according to the present invention, packet multiplexing that can automatically cope with transmission paths having different transmission capacities can be realized, and a general-purpose packet multiplexing apparatus can be provided.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an outline of a packet multiplexing apparatus of the present invention.
FIG. 2 is a time chart of packet multiplexing of the packet multiplexing apparatus of the present invention.
FIG. 3 is a block diagram showing an outline of conventional packet multiplexing.
FIG. 4 is a time chart of prior art packet multiplexing.
[Explanation of symbols]
101: Video decoder, 102: Format detection unit, 103: Audio A / D conversion unit, 104: CPU, 105: Video MPEG encoder, 106: Audio MPEG encoder, 107: STC counter unit, 108: Video PES packet generation unit, 109: Audio PES packet generator, 110: Private PES packet generator, 111: STC counter value hold unit, 112: Video payload memory, 113: Audio payload memory, 114: Private payload memory, 115: PCR encoding unit, 116 : Video TS packet control unit, 117: Audio TS packet control unit, 118: Private TS packet control unit, 119: PAT / TS packet control unit, 120: PMT / TS packet control unit, 21: PCR · TS packet control unit, 122: byte counter unit, 123: memory state detector, 173: Video encoding rate calculation unit.
Claims (3)
PAT、PMT、PCRのTSパケットは、前記ビデオストリームの3フレーム単位で多重し、
前記伝送レートが固定のデータストリームは、少なくとも1TSパケットの構成に必要なペイロードがメモリに蓄積されている場合に、前記PAT、PMT、PCRのTSパケット送出以外のタイミングにおいて多重し、
伝送路から得られる信号に基づいて伝送容量計算手段が計算した伝送容量から、前記ビデオストリーム以外のTSパケット伝送容量合計を差し引いた値の伝送レートになるように、前記ビデオストリームの前記符号化のレートを制御するとともに、
ビデオストリームのTSパケットは、前記PAT、PMT、PCR及び伝送レートが固定のデータストリームのTSパケット送出以外の全てのタイミングに割り当てて多重化することを特徴とするストリーム多重化伝送方法。 A plurality of data streams including a video stream encoded with MPEG and a data stream having a fixed transmission rate are each made into a PES packet, and further multiplexed into one TS (transport stream) based on a transmission clock for stream multiplexing. In the transmission method,
TS packets of PAT, PMT, and PCR are multiplexed in units of 3 frames of the video stream,
The data stream having a fixed transmission rate is multiplexed at a timing other than the transmission of TS packets of the PAT, PMT, and PCR when at least a payload necessary for the configuration of 1 TS packet is accumulated in a memory.
The encoding of the video stream so that the transmission rate is a value obtained by subtracting the total TS packet transmission capacity other than the video stream from the transmission capacity calculated by the transmission capacity calculation means based on the signal obtained from the transmission path. While controlling the rate,
A stream multiplexed transmission method , wherein TS packets of a video stream are allocated and multiplexed at all timings other than the PAT, PMT, PCR and TS packet transmission of a data stream having a fixed transmission rate .
前記PAT、PMT、PCRのTSパケットは連続するように多重され、
前記伝送容量計算手段は伝送路から得られる伝送クロックに基づいて伝送容量を計算し、ビデオストリームについて送出可能なペイロードが蓄積されていないときはNULL・TSパケットを送出することを特徴とするストリーム多重化伝送方法。In the stream multiplexing transmission method according to claim 1,
The PAT, PMT, and PCR TS packets are multiplexed in a continuous manner,
The transmission capacity calculation means calculates a transmission capacity based on a transmission clock obtained from a transmission path, and sends a NULL / TS packet when a payload that can be transmitted for a video stream is not stored. Transmission method.
入力されたデジタル映像信号からSAV(Start Active Video)を認識すると共に3フレーム毎にパルスを出力するフォーマット検出部と、
前記入力されたデジタル映像信号を、与えられたビデオ符号化レート情報に基づき圧縮するビデオエンコーダと、
前記ビデオエンコーダが出力した圧縮ビデオデータをパケット化するビデオPES(Packetized Elementary Streem)生成部と、
オーディオPES生成部と、
プライベートPES生成部と、
前記ビデオPES生成部が出力したPESを蓄積するビデオペイロードメモリと、
前記オーディオPES生成部が出力したPESを蓄積するオーディオペイロードメモリと、
前記プライベートPES生成部が出力したPESを蓄積するプライベートペイロードメモリと、
伝送路から得られる伝送クロックを1TS分カウントする動作を繰り返し、カウンタ開始指示信号とカウンタ値を出力するカウンタと、
前記ビデオペイロードメモリからPESを読み出してビデオTSパケットを生成するビデオTSパケット制御部と、
前記オーディオペイロードメモリからPESを読み出してオーディオTSパケットを生成するオーディオTSパケット制御部と、
前記プライベートペイロードメモリからPESを読み出してプライベートTSパケットを生成するプライベートTSパケット制御部と、
前記パルスの入力されたときに、前記カウンタ開始指示信号に従ってPAT、PMT、PCRのTSパケットを所定の順序で続けて出力するTSパケット制御部と、
前記オーディオペイロードメモリ、前記プライベートペイロードメモリの蓄積状態を監 視し、TSパケット送出に必要なペイロードがメモリに蓄積されている場合、前記PAT、PMT、PCRのTSパケット送出以外のタイミングにおいて対応するオーディオTSパケット制御部若しくはプライベートTSパケット制御部にTSパケットを送出させ、前記PAT、PMT、PCR、オーディオ、プライベート以外のタイミング全てをビデオTSパケットの送出に割り当てるメモリ状態検出部と、
伝送路から得られるクロックに基づいて伝送容量を周期的に計算し、前記伝送容量からビデオTSパケット以外のパケット伝送容量合計を差し引いてビデオ符号化レートを算出し、前記ビデオエンコーダに与えるビデオ符号化レート算出部と、を備えるストリーム多重化伝送装置。 In a stream multiplexing transmission apparatus that packetizes a plurality of data streams and multiplexes them into a single transport stream,
A format detector for recognizing SAV (Start Active Video) from the input digital video signal and outputting a pulse every three frames;
A video encoder for compressing the input digital video signal based on given video coding rate information;
A video PES (Packetized Elementary Stream) generator for packetizing the compressed video data output from the video encoder;
An audio PES generator;
A private PES generator,
A video payload memory for storing the PES output by the video PES generator;
An audio payload memory for storing the PES output by the audio PES generator;
A private payload memory for storing the PES output by the private PES generator;
A counter that repeats the operation of counting the transmission clock obtained from the transmission path for 1 TS, and outputs a counter start instruction signal and a counter value;
A video TS packet controller that reads a PES from the video payload memory and generates a video TS packet;
An audio TS packet controller that reads the PES from the audio payload memory and generates an audio TS packet;
A private TS packet controller that reads a PES from the private payload memory and generates a private TS packet;
A TS packet controller that continuously outputs TS packets of PAT, PMT, and PCR in a predetermined order according to the counter start instruction signal when the pulse is input;
The audio payload memory, said monitors the storage state of the private payload memory, if the payload necessary TS packets transmitted is stored in the memory, the PAT, PMT, audio corresponding in timing other than TS packet transmission of PCR A memory state detection unit that causes a TS packet control unit or a private TS packet control unit to transmit TS packets, and allocates all timings other than the PAT, PMT, PCR, audio, and private to the transmission of video TS packets;
Video encoding is performed by periodically calculating a transmission capacity based on a clock obtained from a transmission path, subtracting the total packet transmission capacity other than the video TS packet from the transmission capacity, and calculating a video encoding rate, which is provided to the video encoder. A stream multiplexing transmission apparatus comprising: a rate calculation unit ;
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001257252A JP4212794B2 (en) | 2001-08-28 | 2001-08-28 | Stream multiplexing transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001257252A JP4212794B2 (en) | 2001-08-28 | 2001-08-28 | Stream multiplexing transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003069995A JP2003069995A (en) | 2003-03-07 |
JP4212794B2 true JP4212794B2 (en) | 2009-01-21 |
Family
ID=19084946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001257252A Expired - Fee Related JP4212794B2 (en) | 2001-08-28 | 2001-08-28 | Stream multiplexing transmission method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4212794B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4506294B2 (en) * | 2004-06-11 | 2010-07-21 | ソニー株式会社 | Multiplexer and multiplexing method |
-
2001
- 2001-08-28 JP JP2001257252A patent/JP4212794B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2003069995A (en) | 2003-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100564057B1 (en) | Encoding system and method, decoding system and method, encoding data recording device and method, encoding data transmission device and method | |
JP4837744B2 (en) | Multiplexer, integrated circuit, multiplexing method, multiplexed program, computer-readable recording medium recording the multiplexed program, and computer-readable recording medium recording the multiplexed stream | |
KR0137701B1 (en) | Pes packetizing apparatus of mpeg-2 system | |
US6807191B2 (en) | Decoder for compressed and multiplexed video and audio data | |
KR100496210B1 (en) | Encoding apparatus, encoding method, multiplexed data transmission apparatus, multiplexed data transmission method and recording medium | |
US20070140398A1 (en) | Data receiving device and data receiving method | |
WO2002019584A1 (en) | Multiplexer, receiver, and multiplex transmission method | |
JP2007221326A (en) | Device and method for adjusting transmission rate | |
JPH11163817A (en) | Digital encoding multiplexer | |
US20040218527A1 (en) | Method and apparatus for measuring quality of service parameters of networks delivering real time MPEG video | |
JP4212794B2 (en) | Stream multiplexing transmission method | |
JP3556381B2 (en) | Information multiplexing device | |
JP3617655B2 (en) | Encoding system and encoding method, decoding system and decoding method, encoded data recording apparatus and encoded data recording method, encoded data transmission apparatus and encoded data transmission method, and recording medium | |
JP2005151463A (en) | Device and method for receiving stream data | |
JP5939884B2 (en) | Error correction coding device | |
KR0154005B1 (en) | Apparatus for generating the presentation time stamp in the system encoder | |
JP4168527B2 (en) | Data multiplexing apparatus and data multiplexing method | |
KR0173735B1 (en) | Mpeg transfort stream management apparatus and method of vod system | |
JP3458376B2 (en) | Transport stream generator | |
JP3417290B2 (en) | Multiplexer | |
JP4392952B2 (en) | Encoding apparatus and encoding method | |
JP4122624B2 (en) | Data receiving method and data receiving apparatus | |
WO2000030278A1 (en) | Data multiplexing device and data multiplexing method, and data transmitter | |
JP2004072574A (en) | Multiplex transmitting device for compressed data | |
JP2001053701A (en) | Stream multiplexer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060330 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071126 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071204 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080117 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080117 |
|
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: 20081028 |
|
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: 20081029 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111107 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4212794 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111107 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121107 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121107 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131107 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |