JP4836871B2 - Video data transmitting apparatus, program, and method for assigning priority to encoded image - Google Patents
Video data transmitting apparatus, program, and method for assigning priority to encoded image Download PDFInfo
- Publication number
- JP4836871B2 JP4836871B2 JP2007144301A JP2007144301A JP4836871B2 JP 4836871 B2 JP4836871 B2 JP 4836871B2 JP 2007144301 A JP2007144301 A JP 2007144301A JP 2007144301 A JP2007144301 A JP 2007144301A JP 4836871 B2 JP4836871 B2 JP 4836871B2
- Authority
- JP
- Japan
- Prior art keywords
- priority
- frame encoded
- inter
- encoded image
- video data
- 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.)
- Active
Links
Images
Description
本発明は、符号化画像に優先度を割り当てる映像データ送信装置、プログラム及び方法に関する。 The present invention relates to a video data transmission apparatus, program, and method for assigning priorities to encoded images.
従来、代表的なマルチメディア符号化規格として、MPEG(Moving Picture Experts
Group)方式がある。MPEGは、時間領域の冗長度を削減することによる画像圧縮のフレーム間符号化技術である。この技術は、映像データにおける隣接フレーム間の相関が非常に高いことを利用して、3種類(少なくとも2種類)のピクチャに区分する。
Conventionally, as a representative multimedia coding standard, MPEG (Moving Picture Experts)
Group) method. MPEG is an inter-frame coding technique for image compression by reducing time domain redundancy. This technique uses the fact that the correlation between adjacent frames in video data is very high, and divides it into three types (at least two types) of pictures.
以下のピクチャが用いられる。
・Iピクチャ(Intra-Picture、フレーム内符号化画像)
最もデータ量が多いが、それ自身で復号できる。
・Pピクチャ(Predictive-Picture、フレーム間符号化画像、順方向予測符号化画像)
過去のフレーム(Iピクチャ)から順方向のフレーム間予測をし、その差分を符号化する。Pピクチャのデータ量は、Iピクチャよりも少なく、Pピクチャは、それ自身では復号できない。
・Bピクチャ(Bi-directional Predictive-Picture、フレーム間符号化画像、双方向予測符号化画像)
過去のフレームと未来のフレームの両方向のフレーム間予測をし、その差分を符号化する。Bピクチャのデータ量は、Pピクチャよりも少なく、Bピクチャは、それ自身では復号できない。
The following pictures are used:
・ I picture (Intra-Picture, intra-frame coded image)
The amount of data is the largest, but it can be decoded by itself.
P picture (Predictive-Picture, inter-frame encoded image, forward predictive encoded image)
A forward interframe prediction is performed from a past frame (I picture), and the difference is encoded. The data amount of the P picture is smaller than that of the I picture, and the P picture cannot be decoded by itself.
・ B picture (Bi-directional Predictive-Picture, inter-frame encoded image, bidirectional predictive encoded image)
Inter-frame prediction in both directions of the past frame and the future frame is performed, and the difference is encoded. The data amount of the B picture is smaller than that of the P picture, and the B picture cannot be decoded by itself.
Bピクチャは、未来のフレームを予測に用いるために、符号化時にフレームを並べ替え、最初に、未来のフレームを符号化した後、両方向予測の符号化をする。そのために、遅延が問題となるテレビ電話のような双方向のリアルタイムアプリケーションには、I,Pの2種類のピクチャのみを用いる(IP予測)。 In order to use the future frame for prediction, the B picture rearranges the frames at the time of encoding, first encodes the future frame, and then performs bidirectional prediction encoding. For this reason, only two types of pictures, I and P, are used for bidirectional real-time applications such as videophones where delay is a problem (IP prediction).
ここで、Iピクチャを構成するパケットには、高い優先度を割り当てる技術がある(例えば特許文献1参照)。パケット廃棄が発生した際、Bピクチャ、Pピクチャ、Iピクチャの順で廃棄する。これにより、パケット廃棄による映像品質の劣化を最小限に留めている。 Here, there is a technique for assigning a high priority to packets constituting an I picture (see, for example, Patent Document 1). When packet discarding occurs, it is discarded in the order of B picture, P picture, and I picture. This minimizes the degradation of video quality due to packet discard.
また、I,P,Bピクチャの高周波成分、低周波成分の6種類に音声を加えた計7種類のストリームを、それぞれ異なるマルチキャストアドレスで送信する技術もある(例えば非特許文献1参照)。この技術によれば、受信装置側は、利用可能な帯域やCPU等のリソースに応じて、受信階層を選択することができる。 In addition, there is a technique for transmitting a total of seven types of streams in which audio is added to six types of high-frequency components and low-frequency components of I, P, and B pictures, respectively, using different multicast addresses (see, for example, Non-Patent Document 1). According to this technique, the receiving device side can select a reception hierarchy according to an available bandwidth or a resource such as a CPU.
更に、複数の通信メディアが利用できる無線ネットワークシステムについて、基本階層となるIピクチャは、例えば広いエリアをカバーする通信メディア(例えば携帯電話網)によって通信する技術もある(例えば非特許文献2参照)。この技術によれば、Pピクチャは、中程度のエリアをカバーする通信メディア(例えばPHS)によって通信し、Bピクチャは、狭いエリアをカバーする通信メディア(例えば無線LAN)によって通信する。これにより、頻繁に発生する無線LANやPHSのハンドオーバの際に、Iピクチャの廃棄を起こさせないようにし、移動端末に対する映像品質を向上させている。 Further, regarding a wireless network system that can use a plurality of communication media, there is a technique in which an I picture that is a basic layer communicates with a communication medium (for example, a mobile phone network) that covers a wide area (see, for example, Non-Patent Document 2). . According to this technique, a P picture is communicated by a communication medium (for example, PHS) that covers a medium area, and a B picture is communicated by a communication medium (for example, a wireless LAN) that covers a narrow area. As a result, in the case of frequently occurring wireless LAN or PHS handovers, the I picture is not discarded, and the video quality for the mobile terminal is improved.
前述した従来技術によれば、基本的にI,P,Bピクチャの画像種類毎に、3段階の優先度を設けている。しかしながら、例えば、映像データのストリーミングパケットに対しては、通常、IP予測を用いる。この場合、I,Pピクチャの2段階の優先度しか設けることができない。 According to the above-described prior art, three levels of priority are basically provided for each image type of I, P, and B pictures. However, for example, IP prediction is usually used for streaming packets of video data. In this case, only two levels of priority of I and P pictures can be provided.
また、Pピクチャは、過去のフレームから順方向のフレーム間予測に用いられる。そのために、Iピクチャの次のPピクチャが損失した場合、その後、次のIピクチャを受信するまでの間に受信したPピクチャは、正常に復号することができない。Iピクチャの間隔は、通常15〜30フレーム程度であるので、前半のPピクチャが損失してしまうと、品質に及ぼす影響が大きい。 The P picture is used for inter-frame prediction in the forward direction from the past frame. Therefore, when the next P picture after the I picture is lost, the P picture received until the next I picture is received cannot be decoded normally. Since the interval between I pictures is usually about 15 to 30 frames, the loss of the first half P picture has a large effect on the quality.
尚、IP(Internet Protocol)ヘッダに、そのデータに基づく優先度を含めることによって、中継経路に配置されたルータは、そのパケットの優先度を認識することができる。ルータは、そのパケットの優先度に応じて、例えばそのパケットの中継制御(優先転送、待ち転送、又は破棄)をすることができる。 Incidentally, by including the priority based on the data in the IP (Internet Protocol) header, the router arranged on the relay route can recognize the priority of the packet. The router can perform relay control (priority transfer, waiting transfer, or discard) of the packet, for example, according to the priority of the packet.
そこで、本発明は、符号化画像に多数段階の優先度を割り当てることによって、パケット損失が発生する通信環境であっても、映像データの受信品質の低下をできる限り防止することができる映像データ送信装置、プログラム及び方法を提供することを目的とする。 Therefore, the present invention assigns multiple levels of priority to encoded images, so that even in a communication environment in which packet loss occurs, video data transmission that can prevent degradation of the reception quality of video data as much as possible. An object is to provide an apparatus, a program, and a method.
本発明によれば、映像データを送信する映像データ送信装置において、
映像データから、少なくともフレーム内符号化画像及びフレーム間符号化画像を生成する符号化手段と、
フレーム内符号化画像には、フレーム間符号化画像よりも高い優先度を割り当て、フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる優先度割当手段と、
画像を構成する情報を含むパケットを構成し、該パケットのヘッダに優先度を含めるパケット構成手段と
を有し、
優先度割当手段は、2つのフレーム内符号化画像の間に挟まれたフレーム間符号化画像の枚数をI_intとし、フレーム間符号化画像用優先度の数をN_prioとし、優先度はその絶対値が大きくなるほど優先度が低くなるとし、フレーム間符号化画像用の最高優先度をPRIとし、変数パラメータi=1とし、
I_int≦N_prioである場合に、
iがN_prioを超えるまで、フレーム内符号化画像からi番目のフレーム間符号化画像に(PRI+I_int−1+i−1)を割り当てる処理を、iを1増分しつつ繰り返す
ことを特徴とする。
According to the present invention, in a video data transmitting apparatus for transmitting video data,
Encoding means for generating at least an intra-frame encoded image and an inter-frame encoded image from video data;
A priority assignment unit that assigns a higher priority to the intra-frame encoded image than the inter-frame encoded image, and assigns different priorities according to the transmission order of the frames in the inter-frame encoded image;
Constitute a packet including information constituting the image, have a packet structure means for including a priority in the header of the packet,
The priority allocation means sets the number of inter-frame encoded images sandwiched between two intra-frame encoded images as I_int, sets the number of inter-frame encoded image priorities as N_prio, and the priority is an absolute value thereof. , The priority becomes lower, the highest priority for the inter-frame coded image is PRI, the variable parameter i = 1,
If I_int ≦ N_prio,
Until i exceeds N_prio, the process of assigning (PRI + I_int-1 + i-1) from the intra-frame encoded image to the i-th inter-frame encoded image is repeated while incrementing i by 1.
It is characterized by that.
本発明の映像データ送信装置における他の実施形態によれば、符号化手段は、MPEGに基づいて符号化するものであり、フレーム内符号化画像はIピクチャであり、フレーム間符号化画像はPピクチャであることも好ましい。 According to another embodiment of the video data transmitting apparatus of the present invention, the encoding means performs encoding based on MPEG, the intra-frame encoded image is an I picture, and the inter-frame encoded image is P. A picture is also preferred.
本発明の映像データ送信装置における他の実施形態によれば、パケット構成手段は、IPパケットについて、優先度をIPヘッダのDiff-Servフィールドに含めることも好ましい。 According to another embodiment of the video data transmitting apparatus of the present invention, it is also preferable that the packet composing means includes the priority for the IP packet in the Diff-Serv field of the IP header.
本発明によれば、映像データを送信する装置に搭載されたコンピュータを機能させるプログラムにおいて、
映像データから、少なくともフレーム内符号化画像及びフレーム間符号化画像を生成する符号化手段と、
フレーム内符号化画像には、フレーム間符号化画像よりも高い優先度を割り当て、フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる優先度割当手段と、
画像を構成する情報を含むパケットを構成し、該パケットのヘッダに優先度を含めるパケット構成手段と
してコンピュータを機能させ、
優先度割当手段は、2つのフレーム内符号化画像の間に挟まれたフレーム間符号化画像の枚数をI_intとし、フレーム間符号化画像用優先度の数をN_prioとし、優先度はその絶対値が大きくなるほど優先度が低くなるとし、フレーム間符号化画像用の最高優先度をPRIとし、変数パラメータi=1とし、
I_int≦N_prioである場合に、
iがN_prioを超えるまで、フレーム内符号化画像からi番目のフレーム間符号化画像に(PRI+I_int−1+i−1)を割り当てる処理を、iを1増分しつつ繰り返す
ようにコンピュータを機能させることを特徴とする。
According to the present invention, in a program for causing a computer mounted on an apparatus for transmitting video data to function,
Encoding means for generating at least an intra-frame encoded image and an inter-frame encoded image from video data;
A priority assignment unit that assigns a higher priority to the intra-frame encoded image than the inter-frame encoded image, and assigns different priorities according to the transmission order of the frames in the inter-frame encoded image;
Configure a packet including information constituting the image, and cause the computer to function as a packet configuration unit that includes priority in the header of the packet ;
The priority allocation means sets the number of inter-frame encoded images sandwiched between two intra-frame encoded images as I_int, sets the number of inter-frame encoded image priorities as N_prio, and the priority is an absolute value thereof. , The priority becomes lower, the highest priority for the inter-frame coded image is PRI, the variable parameter i = 1,
If I_int ≦ N_prio,
Until i exceeds N_prio, the process of assigning (PRI + I_int-1 + i-1) from the intra-frame encoded image to the i-th inter-frame encoded image is repeated while incrementing i by 1.
The computer is made to function as described above .
本発明によれば、映像データ送信装置における映像データ送信方法において、
映像データから、少なくともフレーム内符号化画像及びフレーム間符号化画像を生成する第1のステップと、
フレーム内符号化画像には、フレーム間符号化画像よりも高い優先度を割り当て、フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる第2のステップと、
画像を構成する情報を含むパケットを構成し、該パケットのヘッダに優先度を含める第3のステップと
を有し、
第2のステップは、2つのフレーム内符号化画像の間に挟まれたフレーム間符号化画像の枚数をI_intとし、フレーム間符号化画像用優先度の数をN_prioとし、優先度はその絶対値が大きくなるほど優先度が低くなるとし、フレーム間符号化画像用の最高優先度をPRIとし、変数パラメータi=1とし、
I_int≦N_prioである場合に、
iがN_prioを超えるまで、フレーム内符号化画像からi番目のフレーム間符号化画像に(PRI+I_int−1+i−1)を割り当てる処理を、iを1増分しつつ繰り返す
ことを特徴とする。
According to the present invention, in the video data transmitting method in the video data transmitting apparatus,
A first step of generating at least an intra-frame encoded image and an inter-frame encoded image from video data;
A second step of assigning a higher priority to the intra-frame encoded image than the inter-frame encoded image, and assigning a different priority according to the transmission order of the frames in the inter-frame encoded image;
Constitute a packet including information constituting the image, we have a third step of including a priority in the header of the packet,
In the second step, the number of inter-frame encoded images sandwiched between two intra-frame encoded images is I_int, the number of inter-frame encoded image priorities is N_prio, and the priority is an absolute value thereof. , The priority becomes lower, the highest priority for the inter-frame coded image is PRI, the variable parameter i = 1,
If I_int ≦ N_prio,
The process of assigning (PRI + I_int-1 + i-1) from the intra-frame encoded image to the i-th inter-frame encoded image is repeated while incrementing i by 1 until i exceeds N_prio. .
本発明の映像データ送信装置、プログラム及び方法によれば、フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てることによって、パケット損失が発生する通信環境であっても、映像データの受信品質の低下をできる限り防止することができる。特に、映像データのストリーミングパケットの受信について有効である。 According to the video data transmitting apparatus, program and method of the present invention, even in a communication environment in which packet loss occurs by assigning different priorities according to the transmission order of frames among inter-frame encoded images, It is possible to prevent deterioration of data reception quality as much as possible. This is particularly effective for receiving streaming packets of video data.
以下では、図面を用いて、本発明を実施するための最良の形態について詳細に説明する。 Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to the drawings.
図1は、本発明におけるシステム構成図である。 FIG. 1 is a system configuration diagram according to the present invention.
図1によれば、映像データ送信装置(映像コンテンツ配信サーバ)1は、ネットワークを介して、端末2へ、MPEGに基づく符号化画像を含むパケットを送信する。パケットが転送される経路には、複数のノードが介在する。例えば、有線ネットワークに含まれる複数のルータや、無線リンクで介在する中継端末がある。これらノードは、受信したパケットをバッファし、バッファしたパケットを送信する。このとき、パケットの優先度に応じて、パケットの優先転送、待ち転送、又は破棄の制御をする。 According to FIG. 1, a video data transmission device (video content distribution server) 1 transmits a packet including an encoded image based on MPEG to a terminal 2 via a network. A plurality of nodes intervene in the route through which the packet is transferred. For example, there are a plurality of routers included in a wired network and a relay terminal that is interposed by a wireless link. These nodes buffer received packets and transmit the buffered packets. At this time, packet priority transfer, waiting transfer, or discard control is performed according to the priority of the packet.
Ethernet(登録商標)フレームの場合、優先度は、例えばCoSフィールドに含まれる。また、IPヘッダの場合、優先度は、例えばDiff-Servフィールドに含まれる。Diff-Servフィールドは、以下のように規定されている。
Diff-Servフィールドは、IPv4の場合はTOS(Type Of Service)フィールドに含まれ、IPv6の場合はFlow-IDに含まれる。前述の表1によれば、高優先転送且つ低破棄のタイプが最も優先度が高く、低優先転送且つ高廃棄のタイプが最も優先度が低い。 The Diff-Serv field is included in the TOS (Type Of Service) field in the case of IPv4, and is included in the Flow-ID in the case of IPv6. According to Table 1 described above, the high priority transfer and low discard type has the highest priority, and the low priority transfer and high discard type has the lowest priority.
図1によれば、本発明における映像データ送信装置1は、符号化部101と、優先度割当部102と、パケット構成部103とを有する。これら機能部は、映像データ送信装置に搭載されたコンピュータを機能させるプログラムを実行することによっても実現できる。
According to FIG. 1, the video
符号化部101は、映像データをMPEGに基づいて符号化する。このとき、少なくともフレーム内符号化画像のIピクチャと、フレーム間符号化画像のPピクチャとを生成する。
The
優先度割当部102は、フレーム内符号化画像には、フレーム間符号化画像よりも高い優先度を割り当て、フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる。ここで、優先度割当部102は、フレーム間符号化画像の中で、先頭の画像に最高優先度を付与し、後方の画像になるほど優先度を下げて割り当てる。
The
パケット構成部103は、画像を含むIPパケットを構成する。優先度は、そのIPパケットのヘッダのDiff-Servフィールドに含められる。勿論、Ethernet(登録商標)フレームの場合、優先度は、例えばCoSフィールドに含められてもよい。
The
図2は、本発明における優先度割当部のフローチャートである。 FIG. 2 is a flowchart of the priority assignment unit in the present invention.
優先度割当部102は、以下のパラメータを定義する。
I_int:2つのIピクチャの間に挟まれたPピクチャの枚数
N_prio:Pピクチャ用優先度の数
i:初期値「1」とする変数パラメータ
PRI:Pピクチャ用の最高優先度
ここで、優先度は、その絶対値が大きくなるほど優先度が低くなるものとする。即ち、優先度1、2、3、、、の順に優先度が低くなるものとする。
The
I_int: Number of P pictures sandwiched between two I pictures N_prio: Number of P picture priorities i: Variable parameter with initial value “1” PRI: Maximum priority for P pictures Here, priority Is assumed to have a lower priority as its absolute value increases. That is, it is assumed that the priorities become lower in the order of
(S201)最初に、I_int>N_prioであるか否かを判定する。即ち、複数のPピクチャに、同一優先度を割り当てる必要があるか否かを判断する。 (S201) First, it is determined whether I_int> N_prio. That is, it is determined whether it is necessary to assign the same priority to a plurality of P pictures.
(S202)I_int>N_prioである場合、即ち、複数のPピクチャに同一優先度を割り当てる必要がある場合、i<N_prioであるか否かを判断する。最初は、i=1であって、N_prio−1の数だけS203を繰り返す。 (S202) When I_int> N_prio, that is, when it is necessary to assign the same priority to a plurality of P pictures, it is determined whether i <N_prio. Initially, i = 1 and S203 is repeated for the number of N_prio-1.
(S203)i<N_prioである場合、優先度(PRI+i−1)を、何番目から何番目のPピクチャに割り当てるか否かを決定する。例えば、Iピクチャに優先度1(PRI=2)が割り当てられ、且つ、i=1である場合、Pピクチャに割り当てる最初の優先度は、2(=2+1−1)となる。そして、その優先度は、以下の式によって算出される順番数のPピクチャに割り当てられる。この順番は、Iピクチャからの順番である。
((i−1)×[I_int/N_prio]+1)番目
〜(i×[I_int/N_prio])番目 (式1)
(S203) When i <N_prio, it is determined from what number to what number P picture the priority (PRI + i-1) is assigned. For example, when priority 1 (PRI = 2) is assigned to an I picture and i = 1, the first priority assigned to a P picture is 2 (= 2 + 1−1). The priority is assigned to the P pictures of the order number calculated by the following equation. This order is the order from the I picture.
((i-1) × [I_int / N_prio] +1) th
~ (I × [I_int / N_prio]) th (Formula 1)
(S204)iを1増分し、S202へ戻る。 (S204) Increment i by 1 and return to S202.
(S205)i≧N_prioである場合、優先度(PRI+i−1)を、何番目から最後までのPピクチャに割り当てるか否かを決定する。例えば、i=5である場合、最後のPピクチャに割り当てる優先度は、6(=2+5−1)となる。そして、その優先度は、以下の式によって算出される順番数のPピクチャに割り当てられる。
((i−1)×[I_int/N_prio]+1)番目
〜(i×[I_int/N_prio]+(I_int mod N_prio))番目 (式2)
そして、処理を終了する。
(S205) When i ≧ N_prio, it is determined whether to assign the priority (PRI + i−1) to the P picture from the order to the end. For example, when i = 5, the priority assigned to the last P picture is 6 (= 2 + 5-1). The priority is assigned to the P pictures of the order number calculated by the following equation.
((i-1) × [I_int / N_prio] +1) th
~ (I × [I_int / N_prio] + (I_int mod N_prio)) th (Expression 2)
Then, the process ends.
(S206)I_int≦N_prioである場合、即ち、複数のPピクチャのそれぞれに異なる優先度を割り当てることができる場合、i≦N_prioであるか否かを判断する。即ち、全てのPピクチャに対して、優先度の割り当てが終了した際(i>N_prio)に、処理を終了する。 (S206) When I_int ≦ N_prio, that is, when a different priority can be assigned to each of the plurality of P pictures, it is determined whether i ≦ N_prio. In other words, the process ends when priority assignment for all P pictures is completed (i> N_prio).
(S207)i≦N_prioである場合、i番目のPピクチャのデータに(PRI+i−1)の優先度を割り当てる。尚、Iピクチャ間隔が短い場合(即ち、Iピクチャの間に挟まれたPピクチャの枚数が少ない場合)は、その間隔が長いものに比べ、パケット損失等による映像の劣化から回復するスピードが速い。その場合、i番目のPピクチャのデータに(PRI+I_int−1+i−1)の優先度を割り当ててもよい。 (S207) When i ≦ N_prio, the priority of (PRI + i−1) is assigned to the data of the i-th P picture. Note that when the I picture interval is short (that is, when the number of P pictures sandwiched between I pictures is small), the speed of recovery from video degradation due to packet loss or the like is faster than when the interval is long. . In that case, a priority of (PRI + I_int-1 + i-1) may be assigned to data of the i-th P picture.
(S208)iを1増分し、S206へ戻る。 (S208) Increment i by 1 and return to S206.
図3は、本発明によって画像に割り当てられた優先度を表す説明図である。 FIG. 3 is an explanatory diagram showing priorities assigned to images according to the present invention.
例えば、以下のような第1の例について説明する。
I_int=14:2つのIピクチャの間に挟まれたPフレームの枚数
N_prio=6:Pピクチャ用優先度の数
(7段階の優先度であって、Iピクチャの優先度1、Pピクチャの優先度2〜7)
PRI=2:Pピクチャのデータ用の最高優先度
For example, the following first example will be described.
I_int = 14: Number of P frames sandwiched between two I pictures N_prio = 6: Number of P picture priorities (7 priority levels, I picture
PRI = 2: highest priority for P picture data
[i=1の場合のS203の処理]
優先度(PRI+i−1)=2+1−1=2
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((1−1)×[14/6]+1)〜(1×[14/6])
= (0×[2.33]+1)〜(1×[2.33])
= 0 〜 2
Pピクチャの1番目〜2番目に、優先度2を割り当てる。
[Processing of S203 when i = 1]
Priority (PRI + i−1) = 2 + 1−1 = 2
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((1-1) × [14/6] +1) to (1 × [14/6])
= (0 × [2.33] +1) to (1 × [2.33])
= 0 to 2
Priority 2 is assigned to the first to second P pictures.
[i=2の場合のS203の処理]
優先度(PRI+i−1)=2+2−1=3
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((2−1)×[14/6]+1)〜(2×[14/6])
= (1×[2.33]+1)〜(2×[2.33])
= 3 〜 4
Pピクチャの3番目〜4番目に、優先度3を割り当てる。
[Processing of S203 when i = 2]
Priority (PRI + i-1) = 2 + 2-1 = 3
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((2-1) × [14/6] +1) to (2 × [14/6])
= (1 × [2.33] +1) to (2 × [2.33])
= 3 to 4
A priority of 3 is assigned to the third to fourth of the P pictures.
[i=3の場合のS203の処理]
優先度(PRI+i−1)=3+2−1=4
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((3−1)×[14/6]+1)〜(3×[14/6])
= (2×[2.33]+1)〜(3×[2.33])
= 5 〜 6
Pピクチャの5番目〜6番目に、優先度4を割り当てる。
[Processing of S203 when i = 3]
Priority (PRI + i-1) = 3 + 2-1 = 4
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((3-1) × [14/6] +1) to (3 × [14/6])
= (2 × [2.33] +1) to (3 × [2.33])
= 5-6
Priority 4 is assigned to the fifth to sixth P pictures.
[i=4の場合のS203の処理]
優先度(PRI+i−1)=4+2−1=5
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((4−1)×[14/6]+1)〜(4×[14/6])
= (3×[2.33]+1)〜(4×[2.33])
= 7 〜 9
Pピクチャの7番目〜9番目に、優先度5を割り当てる。
[Processing of S203 when i = 4]
Priority (PRI + i-1) = 4 + 2-1 = 5
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((4-1) × [14/6] +1) to (4 × [14/6])
= (3 × [2.33] +1) to (4 × [2.33])
= 7-9
A priority of 5 is assigned to the seventh to ninth P pictures.
[i=5の場合のS203の処理]
優先度(PRI+i−1)=5+2−1=6
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((5−1)×[14/6]+1)〜(5×[14/6])
= (4×[2.33]+1)〜(5×[2.33])
= 10 〜 11
Pピクチャの10番目〜11番目に、優先度6を割り当てる。
[Processing of S203 when i = 5]
Priority (PRI + i-1) = 5 + 2-1 = 6
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((5-1) × [14/6] +1) to (5 × [14/6])
= (4 × [2.33] +1) to (5 × [2.33])
= 10 to 11
A priority of 6 is assigned to the 10th to 11th P pictures.
[i=6の場合のS205の処理]
優先度(PRI+i−1)=6+2−1=7
((i−1)×[I_int/N_prio]+1)〜
(i×[I_int/N_prio]+(I_int mod N_prio)
= ((6−1)×[14/6]+1)〜(6×[14/6]+(14 mod 6))
= (5×[2.33]+1)〜(6×[2.33]+2)
= 12 〜 15
Pピクチャの12番目〜15番目に、優先度7を割り当てる。
[Processing of S205 when i = 6]
Priority (PRI + i-1) = 6 + 2-1 = 7
((i-1) × [I_int / N_prio] +1) ~
(i × [I_int / N_prio] + (I_int mod N_prio)
= ((6-1) × [14/6] +1) to (6 × [14/6] + (14 mod 6))
= (5 × [2.33] +1) to (6 × [2.33] +2)
= 12-15
A priority of 7 is assigned to the 12th to 15th P pictures.
次に、例えば、以下のような第2の例について説明する。
I_int=14:2つのIピクチャの間に挟まれたPフレームの枚数
N_prio=3:Pピクチャ用優先度の数
(4段階の優先度であって、Iピクチャの優先度1、Pピクチャの優先度2〜4)
PRI=2:Pピクチャのデータ用の最高優先度
Next, for example, the following second example will be described.
I_int = 14: Number of P frames sandwiched between two I pictures N_prio = 3: Number of P picture priorities (4 priority levels, I picture
PRI = 2: highest priority for P picture data
[i=1の場合のS203の処理]
優先度(PRI+i−1)=2+1−1=2
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((1−1)×[14/3]+1)〜(1×[14/3])
= (0×[4.66]+1)〜(1×[4.66])
= 0 〜 4
Pピクチャの1番目〜4番目に、優先度2を割り当てる。
[Processing of S203 when i = 1]
Priority (PRI + i−1) = 2 + 1−1 = 2
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((1-1) × [14/3] +1) to (1 × [14/3])
= (0 × [4.66] +1) to (1 × [4.66])
= 0 to 4
Priority 2 is assigned to the first to fourth P pictures.
[i=2の場合のS203の処理]
優先度(PRI+i−1)=2+2−1=3
((i−1)×[I_int/N_prio]+1)〜(i×[I_int/N_prio])
= ((2−1)×[14/3]+1)〜(2×[14/3])
= (1×[4.66]+1)〜(2×[4.66])
= 5 〜 9
Pピクチャの5番目〜9番目に、優先度3を割り当てる。
[Processing of S203 when i = 2]
Priority (PRI + i-1) = 2 + 2-1 = 3
((i−1) × [I_int / N_prio] +1) to (i × [I_int / N_prio])
= ((2-1) × [14/3] +1) to (2 × [14/3])
= (1 × [4.66] +1) to (2 × [4.66])
= 5 to 9
[i=3の場合のS205の処理]
優先度(PRI+i−1)=3+2−1=4
((i−1)×[I_int/N_prio]+1)〜
(i×[I_int/N_prio]+(I_int mod N_prio)
= ((3−1)×[14/3]+1)〜(3×[14/3]+(14 mod 3))
= (2×[4.66]+1)〜(3×[4.66]+2)
= 10 〜 15
Pピクチャの10番目〜15番目に、優先度4を割り当てる。
[Processing of S205 when i = 3]
Priority (PRI + i-1) = 3 + 2-1 = 4
((i-1) × [I_int / N_prio] +1) ~
(i × [I_int / N_prio] + (I_int mod N_prio)
= ((3-1) × [14/3] +1) to (3 × [14/3] + (14 mod 3))
= (2 × [4.66] +1) to (3 × [4.66] +2)
= 10-15
Priority 4 is assigned to the 10th to 15th P pictures.
次に、例えば、以下のような第3の例について説明する。
I_int=3:2つのIピクチャの間に挟まれたPフレームの枚数
N_prio=6:Pピクチャ用優先度の数
(7段階の優先度であって、Iピクチャの優先度1、Pピクチャの優先度2〜7)
PRI=2:Pピクチャのデータ用の最高優先度
Next, for example, the following third example will be described.
I_int = 3: Number of P frames sandwiched between two I pictures N_prio = 6: Number of P picture priorities (7 priority levels, I picture
PRI = 2: highest priority for P picture data
[i=1の場合のS207の処理]
優先度(PRI+i−1)=2+1−1=2
Pピクチャの1番目に、優先度2を割り当てる。
[i=2の場合のS207の処理]
優先度(PRI+i−1)=2+2−1=3
Pピクチャの2番目に、優先度3を割り当てる。
[i=3の場合のS207の処理]
優先度(PRI+i−1)=2+3−1=4
Pピクチャの3番目に、優先度4を割り当てる。
[Processing of S207 when i = 1]
Priority (PRI + i−1) = 2 + 1−1 = 2
Priority 2 is assigned to the first P picture.
[Processing of S207 when i = 2]
Priority (PRI + i-1) = 2 + 2-1 = 3
The
[Processing of S207 when i = 3]
Priority (PRI + i-1) = 2 + 3-1 = 4
Priority 4 is assigned to the third P picture.
次に、Iピクチャの間に挟まれたPピクチャの枚数が少ない場合、例えば、以下のような第4の例のように割り当ててもよい。
I_int=3:2つのIピクチャの間に挟まれたPフレームの枚数
N_prio=6:Pピクチャ用優先度の数
(7段階の優先度であって、Iピクチャの優先度1、Pピクチャの優先度2〜7)
PRI=2:Pピクチャのデータ用の最高優先度
Next, when the number of P pictures sandwiched between I pictures is small, for example, assignment may be performed as in the following fourth example.
I_int = 3: Number of P frames sandwiched between two I pictures N_prio = 6: Number of P picture priorities (7 priority levels, I picture
PRI = 2: highest priority for P picture data
[i=1の場合のS207の処理]
優先度(PRI+I_int−1+i−1)=2+3−1+1−1=4
Pピクチャの1番目に、優先度4を割り当てる。
[i=2の場合のS207の処理]
優先度(PRI+I_int−1+i−1)=2+3−1+2−1=5
Pピクチャの2番目に、優先度5を割り当てる。
[i=3の場合のS207の処理]
優先度(PRI+I_int−1+i−1)=2+3−1+3−1=6
Pピクチャの3番目に、優先度6を割り当てる。
[Processing of S207 when i = 1]
Priority (PRI + I_int-1 + i-1) = 2 + 3-1 + 1-1 = 4
Priority 4 is assigned to the first P picture.
[Processing of S207 when i = 2]
Priority (PRI + I_int-1 + i-1) = 2 + 3-1 + 2-1 = 5
Priority 5 is assigned to the second P picture.
[Processing of S207 when i = 3]
Priority (PRI + I_int-1 + i-1) = 2 + 3-1 + 3-1 = 6
A priority of 6 is assigned to the third P picture.
前述したように、本発明の映像データ送信装置、プログラム及び方法によれば、フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てることによって、パケット損失が発生する通信環境であっても、映像データの受信品質の低下をできる限り防止することができる。特に、映像データのストリーミングパケットの受信について有効である。 As described above, according to the video data transmission apparatus, program, and method of the present invention, in a communication environment in which packet loss occurs by assigning different priorities according to the transmission order of frames among inter-frame encoded images. Even so, it is possible to prevent the reception quality of the video data from being lowered as much as possible. This is particularly effective for receiving streaming packets of video data.
前述した本発明における種々の実施形態によれば、当業者は、本発明の技術思想及び見地の範囲における種々の変更、修正及び省略を容易に行うことができる。前述の説明はあくまで例であって、何ら制約しようとするものではない。本発明は、特許請求の範囲及びその均等物として限定するものにのみ制約される。 According to the various embodiments of the present invention described above, those skilled in the art can easily make various changes, modifications and omissions within the scope of the technical idea and the viewpoint of the present invention. The above description is merely an example, and is not intended to be restrictive. The invention is limited only as defined in the following claims and the equivalents thereto.
1 映像データ送信装置
101 符号化部
102 優先度割当部
103 パケット構成部
1 Video
Claims (5)
前記映像データから、少なくともフレーム内符号化画像及びフレーム間符号化画像を生成する符号化手段と、
前記フレーム内符号化画像には、前記フレーム間符号化画像よりも高い優先度を割り当て、前記フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる優先度割当手段と、
画像を構成する情報を含むパケットを構成し、該パケットのヘッダに前記優先度を含めるパケット構成手段と
を有し、
前記優先度割当手段は、2つのフレーム内符号化画像の間に挟まれたフレーム間符号化画像の枚数をI_intとし、フレーム間符号化画像用優先度の数をN_prioとし、優先度はその絶対値が大きくなるほど優先度が低くなるとし、フレーム間符号化画像用の最高優先度をPRIとし、変数パラメータi=1とし、
I_int≦N_prioである場合に、
iがN_prioを超えるまで、フレーム内符号化画像からi番目のフレーム間符号化画像に(PRI+I_int−1+i−1)を割り当てる処理を、iを1増分しつつ繰り返す
ことを特徴とする映像データ送信装置。 In a video data transmission device that transmits video data,
Encoding means for generating at least an intra-frame encoded image and an inter-frame encoded image from the video data;
A priority assigning unit that assigns a higher priority to the intra-frame encoded image than the inter-frame encoded image, and assigns different priorities according to the transmission order of frames in the inter-frame encoded image;
Constitute a packet including information constituting the image, have a packet structure unit including the priority in the header of the packet,
The priority allocating means sets the number of inter-frame encoded images sandwiched between two intra-frame encoded images as I_int, the number of inter-frame encoded image priorities as N_prio, and the priority is absolute The higher the value, the lower the priority, the highest priority for the inter-frame coded image is PRI, the variable parameter i = 1,
If I_int ≦ N_prio,
The process of assigning (PRI + I_int-1 + i-1) from the intra-frame encoded image to the i-th inter-frame encoded image is repeated while incrementing i by 1 until i exceeds N_prio. Video data transmission device.
前記フレーム内符号化画像はIピクチャであり、前記フレーム間符号化画像はPピクチャであることを特徴とする請求項1に記載の映像データ送信装置。 The encoding means performs encoding based on MPEG (Moving Picture Experts Group),
The video data transmitting apparatus according to claim 1, wherein the intra-frame encoded image is an I picture, and the inter-frame encoded image is a P picture.
前記映像データから、少なくともフレーム内符号化画像及びフレーム間符号化画像を生成する符号化手段と、
前記フレーム内符号化画像には、前記フレーム間符号化画像よりも高い優先度を割り当て、前記フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる優先度割当手段と、
画像を構成する情報を含むパケットを構成し、該パケットのヘッダに前記優先度を含めるパケット構成手段と
してコンピュータを機能させ、
前記優先度割当手段は、2つのフレーム内符号化画像の間に挟まれたフレーム間符号化画像の枚数をI_intとし、フレーム間符号化画像用優先度の数をN_prioとし、優先度はその絶対値が大きくなるほど優先度が低くなるとし、フレーム間符号化画像用の最高優先度をPRIとし、変数パラメータi=1とし、
I_int≦N_prioである場合に、
iがN_prioを超えるまで、フレーム内符号化画像からi番目のフレーム間符号化画像に(PRI+I_int−1+i−1)を割り当てる処理を、iを1増分しつつ繰り返す
ようにコンピュータを機能させることを特徴とするプログラム。 In a program for causing a computer mounted on a device for transmitting video data to function,
Encoding means for generating at least an intra-frame encoded image and an inter-frame encoded image from the video data;
A priority assigning unit that assigns a higher priority to the intra-frame encoded image than the inter-frame encoded image, and assigns different priorities according to the transmission order of frames in the inter-frame encoded image;
Configuring a packet including information constituting an image, and causing the computer to function as a packet configuration unit including the priority in a header of the packet ;
The priority allocating means sets the number of inter-frame encoded images sandwiched between two intra-frame encoded images as I_int, the number of inter-frame encoded image priorities as N_prio, and the priority is absolute The higher the value, the lower the priority, the highest priority for the inter-frame coded image is PRI, the variable parameter i = 1,
If I_int ≦ N_prio,
Until i exceeds N_prio, the process of assigning (PRI + I_int-1 + i-1) from the intra-frame encoded image to the i-th inter-frame encoded image is repeated while incrementing i by 1.
A program characterized by causing a computer to function .
前記映像データから、少なくともフレーム内符号化画像及びフレーム間符号化画像を生成する第1のステップと、
前記フレーム内符号化画像には、前記フレーム間符号化画像よりも高い優先度を割り当て、前記フレーム間符号化画像の中でフレームの送信順に応じて異なる優先度を割り当てる第2のステップと、
画像を構成する情報を含むパケットを構成し、該パケットのヘッダに前記優先度を含める第3のステップと
を有し、
第2のステップは、2つのフレーム内符号化画像の間に挟まれたフレーム間符号化画像の枚数をI_intとし、フレーム間符号化画像用優先度の数をN_prioとし、優先度はその絶対値が大きくなるほど優先度が低くなるとし、フレーム間符号化画像用の最高優先度をPRIとし、変数パラメータi=1とし、
I_int≦N_prioである場合に、
iがN_prioを超えるまで、フレーム内符号化画像からi番目のフレーム間符号化画像に(PRI+I_int−1+i−1)を割り当てる処理を、iを1増分しつつ繰り返す
ことを特徴とする映像データ送信方法。 In the video data transmission method in the video data transmission device,
A first step of generating at least an intra-frame encoded image and an inter-frame encoded image from the video data;
A second step of assigning a higher priority to the intra-frame encoded image than the inter-frame encoded image, and assigning a different priority according to the transmission order of frames in the inter-frame encoded image;
Forming a packet including information constituting the image, and including the priority in the header of the packet,
In the second step, the number of inter-frame encoded images sandwiched between two intra-frame encoded images is I_int, the number of inter-frame encoded image priorities is N_prio, and the priority is an absolute value thereof. , The priority becomes lower, the highest priority for the inter-frame coded image is PRI, the variable parameter i = 1,
If I_int ≦ N_prio,
The process of assigning (PRI + I_int-1 + i-1) from the intra-frame encoded image to the i-th inter-frame encoded image is repeated while incrementing i by 1 until i exceeds N_prio. Video data transmission method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007144301A JP4836871B2 (en) | 2007-05-31 | 2007-05-31 | Video data transmitting apparatus, program, and method for assigning priority to encoded image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007144301A JP4836871B2 (en) | 2007-05-31 | 2007-05-31 | Video data transmitting apparatus, program, and method for assigning priority to encoded image |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008301139A JP2008301139A (en) | 2008-12-11 |
JP4836871B2 true JP4836871B2 (en) | 2011-12-14 |
Family
ID=40174239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007144301A Active JP4836871B2 (en) | 2007-05-31 | 2007-05-31 | Video data transmitting apparatus, program, and method for assigning priority to encoded image |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4836871B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665109A (en) * | 2012-04-19 | 2012-09-12 | 中兴通讯股份有限公司 | Transmitting and receiving method of multimedia video data and corresponding devices |
BR112015030043B1 (en) | 2013-06-07 | 2023-01-10 | Sony Corporation | TRANSMISSION AND PROCESSING DEVICE, AND, TRANSMISSION METHOD OF A CONTINUOUS TRANSMISSION FLOW |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1130839B1 (en) * | 2000-03-02 | 2005-06-08 | Matsushita Electric Industrial Co., Ltd. | Method and apparatus for retransmitting video data frames with priority levels |
EP1301041A1 (en) * | 2001-10-05 | 2003-04-09 | Matsushita Electric Industrial Co., Ltd. | Video data transmission method and apparatus |
JP2003264820A (en) * | 2002-03-11 | 2003-09-19 | Ntt Comware Corp | Distribution method, distributor, and receiver for digital image |
JP3852761B2 (en) * | 2002-05-14 | 2006-12-06 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Network system, content providing system, terminal device, content transmission method, and program |
JP2005012275A (en) * | 2003-06-16 | 2005-01-13 | Matsushita Electric Ind Co Ltd | Radio transmitter, radio packet transmitting method, and radio communication system |
JP2006279436A (en) * | 2005-03-29 | 2006-10-12 | Toshiba Corp | Multimedia communication system and data deleting method for re-transmission |
-
2007
- 2007-05-31 JP JP2007144301A patent/JP4836871B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2008301139A (en) | 2008-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1248456C (en) | Transmission control parameter production method and method of selective repeating according to packet characteristics | |
JP5512038B2 (en) | Interface device and method for transmitting and receiving media data | |
US8443097B2 (en) | Queue management unit and method for streaming video packets in a wireless network | |
US20070276954A1 (en) | Low-Delay High Quality Video Streaming Using TCP | |
JP5810447B2 (en) | Method of priority-based transmission of wireless video | |
RU2420909C2 (en) | Splitting data stream | |
Darabkh et al. | Efficient PFD-based networking and buffering models for improving video quality over congested links | |
JP5117512B2 (en) | Method and apparatus for dynamically adapting the number of retransmissions | |
US11172267B2 (en) | Method and system for scheduling resources for streaming video services in mobile communication networks | |
JP2011035889A (en) | Method for providing mobile iptv service and system for the same | |
Huusko et al. | Cross-layer architecture for scalable video transmission in wireless network | |
JP2014241493A (en) | Transmitter, transmission method and program | |
Yao et al. | IPB-frame adaptive mapping mechanism for video transmission over IEEE 802.11 e WLANs | |
US20110067072A1 (en) | Method and apparatus for performing MPEG video streaming over bandwidth constrained networks | |
JP4836871B2 (en) | Video data transmitting apparatus, program, and method for assigning priority to encoded image | |
EP2348730B1 (en) | Method, device and system for video stream transmission | |
US8243787B2 (en) | Method and system for protecting MPEG frames during transmission within an internet protocol (IP) network | |
JP2008017331A (en) | Packet stream transmitter | |
Baccaglini et al. | Efficient slice‐aware H. 264/AVC video transmission over time‐driven priority networks | |
Kambhatla et al. | Cross-layer prioritized H. 264 video packetization and error protection over noisy channels | |
KR101249613B1 (en) | Network-adaptive variable stream layered method and apparatus for video streaming | |
JP2008187258A (en) | Communication method and communication device | |
Patel et al. | A dynamic cross-layer mapping to support real time multimedia applications over IEEE 802.11 n | |
Hong et al. | Incorporating packet semantics in scheduling of real-time multimedia streaming | |
Maloth et al. | An Adaptive Cross-layer Mapping Algorithm for Multiview Video Coding over IEEE 802.11 e WLANs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100121 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110202 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110209 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110620 |
|
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: 20110922 |
|
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: 20110927 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141007 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4836871 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |