2018-02-10 23:37:42 +00:00
|
|
|
|
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<!DOCTYPE html>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<html>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<head>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<meta charset="utf-8" />
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
|
|
|
|
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<title>UDP file options — Shaka Packager documentation</title>
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/sphinxdoc_new.css" />
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/table_styling.css" />
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<script src="../_static/jquery.js"></script>
|
|
|
|
|
<script src="../_static/underscore.js"></script>
|
|
|
|
|
<script src="../_static/doctools.js"></script>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<link rel="index" title="Index" href="../genindex.html" />
|
|
|
|
|
<link rel="search" title="Search" href="../search.html" />
|
2020-01-22 00:59:16 +00:00
|
|
|
|
</head><body>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
|
|
|
<h3>Navigation</h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="right" style="margin-right: 10px">
|
|
|
|
|
<a href="../genindex.html" title="General Index"
|
|
|
|
|
accesskey="I">index</a></li>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<li class="nav-item nav-item-0"><a href="../index.html">Shaka Packager documentation</a> »</li>
|
|
|
|
|
<li class="nav-item nav-item-this"><a href="">UDP file options</a></li>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</ul>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
</div>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
|
|
|
|
|
<div class="document">
|
|
|
|
|
<div class="documentwrapper">
|
|
|
|
|
<div class="bodywrapper">
|
|
|
|
|
<div class="body" role="main">
|
|
|
|
|
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<section id="udp-file-options">
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<h1>UDP file options<a class="headerlink" href="#udp-file-options" title="Permalink to this headline">¶</a></h1>
|
2018-05-23 23:12:00 +00:00
|
|
|
|
<p>UDP file is of the form:</p>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>udp://<ip>:<port>[?<option>[&<option>]...]
|
2018-05-23 23:12:00 +00:00
|
|
|
|
</pre></div>
|
|
|
|
|
</div>
|
|
|
|
|
<p>Here is the list of supported options:</p>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<dl class="field-list simple">
|
|
|
|
|
<dt class="field-odd">buffer_size=<size_in_bytes></dt>
|
|
|
|
|
<dd class="field-odd"><p>UDP maximum receive buffer size in bytes. Note that although it can be set
|
2018-06-29 00:34:00 +00:00
|
|
|
|
to any value, the actual value is capped by maximum allowed size defined by
|
|
|
|
|
the underlying operating system. On linux, the maximum size allowed can be
|
|
|
|
|
retrieved using <cite>sysctl net.core.rmem_max</cite> and configured using
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<cite>sysctl -w net.core.rmem_max=<size_in_bytes></cite>.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt class="field-even">interface=<addr></dt>
|
|
|
|
|
<dd class="field-even"><p>Multicast group interface address. Only the packets sent to this address are
|
|
|
|
|
received. Default to “0.0.0.0” if not specified.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt class="field-odd">reuse=0|1</dt>
|
|
|
|
|
<dd class="field-odd"><p>Allow or disallow reusing UDP sockets.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt class="field-even">source=<addr></dt>
|
|
|
|
|
<dd class="field-even"><p>Multicast source ip address. Only the packets sent from this source address
|
|
|
|
|
are received. Enables Source Specific Multicast (SSM) if set.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt class="field-odd">timeout=<microseconds></dt>
|
|
|
|
|
<dd class="field-odd"><p>UDP timeout in microseconds.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
2018-05-23 23:12:00 +00:00
|
|
|
|
<p>Example:</p>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>udp://224.1.2.30:88?interface=10.11.12.13&reuse=1
|
2018-05-23 23:12:00 +00:00
|
|
|
|
</pre></div>
|
|
|
|
|
</div>
|
2018-06-29 00:34:00 +00:00
|
|
|
|
<div class="admonition note">
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<p class="admonition-title">Note</p>
|
2018-06-29 00:34:00 +00:00
|
|
|
|
<p>UDP is by definition unreliable. There could be packets dropped.</p>
|
|
|
|
|
<p>UDP packets do not get lost magically. There are things you can do to
|
|
|
|
|
minimize the packet loss. A common cause of packet loss is buffer overrun,
|
|
|
|
|
either in send buffer or receive buffer.</p>
|
|
|
|
|
<p>On Linux, you can check UDP errors by monitoring the output from
|
|
|
|
|
<cite>netstat -suna</cite> command.</p>
|
|
|
|
|
<p>If there is an increase in <cite>send buffer errors</cite> from the <cite>netstat</cite> output,
|
|
|
|
|
then try increasing <cite>buffer_size</cite> in
|
|
|
|
|
[FFmpeg](<a class="reference external" href="https://ffmpeg.org/ffmpeg-protocols.html#udp">https://ffmpeg.org/ffmpeg-protocols.html#udp</a>).</p>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<p>If there is an increase in <cite>receive buffer errors</cite>, then try increasing
|
2018-06-29 00:34:00 +00:00
|
|
|
|
<cite>buffer_size</cite> in UDP options (See above) or increasing <cite>–io_cache_size</cite>.
|
|
|
|
|
<cite>buffer_size</cite> in UDP options defines the UDP buffer size of the underlying
|
|
|
|
|
system while <cite>io_cache_size</cite> defines the size of the internal circular
|
|
|
|
|
buffer managed by <cite>Shaka Packager</cite>.</p>
|
|
|
|
|
</div>
|
2021-06-22 00:16:40 +00:00
|
|
|
|
</section>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
|
|
|
|
|
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<div class="clearer"></div>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
|
|
|
<div class="sphinxsidebarwrapper">
|
|
|
|
|
<div role="note" aria-label="source link">
|
|
|
|
|
<h3>This Page</h3>
|
|
|
|
|
<ul class="this-page-menu">
|
|
|
|
|
<li><a href="../_sources/options/udp_file_options.rst.txt"
|
|
|
|
|
rel="nofollow">Show Source</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchbox" style="display: none" role="search">
|
|
|
|
|
<h3 id="searchlabel">Quick search</h3>
|
|
|
|
|
<div class="searchformwrapper">
|
|
|
|
|
<form class="search" action="../search.html" method="get">
|
|
|
|
|
<input type="text" name="q" aria-labelledby="searchlabel" />
|
|
|
|
|
<input type="submit" value="Go" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>$('#searchbox').show(0);</script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<div class="clearer"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
|
|
|
<h3>Navigation</h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="right" style="margin-right: 10px">
|
|
|
|
|
<a href="../genindex.html" title="General Index"
|
|
|
|
|
>index</a></li>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<li class="nav-item nav-item-0"><a href="../index.html">Shaka Packager documentation</a> »</li>
|
|
|
|
|
<li class="nav-item nav-item-this"><a href="">UDP file options</a></li>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="footer" role="contentinfo">
|
|
|
|
|
© Copyright 2017, Google.
|
2021-06-22 00:16:40 +00:00
|
|
|
|
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.0.2.
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|