1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>rtprtxqueue: GStreamer Good Plugins 1.0 Plugins Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Good Plugins 1.0 Plugins Reference Manual"> 8<link rel="up" href="ch01.html" title="gst-plugins-good Elements"> 9<link rel="prev" href="gst-plugins-good-plugins-rtpredenc.html" title="rtpredenc"> 10<link rel="next" href="gst-plugins-good-plugins-rtprtxreceive.html" title="rtprtxreceive"> 11<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> 12<link rel="stylesheet" href="style.css" type="text/css"> 13</head> 14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> 16<td width="100%" align="left" class="shortcuts"> 17<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 18 <a href="#gst-plugins-good-plugins-rtprtxqueue.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gst-plugins-good-plugins-rtprtxqueue.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> 20 <a href="#gst-plugins-good-plugins-rtprtxqueue.properties" class="shortcut">Properties</a></span> 21</td> 22<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 23<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 24<td><a accesskey="p" href="gst-plugins-good-plugins-rtpredenc.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 25<td><a accesskey="n" href="gst-plugins-good-plugins-rtprtxreceive.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 26</tr></table> 27<div class="refentry"> 28<a name="gst-plugins-good-plugins-rtprtxqueue"></a><div class="titlepage"></div> 29<div class="refnamediv"><table width="100%"><tr> 30<td valign="top"> 31<h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-rtprtxqueue.top_of_page"></a>rtprtxqueue</span></h2> 32<p>rtprtxqueue</p> 33</td> 34<td class="gallery_image" valign="top" align="right"></td> 35</tr></table></div> 36<div class="refsect1"> 37<a name="gst-plugins-good-plugins-rtprtxqueue.properties"></a><h2>Properties</h2> 38<div class="informaltable"><table class="informaltable" border="0"> 39<colgroup> 40<col width="150px" class="properties_type"> 41<col width="300px" class="properties_name"> 42<col width="200px" class="properties_flags"> 43</colgroup> 44<tbody> 45<tr> 46<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td> 47<td class="property_name"><a class="link" href="gst-plugins-good-plugins-rtprtxqueue.html#GstRTPRtxQueue--max-size-packets" title="The “max-size-packets” property">max-size-packets</a></td> 48<td class="property_flags">Read / Write</td> 49</tr> 50<tr> 51<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td> 52<td class="property_name"><a class="link" href="gst-plugins-good-plugins-rtprtxqueue.html#GstRTPRtxQueue--max-size-time" title="The “max-size-time” property">max-size-time</a></td> 53<td class="property_flags">Read / Write</td> 54</tr> 55<tr> 56<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td> 57<td class="property_name"><a class="link" href="gst-plugins-good-plugins-rtprtxqueue.html#GstRTPRtxQueue--fulfilled-requests" title="The “fulfilled-requests” property">fulfilled-requests</a></td> 58<td class="property_flags">Read</td> 59</tr> 60<tr> 61<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td> 62<td class="property_name"><a class="link" href="gst-plugins-good-plugins-rtprtxqueue.html#GstRTPRtxQueue--requests" title="The “requests” property">requests</a></td> 63<td class="property_flags">Read</td> 64</tr> 65</tbody> 66</table></div> 67</div> 68<a name="GstRTPRtxQueue"></a><div class="refsect1"> 69<a name="gst-plugins-good-plugins-rtprtxqueue.other"></a><h2>Types and Values</h2> 70<div class="informaltable"><table class="informaltable" width="100%" border="0"> 71<colgroup> 72<col width="150px" class="name"> 73<col class="description"> 74</colgroup> 75<tbody><tr> 76<td class="datatype_keyword">struct</td> 77<td class="function_name"><a class="link" href="gst-plugins-good-plugins-rtprtxqueue.html#GstRTPRtxQueue-struct" title="struct GstRTPRtxQueue">GstRTPRtxQueue</a></td> 78</tr></tbody> 79</table></div> 80</div> 81<div class="refsect1"> 82<a name="gst-plugins-good-plugins-rtprtxqueue.object-hierarchy"></a><h2>Object Hierarchy</h2> 83<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 84 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 85 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 86 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 87 <span class="lineart">╰──</span> GstRTPRtxQueue 88</pre> 89</div> 90<div class="refsect1"> 91<a name="gst-plugins-good-plugins-rtprtxqueue.description"></a><h2>Description</h2> 92<p>rtprtxqueue maintains a queue of transmitted RTP packets, up to a 93configurable limit (see <span class="type">“max-size-time”</span>, 94<span class="type">“max-size-packets”</span>), and retransmits them upon request 95from the downstream rtpsession (GstRTPRetransmissionRequest event).</p> 96<p>This element is similar to rtprtxsend, but it has differences:</p> 97<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 98<li class="listitem"><p>Retransmission from rtprtxqueue is not RFC 4588 compliant. The 99retransmitted packets have the same ssrc and payload type as the original 100stream.</p></li> 101<li class="listitem"><p>As a side-effect of the above, rtprtxqueue does not require the use of 102rtprtxreceive on the receiving end. rtpjitterbuffer alone is able to 103reconstruct the stream.</p></li> 104<li class="listitem"><p>Retransmission from rtprtxqueue happens as soon as the next regular flow 105packet is chained, while rtprtxsend retransmits as soon as the retransmission 106event is received, using a helper thread.</p></li> 107<li class="listitem"><p>rtprtxqueue can be used with rtpbin without the need of hooking to its 108<a class="link" href="gst-plugins-good-plugins-rtpbin.html#GstRtpBin-request-aux-sender" title="The “request-aux-sender” signal"><span class="type">“request-aux-sender”</span></a> signal, which means it can be used with 109rtpbin using gst-launch.</p></li> 110</ul></div> 111<p>See also <a class="link" href="gst-plugins-good-plugins-rtprtxsend.html#GstRtpRtxSend"><span class="type">GstRtpRtxSend</span></a>, <a class="link" href="gst-plugins-good-plugins-rtprtxreceive.html#GstRtpRtxReceive"><span class="type">GstRtpRtxReceive</span></a></p> 112<div class="refsect2"> 113<a name="id-1.2.210.7.6"></a><h3>Example pipelines</h3> 114<div class="informalexample"> 115 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 116 <tbody> 117 <tr> 118 <td class="listing_lines" align="right"><pre>1 1192 1203 1214 1225</pre></td> 123 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> rtpbin name<span class="gtkdoc opt">=</span>b rtp<span class="gtkdoc opt">-</span>profile<span class="gtkdoc opt">=</span>avpf \ 124 audiotestsrc is<span class="gtkdoc opt">-</span>live<span class="gtkdoc opt">=</span><span class="keyword">true</span> <span class="gtkdoc opt">!</span> opusenc <span class="gtkdoc opt">!</span> rtpopuspay pt<span class="gtkdoc opt">=</span><span class="number">96</span> <span class="gtkdoc opt">!</span> rtprtxqueue <span class="gtkdoc opt">!</span> b<span class="gtkdoc opt">.</span>send_rtp_sink_0 \ 125 b<span class="gtkdoc opt">.</span>send_rtp_src_0 <span class="gtkdoc opt">!</span> identity drop<span class="gtkdoc opt">-</span>probability<span class="gtkdoc opt">=</span><span class="number">0.01</span> <span class="gtkdoc opt">!</span> udpsink host<span class="gtkdoc opt">=</span><span class="string">"127.0.0.1"</span> port<span class="gtkdoc opt">=</span><span class="number">5000</span> \ 126 udpsrc port<span class="gtkdoc opt">=</span><span class="number">5001</span> <span class="gtkdoc opt">!</span> b<span class="gtkdoc opt">.</span>recv_rtcp_sink_0 \ 127 b<span class="gtkdoc opt">.</span>send_rtcp_src_0 <span class="gtkdoc opt">!</span> udpsink host<span class="gtkdoc opt">=</span><span class="string">"127.0.0.1"</span> port<span class="gtkdoc opt">=</span><span class="number">5002</span> sync<span class="gtkdoc opt">=</span><span class="keyword">false</span> async<span class="gtkdoc opt">=</span><span class="keyword">false</span></pre></td> 128 </tr> 129 </tbody> 130 </table> 131</div> 132 133<p> Sender pipeline</p> 134<div class="informalexample"> 135 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 136 <tbody> 137 <tr> 138 <td class="listing_lines" align="right"><pre>1 1392 1403 1414 1425 1436</pre></td> 144 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> rtpbin name<span class="gtkdoc opt">=</span>b rtp<span class="gtkdoc opt">-</span>profile<span class="gtkdoc opt">=</span>avpf <span class="keyword">do</span><span class="gtkdoc opt">-</span>retransmission<span class="gtkdoc opt">=</span><span class="keyword">true</span> \ 145 udpsrc port<span class="gtkdoc opt">=</span><span class="number">5000</span> caps<span class="gtkdoc opt">=</span><span class="string">"application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)OPUS,payload=(int)96"</span> <span class="gtkdoc opt">!</span> \ 146 b<span class="gtkdoc opt">.</span>recv_rtp_sink_0 \ 147 b<span class="gtkdoc opt">. !</span> rtpopusdepay <span class="gtkdoc opt">!</span> opusdec <span class="gtkdoc opt">!</span> audioconvert <span class="gtkdoc opt">!</span> audioresample <span class="gtkdoc opt">!</span> autoaudiosink \ 148 udpsrc port<span class="gtkdoc opt">=</span><span class="number">5002</span> <span class="gtkdoc opt">!</span> b<span class="gtkdoc opt">.</span>recv_rtcp_sink_0 \ 149 b<span class="gtkdoc opt">.</span>send_rtcp_src_0 <span class="gtkdoc opt">!</span> udpsink host<span class="gtkdoc opt">=</span><span class="string">"127.0.0.1"</span> port<span class="gtkdoc opt">=</span><span class="number">5001</span> sync<span class="gtkdoc opt">=</span><span class="keyword">false</span> async<span class="gtkdoc opt">=</span><span class="keyword">false</span></pre></td> 150 </tr> 151 </tbody> 152 </table> 153</div> 154 155<p> Receiver pipeline</p> 156</div> 157<div class="refsynopsisdiv"> 158<h2>Synopsis</h2> 159<div class="refsect2"> 160<a name="id-1.2.210.7.7.1"></a><h3>Element Information</h3> 161<div class="variablelist"><table border="0" class="variablelist"> 162<colgroup> 163<col align="left" valign="top"> 164<col> 165</colgroup> 166<tbody> 167<tr> 168<td><p><span class="term">plugin</span></p></td> 169<td> 170 <a class="link" href="gst-plugins-good-plugins-plugin-rtpmanager.html#plugin-rtpmanager">rtpmanager</a> 171 </td> 172</tr> 173<tr> 174<td><p><span class="term">author</span></p></td> 175<td>Wim Taymans <wim.taymans@gmail.com></td> 176</tr> 177<tr> 178<td><p><span class="term">class</span></p></td> 179<td>Codec</td> 180</tr> 181</tbody> 182</table></div> 183</div> 184<hr> 185<div class="refsect2"> 186<a name="id-1.2.210.7.7.2"></a><h3>Element Pads</h3> 187<div class="variablelist"><table border="0" class="variablelist"> 188<colgroup> 189<col align="left" valign="top"> 190<col> 191</colgroup> 192<tbody> 193<tr> 194<td><p><span class="term">name</span></p></td> 195<td>sink</td> 196</tr> 197<tr> 198<td><p><span class="term">direction</span></p></td> 199<td>sink</td> 200</tr> 201<tr> 202<td><p><span class="term">presence</span></p></td> 203<td>always</td> 204</tr> 205<tr> 206<td><p><span class="term">details</span></p></td> 207<td>application/x-rtp</td> 208</tr> 209</tbody> 210</table></div> 211<div class="variablelist"><table border="0" class="variablelist"> 212<colgroup> 213<col align="left" valign="top"> 214<col> 215</colgroup> 216<tbody> 217<tr> 218<td><p><span class="term">name</span></p></td> 219<td>src</td> 220</tr> 221<tr> 222<td><p><span class="term">direction</span></p></td> 223<td>source</td> 224</tr> 225<tr> 226<td><p><span class="term">presence</span></p></td> 227<td>always</td> 228</tr> 229<tr> 230<td><p><span class="term">details</span></p></td> 231<td>application/x-rtp</td> 232</tr> 233</tbody> 234</table></div> 235</div> 236</div> 237</div> 238<div class="refsect1"> 239<a name="gst-plugins-good-plugins-rtprtxqueue.functions_details"></a><h2>Functions</h2> 240<p></p> 241</div> 242<div class="refsect1"> 243<a name="gst-plugins-good-plugins-rtprtxqueue.other_details"></a><h2>Types and Values</h2> 244<div class="refsect2"> 245<a name="GstRTPRtxQueue-struct"></a><h3>struct GstRTPRtxQueue</h3> 246<pre class="programlisting">struct GstRTPRtxQueue;</pre> 247<p>The opaque <a class="link" href="gst-plugins-good-plugins-rtprtxqueue.html#GstRTPRtxQueue"><span class="type">GstRTPRtxQueue</span></a> structure.</p> 248</div> 249</div> 250<div class="refsect1"> 251<a name="gst-plugins-good-plugins-rtprtxqueue.property-details"></a><h2>Property Details</h2> 252<div class="refsect2"> 253<a name="GstRTPRtxQueue--max-size-packets"></a><h3>The <code class="literal">“max-size-packets”</code> property</h3> 254<pre class="programlisting"> “max-size-packets” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre> 255<p>Amount of packets to queue (0 = unlimited).</p> 256<p>Flags: Read / Write</p> 257<p>Default value: 100</p> 258</div> 259<hr> 260<div class="refsect2"> 261<a name="GstRTPRtxQueue--max-size-time"></a><h3>The <code class="literal">“max-size-time”</code> property</h3> 262<pre class="programlisting"> “max-size-time” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre> 263<p>Amount of ms to queue (0 = unlimited).</p> 264<p>Flags: Read / Write</p> 265<p>Default value: 0</p> 266</div> 267<hr> 268<div class="refsect2"> 269<a name="GstRTPRtxQueue--fulfilled-requests"></a><h3>The <code class="literal">“fulfilled-requests”</code> property</h3> 270<pre class="programlisting"> “fulfilled-requests” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre> 271<p>Number of fulfilled retransmission requests.</p> 272<p>Flags: Read</p> 273<p>Default value: 0</p> 274</div> 275<hr> 276<div class="refsect2"> 277<a name="GstRTPRtxQueue--requests"></a><h3>The <code class="literal">“requests”</code> property</h3> 278<pre class="programlisting"> “requests” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre> 279<p>Total number of retransmission requests.</p> 280<p>Flags: Read</p> 281<p>Default value: 0</p> 282</div> 283</div> 284</div> 285<div class="footer"> 286<hr>Generated by GTK-Doc V1.28</div> 287</body> 288</html>