JP2007027812A - Video stream processing apparatus, integrated circuit device, and method - Google Patents
Video stream processing apparatus, integrated circuit device, and method Download PDFInfo
- Publication number
- JP2007027812A JP2007027812A JP2005202479A JP2005202479A JP2007027812A JP 2007027812 A JP2007027812 A JP 2007027812A JP 2005202479 A JP2005202479 A JP 2005202479A JP 2005202479 A JP2005202479 A JP 2005202479A JP 2007027812 A JP2007027812 A JP 2007027812A
- Authority
- JP
- Japan
- Prior art keywords
- video stream
- packet
- data
- control unit
- processing apparatus
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
- H04N21/4381—Recovering the multiplex stream from a specific network, e.g. recovering MPEG packets from ATM cells
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2381—Adapting the multiplex stream to a specific network, e.g. an Internet Protocol [IP] network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
- H04N21/4382—Demodulation or channel decoding, e.g. QPSK demodulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
- H04N21/4385—Multiplex stream processing, e.g. multiplex stream decrypting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44004—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/64322—IP
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/16—Analogue secrecy systems; Analogue subscription systems
- H04N7/162—Authorising the user terminal, e.g. by paying; Registering the use of a subscription channel, e.g. billing
- H04N7/163—Authorising the user terminal, e.g. by paying; Registering the use of a subscription channel, e.g. billing by receiver means only
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Communication Control (AREA)
Abstract
Description
本発明は、映像ストリーム処理装置等に関し、特に固定長パケットの列で構成され、かつパケットとは異なる伝送単位に区切られて伝送される映像ストリームを処理する技術に関する。 The present invention relates to a video stream processing apparatus and the like, and more particularly, to a technique for processing a video stream that is composed of a sequence of fixed-length packets and that is transmitted after being divided into transmission units different from the packets.
近年、デジタル放送が急速に普及しつつある。デジタル放送において、映像及び音声を含む放送データは、ストリームを用いて伝送される。例えば、地上波及び衛星波を通して行われるデジタル放送、いわゆる電波放送では、放送データは188バイト固定長パケットの列で構成されるMPEG(Moving Picture Expert Group)−2 TS(Transport Stream)を用いて伝送される。デジタル放送は、このような電波放送の他にも、ネットワークを通して、いわゆるネット放送としても行われる。 In recent years, digital broadcasting is rapidly spreading. In digital broadcasting, broadcast data including video and audio is transmitted using a stream. For example, in digital broadcasting performed through terrestrial and satellite waves, so-called radio broadcasting, broadcast data is transmitted using MPEG (Moving Picture Expert Group) -2 TS (Transport Stream) composed of a sequence of 188-byte fixed-length packets. Is done. In addition to such radio wave broadcasting, digital broadcasting is also performed as so-called Internet broadcasting through a network.
図1は、電波放送及びネット放送を行う伝送システムの構成例を、簡略に表した機能ブロック図である。電波放送では、放送局10は、放送データを表す188バイト固定長のパケット列TS1、TS2、TS3を送出し、受信装置30におけるチューナ部31はそのパケット列を受信し、デコーダ33は受信されたパケット列から映像、音声を再生する。
FIG. 1 is a functional block diagram schematically showing a configuration example of a transmission system that performs radio wave broadcasting and network broadcasting. In radio broadcasting, the
他方、ネット放送では、映像配信サーバ20は、映像、音声を表す188バイト固定長のパケット列TS1、TS2、TS3を、外部ネットワーク25に適合する伝送単位に格納して送出する。外部ネットワーク25の一つの典型例はインターネットであり、その場合、伝送単位はIP(Internet Protocol)パケットである。いくつかのTSパケットはIPパケットへ格納される際に、例えば図1下段に示されるTS2のように、分断される。
On the other hand, in network broadcasting, the
受信装置30において、通信処理部32はTSパケットをペイロードとするIPパケットを受信し、受信されたIPパケットからTSパケットを取り出してデコーダ33へ出力する。このTSパケットは、一般的には分断されている。
In the
ところが、分断のないTSパケットが取得される電波放送を前提としているデコーダのように、TSパケットを分断して与えられると正常にデコード処理できないデコーダが存在する。そのようなデコーダに分断のないTSパケットを供給するための装置が周知となっている(例えば、特許文献1を参照)。 However, there are decoders that cannot normally decode when a TS packet is divided and given, such as a decoder that presupposes radio broadcast in which an undivided TS packet is acquired. An apparatus for supplying an unbroken TS packet to such a decoder is known (see, for example, Patent Document 1).
図2は、図1に示されるネット放送に係る構成に、特許文献1に開示されるパケットストリーム分割装置21及びパケットストリーム結合装置26を加えて得られる伝送システムの構成例を示す機能ブロック図である。
FIG. 2 is a functional block diagram showing a configuration example of a transmission system obtained by adding the packet
パケットストリーム分割装置21における通し番号付与手段22はTSパケットそれぞれに通し番号を割り振った上で、TSパケットを伝送単位に格納して外部ネットワーク25へ送信する。パケットストリーム結合装置26における通し番号抽出手段27は外部ネットワーク25から受信されるデータから通し番号を抽出し、バッファ手段28は抽出された通し番号が一致するTSパケットの断片を結合して元の完全なTSパケットを得る。
しかしながら、上記従来の技術によれば、送信側、受信側の双方で通し番号を取り扱うという、例えばMPEG等の標準的な規格にはない、独自の方法に対応する必要がある。また、通し番号を伝送するためトラフィックが増加するという問題もある。 However, according to the above-described conventional technique, it is necessary to deal with a unique method that does not exist in standard standards such as MPEG, in which serial numbers are handled on both the transmission side and the reception side. Another problem is that traffic increases because serial numbers are transmitted.
本発明は、上記の問題に鑑みてなされたものであり、分断されて伝送されるTSパケットを、独自の付加的な情報を用いることなく、それ故に従来よりも簡素に、結合することができる映像ストリーム処理装置を提供することを目的とする。 The present invention has been made in view of the above problems, and can divide and transmit TS packets that are divided and transmitted without using additional information unique to the prior art. An object is to provide a video stream processing apparatus.
上記課題を解決するため、本発明の映像ストリーム処理装置は、固定長パケットの列で構成され、かつパケットとは異なる伝送単位に区切られて伝送される映像ストリームを処理する映像ストリーム処理装置であって、バッファメモリと、前記映像ストリームを取得して前記バッファメモリにバッファリングすると共に、バッファリングされた映像ストリームを前記固定長ごとに外部へ出力する制御手段とを備える。 In order to solve the above problems, a video stream processing apparatus according to the present invention is a video stream processing apparatus that processes a video stream that is composed of a fixed-length packet sequence and is transmitted in a transmission unit different from the packet. A buffer memory and control means for acquiring the video stream and buffering it in the buffer memory, and outputting the buffered video stream to the outside for each fixed length.
この構成によれば、分断されたパケットを一旦バッファリングした後、バッファリングされたデータをパケット本来の長さである前記固定長ごとに取り出すので、独自の付加的な情報を全く用いることなく分断されたパケットを結合して、元の個々のパケットを得ることができる。 According to this configuration, the buffered data is buffered once, and then the buffered data is taken out for each fixed length that is the original length of the packet, so that the fragmentation can be performed without using any additional information unique to the packet. Can be combined to obtain the original individual packets.
また、前記映像ストリームには前記固定長ごとに予め定められた値のデリミタが含まれることが規定されており、前記制御手段は、前記映像ストリームの最近取得された所定の部分に前記デリミタが前記固定長ごとに含まれているか否かを判断する同期検出部を有し、前記同期検出部によって否定判断がなされた場合に、前記バッファリング及び前記出力の少なくとも一方を取り止めてもよい。 Further, it is defined that the video stream includes a delimiter having a predetermined value for each of the fixed lengths, and the control unit includes the delimiter in a predetermined part of the video stream recently acquired. A synchronization detection unit that determines whether or not each fixed length is included may include canceling at least one of the buffering and the output when a negative determination is made by the synchronization detection unit.
また、前記同期検出部は、前記映像ストリームを取得して前記判断を行うと共に、肯定判断がなされると取得された映像ストリームを出力し、否定判断がなされると取得された映像ストリームを出力せずに破棄し、前記制御手段は、さらに、前記同期検出部から出力される映像ストリームを前記バッファメモリにバッファリングする入力制御部と、前記バッファリングされた映像ストリームを前記固定長ごとに外部へ出力する出力制御部とを有してもよい。 The synchronization detection unit acquires the video stream and makes the determination, and outputs the acquired video stream when an affirmative determination is made, and outputs the acquired video stream when a negative determination is made. The control means further includes: an input control unit that buffers the video stream output from the synchronization detection unit in the buffer memory; and the buffered video stream to the outside for each fixed length. You may have an output control part to output.
また、前記制御手段は、さらに、前記映像ストリームを取得して、取得された映像ストリームを前記バッファメモリにバッファリングする入力制御部と、前記バッファリングされた映像ストリームを前記同期検出部へ出力する出力制御部とを有し、前記同期検出部は、前記出力制御部から与えられる映像ストリームに基づいて前記判断を行うと共に、肯定判断がなされると前記与えられる映像ストリームを前記固定長ごとに外部へ出力し、否定判断がなされると前記与えられる映像ストリームを外部へ出力せずに破棄してもよい。 In addition, the control means further acquires the video stream, buffers the acquired video stream in the buffer memory, and outputs the buffered video stream to the synchronization detection unit. An output control unit, and the synchronization detection unit performs the determination based on the video stream supplied from the output control unit, and when an affirmative determination is made, the synchronization detection unit externally outputs the supplied video stream for each fixed length. When a negative determination is made, the given video stream may be discarded without being output to the outside.
この構成によれば、デリミタが固定長ごとに得られなくなることによって伝送単位がロスしたことを知って、バッファリングされたデータの出力を止めることができるので、いわゆる同期ずれを起こして、大きさは前記固定長だが複数のパケットの断片を含んだデータが外部へ出力されてしまう不都合を回避できる。 According to this configuration, it is possible to stop the output of the buffered data by knowing that the transmission unit has been lost because the delimiter cannot be obtained for each fixed length. Can avoid the inconvenience that data including a plurality of packet fragments is output to the outside.
また、さらに、前記映像ストリーム処理装置は、前記映像ストリームを前記伝送単位ごとに外部ネットワークから受信し、受信された映像ストリームを前記制御手段へ出力する通信処理手段を備え、前記制御手段は、前記映像ストリームを前記通信処理手段から取得してもよい。 Further, the video stream processing device includes a communication processing unit that receives the video stream from an external network for each transmission unit, and outputs the received video stream to the control unit. A video stream may be acquired from the communication processing means.
この構成によれば、伝送単位の受信機能と、分断されたパケットを結合して元の個々のパケットを得る機能とを併せ持つ、利便性の高い映像ストリーム処理装置が得られる。 According to this configuration, it is possible to obtain a highly convenient video stream processing apparatus that has both a reception function of a transmission unit and a function of combining divided packets to obtain original individual packets.
また、本発明は、このような映像ストリーム処理装置として実現することができるだけでなく、そのような映像ストリーム処理装置が備える特徴的な手段によって実行される処理をステップとする映像ストリーム処理方法として実現することも、また、映像ストリーム処理用の集積回路装置として実現することもできる。 Further, the present invention can be realized not only as such a video stream processing apparatus, but also as a video stream processing method including steps executed by characteristic means included in such a video stream processing apparatus. It can also be realized as an integrated circuit device for video stream processing.
本発明の映像ストリーム処理装置によれば、分断されたパケットを一旦バッファリングした後、バッファリングされたデータをパケット本来の長さごとに取り出すので、独自の付加的な情報を全く用いることなく、それ故に従来よりも簡素に、分断されたパケットを結合して、元の個々のパケットを得ることができる。 According to the video stream processing apparatus of the present invention, the buffered data is once buffered and then the buffered data is taken out for each original length of the packet, so that the original additional information is not used at all. Therefore, the original packets can be obtained by combining the divided packets more simply than in the past.
以下、本発明の実施の形態について、図面を参照しながら説明する。
<第1の実施の形態>
図3は、本発明の第1の実施の形態に係る受信装置の構成例を示す機能ブロック図である。受信装置40は、ネット放送で配信される映像ストリームを受信して映像及び音声にデコードする装置であり、通信処理部32、ストリーム処理部41、及びデコーダ33から構成される。ここで、ストリーム処理部41が、第1の実施の形態における映像ストリーム処理装置に相当する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
<First Embodiment>
FIG. 3 is a functional block diagram showing a configuration example of the receiving apparatus according to the first embodiment of the present invention. The
このネット放送では、映像及び音声を含む放送データは従来技術の項で説明したMPEG−2 TSに表されて、図外の映像配信サーバから受信装置40へ、外部ネットワーク25を介して配信されるとする。外部ネットワーク25は一例としてインターネットであり、TSパケットは伝送単位となるIPパケットに格納されて伝送される。この格納の際にTSパケットが分断され得ることは、課題の項で説明したとおりである。
In this net broadcasting, broadcast data including video and audio is represented in the MPEG-2 TS described in the section of the prior art, and is distributed from a video distribution server (not shown) to the
通信処理部32は、従来のネットワークアダプタであり、外部ネットワーク25からIPパケットを取得するたびに、つまり伝送単位ごとに、そのペイロードであるTSパケットを取り出してストリーム処理部41へ出力する。いくつかのTSパケットは、この例に示されるTS2のように、分断された状態でストリーム処理部41へ出力される。
The
ストリーム処理部41は、制御部43の制御下で、通信処理部32から与えられるTSパケットを順にバッファメモリ42にバッファリングすると共に、バッファリングされたデータを、188バイトごとにTSパケットとしてデコーダ33へ出力する。制御部43は、バッファリングされているデータ量が188バイトに満たない場合には、データを出力しない。
Under the control of the
ストリーム処理部41は、例えば半導体集積回路装置として実現することができ、その場合、制御部43及びバッファメモリ42はそれぞれの機能を果たす回路ブロックに対応する。
The
デコーダ33は、ストリーム処理部41から与えられるTSパケットを映像及び音声にデコードする。
The
図4(A)は、ストリーム処理部41の動作の一例を示す図である。IPパケットに格納されて到着したTSパケットは到着順にバッファメモリ42にバッファリングされ、バッファリングされたデータはTSパケット長ごとにデコーダ33へ転送される。
FIG. 4A is a diagram illustrating an example of the operation of the
ストリーム処理部41は、このようにして、TSパケットが分断されて到着した場合でも、TSパケットを正しく結合してデコーダ33へ引き渡す。しかも、この処理は独自の付加的な情報を全く必要としないので、送信側はTSパケットをIPパケットにただ格納して送出すれば、格納の際に分断されたTSパケットを受信側で極めて簡素かつ正確に結合することが可能となる。
In this way, even when the TS packet is divided and arrives, the
<パケットロスによって生じる問題>
ここまでに、第1の実施の形態に係る映像ストリーム処理装置によれば、分断されたTSパケットを極めて簡素かつ正確に結合できることを説明した。しかしながら、IPパケットがロスした場合には、次に述べる問題が生じる。
<Problems caused by packet loss>
So far, according to the video stream processing apparatus according to the first embodiment, it has been described that the divided TS packets can be combined extremely simply and accurately. However, when an IP packet is lost, the following problem occurs.
図4(B)は、ストリーム処理部41の動作の他の一例を示す図であり、一つのIPパケットが、例えば外部ネットワークにてロスした場合の例が示される。この場合、デコーダ33へは、正しく結合された個々のTSパケットではなく、複数のTSパケットの断片を含んだTSパケットと同じ大きさのデータが転送されてしまう。
FIG. 4B is a diagram showing another example of the operation of the
以下、この問題に対処できる映像ストリーム処理装置について説明する The following describes a video stream processing apparatus that can cope with this problem.
<第2の実施の形態>
図5は、本発明の第2の実施の形態に係るストリーム処理部41aの構成例を示す機能ブロック図である。ストリーム処理部41aは、前述したストリーム処理部41に、IPパケットのロスを検出してデータのバッファリングを中止する機能を付加した処理部であり、同期検出部44、入力制御部45、バッファメモリ42、及び出力制御部46から構成される。ここで、同期検出部44、入力制御部45、及び出力制御部46が、図3に示される制御部43の詳細である。
<Second Embodiment>
FIG. 5 is a functional block diagram showing a configuration example of the
第2の実施の形態では、MPEG−2 TSパケットの先頭の1バイトが0x47であると規定されていることを利用する。この0x47データは、固定長パケットの列で構成される映像ストリームにそのパケット長ごとに含まれるデリミタの一例である。 The second embodiment uses the fact that the first byte of the MPEG-2 TS packet is defined as 0x47. This 0x47 data is an example of a delimiter included in a video stream composed of a fixed-length packet sequence for each packet length.
ストリーム処理部41aは、初期状態である検出状態、及び転送状態の何れかの動作状態で動作する。動作状態は、同期検出部44によって管理される。
The
同期検出部44は、検出状態では、通信処理部32から与えられるデータを解析し、0x47データが188バイトごとに検出基準回数レジスタ43aに示される回数連続して検出されるまでは、与えられるデータを入力制御部45へ出力することなく破棄する。そして、検出がなされると、転送状態へ移行する。この検出基準回数レジスタ43aには、ストリーム処理部41aが動作を開始する際に、例えば図示しないCPU(Central Processing Unit)から、検出の基準となる回数(例えば3回)が設定されているものとする。
In the detection state, the
同期検出部44は、転送状態では、通信処理部32から与えられるデータを、解析すると共に入力制御部45へ出力し、検出が外れた時点、つまり0x47データが188バイトごとに一度でも検出されなかった場合に、入力制御部45へ検出外れを通知して、検出状態へ移行する。
In the transfer state, the
入力制御部45は、同期検出部44から与えられるデータを順にバッファメモリ42にバッファリングする。また、同期検出部44から検出外れの通知を受けた際には、最後にバッファリングした188バイト分のデータか、または、バッファリングされている全てのデータを消去する。
The
出力制御部46は、バッファメモリ42にバッファリングされているデータを188バイト単位で出力する。バッファリングされているデータ量が188バイトに満たない場合には、データを出力しない。
The
図6は、ストリーム処理部41aの動作を表すフローチャートであり、検出基準回数レジスタ43aに3回を示す値が設定されている場合の例を示している。
FIG. 6 is a flowchart showing the operation of the
ストリーム処理部41aは、例えばCPU等の外部から処理終了を指示されるまで、ステップS02〜S07を繰り返して実行する(S01)。
The
同期検出部44は、通信処理部32から与えられるデータ中に188バイトごとに3回連続して0x47データを検出するまでは検出状態として動作し、与えられるデータを破棄し続ける(S02〜S03)。この状態では新たなデータはバッファリングされないので、結果的に出力制御部46からデコーダ33へのデータの出力も行われない。
The
同期検出部44は、与えられるデータ中に188バイトごとに3回連続して0x47データを検出すると、転送状態へ移行し、通信処理部32からのデータを入力制御部45を介してバッファメモリ42にバッファリングし始める(S04)。そして、188バイトごとに0x47データが検出され続ける間は、転送状態として動作し(S05)、出力制御部46はバッファリングされているデータを188バイトごとにデコーダ33へ出力する(S06)。
When the
同期検出部44は、検出が外れると、検出外れを入力制御部45に通知して検出状態へ移行する(S07)。入力制御部45は、検出外れの通知を受けて、バッファリングされているデータの一部又は全部を消去する。
When the detection is lost, the
以上説明したように、ストリーム処理部41aは、0x47データが188バイトごとに得られなくなることによってパケットロスを検出して、新たなデータのバッファリングを中止し、バッファリングされているデータを消去するので、複数のTSパケットの断片を含んだTSパケットと同じ大きさのデータがデコーダ33へ転送されてしまう事態が回避される。
As described above, the
なお、ここで0x47データの連続検出回数を定めたのは、本体的な放送データに含まれる0x47データをデリミタと誤認する可能性を低減させるための方策である。その回数は3回に限定されるものではなく、設計に応じた好ましい回数を、検出基準回数レジスタ43aに適宜設定すればよい。
Here, the number of times of continuous detection of 0x47 data is determined in order to reduce the possibility of misidentifying 0x47 data included in main broadcast data as a delimiter. The number of times is not limited to three, and a preferable number according to the design may be appropriately set in the detection
<第3の実施の形態>
図7は、本発明の第3の実施の形態に係るストリーム処理部41bの構成例を示す機能ブロック図である。ストリーム処理部41bは、前述したストリーム処理部41に、IPパケットのロスを検出してデータの出力を中止する機能を付加した処理部であり、入力制御部47、バッファメモリ42、出力制御部48、及び同期検出部49から構成される。ここで、入力制御部47、出力制御部48、及び同期検出部49が、図3に示される制御部43の詳細である。
<Third Embodiment>
FIG. 7 is a functional block diagram showing a configuration example of the
第3の実施の形態でも、第2の実施の形態と同様、MPEG−2 TSパケットの先頭の1バイトが0x47であると規定されていることを利用する。 In the third embodiment, as in the second embodiment, the fact that the first byte of the MPEG-2 TS packet is defined as 0x47 is used.
ストリーム処理部41bは、初期状態である検出状態、及び転送状態の何れかの動作状態で動作する。動作状態は、同期検出部49によって管理される。
The
入力制御部47は、通信処理部32から与えられるデータを順にバッファメモリ42にバッファリングする。
The
出力制御部48は、同期検出部49から検出外れが入力された場合には検出状態に移行し、検出開始が入力された場合には転送状態に移行する。出力制御部48は、バッファメモリ42にバッファリングされているデータを、検出状態では順次、転送状態では188バイト単位で、同期検出部49へ出力する。バッファリングされているデータ量が188バイトに満たない場合には、データを出力しない。
The
同期検出部49は、検出状態では、出力制御部48から与えられるデータを解析し、0x47データが188バイトごとに検出基準回数レジスタ43aに示される回数連続して検出されるまでは、与えられるデータをデコーダ33へ出力することなく破棄する。そして、検出がなされると、出力制御部48に検出開始を通知して、転送状態へ移行する。この検出基準回数レジスタ43aには、ストリーム処理部41aが動作を開始する際に、例えば図示しないCPU(Central Processing Unit)から、検出の基準となる回数(例えば3回)が設定されているものとする。
In the detection state, the
同期検出部49は、転送状態では、出力制御部48から与えられるデータを、解析すると共にデコーダ33へ出力し、検出が外れた時点、つまり0x47データが188バイトごとに例えば一度でも検出されなかった場合に、出力制御部48へ検出外れを通知して、検出状態へ移行する。
In the transfer state, the
図8は、ストリーム処理部41bの動作を表すフローチャートであり、検出基準回数レジスタ43aに3回を示す値が設定されている場合の例を示している。
FIG. 8 is a flowchart showing the operation of the
ストリーム処理部41bは、外部から処理終了を指示されるまで、ステップS12〜S18を繰り返して実行する(S11)。
The
出力制御部48は、検出状態では、バッファメモリのデータを順次同期検出部49へ出力する(S12)。同期検出部49は、出力制御部48から与えられるデータ中に188バイトごとに3回連続して0x47データを検出するまでは検出状態として動作し、与えられるデータを破棄し続ける(S13〜S14)。
In the detection state, the
同期検出部49は、与えられるデータ中に188バイトごとに3回連続して0x47データを検出すると、出力制御部48に検出開始を通知して、転送状態へ移行し、出力制御部48は、検出開始の入力を受けて転送状態に移行し、バッファメモリのデータを188バイト単位で同期検出部49へ出力する(S15)。そして、188バイトごとに0x47データが検出され続ける間は、転送状態として動作し(S16)、同期検出部49は出力制御部48から188バイトごとに与えられるデータをデコーダ33へ出力する(S17)。
When the
同期検出部49は、検出が外れると、検出外れを出力制御部48に通知して検出状態へ移行する(S18)。
When the detection is lost, the
以上説明したように、ストリーム処理部41bは、0x47データが188バイトごとに得られなくなることによってパケットロスを検出して、バッファリングされているデータのデコーダへの出力を中止するので、複数のTSパケットの断片を含んだTSパケットと同じ大きさのデータがデコーダ33へ転送されてしまう事態が回避される。
As described above, the
<変形例>
なお、第2及び第3の実施の形態では、デリミタの連続検出回数を、検出基準回数レジスタ43aに変更可能に設定できるとしたが、さらに、デリミタの値(実施の形態の例では0x47)やパケット長(実施の形態の例では188バイト)を変更可能に設定できるレジスタを設けることも考えられる。
<Modification>
In the second and third embodiments, the continuous detection number of the delimiter can be set to be changeable in the detection
また、第2及び第3の実施の形態ではパケット長をCPUが設定するものとしたが、それに限るものではなく、例えば通信処理部32から与えられるデータを解析し、CPUで設定されたデリミタの値が検出されてから次に検出されるまでのデータ長を測定し、検出基準回数連続して同じデータ長毎に検出された場合に上記データ長さをパケット長として設定しても良い。
In the second and third embodiments, the packet length is set by the CPU. However, the present invention is not limited to this. For example, the data provided from the
また、第2及び第3の実施の形態では、処理終了へ移行する条件として外部から処理終了されるまで、と記載したがそれに限るものではなく例えば所定の時間の間、通信処理部32からデータが与えられない場合に終了状態に移行しても良く、上記所定の時間はCPU等の外部から設定変更できるレジスタを設けることも考えられる。
Further, in the second and third embodiments, the condition until the process is terminated is described as a condition for shifting to the process termination. However, the present invention is not limited to this. For example, data is transmitted from the
また、実施の形態では、ストリーム処理部41を半導体集積回路として実現できることを述べたが、通信処理部32とストリーム処理部41とを一つの半導体集積回路に実現してもよい。そのような半導体集積回路は、従来のネットワークアダプタ機能と、本発明のTSパケット結合機能とを併せ持つため、ワンチップでIPパケットの通信処理からTSパケットの結合までを行う、極めて利便性の高い半導体集積回路となる。
In the embodiment, it has been described that the
また、デコーダ用の半導体集積回路に、本発明の映像ストリーム処理装置に係る回路ブロックを作成することも考えられる。その場合には、分断されたTSパケットを供給されても正しくデコードできるデコーダが実現される。 It is also conceivable to create a circuit block according to the video stream processing apparatus of the present invention in a semiconductor integrated circuit for a decoder. In that case, a decoder that can correctly decode even if the divided TS packet is supplied is realized.
<まとめ>
以上説明したように、本発明の映像ストリーム処理装置によれば、IPパケットに格納されて送出された分断のあるTSパケットを、独自の付加的な情報を全く用いることなく極めて簡素かつ正確に結合して、元の個々のTSパケットを得ることが可能となる。
<Summary>
As described above, according to the video stream processing apparatus of the present invention, a fragmented TS packet stored and transmitted in an IP packet is combined extremely simply and accurately without using any additional information of its own. Thus, it is possible to obtain original individual TS packets.
さらに、TSパケットごとに含まれるデリミタを利用してパケットロスを検出することによって、バケットロスがあった場合でも、複数のTSパケットの断片を含んだTSパケットと同じ大きさのデータが外部へ出力されてしまう事態を回避することができる。 Furthermore, by detecting the packet loss using the delimiter included in each TS packet, even if there is a bucket loss, data of the same size as the TS packet containing multiple TS packet fragments is output to the outside The situation where it is done can be avoided.
本発明は、デジタル放送受信装置に用いられる、映像ストリーム処理装置、ネットワークアダプタ、デコーダ等に適用できる。 The present invention can be applied to a video stream processing device, a network adapter, a decoder and the like used in a digital broadcast receiving device.
10 放送局
20 映像配信サーバ
21 パケットストリーム分割装置
22 番号付与手段
25 外部ネットワーク
26 パケットストリーム結合装置
27 番号抽出手段
28 バッファ手段
30 受信装置
31 チューナ部
32 通信処理部
33 デコーダ
40 受信装置
41、41a、41b ストリーム処理部
42 バッファメモリ
43 制御部
43a 検出基準回数レジスタ
44 同期検出部
45 入力制御部
46 出力制御部
47 入力制御部
48 出力制御部
49 同期検出部
DESCRIPTION OF
Claims (7)
バッファメモリと、
前記映像ストリームを取得して前記バッファメモリにバッファリングすると共に、バッファリングされた映像ストリームを前記固定長ごとに外部へ出力する制御手段と
を備えることを特徴とする映像ストリーム処理装置。 A video stream processing apparatus configured to process a video stream that is composed of a fixed-length packet sequence and is transmitted by being divided into transmission units different from the packet,
Buffer memory,
A video stream processing apparatus comprising: control means for acquiring the video stream and buffering it in the buffer memory, and outputting the buffered video stream to the outside for each fixed length.
前記制御手段は、
前記映像ストリームの最近取得された所定の部分に前記デリミタが前記固定長ごとに含まれているか否かを判断する同期検出部を有し、
前記同期検出部によって否定判断がなされた場合に、前記バッファリング及び前記出力の少なくとも一方を取り止める
ことを特徴とする請求項1に記載の映像ストリーム処理装置。 The video stream is defined to include a delimiter of a predetermined value for each fixed length,
The control means includes
A synchronization detection unit for determining whether or not the delimiter is included for each fixed length in a predetermined part of the video stream recently acquired;
The video stream processing apparatus according to claim 1, wherein when a negative determination is made by the synchronization detection unit, at least one of the buffering and the output is canceled.
前記制御手段は、さらに、
前記同期検出部から出力される映像ストリームを前記バッファメモリにバッファリングする入力制御部と、
前記バッファリングされた映像ストリームを前記固定長ごとに外部へ出力する出力制御部と
を有する
ことを特徴とする請求項2に記載の映像ストリーム処理装置。 The synchronization detection unit obtains the video stream and performs the determination, and outputs the acquired video stream when an affirmative determination is made, and outputs the acquired video stream when a negative determination is made. Destroy,
The control means further includes
An input control unit for buffering the video stream output from the synchronization detection unit in the buffer memory;
The video stream processing apparatus according to claim 2, further comprising: an output control unit that outputs the buffered video stream to the outside for each fixed length.
前記映像ストリームを取得して、取得された映像ストリームを前記バッファメモリにバッファリングする入力制御部と、
前記バッファリングされた映像ストリームを前記同期検出部へ出力する出力制御部と
を有し、
前記同期検出部は、前記出力制御部から与えられる映像ストリームに基づいて前記判断を行うと共に、肯定判断がなされると前記与えられる映像ストリームを前記固定長ごとに外部へ出力し、否定判断がなされると前記与えられる映像ストリームを外部へ出力せずに破棄する
ことを特徴とする請求項2に記載の映像ストリーム処理装置。 The control means further includes
An input control unit for acquiring the video stream and buffering the acquired video stream in the buffer memory;
An output controller that outputs the buffered video stream to the synchronization detector;
The synchronization detection unit makes the determination based on the video stream supplied from the output control unit, and outputs a given video stream to the outside for each fixed length when an affirmative determination is made. The video stream processing apparatus according to claim 2, wherein the given video stream is discarded without being output to the outside.
前記制御手段は、前記映像ストリームを前記通信処理手段から取得する
ことを特徴とする請求項1に記載の映像ストリーム処理装置。 Furthermore, it comprises a communication processing means for receiving the video stream from the external network for each transmission unit, and outputting the received video stream to the control means,
The video stream processing apparatus according to claim 1, wherein the control unit acquires the video stream from the communication processing unit.
バッファメモリと、
前記映像ストリームを取得して前記バッファメモリにバッファリングすると共に、バッファリングされた映像ストリームを前記固定長ごとに外部へ出力する制御回路と
を備えることを特徴とする集積回路装置。 An integrated circuit device for video stream processing configured to process a video stream composed of a fixed-length packet sequence and transmitted by being divided into transmission units different from the packet,
Buffer memory,
An integrated circuit device, comprising: a control circuit that acquires the video stream and buffers the video stream in the buffer memory, and outputs the buffered video stream to the outside for each fixed length.
与えられる映像ストリームを順にバッファリングするバッファステップと、
バッファリングされた映像ストリームを前記パケット長毎に出力する出力ステップと
を含むことを特徴とする映像ストリーム処理方法。 A video stream processing method that processes a video stream that is composed of a sequence of fixed-length packets and is transmitted by being divided into transmission units different from the packets,
A buffer step for sequentially buffering a given video stream;
An output step of outputting a buffered video stream for each packet length.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005202479A JP2007027812A (en) | 2005-07-12 | 2005-07-12 | Video stream processing apparatus, integrated circuit device, and method |
PCT/JP2006/312581 WO2007007526A1 (en) | 2005-07-12 | 2006-06-23 | Video stream processing device, integrated circuit device, and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005202479A JP2007027812A (en) | 2005-07-12 | 2005-07-12 | Video stream processing apparatus, integrated circuit device, and method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007027812A true JP2007027812A (en) | 2007-02-01 |
Family
ID=37636923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005202479A Pending JP2007027812A (en) | 2005-07-12 | 2005-07-12 | Video stream processing apparatus, integrated circuit device, and method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2007027812A (en) |
WO (1) | WO2007007526A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009111478A (en) * | 2007-10-26 | 2009-05-21 | Nippon Television Network Corp | Conversion device, ts packet conversion method, and program |
JP2011515946A (en) * | 2008-03-20 | 2011-05-19 | トムソン ライセンシング | Method and apparatus for masking signal loss |
JP2016163134A (en) * | 2015-02-27 | 2016-09-05 | 沖電気工業株式会社 | Moving image playback device and program |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545472B (en) * | 2019-09-04 | 2021-04-16 | 北京字节跳动网络技术有限公司 | Video data processing method and device, electronic equipment and computer readable medium |
CN112506447B (en) * | 2021-02-01 | 2021-04-30 | 成都焱之阳科技有限公司 | Data lock-free caching method and server for video monitoring equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000228059A (en) * | 1999-02-05 | 2000-08-15 | Toshiba Corp | Receiving device and receiving method |
JP2003209577A (en) * | 2002-01-16 | 2003-07-25 | Ntt Docomo Inc | Communication system, communicating method, transmitting terminal, receiving terminal and repeater |
JP2003244232A (en) * | 2002-02-18 | 2003-08-29 | Nec Commun Syst Ltd | Ip packet communicating system, its gateway device, management device, and packet size control method |
JP2004260430A (en) * | 2003-02-25 | 2004-09-16 | Nec Corp | System and method for ip network translation |
JP2004356858A (en) * | 2003-05-28 | 2004-12-16 | Victor Co Of Japan Ltd | Transmission system, transmission method and transmitter |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3434994B2 (en) * | 1996-12-12 | 2003-08-11 | 富士通株式会社 | Cell assembly multiplexer |
US6151318A (en) * | 1998-07-06 | 2000-11-21 | Motorola, Inc. | Method and apparatus for encapsulating ATM cells in a broadband network |
US7200670B1 (en) * | 2000-06-30 | 2007-04-03 | Lucent Technologies Inc. | MPEG flow identification for IP networks |
JP2002149316A (en) * | 2000-11-06 | 2002-05-24 | Sony Corp | Data transmitter, data receiver, data transmission method, and program storage medium |
JP2002368809A (en) * | 2001-04-03 | 2002-12-20 | Matsushita Electric Ind Co Ltd | Short cell separating device |
JP2003244693A (en) * | 2002-02-13 | 2003-08-29 | Matsushita Electric Ind Co Ltd | Video distribution system and method |
JP3994388B2 (en) * | 2003-03-18 | 2007-10-17 | ソニー株式会社 | Transmission / reception system, transmission apparatus and method, recording medium, and program |
JP2004328353A (en) * | 2003-04-24 | 2004-11-18 | Fujitsu Ltd | Correction method and apparatus for inverted stream packet |
-
2005
- 2005-07-12 JP JP2005202479A patent/JP2007027812A/en active Pending
-
2006
- 2006-06-23 WO PCT/JP2006/312581 patent/WO2007007526A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000228059A (en) * | 1999-02-05 | 2000-08-15 | Toshiba Corp | Receiving device and receiving method |
JP2003209577A (en) * | 2002-01-16 | 2003-07-25 | Ntt Docomo Inc | Communication system, communicating method, transmitting terminal, receiving terminal and repeater |
JP2003244232A (en) * | 2002-02-18 | 2003-08-29 | Nec Commun Syst Ltd | Ip packet communicating system, its gateway device, management device, and packet size control method |
JP2004260430A (en) * | 2003-02-25 | 2004-09-16 | Nec Corp | System and method for ip network translation |
JP2004356858A (en) * | 2003-05-28 | 2004-12-16 | Victor Co Of Japan Ltd | Transmission system, transmission method and transmitter |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009111478A (en) * | 2007-10-26 | 2009-05-21 | Nippon Television Network Corp | Conversion device, ts packet conversion method, and program |
JP2011515946A (en) * | 2008-03-20 | 2011-05-19 | トムソン ライセンシング | Method and apparatus for masking signal loss |
JP2016163134A (en) * | 2015-02-27 | 2016-09-05 | 沖電気工業株式会社 | Moving image playback device and program |
Also Published As
Publication number | Publication date |
---|---|
WO2007007526A1 (en) | 2007-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11019118B2 (en) | Transmission method, reception method, transmission apparatus, and reception apparatus | |
US10334293B2 (en) | Multiplexing apparatus, receiving apparatus, multiplexing method, and delay adjustment method | |
WO2004056082A3 (en) | Method and apparatus for time-multiplexed processing of multiple digital video programs | |
US8204081B2 (en) | Apparatus and method for inserting or extracting network timestamp | |
JP6744459B2 (en) | Device for transmitting information about media data | |
US8483239B2 (en) | IP broadcast system, and multiplexer, receiving apparatus and method used in IP broadcast system | |
JP2007027812A (en) | Video stream processing apparatus, integrated circuit device, and method | |
US20170257467A1 (en) | Method And System For Serialization And Deserialization (SERDES) For Inter-System Communications | |
JP2012513139A (en) | Method for synchronizing transport streams in a multiplexer with an external coprocessor | |
EP1182887A2 (en) | Apparatus and method of multiple decoding | |
JP2008048257A (en) | Receiving packet processing method, and receiving packet processor | |
JP2008160722A (en) | Ts switching and sending apparatus | |
US6480491B1 (en) | Latency management for a network | |
US6496233B1 (en) | Command and control architecture for a video decoder and an audio decoder | |
EP1953948B1 (en) | Clock synchronization in a receiving device in the case of late packets | |
JP5544863B2 (en) | Reception device, reception method, and reception program | |
JP2009290868A (en) | Simplified transmission method of signal flow between transmitter and electronic device | |
CN101272265B (en) | IP broadcast system, and multiplexer, receiving apparatus and method used in ip broadcast system | |
KR100962083B1 (en) | Method and system for converting a first data stream into a second data stream | |
JP6555201B2 (en) | Scramble device and scramble processing program | |
JP2005519541A5 (en) | ||
KR100735228B1 (en) | System synchronization apparatus and method for multimedia player | |
JP2008154050A (en) | Program sending-out controller, program sending-out control method, program sending-out control program mounted with the method, and storage medium where the program is stored | |
JP2006211227A (en) | Apparatus and method for data transmission | |
JP2005277457A (en) | Digital broadcast signal broadcasting system and its control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080711 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101221 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110412 |