JP4212794B2 - Stream multiplexing transmission method - Google Patents

Stream multiplexing transmission method Download PDF

Info

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
Application number
JP2001257252A
Other languages
Japanese (ja)
Other versions
JP2003069995A (en
Inventor
慎吾 石山
雄一 大波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Kokusai Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2001257252A priority Critical patent/JP4212794B2/en
Publication of JP2003069995A publication Critical patent/JP2003069995A/en
Application granted granted Critical
Publication of JP4212794B2 publication Critical patent/JP4212794B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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 video decoder 301, a format detection unit 302, an audio A / D conversion unit 303, a CPU 304, a video MPEG encoder 305, an audio MPEG encoder 306, an STC counter unit 307, a video PES packet generation unit 308, and an audio PES packet generation unit. 309, private PES packet generation unit 310, STC counter value hold unit 311, video payload memory 312, audio payload memory 313, private payload memory 314, PCR encoding unit 315, video TS packet control unit 316, audio TS packet control unit 317 , Private TS control unit 318, PAT / TS packet control unit 319, PMT / TS packet control unit 320, PCR / TS packet control unit 321, byte Counter unit 322, TS packet counter 323, TS packet transmission designation information storing ROM 324, constituted by the transmission mode switching unit 325.
[0003]
Video decoder 301, format detector 302, audio A / D converter 303, video MPEG encoder 305, audio MPEG encoder 306, video PES packet generator 308, audio PES packet generator 309, private PES packet generator 310, video payload The writing side of the memory 312, the writing side of the audio payload memory 313, the writing side of the private payload memory 314, and the STC counter unit 307 operate based on the video clock 329 that is the output of the video decoder 301. For example, 27 MHz.
The video payload memory 312 readout side, the audio payload memory 313 readout side, the private payload memory 314 readout side, the video TS packet generation unit 316, the audio TS packet generation unit 317, the private TS packet generation unit 318, the PAT / TS. The packet generation unit 319, the PMT / TS packet generation unit 320, the PCR / TS packet generation unit 321, the byte counter unit 322, the TS packet counter unit 323, and the TS packet transmission instruction information storage ROM 324 receive the transmission clock 372 obtained from the transmission path. Act as a reference. For example, when the transmission capacity is 8 Mbit / s, it becomes 1/8 because of byte processing and becomes 1 MHz.
[0004]
Next, the operation of this packet multiplexer will be described in detail.
When the video decoder 301 obtains an analog video signal 325 (for example, an NTSC signal), the video decoder 301 performs A / D conversion on the signal and decodes it, and outputs a digital video signal 328 and a video clock 329.
When the format detection unit 302 obtains the digital video signal 328 and the video clock 329, the format detection unit 302 detects whether the format of the digital video signal 328 is normal or abnormal. For example, when the digital video signal 328 is ITU-R656, the SAV (Start Active Video) present in the digital video signal 328 is used as a trigger, the pixel counter and the line counter are operated based on the video clock 329, and the SAV is sequentially It is determined whether the format is normal or abnormal by determining whether the counter value obtained at the time is always a constant value.
When the audio A / D converter 303 obtains the analog audio signal 326, the audio A / D converter 303 A / D converts the signal and outputs a digital audio signal 333 (for example, a PCM signal) and a digital audio clock 379.
The video MPEG encoder 305 compresses the digital video signal 330 based on the video encoding rate information 378 obtained from the CPU 304, and outputs compressed video compressed data 334 and a video compression clock 335.
[0005]
Upon obtaining the mode setting information 376 from the transmission mode switching unit 325, the CPU 304 generates video coding rate information 378 and outputs the video coding rate information 378 to the video MPEG encoder 305. The mode setting information 376 is information for setting the video coding rate corresponding to the transmission capacity of the target from the outside with a switch or the like.
When the audio MPEG encoder 306 obtains the digital audio signal 333 and the digital audio clock 379, the audio MPEG encoder 306 compresses the signal and outputs compressed audio compressed data 336 and an audio compressed clock 337.
The transmission mode switching unit 325 outputs video coding rate setting information 376 based on switch information corresponding to the transmission capacities of a plurality of transmission paths.
When the video PES generation unit 308 obtains the video compression data 334 and the video compression clock 335, the video PES data 338 and the write signal 339 are generated by adding a header to the data and packetizing the video PES data 338. Write to video payload memory 312. Here, PES is an abbreviation for Packetized Elementary Stream.
When the audio PES generation unit 309 obtains the audio compression data 336 and the audio compression clock 337, the audio PES generation unit 309 generates a packetized audio PES data 340 and a write signal 341 by adding a header or the like to the data, and the audio compression data 340 is converted into the audio compression data 340. Write to the payload memory 313.
When the private PES generation unit 310 obtains the private data 327, the private PES data 342 and the private clock 343 are generated by adding a header or the like to the data, and writes the private PES data 342 into the private payload memory 314.
[0006]
Upon obtaining the video clock 331, the STC counter unit 307 operates a 42-bit counter with the clock as a reference. STC is an abbreviation for System Clock Reference, and is a counter value necessary for PLL processing for reproducing the same clock as the video clock 331 on the receiving side.
The STC counter value hold unit 311 holds the STC counter value 344 in accordance with the hold signal 346 from the PCR encoding unit 315, and outputs the held STC counter value 345.
PCR is an abbreviation for Program Clock Reference, and is a value obtained by encoding an STC counter value.
The PCR encoding unit 315 encodes the held STC counter value 345 according to the PCR read signal 357 from the PCR / TS packet control unit 321 and outputs the PCR value 356.
When obtaining the transmission clock 372, the byte counter unit 322 repeatedly operates the 188-byte or 204-byte counter based on the transmission clock 372, and outputs the TS packet start instruction signal 359 of the TS packet and the counter value 358. 188 bytes or 204 bytes means one TS packet.
The TS packet counter unit 323 enables the TS packet start instruction signal 359, operates a counter that operates based on the transmission clock 372, and outputs a TS packet counter value 374 to the TS packet transmission instruction information storage ROM 324.
According to the TS packet counter value 374, the TS packet transmission instruction information storage ROM 324 stores information in the ROM, so-called video TS packet transmission instruction signal 361, audio TS packet transmission instruction signal 363, private TS packet transmission instruction signal 365, PAT / TS packet. A transmission instruction signal 367, a PMT / TS packet transmission instruction signal 369, and a PCR / TS packet transmission instruction signal 371 are output.
The video TS packet control unit 316 generates a read signal 348 based on the video TS packet transmission instruction signal 361 and the accumulation state 349 of the video payload memory 312, reads the video PES data 347 from the video payload memory 312, and sets the byte counter value 358 and TS A header or the like is added based on the packet start instruction signal 359, and a video TS packet 360 is generated and output.
[0007]
The audio TS packet control unit 317 generates a read signal 351 based on the audio TS packet transmission instruction signal 363 and the accumulation state 352 of the audio payload memory 313, reads the audio PES data 350 from the audio payload memory 313, and sets the byte counter value 358 and TS. A header or the like is added based on the packet start instruction signal 359, and an audio TS packet 362 is generated and output.
The private TS packet control unit 318 generates a read signal 354 based on the private TS packet transmission instruction signal 365 and the storage state 355 of the private payload memory 314, reads the private PES data 353 from the private payload memory 314, and reads the byte counter value 358 and the TS. A header or the like is added based on the packet start instruction signal 359, and a private TS packet 364 is generated and output.
The PAT / TS packet control unit 319 adds a header or the like based on the byte counter value 358 and the TS packet start instruction signal 359 according to the PAT / TS packet transmission instruction signal 367, and generates and outputs a PAT / TS packet 366.
The PMT / TS packet control unit 320 adds a header or the like based on the byte counter value 358 and the TS packet start instruction signal 359 according to the PMT / TS packet transmission instruction signal 369, and generates and outputs a PMT / TS packet 368.
The PCR / TS control unit 321 generates a read signal 357 according to the PCR / TS packet transmission instruction signal 371, reads the PCR value 356 from the PCR encoding unit 315, and based on the byte counter value 358 and the TS packet start instruction signal 359 Etc., and a PCR / TS packet 370 is generated and output. As described above, the TS packet is multiplexed to generate TS375.
[0008]
Next, the relationship between the generation method of the transmission instruction information in the TS packet transmission instruction information storage ROM 324 and each payload memory will be described. First, a method for generating transmission instruction information will be described.
Here, it is assumed that the TS packet transmission instruction information storage ROM 324 has a capacity of 8192 bytes. Here, this capacity 8192 is divided into four so as to correspond to the transmission capacities of four different transmission paths, 2048 corresponds to one transmission capacity, and each TS packet transmission instruction information is stored in the space of 2048 bytes. To do. Then, according to the TS packet counter value 374 and the setting information 376 from the TS packet counter unit 323, each TS packet transmission instruction signal is output. In operation, TS packets that are defined to be transmitted at least once in 100 ms are a PCR / TS packet, a PAT / TS packet, and a PMT / TS packet.
For example, when the transmission capacity of the transmission path is 10 Mbit / s, the transmission clock 372 becomes a clock in bytes, and is thus reduced to 1/8 to 1.25 MHz.
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 transmission instruction signal 361 is Low and the video payload memory accumulation state 349 is High, the video TS packet 360 is transmitted. When the video payload memory accumulation state 349 is Low, a NULL / TS packet is transmitted. Note that a NULL / TS packet is a packet that has no meaning originally.
When the audio TS packet transmission instruction signal 363 is Low and the audio payload memory storage state 352 is High, the audio TS packet 362 is transmitted. When the audio memory storage state 349 is Low, a NULL / TS packet is transmitted.
When the private TS packet transmission instruction signal 365 is Low and the private payload memory storage state 355 is High, the private TS packet 364 is transmitted. When the private memory accumulation state 349 is Low, a NULL / TS packet is transmitted.
When the PAT / TS packet transmission instruction signal 367 is Low, the PAT / TS packet 366 is transmitted. When the PMT / TS packet transmission instruction signal 369 is Low, the PMT / TS packet 368 is transmitted. When the PCR / TS packet transmission instruction signal 371 is Low, the PCR / TS packet 370 is transmitted.
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 video decoder 101, a format detection unit 102, an audio A / D conversion unit 103, a CPU 104, a video MPEG encoder 105, an audio MPEG encoder 106, an STC counter unit 107, a video PES packet generation unit 108, and an audio PES packet generation unit. 109, private PES packet generation unit 110, STC counter value holding unit 111, video payload memory 112, audio payload memory 113, private payload memory 114, PCR encoding unit 115, video TS packet control unit 116, audio TS packet control unit 117 , Private TS control unit 118, PAT / TS packet control unit 119, PMT / TS packet control unit 120, PCR / TS packet control unit 121, byte card Printer unit 122, memory storage state detecting unit 123, composed of a video encoding rate calculator 173.
Video decoder 101, format detector 102, audio A / D converter 103, video MPEG encoder 105, audio MPEG encoder 106, video PES packet generator 108, audio PES packet generator 109, private PES packet generator 110, video payload The writing side of the memory 112, the writing side of the audio payload memory 113, the writing side of the private payload memory 114, and the STC counter unit 107 operate on the basis of the output of the video decoder 101 and the video clock 128, for example, 27 MHz.
[0013]
Video payload memory 112 reading side, audio payload memory 113 reading side, private payload memory 114 reading side, video TS packet generator 116, audio TS packet generator 117, private TS packet generator 118, PAT / TS packet generator The unit 119, the PMT / TS packet generation unit 120, the PCR / TS packet generation unit 121, the byte counter unit 122, and the memory accumulation state detection unit 123 operate on the basis of the transmission clock 171 obtained from the transmission path. For example, when the transmission capacity is 8 Mbit / s, because of byte processing, 1/8 becomes 1 MHz.
Next, the operation of the packet multiplexer of the present invention will be described in detail. When the video decoder 101 obtains the analog video signal 124 (for example, NTSC signal), the video decoder 101 performs A / D conversion on the signal and decodes it, and outputs a digital video signal 127 and a video clock 128 having the same phase as the digital video signal.
When the format detection unit 102 obtains the digital video signal 127 and the video clock 128, the format detection unit 102 detects whether the format (for example, ITU-R656) of the digital video signal 127 is normal or abnormal. For example, by operating the pixel counter and the line counter with the SAV present in the digital video signal 127 as a trigger and using the video clock 128 as a reference, it is determined whether the counter value at the time when the SAV is sequentially recognized is always a constant value. Determine whether the format is normal or abnormal. On the other hand, a 3-frame pulse 129 of the video signal is output. The 3-frame pulse is a pulse having an interval of 3 frames, that is, a pulse having a so-called 99 ms interval.
[0014]
When the audio A / D converter 103 obtains the analog audio signal 125, the audio A / D converter 103 A / D converts the signal and outputs a digital audio signal 179 (for example, a PCM signal) and a digital audio clock 181.
The video MPEG encoder 105 compresses the digital video signal 130 based on the video encoding rate information 178 from the CPU 104, and outputs compressed video compressed data 133 and a video compression clock 134.
The CPU 104 obtains the transmission capacity information 176 from the video coding rate calculation unit 173 and outputs the video coding rate information 178 to the video MPEG encoder 105.
When the audio MPEG encoder 106 obtains the digital audio signal 179 and the digital audio clock 181, the audio MPEG encoder 106 compresses the signal and outputs compressed audio compressed data 135 and an audio compressed clock 136.
The video encoding rate calculation unit 173 operates a counter based on the transmission clock 171 and a counter based on the clock 174, and periodically samples the former counter value with a predetermined value of the latter counter value. The transmission capacity of the transmission line is calculated from the counter value thus obtained, and transmission capacity information 176 is output. The clock 174 may be a clock such as an external crystal oscillator, or a video clock 128.
[0015]
When the video PES generation unit 108 obtains the video compression data 133 and the video compression clock 134, the video PES data 138 and the write signal 139 are generated by adding a header to the data and packetizing the video PES data 138. Write to memory 112.
When the audio PES generation unit 109 obtains the audio compression data 135 and the audio compression clock 136, the header is added to the data to generate the packetized audio PES data 140 and the write signal 141, and the audio compression data 140 is stored in the audio payload memory 113. Write to.
When the private PES generation unit 110 obtains the private data 126, the private PES data 142 and the private clock 143 are generated by adding a header or the like to the data, and writes the private PES data 142 into the private payload memory 314.
The STC counter unit 107 operates a 42-bit counter based on the video clock 131 and outputs an STC counter value 137.
[0016]
The STC counter value holding unit 111 holds the STC counter value 137 in accordance with the hold signal 145 from the PCR encoding unit 115 and outputs the held STC counter value 144.
The PCR encoding unit 115 encodes the held STC counter value 144 in accordance with the PCR read signal 156 from the PCR / TS packet control unit 121 and outputs the PCR 155.
When the byte counter unit 122 obtains the transmission clock 171, the byte counter start instruction signal 158 and the byte counter value 157 are output by repeatedly operating a 188-byte or 204-byte counter based on the transmission clock 171. Here, 188 bytes or 204 bytes means one TS packet.
The video TS packet control unit 116 generates a read signal 147 according to the video transmission instruction signal 160 and the accumulation state 148 of the video payload memory 112, reads the video PES data 146 from the video payload memory 112, and stores the byte counter value 157 and the TS packet. A header or the like is added in accordance with the start instruction signal 158, and a video TS packet 159 is generated and output.
The audio TS packet control unit 117 generates a read signal 150 based on the audio transmission instruction signal 162 and the accumulation state 151 of the audio payload memory 113, reads the audio PES data 149 from the audio payload memory 113, and reads the byte counter value 157 and the TS packet. A header or the like is added in accordance with the start instruction signal 158, and an audio TS packet 161 is generated and output.
The private TS packet control unit 118 generates a read signal 153 based on the private transmission instruction signal 164 and the accumulation state 154 of the private payload memory 114, reads the private PES data 152 from the private payload memory 114, and reads the byte counter value 157 and the TS packet. A header or the like is added in accordance with the start instruction signal 158, and a private TS packet 163 is generated and output.
[0017]
The PCR / TS control unit 121 obtains the 3-frame pulse 129 from the format detection unit 102, generates the PCR read signal 156, reads the PCR value 155, and in accordance with the byte counter value 157 and the TS packet start instruction signal 158, the header and the like Is added, and a PCR / TS packet 168 is generated and output. Also, a transmission completion signal 180 indicating that the PCR / TS packet has been transmitted is output.
The PMT / TS packet control unit 120 obtains a PCR / TS packet transmission completion signal 180, adds a header or the like according to the byte counter value 157 and the TS packet start instruction signal 158, and generates and outputs a PMT / TS packet 167. Also, a completion signal 190 indicating that transmission of the PCR / TS packet and the PMT / TS packet is completed is output.
The PAT / TS packet control unit 119 obtains a PCR / TS packet and PMT / TS packet transmission completion signal 190, adds a header or the like according to the byte counter value 157 and the TS packet start instruction signal 158, and outputs a PAT / TS packet 165. Generate and output. In addition, a transmission completion signal 166 indicating that transmission of the PAT, PMT, and PCR TS packets is completed is output to the memory accumulation state detection unit 123.
The memory state detection unit 123 obtains a PAT, PMT, and PCR TS packet transmission completion signal 166, and at a timing other than the transmission of the PAT, PMT, and PCR TS packets, the storage state signal 152 of the audio payload memory 113 and the private payload memory 114. When the accumulation state signal 152 of 114 is detected and the payload necessary for TS packet transmission is accumulated in the memory, the TS packet is generated and transmitted, and all timings other than PAT, PMT, PCR, audio, and private are transmitted to the video TS. Assign to send packets. As described above, TS TSs are generated by multiplexing TS packets.
[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 accumulation state signal 151, and the private payload memory accumulation state signal 154 indicate that a payload that can be transmitted at a high level is accumulated.
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 start instruction signal 158, the PCR / TS packet 168, the PMT / TS packet 167, and the PAT / TS packet 166 are sequentially transmitted.
The audio TS packet 161 and the private TS packet 163 are transmitted according to the TS packet start instruction signal 158 when the accumulation state of each payload memory is High. In both cases, when the memory state is High, either one is preferentially transmitted.
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 rate calculation unit 173 operates a counter based on the transmission clock 171 and a counter based on the clock 174. For example, assuming that the clock 174 is 27 MHz, the counter value based on the clock 174 is repeatedly counted from 0 to 27000000 (1 second), and when the counter value is 0, the counter value based on the external clock 171 is held, An external clock, so-called transmission capacity, is calculated from the counter value, and the above information is output to the CPU 104. The CPU 104 obtains the above information, subtracts the total packet transmission capacity other than the video TS packet from the transmission capacity, calculates the video encoding rate, and sets it to the video MPEG encoder.
[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)

MPEGで符号化したビデオストリームと伝送レートが固定のデータストリームを含む複数のデータストリームをそれぞれPESパケット化し、更に伝送クロックに基づいて1つのTS(トランスポートストリーム)に多重して伝送するストリーム多重化伝送方法において、
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 .
請求項1に記載のストリーム多重化伝送方法において、
前記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.
複数のデータストリームをそれぞれパケット化し1つのトランスポートストリームに多重して伝送するストリーム多重化伝送装置において、
入力されたデジタル映像信号から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 ;
JP2001257252A 2001-08-28 2001-08-28 Stream multiplexing transmission method Expired - Fee Related JP4212794B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4506294B2 (en) * 2004-06-11 2010-07-21 ソニー株式会社 Multiplexer and multiplexing method

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