JP2012160798A - Image receiver - Google Patents
Image receiver Download PDFInfo
- Publication number
- JP2012160798A JP2012160798A JP2011017491A JP2011017491A JP2012160798A JP 2012160798 A JP2012160798 A JP 2012160798A JP 2011017491 A JP2011017491 A JP 2011017491A JP 2011017491 A JP2011017491 A JP 2011017491A JP 2012160798 A JP2012160798 A JP 2012160798A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- time
- value
- storage unit
- input
- 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
Links
- 230000005540 biological transmission Effects 0.000 description 17
- 238000000605 extraction Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 239000000284 extract Substances 0.000 description 8
- 238000012986 modification Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 7
- 238000000034 method Methods 0.000 description 6
- 230000007423 decrease Effects 0.000 description 5
- 238000007493 shaping process Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Abstract
Description
本発明は、映像受信装置に関する。 The present invention relates to a video receiving apparatus.
MPEG(Moving Picture Experts Group)2−TS(Transport Stream)を用いた通信プロトコルにおいて、送信側のエンコーダは、所定間隔のトランスポートパケット毎に、PCR(Program Clock Reference)を付加する。受信側のデコーダは、トランスポートパケット内に含まれるPCRを検出し、検出したPCRに基づいて、エンコーダのクロックを再生する。また、MPEG2−TSにおいては、通信速度の調整のために、無意味なトランスポートパケット(ヌルパケット)が、トランスポートストリーム内に含まれている。エンコーダでは、ヌルパケットを含むトランスポートストリームに対して、PCRを付加する。 In a communication protocol using MPEG (Moving Picture Experts Group) 2-TS (Transport Stream), an encoder on the transmission side adds a PCR (Program Clock Reference) for each transport packet at a predetermined interval. The decoder on the receiving side detects the PCR included in the transport packet and regenerates the encoder clock based on the detected PCR. In MPEG2-TS, meaningless transport packets (null packets) are included in the transport stream in order to adjust the communication speed. In the encoder, PCR is added to the transport stream including a null packet.
地上デジタル放送やBSデジタル放送等の再送信サービスにおいては、通信データ量の削減のために、ヌルパケットを削除した後にトランスポートストリームを送信することが望ましい。この場合には、PCRを含むトランスポートパケットの位置が、ヌルパケットの削除の前後で異なる。そのため、デコーダが受信するトランスポートストリームにおいても、PCRを含むトランスポートパケットの位置が、本来の位置(ヌルパケットが削除される前のトランスポートストリーム内における位置)とは異なっている。従って、デコーダは、検出したPCRのみによっては、エンコーダのクロックを正確に再生することができない。 In retransmission services such as terrestrial digital broadcasting and BS digital broadcasting, it is desirable to transmit a transport stream after deleting null packets in order to reduce the amount of communication data. In this case, the position of the transport packet including the PCR differs before and after the null packet is deleted. Therefore, also in the transport stream received by the decoder, the position of the transport packet including the PCR is different from the original position (position in the transport stream before the null packet is deleted). Therefore, the decoder cannot accurately reproduce the encoder clock only by the detected PCR.
下記特許文献1,2には、MPEG2−TSの各トランスポートパケットにタイムスタンプを付加することにより、MPEG2−TSをMPEG2−TTS(Time-stamped Transport Stream)に変換する技術が開示されている。エンコーダにおいてヌルパケットが削除された場合であっても、デコーダは、タイムスタンプに基づいて、PCRを含むトランスポートパケットの本来の位置を復元することができる。従って、デコーダは、本来の位置に復元されたトランスポートパケット内に含まれるPCRに基づいて、エンコーダのクロックを再生することが可能となる。
図8は、MPEG2−TTSを扱うデコーダの構成の一部を抜き出して示すブロック図である(例えば下記特許文献3参照)。TTSデコーダ330は、クロック発生部334が発生する基準クロックに基づいて動作し、各TTSパケットに付加されているタイムスタンプに従って、TTSパケットバッファ332からTTSパケットを読み出して、TSパケットとしてMPEGデコーダ340に入力する。
FIG. 8 is a block diagram showing a part of the configuration of a decoder that handles MPEG2-TTS (see, for example,
また、TTSデコーダ330は、以下のようにして基準クロックの周波数を調整する機能を有している。TTSパケットバッファ332には、デコード開始前に規定量(例えばバッファメモリの容量の半分程度)のTTSパケットが蓄積される。TTSデコーダ330は、TTSパケットバッファ332の占有量を監視し、その占有量が規定範囲を上回る場合には、基準クロックの周波数を上げる。これにより、TTSパケットバッファ332からTTSパケットが読み出されるペースが早くなる。一方、その占有量が規定範囲を下回る場合には、基準クロックの周波数を下げる。これにより、TTSパケットバッファ332からTTSパケットが読み出されるペースが遅くなる。このように、バッファメモリの増減傾向を監視することでエンコーダ側のクロックを再生する方式は、バッファメモリ方式と称されている。一般的に、バッファメモリ方式によるクロック再生は、エンコーダのビットレートが固定である方式(CBR:Constant Bit Rate)に対して適用される。
The
しかし、映像や音声の状況に応じてエンコーダのビットレートを変動させる方式(VBR:Variable Bit Rate)においては、ビットレートが高い場合にはバッファメモリがオーバーフローしやすく、ビットレートが低い場合にはバッファメモリがアンダーフローしやすい。従って、VBRにバッファメモリ方式を拡張しようとすると、デコード開始前にバッファメモリに蓄積しておくTTSパケットの規定量を、想定されるビットレートの変動幅に応じてある程度大きく設定する必要がある。 However, in the method of changing the bit rate of the encoder (VBR: Variable Bit Rate) according to the situation of video and audio, the buffer memory tends to overflow when the bit rate is high, and the buffer when the bit rate is low. Memory tends to underflow. Therefore, when trying to expand the buffer memory system to VBR, it is necessary to set the prescribed amount of TTS packets stored in the buffer memory before starting decoding to a certain extent depending on the assumed fluctuation range of the bit rate.
従って、ビットレートが低い場合には規定量のTTSパケットをバッファメモリに蓄積するまでに長時間を要するため、デコードの開始が遅れ、それに伴って映像の再生開始も遅れるという問題がある。 Therefore, when the bit rate is low, it takes a long time to store a prescribed amount of TTS packets in the buffer memory, so that there is a problem that the start of decoding is delayed and accordingly the start of video reproduction is also delayed.
本発明はかかる問題を解決するために成されたものであり、ビットレートが低い場合であってもデコードの開始が遅れることを回避することが可能な映像受信装置を得ることを目的とするものである。 The present invention has been made to solve such a problem, and an object of the present invention is to obtain a video receiver capable of avoiding a delay in starting decoding even when the bit rate is low. It is.
本発明の第1の態様に係る映像受信装置は、それぞれにタイムスタンプが付加された複数のパケットを含むトランスポートストリームを一時的に記憶する記憶部と、基準クロックを発生するクロック発生部と、前記基準クロックに基づいてカウント動作を行うカウンタ部と、各パケットに付加されているタイムスタンプの値と、前記カウンタ部のカウント値とに基づいて、前記記憶部からの各パケットの出力を制御するゲート部と、前記記憶部に入力されたパケットの滞留時間に基づいて、前記基準クロックの周波数を調整する調整部と、を備えることを特徴とするものである。 The video reception device according to the first aspect of the present invention includes a storage unit that temporarily stores a transport stream including a plurality of packets each having a time stamp added thereto, a clock generation unit that generates a reference clock, Control the output of each packet from the storage unit based on the counter unit that performs a counting operation based on the reference clock, the value of the time stamp added to each packet, and the count value of the counter unit A gate unit; and an adjustment unit that adjusts a frequency of the reference clock based on a residence time of the packet input to the storage unit.
第1の態様に係る映像受信装置によれば、調整部は、記憶部に入力されたパケットの滞留時間に基づいて、基準クロックの周波数を調整する。つまり、パケットの滞留時間が目標値より大きい場合には基準クロックの周波数を上げ、パケットの滞留時間が目標値より小さい場合には基準クロックの周波数を下げる。これにより、映像送信装置内のエンコーダの基準クロックを映像受信装置において再生することができる。しかも、エンコーダのビットレートに拘わらず、各パケットは記憶部に入力されてから所定の滞留時間が経過したタイミングで記憶部から出力される。従って、ビットレートが低い場合であってもデコードの開始が遅れることを回避することが可能となる。 According to the video receiving apparatus according to the first aspect, the adjustment unit adjusts the frequency of the reference clock based on the residence time of the packet input to the storage unit. That is, when the packet residence time is larger than the target value, the reference clock frequency is increased, and when the packet residence time is smaller than the target value, the reference clock frequency is decreased. Thereby, the reference clock of the encoder in the video transmission device can be reproduced in the video reception device. Moreover, regardless of the bit rate of the encoder, each packet is output from the storage unit at a timing when a predetermined residence time has elapsed after being input to the storage unit. Therefore, it is possible to avoid delaying the start of decoding even when the bit rate is low.
本発明の第2の態様に係る映像受信装置は、第1の態様に係る映像受信装置において特に、前記調整部は、前記記憶部に入力されるパケットに付加されているタイムスタンプの値と、前記記憶部から出力されるパケットに付加されているタイムスタンプの値との差に基づいて、前記滞留時間を算出することを特徴とするものである。 The video reception device according to the second aspect of the present invention is the video reception device according to the first aspect, in particular, the adjustment unit includes a time stamp value added to a packet input to the storage unit, The dwell time is calculated based on a difference from a time stamp value added to a packet output from the storage unit.
第2の態様に係る映像受信装置によれば、調整部は、記憶部に入力されるパケットに付加されているタイムスタンプの値と、記憶部から出力されるパケットに付加されているタイムスタンプの値との差に基づいて、滞留時間を算出する。このように、各パケットに付加されているタイムスタンプを用いて滞留時間を算出することにより、滞留時間を管理するための追加の計時手段を設ける必要がないため、構成及び処理の簡略化を図ることができる。 According to the video reception device of the second aspect, the adjustment unit includes the time stamp value added to the packet input to the storage unit and the time stamp value added to the packet output from the storage unit. Based on the difference from the value, the residence time is calculated. In this way, by calculating the residence time using the time stamp added to each packet, it is not necessary to provide an additional timing means for managing the residence time, so that the configuration and processing are simplified. be able to.
本発明の第3の態様に係る映像受信装置は、第2の態様に係る映像受信装置において特に、前記ゲート部は、前記トランスポートストリームに含まれる先頭のパケットが前記記憶部に入力された後、当該先頭のパケットに付加されているタイムスタンプの値に、目標滞留時間に相当する値を加算した値以上のタイムスタンプが付加されているパケットが前記記憶部に入力されたタイミングで、前記記憶部からの前記先頭のパケットの出力を開始することを特徴とするものである。 The video reception device according to the third aspect of the present invention is the video reception device according to the second aspect, in particular, the gate unit after the leading packet included in the transport stream is input to the storage unit. , At the timing when a packet in which a time stamp equal to or greater than a value corresponding to the target residence time is added to the time stamp value added to the first packet is input to the storage unit The output of the head packet from the unit is started.
第3の態様に係る映像受信装置によれば、ゲート部は、先頭のパケットが記憶部に入力された後、当該先頭のパケットに付加されているタイムスタンプの値に、目標滞留時間に相当する値を加算した値以上のタイムスタンプが付加されているパケットが記憶部に入力されたタイミングで、記憶部からの先頭のパケットの出力を開始する。これにより、先頭のパケットが記憶部に入力されてから目標滞留時間が経過したタイミングで、記憶部からの先頭のパケットの出力を開始できるため、目標滞留時間に相当する量のパケットが記憶部に溜まれば出力を開始することができる。 According to the video reception device of the third aspect, the gate unit corresponds to the target residence time in the time stamp value added to the first packet after the first packet is input to the storage unit. At the timing when a packet to which a time stamp equal to or greater than the value added is added is input to the storage unit, output of the first packet from the storage unit is started. As a result, since the output of the first packet from the storage unit can be started at the timing when the target residence time has elapsed since the first packet was input to the storage unit, an amount of packets corresponding to the target residence time is stored in the storage unit. If it accumulates, the output can be started.
本発明の第4の態様に係る映像受信装置は、第1の態様に係る映像受信装置において特に、前記記憶部に入力されるパケットに対して所定の時刻情報を付加する情報付加部をさらに備え、前記調整部は、前記記憶部に入力されるパケットに対して付加する時刻情報の値と、前記記憶部から出力されるパケットに付加されている時刻情報の値との差に基づいて、前記滞留時間を算出することを特徴とするものである。 The video reception device according to the fourth aspect of the present invention further includes an information addition unit for adding predetermined time information to the packet input to the storage unit, particularly in the video reception device according to the first aspect. The adjustment unit is based on a difference between a value of time information added to the packet input to the storage unit and a value of time information added to the packet output from the storage unit. The residence time is calculated.
第4の態様に係る映像受信装置によれば、調整部は、記憶部に入力されるパケットに対して付加する時刻情報の値と、記憶部から出力されるパケットに付加されている時刻情報の値との差に基づいて、滞留時間を算出する。従って、離散的な値であるタイムスタンプを用いて滞留時間を算出する場合と比較すると、誤差を低減できるため、基準クロックの再生精度を向上することができる。 According to the video reception device of the fourth aspect, the adjustment unit includes the value of the time information added to the packet input to the storage unit and the time information added to the packet output from the storage unit. Based on the difference from the value, the residence time is calculated. Therefore, the error can be reduced as compared with the case where the residence time is calculated using a time stamp which is a discrete value, so that the reproduction accuracy of the reference clock can be improved.
本発明の第5の態様に係る映像受信装置は、第4の態様に係る映像受信装置において特に、前記ゲート部は、前記トランスポートストリームに含まれる先頭のパケットが前記記憶部に入力された後、当該先頭のパケットに付加されている時刻情報で示される時刻から、前記滞留時間が経過したタイミングで、前記記憶部からの前記先頭のパケットの出力を開始することを特徴とするものである。 The video reception device according to a fifth aspect of the present invention is the video reception device according to the fourth aspect, in particular, the gate unit after the leading packet included in the transport stream is input to the storage unit. The output of the first packet from the storage unit is started at the timing when the dwell time has elapsed from the time indicated by the time information added to the first packet.
第5の態様に係る映像受信装置によれば、ゲート部は、トランスポートストリームに含まれる先頭のパケットが記憶部に入力された後、当該先頭のパケットに付加されている時刻情報で示される時刻から、目標滞留時間が経過したタイミングで、記憶部からの先頭のパケットの出力を開始する。これにより、先頭のパケットが記憶部に入力されてから目標滞留時間が経過したタイミングで、記憶部からの先頭のパケットの出力を開始できるため、目標滞留時間に相当する量のパケットが記憶部に溜まれば出力を開始することができる。 According to the video reception device of the fifth aspect, the gate unit receives the time indicated by the time information added to the first packet after the first packet included in the transport stream is input to the storage unit. Then, the output of the first packet from the storage unit is started at the timing when the target residence time has elapsed. As a result, since the output of the first packet from the storage unit can be started at the timing when the target residence time has elapsed since the first packet was input to the storage unit, an amount of packets corresponding to the target residence time is stored in the storage unit. If it accumulates, the output can be started.
本発明の第6の態様に係る映像受信装置は、第1〜第5のいずれか一つの態様に係る映像受信装置において特に、前記調整部は、所定期間内に求めた複数の滞留時間の平均値に基づいて、前記基準クロックの周波数を調整することを特徴とするものである。 The video reception device according to a sixth aspect of the present invention is the video reception device according to any one of the first to fifth aspects, in particular, the adjustment unit is an average of a plurality of residence times obtained within a predetermined period. The frequency of the reference clock is adjusted based on the value.
第6の態様に係る映像受信装置によれば、調整部は、所定期間内に求めた複数の滞留時間の平均値に基づいて、基準クロックの周波数を調整する。従って、ジッタやシェーピング等の影響によってエンコーダから映像受信装置へのパケットの到着時間が揺らぎ、それに起因して記憶部へのパケットの入力タイミングが変動する場合であっても、基準クロックの周波数が頻繁に変更される事態を回避することが可能となる。 According to the video reception device of the sixth aspect, the adjustment unit adjusts the frequency of the reference clock based on the average value of the plurality of residence times obtained within the predetermined period. Therefore, even if the arrival time of the packet from the encoder to the video reception device fluctuates due to the influence of jitter, shaping, etc., and the input timing of the packet to the storage unit fluctuates due to this, the frequency of the reference clock is frequently It is possible to avoid the situation of being changed.
本発明によれば、ビットレートが低い場合であってもデコードの開始が遅れることを回避することが可能となる。 According to the present invention, it is possible to avoid delaying the start of decoding even when the bit rate is low.
以下、本発明の実施の形態について、図面を用いて詳細に説明する。なお、異なる図面において同一の符号を付した要素は、同一又は相応する要素を示すものとする。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, the element which attached | subjected the same code | symbol in different drawing shall show the same or corresponding element.
図1は、映像通信システム1の全体構成を示す図である。映像送信装置2は、映像を送信する送信局に設置されており、地上デジタル放送やBSデジタル放送の再送信サービス等を提供するための送信サーバである。映像送信装置2は、MPEG(Moving Picture Experts Group)2−TS(Transport Stream)の各トランスポートパケットにタイムスタンプを付加することにより、MPEG2−TSをMPEG2−TTS(Time-stamped Transport Stream)に変換する。タイムスタンプは、映像送信装置2内のエンコーダにおいて、27MHzのクロックを用いたカウンタのカウント動作によって生成される4バイトのカウント値である。映像送信装置2は、タイムスタンプを付加した後、通信データ量の削減のために、MPEG2−TSのトランスポートストリームに含まれているヌルパケットを削除した後に、MPEG2−TTSのトランスポートストリームを送信する。
FIG. 1 is a diagram showing an overall configuration of the
映像受信装置4は、例えばユーザの自宅に設置されたセットトップボックスである。映像受信装置4は、映像送信装置2から送信されたMPEG2−TTSのトランスポートストリームを、IP(Internet Protocol)ネットワーク等の通信ネットワーク3を介して受信する。そして、受信したトランスポートストリームをデコードすることにより、テレビ5において映像を再生する。
The
図2は、本発明の実施の形態に係る映像受信装置4の構成を簡略化して示すブロック図である。図2に示すように、この映像受信装置4は、バッファメモリ11、TTSゲート12、デコード回路13、抽出部14,15、TTSカウンタ16、調整部17、及びVCO(Voltage Control Oscillator)18を備える。映像受信装置4は、バッファメモリ11に入力されたパケットの滞留時間に基づいて、VCO18が発生する基準クロックの周波数を調整する。
FIG. 2 is a block diagram showing a simplified configuration of the
バッファメモリ11(記憶部)には、映像送信装置2から図示しない受信部によって受信したトランスポートストリームS1が入力され、バッファメモリ11はそのトランスポートストリームS1を一時的に記憶する。
The buffer memory 11 (storage unit) receives the transport stream S1 received by the receiving unit (not shown) from the
VCO18(クロック発生部)は、27MHzの基準クロックを発生する。後述するように、VCO18が発生する基準クロックの周波数は、調整部17によって調整可能である。
The VCO 18 (clock generation unit) generates a 27 MHz reference clock. As will be described later, the frequency of the reference clock generated by the
TTSカウンタ16(カウンタ部)は、VCO18が発生した基準クロックに基づいてカウント動作を行う。
The TTS counter 16 (counter unit) performs a counting operation based on the reference clock generated by the
TTSゲート12(ゲート部)は、この例において、各トランスポートパケットに付加されているタイムスタンプの値と、TTSカウンタ16のカウント値とに基づいて、バッファメモリ11からデコード回路13へ向けての各トランスポートパケットの出力を制御する。
In this example, the TTS gate 12 (gate unit) is connected to the
抽出部14は、バッファメモリ11に入力されるトランスポートパケット(例えば、バッファメモリ11への入り口をまさに通過しようとしているトランスポートパケット)に付加されているタイムスタンプの値を抽出する。
The
抽出部15は、バッファメモリ11から出力されるトランスポートパケット(例えば、TTSゲート12をまさに通過しようとしているトランスポートパケット)に付加されているタイムスタンプの値を抽出する。
The
調整部17は、バッファメモリ11に入力されたトランスポートパケットの、バッファメモリ11における滞留時間に基づいて、VCO18が発生する基準クロックの周波数を調整する。調整手法の詳細については後述する。
The
図3は、映像受信装置4が受信するトランスポートストリームS1の一部を抜き出して示す図である。トランスポートストリームS1は、複数のトランスポートパケットTPを含む。図3では、説明の簡単化のため、この順に連続する8個のトランスポートパケットTP1〜TP8のみを示している。トランスポートストリームS1に含まれる複数のトランスポートパケットTPのうちの先頭のトランスポートパケットは、トランスポートパケットTP1であるものとする。
FIG. 3 is a diagram illustrating a part of the transport stream S1 received by the
図4は、トランスポートパケットTPの構造を示す図である。トランスポートパケットTPは、ヘッダ部とペイロード部とを有しており、これらの合計のデータ長は188バイトである。トランスポートパケットTPには、データ長が4バイトのタイムスタンプ50が付加されている。
FIG. 4 is a diagram illustrating the structure of the transport packet TP. The transport packet TP has a header part and a payload part, and the total data length thereof is 188 bytes. A
以下、映像受信装置4の動作について説明する。映像受信装置4は、映像送信装置2から送信されたMPEG2−TTSのトランスポートストリームS1を、通信ネットワーク3を介して受信する。そして、受信したトランスポートストリームS1を、バッファメモリ11内に一時的に記憶する。図2を参照して、トランスポートストリームS1は、バッファメモリ11から読み出されて、トランスポートストリームS2としてTTSゲート12からデコード回路13に向けて出力される。
Hereinafter, the operation of the
図5は、TTSゲート12に入力されるトランスポートストリームS1と、TTSゲート12から出力されるトランスポートストリームS2との関係を示すタイミングチャートである。トランスポートストリームS1に関しては、トランスポートパケットTP1〜TP8がこの順にバッファメモリ11から連続して読み出されて、TTSゲート12に入力される。
FIG. 5 is a timing chart showing the relationship between the transport stream S1 input to the
まず、抽出部15は、バッファメモリ11から読み出されたトランスポートストリームS1のうち、先頭のトランスポートパケットTP1に付加されているタイムスタンプ50の値(タイムスタンプ値ST(1))を抽出し、そのタイムスタンプ値ST(1)をTTSゲート12に入力する。
First, the
TTSカウンタ16は、VCO18が発生した基準クロックに基づいてカウント動作を行っており、TTSカウンタ16から出力されるカウント値はTTSゲート12に入力される。なお、バッファメモリ11から読み出されたトランスポートパケットのタイムスタンプ値と、TTSカウンタ16のカウント値との差が所定の閾値を超えた場合には、トランスポートパケットのタイムスタンプ値がTTSカウンタ16にセットされる。これによって、TTSカウンタ16はカウント値を初期化し、カウント動作を再開する。
The
映像受信装置4においては、バッファメモリ11内におけるトランスポートパケットTPの滞留時間に関する目標値(以下「目標滞留時間」と称す)が予め設定されている。目標滞留時間は、バッファメモリ11の記憶容量や、映像送信装置2内のエンコーダがVBR(Variable Bit Rate)方式を採用している場合には、想定されるビットレートの最大値及び最小値等に応じて、適切な値(例えば100〜500msec)に設定される。
In the
抽出部14は、バッファメモリ11に入力されるトランスポートパケットに付加されているタイムスタンプの値を抽出し、TTSゲート12に入力する。
The
TTSゲート12は、抽出部15から入力されたタイムスタンプ値ST(1)に、目標滞留時間に相当するタイムスタンプ値を加算した値以上のタイムスタンプ値が、抽出部14から入力されることにより、そのタイミングでゲートをオープンする。これにより、TTSゲート12からデコード回路13に向けてのトランスポートパケットTP1の出力が開始される。トランスポートパケットTP1がTTSゲート12の通過を完了すると、ゲートは再びクローズされる。なお、TTSゲート12を通過する際、トランスポートパケットTP1に付加されているタイムスタンプ50が削除されることにより、MPEG2−TTSからMPEG2−TSへの変換が行われる。
The
次に、抽出部15は、トランスポートパケットTP1に続くトランスポートパケットTP2に付加されているタイムスタンプ50の値(タイムスタンプ値ST(2))を抽出し、そのタイムスタンプ値ST(2)をTTSゲート12に入力する。
Next, the extracting
TTSゲート12は、タイムスタンプ値ST(2)に等しいカウント値がTTSカウンタ16から入力されることにより、そのタイミングでゲートをオープンする。これにより、TTSゲート12からデコード回路13に向けてのトランスポートパケットTP2の出力が開始される。上記と同様に、トランスポートパケットTP2がTTSゲート12の通過を完了すると、ゲートは再びクローズされる。また、TTSゲート12を通過する際、トランスポートパケットTP2に付加されているタイムスタンプ50が削除されることにより、MPEG2−TTSからMPEG2−TSへの変換が行われる。
When a count value equal to the time stamp value ST (2) is input from the
トランスポートパケットTP3以降についても上記と同様の動作が繰り返されることにより、TTSゲート12からデコード回路13にトランスポートストリームS2が入力される。
The transport stream S2 is input from the
図5を参照して、トランスポートストリームS2に関して、例えば、トランスポートパケットTP2は、トランスポートパケットTP1に連続してデコード回路13に入力されている。これは、映像送信装置2内のエンコーダにおいて、トランスポートパケットTP1とトランスポートパケットTP2との間に、ヌルパケットが存在していなかったことに起因する。なお、厳密には、トランスポートパケットTP1の末尾とトランスポートパケットTP2の先頭との間には、TTSゲート12において削除されたタイムスタンプ50に相当する4バイト分の間隔が存在しているが、図5ではその間隔を無視して図示している。
Referring to FIG. 5, for transport stream S2, for example, transport packet TP2 is input to decode
また例えば、トランスポートパケットTP3は、トランスポートパケットTP2から遅延してデコード回路13に入力されている。遅延量は、先頭同士の比較で、トランスポートパケットTPの2個分に相当する時間WT1である。これは、映像送信装置2内のエンコーダにおいて、トランスポートパケットTP2とトランスポートパケットTP3との間に存在していた1個のヌルパケットが削除されたことに起因する。
Further, for example, the transport packet TP3 is input to the
また例えば、トランスポートパケットTP6は、トランスポートパケットTP5から遅延してデコード回路13に入力されている。遅延量は、先頭同士の比較で、トランスポートパケットTPの3個分に相当する時間WT2である。これは、映像送信装置2内のエンコーダにおいて、トランスポートパケットTP5とトランスポートパケットTP6との間に存在していた2個のヌルパケットが削除されたことに起因する。
Further, for example, the transport packet TP6 is input to the
さて次に、調整部17による基準クロックの調整処理について説明する。
Next, reference clock adjustment processing by the
調整部17には、バッファメモリ11に入力されるトランスポートパケットに付加されているタイムスタンプの値(以下「入力タイムスタンプ値」と称す)が、抽出部14から入力される。また、調整部17には、同時刻にバッファメモリ11から出力されるトランスポートパケットに付加されているタイムスタンプの値(以下「出力タイムスタンプ値」と称す)が、抽出部15から入力される。
A time stamp value added to a transport packet input to the buffer memory 11 (hereinafter referred to as “input time stamp value”) is input from the
調整部17は、入力タイムスタンプ値から出力タイムスタンプ値を減算することにより両者の差分値を求め、この差分値を時間に換算した値として、バッファメモリ11内におけるトランスポートパケットTPの滞留時間を算出する。そして、例えば、この滞留時間が目標滞留時間に等しくなるように(又は近付くように)、VCO18が発生する基準クロックの周波数を調整する。具体的に、調整部17は、算出した滞留時間が目標滞留時間より大きい場合は基準クロックの周波数を上げ、一方、算出した滞留時間が目標滞留時間より小さい場合は基準クロックの周波数を下げる。
The
ここで、IPネットワーク等の通信ネットワーク11においては、ジッタやシェーピング等の影響によって映像送信装置2から映像受信装置4へのトランスポートパケットTPの到着時間が揺らぎ、それに起因してバッファメモリ11へのトランスポートパケットTPの入力タイミングが変動する場合がある。そこで、調整部17は、TTSゲート12から出力されるトランスポートパケットTP毎に、タイムスタンプ値に基づいて滞留時間を算出し、所定期間(例えば数分〜数10分)内に求めた複数の滞留時間の平均値と目標滞留時間との比較により、基準クロックの周波数を調整するのが望ましい。上記と同様に調整部17は、滞留時間の平均値が目標滞留時間より大きい場合は基準クロックの周波数を上げ、一方、滞留時間の平均値が目標滞留時間より小さい場合は基準クロックの周波数を下げる。
Here, in the
<変形例>
図6は、本実施の形態の変形例に係る映像受信装置4の構成を簡略化して示すブロック図である。図6の接続関係で示すように、映像受信装置4は、バッファメモリ11、TTSゲート12、デコード回路13、抽出部15、TTSカウンタ16、調整部17、VCO18、及び時刻情報付加部21を備えて構成されている。以下、上記実施の形態との相違点について説明する。
<Modification>
FIG. 6 is a block diagram showing a simplified configuration of the
時刻情報付加部21は、バッファメモリ11に入力されるトランスポートパケットTPに対して、所定の時刻情報を付加する。映像受信装置4内には時計が設けられており、時刻情報付加部21は、この時計によって計時される時刻を、時刻情報としてトランスポートパケットTPに付加する。
The time
図7は、バッファメモリ11に記憶されているトランスポートパケットTPの構造を示す図である。トランスポートパケットTPには、タイムスタンプ50に加えて、時刻情報51が付加されている。
FIG. 7 is a diagram showing the structure of the transport packet TP stored in the
図6を参照して、時刻情報付加部21は、トランスポートストリームS1の先頭のトランスポートパケットTP1に付加した時刻情報51の値(時刻情報値SQ(1))を、TTSゲート12に入力する。TTSゲート12は、時刻情報付加部21から入力された時刻情報値SQ(1)で示される時刻から、目標滞留時間が経過したタイミングで、ゲートをオープンする。これにより、TTSゲート12からデコード回路13に向けてのトランスポートパケットTP1の出力が開始される。トランスポートパケットTP1がTTSゲート12の通過を完了すると、ゲートは再びクローズされる。なお、TTSゲート12を通過する際、トランスポートパケットTP1に付加されているタイムスタンプ50が削除されることにより、MPEG2−TTSからMPEG2−TSへの変換が行われる。
Referring to FIG. 6, time
抽出部15は、バッファメモリ11から出力されるトランスポートパケットに付加されている時刻情報51の値を抽出し、調整部17に入力する。
The
調整部17には、バッファメモリ11に入力されるトランスポートパケットに対して時刻情報付加部21が付加する時刻情報51の値(つまり現在の時刻を示す時刻情報値。以下「入力時刻情報値」と称す)が、時刻情報付加部21から入力される。また、調整部17には、同時刻にバッファメモリ11から出力されるトランスポートパケットに付加されている時刻情報51の値(以下「出力時刻情報値」と称す)が、抽出部15から入力される。
The adjusting
調整部17は、入力時刻情報値から出力時刻情報値を減算することにより両者の差分値を求め、この差分値として、バッファメモリ11内におけるトランスポートパケットTPの滞留時間を算出する。そして、この滞留時間が目標滞留時間に等しくなるように(又は近付くように)、VCO18が発生する基準クロックの周波数を調整する。具体的に、調整部17は、算出した滞留時間が目標滞留時間より大きい場合は基準クロックの周波数を上げ、一方、算出した滞留時間が目標滞留時間より小さい場合は基準クロックの周波数を下げる。
The adjusting
ここで、IPネットワーク等の通信ネットワーク11においては、ジッタやシェーピング等の影響によって映像送信装置2から映像受信装置4へのトランスポートパケットTPの到着時間が揺らぎ、それに起因してバッファメモリ11へのトランスポートパケットTPの入力タイミングが変動する場合がある。そこで、調整部17は、TTSゲート12から出力されるトランスポートパケットTP毎に、時刻情報値に基づいて滞留時間を算出し、所定期間(例えば数分〜数10分)内に求めた複数の滞留時間の平均値と目標滞留時間との比較により、基準クロックの周波数を調整するのが望ましい。上記と同様に調整部17は、滞留時間の平均値が目標滞留時間より大きい場合は基準クロックの周波数を上げ、一方、滞留時間の平均値が目標滞留時間より小さい場合は基準クロックの周波数を下げる。
Here, in the
<本実施の形態のまとめ>
このように本実施の形態に係る映像受信装置4によれば、調整部17は、バッファメモリ11に入力されたトランスポートパケットTPの滞留時間に基づいて、基準クロックの周波数を調整する。つまり、トランスポートパケットTPの滞留時間が目標滞留時間より大きい場合には基準クロックの周波数を上げ、トランスポートパケットTPの滞留時間が目標滞留時間より小さい場合には基準クロックの周波数を下げる。これにより、映像送信装置2内のエンコーダの基準クロックを映像受信装置4において再生することができる。しかも、エンコーダのビットレートに拘わらず、各トランスポートパケットTPはバッファメモリ11に入力されてから所定の滞留時間が経過したタイミングでバッファメモリ11から出力される。従って、ビットレートが低い場合であってもデコードの開始が遅れることを回避することが可能となる。
<Summary of this embodiment>
As described above, according to the
また、本実施の形態に係る映像受信装置4によれば、調整部17は、バッファメモリ11に入力されるトランスポートパケットTPに付加されているタイムスタンプの値と、バッファメモリ11から出力されるトランスポートパケットTPに付加されているタイムスタンプの値との差に基づいて、滞留時間を算出する。このように、各トランスポートパケットTPに付加されているタイムスタンプを用いて滞留時間を算出することにより、滞留時間を管理するための追加の計時手段を設ける必要がないため、構成及び処理の簡略化を図ることができる。
Further, according to the
また、本実施の形態に係る映像受信装置4によれば、TTSゲート12は、先頭のトランスポートパケットTP1がバッファメモリ11に入力された後、トランスポートパケットTP1に付加されているタイムスタンプ50の値に、目標滞留時間に相当する値を加算した値以上のタイムスタンプが付加されているトランスポートパケットTPがバッファメモリ11に入力されたタイミングで、バッファメモリ11からのトランスポートパケットTP1の出力を開始する。これにより、トランスポートパケットTP1がバッファメモリ11に入力されてから目標滞留時間が経過したタイミングで、バッファメモリ11からのトランスポートパケットTP1の出力を開始できるため、目標滞留時間に相当する量のトランスポートパケットがバッファメモリ11に溜まれば出力を開始することができる。
Further, according to the
また、本実施の形態の変形例に係る映像受信装置4によれば、調整部17は、バッファメモリ11に入力されるトランスポートパケットTPに対して付加する時刻情報の値と、バッファメモリ11から出力されるトランスポートパケットTPに付加されている時刻情報の値との差に基づいて、滞留時間を算出する。従って、離散的な値であるタイムスタンプを用いて滞留時間を算出する場合と比較すると、誤差を低減できるため、基準クロックの再生精度を向上することができる。
Further, according to the
また、本実施の形態の変形例に係る映像受信装置4によれば、TTSゲート12は、先頭のトランスポートパケットTP1がバッファメモリ11に入力された後、トランスポートパケットTP1に付加されている時刻情報51で示される時刻から、目標滞留時間が経過したタイミングで、バッファメモリ11からのトランスポートパケットTP1の出力を開始する。これにより、トランスポートパケットTP1がバッファメモリ11に入力されてから目標滞留時間が経過したタイミングで、バッファメモリ11からのトランスポートパケットTP1の出力を開始できるため、目標滞留時間に相当する量のトランスポートパケットがバッファメモリ11に溜まれば出力を開始することができる。
In addition, according to the
また、本実施の形態及びその変形例に係る映像受信装置4によれば、調整部17は、所定期間内に求めた複数の滞留時間の平均値に基づいて、基準クロックの周波数を調整する。従って、ジッタやシェーピング等の影響によって映像送信装置2から映像受信装置4へのトランスポートパケットTPの到着時間が揺らぎ、それに起因してバッファメモリ11へのトランスポートパケットTPの入力タイミングが変動する場合であっても、基準クロックの周波数が頻繁に変更される事態を回避することが可能となる。
Further, according to the
なお、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内での全ての変更が含まれることが意図される。 The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined not by the above-mentioned meaning but by the scope of claims for patent, and is intended to include all modifications within the scope and meaning equivalent to the scope of claims for patent.
4 映像受信装置
11 バッファメモリ
12 TTSゲート
13 デコード回路
14,15 抽出部
16 TTSカウンタ
17 調整部
18 VCO
21 時刻情報付加部
4
21 Time information addition part
Claims (6)
基準クロックを発生するクロック発生部と、
前記基準クロックに基づいてカウント動作を行うカウンタ部と、
各パケットに付加されているタイムスタンプの値と、前記カウンタ部のカウント値とに基づいて、前記記憶部からの各パケットの出力を制御するゲート部と、
前記記憶部に入力されたパケットの滞留時間に基づいて、前記基準クロックの周波数を調整する調整部と、
を備える、映像受信装置。 A storage unit for temporarily storing a transport stream including a plurality of packets each having a time stamp added thereto;
A clock generator for generating a reference clock;
A counter unit that performs a counting operation based on the reference clock;
A gate unit for controlling the output of each packet from the storage unit based on the value of the time stamp added to each packet and the count value of the counter unit;
An adjustment unit that adjusts the frequency of the reference clock based on the residence time of the packet input to the storage unit;
A video receiving device.
前記調整部は、前記記憶部に入力されるパケットに対して付加する時刻情報の値と、前記記憶部から出力されるパケットに付加されている時刻情報の値との差に基づいて、前記滞留時間を算出する、請求項1に記載の映像受信装置。 An information adding unit for adding predetermined time information to the packet input to the storage unit;
The adjustment unit is configured to perform the stay based on a difference between a value of time information added to the packet input to the storage unit and a value of time information added to the packet output from the storage unit. The video receiving device according to claim 1, wherein time is calculated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011017491A JP5149404B2 (en) | 2011-01-31 | 2011-01-31 | Video receiver |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011017491A JP5149404B2 (en) | 2011-01-31 | 2011-01-31 | Video receiver |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012258415A Division JP2013078127A (en) | 2012-11-27 | 2012-11-27 | Video receiver |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012160798A true JP2012160798A (en) | 2012-08-23 |
JP5149404B2 JP5149404B2 (en) | 2013-02-20 |
Family
ID=46841004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011017491A Active JP5149404B2 (en) | 2011-01-31 | 2011-01-31 | Video receiver |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5149404B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019068310A (en) * | 2017-10-03 | 2019-04-25 | 住友電気工業株式会社 | Broadcast retransmitting device, broadcast receiving device, broadcast retransmitting method, broadcast receiving method, broadcast retransmitting program, and broadcast receiving program |
CN113015001A (en) * | 2021-02-26 | 2021-06-22 | 上海先基半导体科技有限公司 | Video frame cache controller based on FPGA and control method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007104085A (en) * | 2005-09-30 | 2007-04-19 | Toshiba Corp | Digital broadcast method and apparatus employing communication line |
JP2008035197A (en) * | 2006-07-28 | 2008-02-14 | Sumitomo Electric Ind Ltd | Clocking circuit, video processor and clock adjustment method |
JP2008035198A (en) * | 2006-07-28 | 2008-02-14 | Sumitomo Electric Ind Ltd | Video processor and packet processing method |
-
2011
- 2011-01-31 JP JP2011017491A patent/JP5149404B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007104085A (en) * | 2005-09-30 | 2007-04-19 | Toshiba Corp | Digital broadcast method and apparatus employing communication line |
JP2008035197A (en) * | 2006-07-28 | 2008-02-14 | Sumitomo Electric Ind Ltd | Clocking circuit, video processor and clock adjustment method |
JP2008035198A (en) * | 2006-07-28 | 2008-02-14 | Sumitomo Electric Ind Ltd | Video processor and packet processing method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019068310A (en) * | 2017-10-03 | 2019-04-25 | 住友電気工業株式会社 | Broadcast retransmitting device, broadcast receiving device, broadcast retransmitting method, broadcast receiving method, broadcast retransmitting program, and broadcast receiving program |
CN113015001A (en) * | 2021-02-26 | 2021-06-22 | 上海先基半导体科技有限公司 | Video frame cache controller based on FPGA and control method thereof |
CN113015001B (en) * | 2021-02-26 | 2022-04-08 | 上海先基半导体科技有限公司 | Video frame cache controller based on FPGA and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP5149404B2 (en) | 2013-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7983345B2 (en) | Content receiving apparatus, video/audio output timing control method, and content provision system | |
US7668170B2 (en) | Adaptive packet transmission with explicit deadline adjustment | |
CN110099289B (en) | Data transmission method, data reproduction method, data transmission device, and data reproduction device | |
US8189679B2 (en) | Content receiving apparatus, method of controlling video-audio output timing and content providing system | |
JP4361561B2 (en) | Data receiving apparatus and data receiving method | |
JP3925311B2 (en) | Data distribution system | |
KR100787314B1 (en) | Method and apparatus for adaptive media playout for intra-media synchronization | |
EP2011332B1 (en) | Method for reducing channel change times in a digital video apparatus | |
US8010863B2 (en) | Method and apparatus for synchronizing multiple multimedia streams | |
JP2005534219A (en) | Jitter correction method for system with wall clock | |
CN102868680A (en) | Broadcast transport stream distribution system, broadcast transport stream distribution apparatus and distribution method for use in the system | |
US20130282871A1 (en) | Streaming service transmitting/receiving device and method | |
JP5149404B2 (en) | Video receiver | |
US8483289B2 (en) | Method and system for fast channel change | |
JP4081936B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM | |
EP1528724A1 (en) | Information processing device and method, recording medium, and program | |
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 | |
JP4192766B2 (en) | Receiving apparatus and method, recording medium, and program | |
JP5958008B2 (en) | Stream processing apparatus, stream processing method, and stream processing program | |
JP2013078127A (en) | Video receiver | |
JP4561240B2 (en) | Data processing apparatus, data processing method, and data transmission / reception system | |
JP3419607B2 (en) | Clock recovery device | |
JP3856135B2 (en) | Stream converting / sending device | |
WO2016203870A1 (en) | Transmission apparatus, transmission method, and communication system | |
JP4874272B2 (en) | Video signal processing apparatus and video signal processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20120726 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20120807 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120815 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121015 |
|
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: 20121031 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121129 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5149404 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151207 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313117 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |