Options  {.no-collapse}

<div markdown class="option">  
<a id="dst" data-level="basic">__dst__</a> (cstr): location of destination resource  
</div>  
<div markdown class="option">  
<a id="port" data-level="basic">__port__</a> (uint, default: _554_): server port  
</div>  
<div markdown class="option">  
<a id="firstport">__firstport__</a> (uint, default: _6000_): port for first stream in session  
</div>  
<div markdown class="option">  
<a id="mtu" data-level="basic">__mtu__</a> (uint, default: _1460_): size of RTP MTU in bytes  
</div>  
<div markdown class="option">  
<a id="ttl">__ttl__</a> (uint, default: _0_): time-to-live for multicast packets (a value of 0 uses client requested TTL, or 1)  
</div>  
<div markdown class="option">  
<a id="ifce">__ifce__</a> (str): default network interface to use  
</div>  
<div markdown class="option">  
<a id="payt">__payt__</a> (uint, default: _96_, minmax: 96-127): payload type to use for dynamic decoder configurations  
</div>  
<div markdown class="option">  
<a id="mpeg4" data-level="basic">__mpeg4__</a> (bool, default: _false_): send all streams using MPEG-4 generic payload format if possible  
</div>  
<div markdown class="option">  
<a id="delay">__delay__</a> (sint, default: _0_): send delay for packet (negative means send earlier)  
</div>  
<div markdown class="option">  
<a id="tt">__tt__</a> (uint, default: _1000_): time tolerance in microsecond (whenever schedule time minus realtime is below this value, the packet is sent right away)  
</div>  
<div markdown class="option">  
<a id="runfor">__runfor__</a> (sint, default: _-1_): run the session for the given time in ms. A negative value means run for ever if loop or source duration, value 0 only outputs the sdp  
</div>  
<div markdown class="option">  
<a id="tso">__tso__</a> (sint, default: _-1_): set timestamp offset in microseconds (negative value means random initial timestamp)  
</div>  
<div markdown class="option">  
<a id="xps">__xps__</a> (bool, default: _false_): force parameter set injection at each SAP. If not set, only inject if different from SDP ones  
</div>  
<div markdown class="option">  
<a id="latm" data-level="basic">__latm__</a> (bool, default: _false_): use latm for AAC payload format  
</div>  
<div markdown class="option">  
<a id="mounts" data-level="basic">__mounts__</a> (strl): list of directories to expose in server mode  
</div>  
<div markdown class="option">  
<a id="block_size">__block_size__</a> (uint, default: _10000_): block size used to read TCP socket  
</div>  
<div markdown class="option">  
<a id="maxc">__maxc__</a> (uint, default: _100_): maximum number of connections  
</div>  
<div markdown class="option">  
<a id="timeout">__timeout__</a> (uint, default: _20_): timeout in seconds for inactive sessions (0 disable timeout)  
</div>  
<div markdown class="option">  
<a id="user_agent" data-level="basic">__user_agent__</a> (str, default: _$GUA_): user agent string, by default solved from GPAC preferences  
</div>  
<div markdown class="option">  
<a id="close">__close__</a> (bool, default: _false_): close RTSP connection after each request, except when RTP over RTSP is used  
</div>  
<div markdown class="option">  
<a id="loop">__loop__</a> (bool, default: _true_): loop all streams in session (not always possible depending on source type)  
</div>  
<div markdown class="option">  
<a id="dynurl">__dynurl__</a> (bool, default: _false_): allow dynamic service assembly  
</div>  
<div markdown class="option">  
<a id="mcast">__mcast__</a> (enum, default: _off_): control multicast setup of a session  

- off: clients are never allowed to create a multicast  
- on: clients can create multicast sessions  
- mirror: clients can create a multicast session. Any later request to the same URL will use that multicast session  
</div>  
  
<div markdown class="option">  
<a id="quit">__quit__</a> (bool, default: _false_): exit server once first session is over (for test purposes)  
</div>  
<div markdown class="option">  
<a id="htun">__htun__</a> (bool, default: _true_): enable RTSP over HTTP tunnel  
</div>  
<div markdown class="option">  
<a id="trp">__trp__</a> (enum, default: _both_): transport mode  

- both: allow TCP or UDP traffic  
- udp: only allow UDP traffic  
- tcp: only allow TCP traffic  
</div>  
  
<div markdown class="option">  
<a id="cert" data-level="basic">__cert__</a> (str): certificate file in PEM format to use for TLS mode  
</div>  
<div markdown class="option">  
<a id="pkey" data-level="basic">__pkey__</a> (str): private key file in PEM format to use for TLS mode  
</div>