ffmpeg-protocols.html 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. FFmpeg Protocols Documentation
  8. </title>
  9. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  10. <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  11. <link rel="stylesheet" type="text/css" href="style.min.css">
  12. </head>
  13. <body>
  14. <div class="container">
  15. <h1>
  16. FFmpeg Protocols Documentation
  17. </h1>
  18. <div align="center">
  19. </div>
  20. <a name="SEC_Top"></a>
  21. <span id="SEC_Contents"></span>
  22. <h2 class="contents-heading">Table of Contents</h2>
  23. <div class="contents">
  24. <ul class="no-bullet">
  25. <li><a id="toc-Description" href="#Description">1 Description</a></li>
  26. <li><a id="toc-Protocol-Options" href="#Protocol-Options">2 Protocol Options</a></li>
  27. <li><a id="toc-Protocols" href="#Protocols">3 Protocols</a>
  28. <ul class="no-bullet">
  29. <li><a id="toc-amqp" href="#amqp">3.1 amqp</a></li>
  30. <li><a id="toc-async" href="#async">3.2 async</a></li>
  31. <li><a id="toc-bluray" href="#bluray">3.3 bluray</a></li>
  32. <li><a id="toc-cache" href="#cache">3.4 cache</a></li>
  33. <li><a id="toc-concat" href="#concat">3.5 concat</a></li>
  34. <li><a id="toc-crypto" href="#crypto">3.6 crypto</a></li>
  35. <li><a id="toc-data" href="#data">3.7 data</a></li>
  36. <li><a id="toc-file" href="#file">3.8 file</a></li>
  37. <li><a id="toc-ftp" href="#ftp">3.9 ftp</a></li>
  38. <li><a id="toc-gopher" href="#gopher">3.10 gopher</a></li>
  39. <li><a id="toc-gophers" href="#gophers">3.11 gophers</a></li>
  40. <li><a id="toc-hls" href="#hls">3.12 hls</a></li>
  41. <li><a id="toc-http" href="#http">3.13 http</a>
  42. <ul class="no-bullet">
  43. <li><a id="toc-HTTP-Cookies" href="#HTTP-Cookies">3.13.1 HTTP Cookies</a></li>
  44. </ul></li>
  45. <li><a id="toc-Icecast" href="#Icecast">3.14 Icecast</a></li>
  46. <li><a id="toc-mmst" href="#mmst">3.15 mmst</a></li>
  47. <li><a id="toc-mmsh" href="#mmsh">3.16 mmsh</a></li>
  48. <li><a id="toc-md5" href="#md5">3.17 md5</a></li>
  49. <li><a id="toc-pipe" href="#pipe">3.18 pipe</a></li>
  50. <li><a id="toc-prompeg" href="#prompeg">3.19 prompeg</a></li>
  51. <li><a id="toc-rist" href="#rist">3.20 rist</a></li>
  52. <li><a id="toc-rtmp" href="#rtmp">3.21 rtmp</a></li>
  53. <li><a id="toc-rtmpe" href="#rtmpe">3.22 rtmpe</a></li>
  54. <li><a id="toc-rtmps" href="#rtmps">3.23 rtmps</a></li>
  55. <li><a id="toc-rtmpt" href="#rtmpt">3.24 rtmpt</a></li>
  56. <li><a id="toc-rtmpte" href="#rtmpte">3.25 rtmpte</a></li>
  57. <li><a id="toc-rtmpts" href="#rtmpts">3.26 rtmpts</a></li>
  58. <li><a id="toc-libsmbclient" href="#libsmbclient">3.27 libsmbclient</a></li>
  59. <li><a id="toc-libssh" href="#libssh">3.28 libssh</a></li>
  60. <li><a id="toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte" href="#librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte">3.29 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></li>
  61. <li><a id="toc-rtp" href="#rtp">3.30 rtp</a></li>
  62. <li><a id="toc-rtsp" href="#rtsp">3.31 rtsp</a>
  63. <ul class="no-bullet">
  64. <li><a id="toc-Examples" href="#Examples">3.31.1 Examples</a></li>
  65. </ul></li>
  66. <li><a id="toc-sap" href="#sap">3.32 sap</a>
  67. <ul class="no-bullet">
  68. <li><a id="toc-Muxer" href="#Muxer">3.32.1 Muxer</a></li>
  69. <li><a id="toc-Demuxer" href="#Demuxer">3.32.2 Demuxer</a></li>
  70. </ul></li>
  71. <li><a id="toc-sctp" href="#sctp">3.33 sctp</a></li>
  72. <li><a id="toc-srt" href="#srt">3.34 srt</a></li>
  73. <li><a id="toc-srtp" href="#srtp">3.35 srtp</a></li>
  74. <li><a id="toc-subfile" href="#subfile">3.36 subfile</a></li>
  75. <li><a id="toc-tee" href="#tee">3.37 tee</a></li>
  76. <li><a id="toc-tcp" href="#tcp">3.38 tcp</a></li>
  77. <li><a id="toc-tls" href="#tls">3.39 tls</a></li>
  78. <li><a id="toc-udp" href="#udp">3.40 udp</a>
  79. <ul class="no-bullet">
  80. <li><a id="toc-Examples-1" href="#Examples-1">3.40.1 Examples</a></li>
  81. </ul></li>
  82. <li><a id="toc-unix" href="#unix">3.41 unix</a></li>
  83. <li><a id="toc-zmq" href="#zmq">3.42 zmq</a></li>
  84. </ul></li>
  85. <li><a id="toc-See-Also" href="#See-Also">4 See Also</a></li>
  86. <li><a id="toc-Authors" href="#Authors">5 Authors</a></li>
  87. </ul>
  88. </div>
  89. <a name="Description"></a>
  90. <h2 class="chapter">1 Description<span class="pull-right"><a class="anchor hidden-xs" href="#Description" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Description" aria-hidden="true">TOC</a></span></h2>
  91. <p>This document describes the input and output protocols provided by the
  92. libavformat library.
  93. </p>
  94. <a name="Protocol-Options"></a>
  95. <h2 class="chapter">2 Protocol Options<span class="pull-right"><a class="anchor hidden-xs" href="#Protocol-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Protocol-Options" aria-hidden="true">TOC</a></span></h2>
  96. <p>The libavformat library provides some generic global options, which
  97. can be set on all the protocols. In addition each protocol may support
  98. so-called private options, which are specific for that component.
  99. </p>
  100. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  101. FFmpeg tools, or by setting the value explicitly in the
  102. <code>AVFormatContext</code> options or using the <samp>libavutil/opt.h</samp> API
  103. for programmatic use.
  104. </p>
  105. <p>The list of supported options follows:
  106. </p>
  107. <dl compact="compact">
  108. <dt><samp>protocol_whitelist <var>list</var> (<em>input</em>)</samp></dt>
  109. <dd><p>Set a &quot;,&quot;-separated list of allowed protocols. &quot;ALL&quot; matches all protocols. Protocols
  110. prefixed by &quot;-&quot; are disabled.
  111. All protocols are allowed by default but protocols used by an another
  112. protocol (nested protocols) are restricted to a per protocol subset.
  113. </p></dd>
  114. </dl>
  115. <a name="Protocols"></a>
  116. <h2 class="chapter">3 Protocols<span class="pull-right"><a class="anchor hidden-xs" href="#Protocols" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Protocols" aria-hidden="true">TOC</a></span></h2>
  117. <p>Protocols are configured elements in FFmpeg that enable access to
  118. resources that require specific protocols.
  119. </p>
  120. <p>When you configure your FFmpeg build, all the supported protocols are
  121. enabled by default. You can list all available ones using the
  122. configure option &quot;&ndash;list-protocols&quot;.
  123. </p>
  124. <p>You can disable all the protocols using the configure option
  125. &quot;&ndash;disable-protocols&quot;, and selectively enable a protocol using the
  126. option &quot;&ndash;enable-protocol=<var>PROTOCOL</var>&quot;, or you can disable a
  127. particular protocol using the option
  128. &quot;&ndash;disable-protocol=<var>PROTOCOL</var>&quot;.
  129. </p>
  130. <p>The option &quot;-protocols&quot; of the ff* tools will display the list of
  131. supported protocols.
  132. </p>
  133. <p>All protocols accept the following options:
  134. </p>
  135. <dl compact="compact">
  136. <dt><samp>rw_timeout</samp></dt>
  137. <dd><p>Maximum time to wait for (network) read/write operations to complete,
  138. in microseconds.
  139. </p></dd>
  140. </dl>
  141. <p>A description of the currently available protocols follows.
  142. </p>
  143. <a name="amqp"></a>
  144. <h3 class="section">3.1 amqp<span class="pull-right"><a class="anchor hidden-xs" href="#amqp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-amqp" aria-hidden="true">TOC</a></span></h3>
  145. <p>Advanced Message Queueing Protocol (AMQP) version 0-9-1 is a broker based
  146. publish-subscribe communication protocol.
  147. </p>
  148. <p>FFmpeg must be compiled with &ndash;enable-librabbitmq to support AMQP. A separate
  149. AMQP broker must also be run. An example open-source AMQP broker is RabbitMQ.
  150. </p>
  151. <p>After starting the broker, an FFmpeg client may stream data to the broker using
  152. the command:
  153. </p>
  154. <div class="example">
  155. <pre class="example">ffmpeg -re -i input -f mpegts amqp://[[user]:[password]@]hostname[:port][/vhost]
  156. </pre></div>
  157. <p>Where hostname and port (default is 5672) is the address of the broker. The
  158. client may also set a user/password for authentication. The default for both
  159. fields is &quot;guest&quot;. Name of virtual host on broker can be set with vhost. The
  160. default value is &quot;/&quot;.
  161. </p>
  162. <p>Muliple subscribers may stream from the broker using the command:
  163. </p><div class="example">
  164. <pre class="example">ffplay amqp://[[user]:[password]@]hostname[:port][/vhost]
  165. </pre></div>
  166. <p>In RabbitMQ all data published to the broker flows through a specific exchange,
  167. and each subscribing client has an assigned queue/buffer. When a packet arrives
  168. at an exchange, it may be copied to a client&rsquo;s queue depending on the exchange
  169. and routing_key fields.
  170. </p>
  171. <p>The following options are supported:
  172. </p>
  173. <dl compact="compact">
  174. <dt><samp>exchange</samp></dt>
  175. <dd><p>Sets the exchange to use on the broker. RabbitMQ has several predefined
  176. exchanges: &quot;amq.direct&quot; is the default exchange, where the publisher and
  177. subscriber must have a matching routing_key; &quot;amq.fanout&quot; is the same as a
  178. broadcast operation (i.e. the data is forwarded to all queues on the fanout
  179. exchange independent of the routing_key); and &quot;amq.topic&quot; is similar to
  180. &quot;amq.direct&quot;, but allows for more complex pattern matching (refer to the RabbitMQ
  181. documentation).
  182. </p>
  183. </dd>
  184. <dt><samp>routing_key</samp></dt>
  185. <dd><p>Sets the routing key. The default value is &quot;amqp&quot;. The routing key is used on
  186. the &quot;amq.direct&quot; and &quot;amq.topic&quot; exchanges to decide whether packets are written
  187. to the queue of a subscriber.
  188. </p>
  189. </dd>
  190. <dt><samp>pkt_size</samp></dt>
  191. <dd><p>Maximum size of each packet sent/received to the broker. Default is 131072.
  192. Minimum is 4096 and max is any large value (representable by an int). When
  193. receiving packets, this sets an internal buffer size in FFmpeg. It should be
  194. equal to or greater than the size of the published packets to the broker. Otherwise
  195. the received message may be truncated causing decoding errors.
  196. </p>
  197. </dd>
  198. <dt><samp>connection_timeout</samp></dt>
  199. <dd><p>The timeout in seconds during the initial connection to the broker. The
  200. default value is rw_timeout, or 5 seconds if rw_timeout is not set.
  201. </p>
  202. </dd>
  203. <dt><samp>delivery_mode <var>mode</var></samp></dt>
  204. <dd><p>Sets the delivery mode of each message sent to broker.
  205. The following values are accepted:
  206. </p><dl compact="compact">
  207. <dt>&lsquo;<samp>persistent</samp>&rsquo;</dt>
  208. <dd><p>Delivery mode set to &quot;persistent&quot; (2). This is the default value.
  209. Messages may be written to the broker&rsquo;s disk depending on its setup.
  210. </p>
  211. </dd>
  212. <dt>&lsquo;<samp>non-persistent</samp>&rsquo;</dt>
  213. <dd><p>Delivery mode set to &quot;non-persistent&quot; (1).
  214. Messages will stay in broker&rsquo;s memory unless the broker is under memory
  215. pressure.
  216. </p>
  217. </dd>
  218. </dl>
  219. </dd>
  220. </dl>
  221. <a name="async"></a>
  222. <h3 class="section">3.2 async<span class="pull-right"><a class="anchor hidden-xs" href="#async" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-async" aria-hidden="true">TOC</a></span></h3>
  223. <p>Asynchronous data filling wrapper for input stream.
  224. </p>
  225. <p>Fill data in a background thread, to decouple I/O operation from demux thread.
  226. </p>
  227. <div class="example">
  228. <pre class="example">async:<var>URL</var>
  229. async:http://host/resource
  230. async:cache:http://host/resource
  231. </pre></div>
  232. <a name="bluray"></a>
  233. <h3 class="section">3.3 bluray<span class="pull-right"><a class="anchor hidden-xs" href="#bluray" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-bluray" aria-hidden="true">TOC</a></span></h3>
  234. <p>Read BluRay playlist.
  235. </p>
  236. <p>The accepted options are:
  237. </p><dl compact="compact">
  238. <dt><samp>angle</samp></dt>
  239. <dd><p>BluRay angle
  240. </p>
  241. </dd>
  242. <dt><samp>chapter</samp></dt>
  243. <dd><p>Start chapter (1...N)
  244. </p>
  245. </dd>
  246. <dt><samp>playlist</samp></dt>
  247. <dd><p>Playlist to read (BDMV/PLAYLIST/?????.mpls)
  248. </p>
  249. </dd>
  250. </dl>
  251. <p>Examples:
  252. </p>
  253. <p>Read longest playlist from BluRay mounted to /mnt/bluray:
  254. </p><div class="example">
  255. <pre class="example">bluray:/mnt/bluray
  256. </pre></div>
  257. <p>Read angle 2 of playlist 4 from BluRay mounted to /mnt/bluray, start from chapter 2:
  258. </p><div class="example">
  259. <pre class="example">-playlist 4 -angle 2 -chapter 2 bluray:/mnt/bluray
  260. </pre></div>
  261. <a name="cache"></a>
  262. <h3 class="section">3.4 cache<span class="pull-right"><a class="anchor hidden-xs" href="#cache" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-cache" aria-hidden="true">TOC</a></span></h3>
  263. <p>Caching wrapper for input stream.
  264. </p>
  265. <p>Cache the input stream to temporary file. It brings seeking capability to live streams.
  266. </p>
  267. <p>The accepted options are:
  268. </p><dl compact="compact">
  269. <dt><samp>read_ahead_limit</samp></dt>
  270. <dd><p>Amount in bytes that may be read ahead when seeking isn&rsquo;t supported. Range is -1 to INT_MAX.
  271. -1 for unlimited. Default is 65536.
  272. </p>
  273. </dd>
  274. </dl>
  275. <p>URL Syntax is
  276. </p><div class="example">
  277. <pre class="example">cache:<var>URL</var>
  278. </pre></div>
  279. <a name="concat"></a>
  280. <h3 class="section">3.5 concat<span class="pull-right"><a class="anchor hidden-xs" href="#concat" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-concat" aria-hidden="true">TOC</a></span></h3>
  281. <p>Physical concatenation protocol.
  282. </p>
  283. <p>Read and seek from many resources in sequence as if they were
  284. a unique resource.
  285. </p>
  286. <p>A URL accepted by this protocol has the syntax:
  287. </p><div class="example">
  288. <pre class="example">concat:<var>URL1</var>|<var>URL2</var>|...|<var>URLN</var>
  289. </pre></div>
  290. <p>where <var>URL1</var>, <var>URL2</var>, ..., <var>URLN</var> are the urls of the
  291. resource to be concatenated, each one possibly specifying a distinct
  292. protocol.
  293. </p>
  294. <p>For example to read a sequence of files <samp>split1.mpeg</samp>,
  295. <samp>split2.mpeg</samp>, <samp>split3.mpeg</samp> with <code>ffplay</code> use the
  296. command:
  297. </p><div class="example">
  298. <pre class="example">ffplay concat:split1.mpeg\|split2.mpeg\|split3.mpeg
  299. </pre></div>
  300. <p>Note that you may need to escape the character &quot;|&quot; which is special for
  301. many shells.
  302. </p>
  303. <a name="crypto"></a>
  304. <h3 class="section">3.6 crypto<span class="pull-right"><a class="anchor hidden-xs" href="#crypto" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-crypto" aria-hidden="true">TOC</a></span></h3>
  305. <p>AES-encrypted stream reading protocol.
  306. </p>
  307. <p>The accepted options are:
  308. </p><dl compact="compact">
  309. <dt><samp>key</samp></dt>
  310. <dd><p>Set the AES decryption key binary block from given hexadecimal representation.
  311. </p>
  312. </dd>
  313. <dt><samp>iv</samp></dt>
  314. <dd><p>Set the AES decryption initialization vector binary block from given hexadecimal representation.
  315. </p></dd>
  316. </dl>
  317. <p>Accepted URL formats:
  318. </p><div class="example">
  319. <pre class="example">crypto:<var>URL</var>
  320. crypto+<var>URL</var>
  321. </pre></div>
  322. <a name="data"></a>
  323. <h3 class="section">3.7 data<span class="pull-right"><a class="anchor hidden-xs" href="#data" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-data" aria-hidden="true">TOC</a></span></h3>
  324. <p>Data in-line in the URI. See <a href="http://en.wikipedia.org/wiki/Data_URI_scheme">http://en.wikipedia.org/wiki/Data_URI_scheme</a>.
  325. </p>
  326. <p>For example, to convert a GIF file given inline with <code>ffmpeg</code>:
  327. </p><div class="example">
  328. <pre class="example">ffmpeg -i &quot;data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=&quot; smiley.png
  329. </pre></div>
  330. <a name="file"></a>
  331. <h3 class="section">3.8 file<span class="pull-right"><a class="anchor hidden-xs" href="#file" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-file" aria-hidden="true">TOC</a></span></h3>
  332. <p>File access protocol.
  333. </p>
  334. <p>Read from or write to a file.
  335. </p>
  336. <p>A file URL can have the form:
  337. </p><div class="example">
  338. <pre class="example">file:<var>filename</var>
  339. </pre></div>
  340. <p>where <var>filename</var> is the path of the file to read.
  341. </p>
  342. <p>An URL that does not have a protocol prefix will be assumed to be a
  343. file URL. Depending on the build, an URL that looks like a Windows
  344. path with the drive letter at the beginning will also be assumed to be
  345. a file URL (usually not the case in builds for unix-like systems).
  346. </p>
  347. <p>For example to read from a file <samp>input.mpeg</samp> with <code>ffmpeg</code>
  348. use the command:
  349. </p><div class="example">
  350. <pre class="example">ffmpeg -i file:input.mpeg output.mpeg
  351. </pre></div>
  352. <p>This protocol accepts the following options:
  353. </p>
  354. <dl compact="compact">
  355. <dt><samp>truncate</samp></dt>
  356. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  357. truncating. Default value is 1.
  358. </p>
  359. </dd>
  360. <dt><samp>blocksize</samp></dt>
  361. <dd><p>Set I/O operation maximum block size, in bytes. Default value is
  362. <code>INT_MAX</code>, which results in not limiting the requested block size.
  363. Setting this value reasonably low improves user termination request reaction
  364. time, which is valuable for files on slow medium.
  365. </p>
  366. </dd>
  367. <dt><samp>follow</samp></dt>
  368. <dd><p>If set to 1, the protocol will retry reading at the end of the file, allowing
  369. reading files that still are being written. In order for this to terminate,
  370. you either need to use the rw_timeout option, or use the interrupt callback
  371. (for API users).
  372. </p>
  373. </dd>
  374. <dt><samp>seekable</samp></dt>
  375. <dd><p>Controls if seekability is advertised on the file. 0 means non-seekable, -1
  376. means auto (seekable for normal files, non-seekable for named pipes).
  377. </p>
  378. <p>Many demuxers handle seekable and non-seekable resources differently,
  379. overriding this might speed up opening certain files at the cost of losing some
  380. features (e.g. accurate seeking).
  381. </p></dd>
  382. </dl>
  383. <a name="ftp"></a>
  384. <h3 class="section">3.9 ftp<span class="pull-right"><a class="anchor hidden-xs" href="#ftp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ftp" aria-hidden="true">TOC</a></span></h3>
  385. <p>FTP (File Transfer Protocol).
  386. </p>
  387. <p>Read from or write to remote resources using FTP protocol.
  388. </p>
  389. <p>Following syntax is required.
  390. </p><div class="example">
  391. <pre class="example">ftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
  392. </pre></div>
  393. <p>This protocol accepts the following options.
  394. </p>
  395. <dl compact="compact">
  396. <dt><samp>timeout</samp></dt>
  397. <dd><p>Set timeout in microseconds of socket I/O operations used by the underlying low level
  398. operation. By default it is set to -1, which means that the timeout is
  399. not specified.
  400. </p>
  401. </dd>
  402. <dt><samp>ftp-user</samp></dt>
  403. <dd><p>Set a user to be used for authenticating to the FTP server. This is overridden by the
  404. user in the FTP URL.
  405. </p>
  406. </dd>
  407. <dt><samp>ftp-password</samp></dt>
  408. <dd><p>Set a password to be used for authenticating to the FTP server. This is overridden by
  409. the password in the FTP URL, or by <samp>ftp-anonymous-password</samp> if no user is set.
  410. </p>
  411. </dd>
  412. <dt><samp>ftp-anonymous-password</samp></dt>
  413. <dd><p>Password used when login as anonymous user. Typically an e-mail address
  414. should be used.
  415. </p>
  416. </dd>
  417. <dt><samp>ftp-write-seekable</samp></dt>
  418. <dd><p>Control seekability of connection during encoding. If set to 1 the
  419. resource is supposed to be seekable, if set to 0 it is assumed not
  420. to be seekable. Default value is 0.
  421. </p></dd>
  422. </dl>
  423. <p>NOTE: Protocol can be used as output, but it is recommended to not do
  424. it, unless special care is taken (tests, customized server configuration
  425. etc.). Different FTP servers behave in different way during seek
  426. operation. ff* tools may produce incomplete content due to server limitations.
  427. </p>
  428. <a name="gopher"></a>
  429. <h3 class="section">3.10 gopher<span class="pull-right"><a class="anchor hidden-xs" href="#gopher" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-gopher" aria-hidden="true">TOC</a></span></h3>
  430. <p>Gopher protocol.
  431. </p>
  432. <a name="gophers"></a>
  433. <h3 class="section">3.11 gophers<span class="pull-right"><a class="anchor hidden-xs" href="#gophers" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-gophers" aria-hidden="true">TOC</a></span></h3>
  434. <p>Gophers protocol.
  435. </p>
  436. <p>The Gopher protocol with TLS encapsulation.
  437. </p>
  438. <a name="hls"></a>
  439. <h3 class="section">3.12 hls<span class="pull-right"><a class="anchor hidden-xs" href="#hls" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-hls" aria-hidden="true">TOC</a></span></h3>
  440. <p>Read Apple HTTP Live Streaming compliant segmented stream as
  441. a uniform one. The M3U8 playlists describing the segments can be
  442. remote HTTP resources or local files, accessed using the standard
  443. file protocol.
  444. The nested protocol is declared by specifying
  445. &quot;+<var>proto</var>&quot; after the hls URI scheme name, where <var>proto</var>
  446. is either &quot;file&quot; or &quot;http&quot;.
  447. </p>
  448. <div class="example">
  449. <pre class="example">hls+http://host/path/to/remote/resource.m3u8
  450. hls+file://path/to/local/resource.m3u8
  451. </pre></div>
  452. <p>Using this protocol is discouraged - the hls demuxer should work
  453. just as well (if not, please report the issues) and is more complete.
  454. To use the hls demuxer instead, simply use the direct URLs to the
  455. m3u8 files.
  456. </p>
  457. <a name="http"></a>
  458. <h3 class="section">3.13 http<span class="pull-right"><a class="anchor hidden-xs" href="#http" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-http" aria-hidden="true">TOC</a></span></h3>
  459. <p>HTTP (Hyper Text Transfer Protocol).
  460. </p>
  461. <p>This protocol accepts the following options:
  462. </p>
  463. <dl compact="compact">
  464. <dt><samp>seekable</samp></dt>
  465. <dd><p>Control seekability of connection. If set to 1 the resource is
  466. supposed to be seekable, if set to 0 it is assumed not to be seekable,
  467. if set to -1 it will try to autodetect if it is seekable. Default
  468. value is -1.
  469. </p>
  470. </dd>
  471. <dt><samp>chunked_post</samp></dt>
  472. <dd><p>If set to 1 use chunked Transfer-Encoding for posts, default is 1.
  473. </p>
  474. </dd>
  475. <dt><samp>content_type</samp></dt>
  476. <dd><p>Set a specific content type for the POST messages or for listen mode.
  477. </p>
  478. </dd>
  479. <dt><samp>http_proxy</samp></dt>
  480. <dd><p>set HTTP proxy to tunnel through e.g. http://example.com:1234
  481. </p>
  482. </dd>
  483. <dt><samp>headers</samp></dt>
  484. <dd><p>Set custom HTTP headers, can override built in default headers. The
  485. value must be a string encoding the headers.
  486. </p>
  487. </dd>
  488. <dt><samp>multiple_requests</samp></dt>
  489. <dd><p>Use persistent connections if set to 1, default is 0.
  490. </p>
  491. </dd>
  492. <dt><samp>post_data</samp></dt>
  493. <dd><p>Set custom HTTP post data.
  494. </p>
  495. </dd>
  496. <dt><samp>referer</samp></dt>
  497. <dd><p>Set the Referer header. Include &rsquo;Referer: URL&rsquo; header in HTTP request.
  498. </p>
  499. </dd>
  500. <dt><samp>user_agent</samp></dt>
  501. <dd><p>Override the User-Agent header. If not specified the protocol will use a
  502. string describing the libavformat build. (&quot;Lavf/&lt;version&gt;&quot;)
  503. </p>
  504. </dd>
  505. <dt><samp>user-agent</samp></dt>
  506. <dd><p>This is a deprecated option, you can use user_agent instead it.
  507. </p>
  508. </dd>
  509. <dt><samp>reconnect_at_eof</samp></dt>
  510. <dd><p>If set then eof is treated like an error and causes reconnection, this is useful
  511. for live / endless streams.
  512. </p>
  513. </dd>
  514. <dt><samp>reconnect_streamed</samp></dt>
  515. <dd><p>If set then even streamed/non seekable streams will be reconnected on errors.
  516. </p>
  517. </dd>
  518. <dt><samp>reconnect_on_network_error</samp></dt>
  519. <dd><p>Reconnect automatically in case of TCP/TLS errors during connect.
  520. </p>
  521. </dd>
  522. <dt><samp>reconnect_on_http_error</samp></dt>
  523. <dd><p>A comma separated list of HTTP status codes to reconnect on. The list can
  524. include specific status codes (e.g. &rsquo;503&rsquo;) or the strings &rsquo;4xx&rsquo; / &rsquo;5xx&rsquo;.
  525. </p>
  526. </dd>
  527. <dt><samp>reconnect_delay_max</samp></dt>
  528. <dd><p>Sets the maximum delay in seconds after which to give up reconnecting
  529. </p>
  530. </dd>
  531. <dt><samp>mime_type</samp></dt>
  532. <dd><p>Export the MIME type.
  533. </p>
  534. </dd>
  535. <dt><samp>http_version</samp></dt>
  536. <dd><p>Exports the HTTP response version number. Usually &quot;1.0&quot; or &quot;1.1&quot;.
  537. </p>
  538. </dd>
  539. <dt><samp>icy</samp></dt>
  540. <dd><p>If set to 1 request ICY (SHOUTcast) metadata from the server. If the server
  541. supports this, the metadata has to be retrieved by the application by reading
  542. the <samp>icy_metadata_headers</samp> and <samp>icy_metadata_packet</samp> options.
  543. The default is 1.
  544. </p>
  545. </dd>
  546. <dt><samp>icy_metadata_headers</samp></dt>
  547. <dd><p>If the server supports ICY metadata, this contains the ICY-specific HTTP reply
  548. headers, separated by newline characters.
  549. </p>
  550. </dd>
  551. <dt><samp>icy_metadata_packet</samp></dt>
  552. <dd><p>If the server supports ICY metadata, and <samp>icy</samp> was set to 1, this
  553. contains the last non-empty metadata packet sent by the server. It should be
  554. polled in regular intervals by applications interested in mid-stream metadata
  555. updates.
  556. </p>
  557. </dd>
  558. <dt><samp>cookies</samp></dt>
  559. <dd><p>Set the cookies to be sent in future requests. The format of each cookie is the
  560. same as the value of a Set-Cookie HTTP response field. Multiple cookies can be
  561. delimited by a newline character.
  562. </p>
  563. </dd>
  564. <dt><samp>offset</samp></dt>
  565. <dd><p>Set initial byte offset.
  566. </p>
  567. </dd>
  568. <dt><samp>end_offset</samp></dt>
  569. <dd><p>Try to limit the request to bytes preceding this offset.
  570. </p>
  571. </dd>
  572. <dt><samp>method</samp></dt>
  573. <dd><p>When used as a client option it sets the HTTP method for the request.
  574. </p>
  575. <p>When used as a server option it sets the HTTP method that is going to be
  576. expected from the client(s).
  577. If the expected and the received HTTP method do not match the client will
  578. be given a Bad Request response.
  579. When unset the HTTP method is not checked for now. This will be replaced by
  580. autodetection in the future.
  581. </p>
  582. </dd>
  583. <dt><samp>listen</samp></dt>
  584. <dd><p>If set to 1 enables experimental HTTP server. This can be used to send data when
  585. used as an output option, or read data from a client with HTTP POST when used as
  586. an input option.
  587. If set to 2 enables experimental multi-client HTTP server. This is not yet implemented
  588. in ffmpeg.c and thus must not be used as a command line option.
  589. </p><div class="example">
  590. <pre class="example"># Server side (sending):
  591. ffmpeg -i somefile.ogg -c copy -listen 1 -f ogg http://<var>server</var>:<var>port</var>
  592. # Client side (receiving):
  593. ffmpeg -i http://<var>server</var>:<var>port</var> -c copy somefile.ogg
  594. # Client can also be done with wget:
  595. wget http://<var>server</var>:<var>port</var> -O somefile.ogg
  596. # Server side (receiving):
  597. ffmpeg -listen 1 -i http://<var>server</var>:<var>port</var> -c copy somefile.ogg
  598. # Client side (sending):
  599. ffmpeg -i somefile.ogg -chunked_post 0 -c copy -f ogg http://<var>server</var>:<var>port</var>
  600. # Client can also be done with wget:
  601. wget --post-file=somefile.ogg http://<var>server</var>:<var>port</var>
  602. </pre></div>
  603. </dd>
  604. <dt><samp>send_expect_100</samp></dt>
  605. <dd><p>Send an Expect: 100-continue header for POST. If set to 1 it will send, if set
  606. to 0 it won&rsquo;t, if set to -1 it will try to send if it is applicable. Default
  607. value is -1.
  608. </p>
  609. </dd>
  610. <dt><samp>auth_type</samp></dt>
  611. <dd>
  612. <p>Set HTTP authentication type. No option for Digest, since this method requires
  613. getting nonce parameters from the server first and can&rsquo;t be used straight away like
  614. Basic.
  615. </p>
  616. <dl compact="compact">
  617. <dt><samp>none</samp></dt>
  618. <dd><p>Choose the HTTP authentication type automatically. This is the default.
  619. </p></dd>
  620. <dt><samp>basic</samp></dt>
  621. <dd>
  622. <p>Choose the HTTP basic authentication.
  623. </p>
  624. <p>Basic authentication sends a Base64-encoded string that contains a user name and password
  625. for the client. Base64 is not a form of encryption and should be considered the same as
  626. sending the user name and password in clear text (Base64 is a reversible encoding).
  627. If a resource needs to be protected, strongly consider using an authentication scheme
  628. other than basic authentication. HTTPS/TLS should be used with basic authentication.
  629. Without these additional security enhancements, basic authentication should not be used
  630. to protect sensitive or valuable information.
  631. </p></dd>
  632. </dl>
  633. </dd>
  634. </dl>
  635. <a name="HTTP-Cookies"></a>
  636. <h4 class="subsection">3.13.1 HTTP Cookies<span class="pull-right"><a class="anchor hidden-xs" href="#HTTP-Cookies" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HTTP-Cookies" aria-hidden="true">TOC</a></span></h4>
  637. <p>Some HTTP requests will be denied unless cookie values are passed in with the
  638. request. The <samp>cookies</samp> option allows these cookies to be specified. At
  639. the very least, each cookie must specify a value along with a path and domain.
  640. HTTP requests that match both the domain and path will automatically include the
  641. cookie value in the HTTP Cookie header field. Multiple cookies can be delimited
  642. by a newline.
  643. </p>
  644. <p>The required syntax to play a stream specifying a cookie is:
  645. </p><div class="example">
  646. <pre class="example">ffplay -cookies &quot;nlqptid=nltid=tsn; path=/; domain=somedomain.com;&quot; http://somedomain.com/somestream.m3u8
  647. </pre></div>
  648. <a name="Icecast"></a>
  649. <h3 class="section">3.14 Icecast<span class="pull-right"><a class="anchor hidden-xs" href="#Icecast" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Icecast" aria-hidden="true">TOC</a></span></h3>
  650. <p>Icecast protocol (stream to Icecast servers)
  651. </p>
  652. <p>This protocol accepts the following options:
  653. </p>
  654. <dl compact="compact">
  655. <dt><samp>ice_genre</samp></dt>
  656. <dd><p>Set the stream genre.
  657. </p>
  658. </dd>
  659. <dt><samp>ice_name</samp></dt>
  660. <dd><p>Set the stream name.
  661. </p>
  662. </dd>
  663. <dt><samp>ice_description</samp></dt>
  664. <dd><p>Set the stream description.
  665. </p>
  666. </dd>
  667. <dt><samp>ice_url</samp></dt>
  668. <dd><p>Set the stream website URL.
  669. </p>
  670. </dd>
  671. <dt><samp>ice_public</samp></dt>
  672. <dd><p>Set if the stream should be public.
  673. The default is 0 (not public).
  674. </p>
  675. </dd>
  676. <dt><samp>user_agent</samp></dt>
  677. <dd><p>Override the User-Agent header. If not specified a string of the form
  678. &quot;Lavf/&lt;version&gt;&quot; will be used.
  679. </p>
  680. </dd>
  681. <dt><samp>password</samp></dt>
  682. <dd><p>Set the Icecast mountpoint password.
  683. </p>
  684. </dd>
  685. <dt><samp>content_type</samp></dt>
  686. <dd><p>Set the stream content type. This must be set if it is different from
  687. audio/mpeg.
  688. </p>
  689. </dd>
  690. <dt><samp>legacy_icecast</samp></dt>
  691. <dd><p>This enables support for Icecast versions &lt; 2.4.0, that do not support the
  692. HTTP PUT method but the SOURCE method.
  693. </p>
  694. </dd>
  695. <dt><samp>tls</samp></dt>
  696. <dd><p>Establish a TLS (HTTPS) connection to Icecast.
  697. </p>
  698. </dd>
  699. </dl>
  700. <div class="example">
  701. <pre class="example">icecast://[<var>username</var>[:<var>password</var>]@]<var>server</var>:<var>port</var>/<var>mountpoint</var>
  702. </pre></div>
  703. <a name="mmst"></a>
  704. <h3 class="section">3.15 mmst<span class="pull-right"><a class="anchor hidden-xs" href="#mmst" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mmst" aria-hidden="true">TOC</a></span></h3>
  705. <p>MMS (Microsoft Media Server) protocol over TCP.
  706. </p>
  707. <a name="mmsh"></a>
  708. <h3 class="section">3.16 mmsh<span class="pull-right"><a class="anchor hidden-xs" href="#mmsh" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mmsh" aria-hidden="true">TOC</a></span></h3>
  709. <p>MMS (Microsoft Media Server) protocol over HTTP.
  710. </p>
  711. <p>The required syntax is:
  712. </p><div class="example">
  713. <pre class="example">mmsh://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>]
  714. </pre></div>
  715. <a name="md5"></a>
  716. <h3 class="section">3.17 md5<span class="pull-right"><a class="anchor hidden-xs" href="#md5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-md5" aria-hidden="true">TOC</a></span></h3>
  717. <p>MD5 output protocol.
  718. </p>
  719. <p>Computes the MD5 hash of the data to be written, and on close writes
  720. this to the designated output or stdout if none is specified. It can
  721. be used to test muxers without writing an actual file.
  722. </p>
  723. <p>Some examples follow.
  724. </p><div class="example">
  725. <pre class="example"># Write the MD5 hash of the encoded AVI file to the file output.avi.md5.
  726. ffmpeg -i input.flv -f avi -y md5:output.avi.md5
  727. # Write the MD5 hash of the encoded AVI file to stdout.
  728. ffmpeg -i input.flv -f avi -y md5:
  729. </pre></div>
  730. <p>Note that some formats (typically MOV) require the output protocol to
  731. be seekable, so they will fail with the MD5 output protocol.
  732. </p>
  733. <a name="pipe"></a>
  734. <h3 class="section">3.18 pipe<span class="pull-right"><a class="anchor hidden-xs" href="#pipe" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-pipe" aria-hidden="true">TOC</a></span></h3>
  735. <p>UNIX pipe access protocol.
  736. </p>
  737. <p>Read and write from UNIX pipes.
  738. </p>
  739. <p>The accepted syntax is:
  740. </p><div class="example">
  741. <pre class="example">pipe:[<var>number</var>]
  742. </pre></div>
  743. <p><var>number</var> is the number corresponding to the file descriptor of the
  744. pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr). If <var>number</var>
  745. is not specified, by default the stdout file descriptor will be used
  746. for writing, stdin for reading.
  747. </p>
  748. <p>For example to read from stdin with <code>ffmpeg</code>:
  749. </p><div class="example">
  750. <pre class="example">cat test.wav | ffmpeg -i pipe:0
  751. # ...this is the same as...
  752. cat test.wav | ffmpeg -i pipe:
  753. </pre></div>
  754. <p>For writing to stdout with <code>ffmpeg</code>:
  755. </p><div class="example">
  756. <pre class="example">ffmpeg -i test.wav -f avi pipe:1 | cat &gt; test.avi
  757. # ...this is the same as...
  758. ffmpeg -i test.wav -f avi pipe: | cat &gt; test.avi
  759. </pre></div>
  760. <p>This protocol accepts the following options:
  761. </p>
  762. <dl compact="compact">
  763. <dt><samp>blocksize</samp></dt>
  764. <dd><p>Set I/O operation maximum block size, in bytes. Default value is
  765. <code>INT_MAX</code>, which results in not limiting the requested block size.
  766. Setting this value reasonably low improves user termination request reaction
  767. time, which is valuable if data transmission is slow.
  768. </p></dd>
  769. </dl>
  770. <p>Note that some formats (typically MOV), require the output protocol to
  771. be seekable, so they will fail with the pipe output protocol.
  772. </p>
  773. <a name="prompeg"></a>
  774. <h3 class="section">3.19 prompeg<span class="pull-right"><a class="anchor hidden-xs" href="#prompeg" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-prompeg" aria-hidden="true">TOC</a></span></h3>
  775. <p>Pro-MPEG Code of Practice #3 Release 2 FEC protocol.
  776. </p>
  777. <p>The Pro-MPEG CoP#3 FEC is a 2D parity-check forward error correction mechanism
  778. for MPEG-2 Transport Streams sent over RTP.
  779. </p>
  780. <p>This protocol must be used in conjunction with the <code>rtp_mpegts</code> muxer and
  781. the <code>rtp</code> protocol.
  782. </p>
  783. <p>The required syntax is:
  784. </p><div class="example">
  785. <pre class="example">-f rtp_mpegts -fec prompeg=<var>option</var>=<var>val</var>... rtp://<var>hostname</var>:<var>port</var>
  786. </pre></div>
  787. <p>The destination UDP ports are <code>port + 2</code> for the column FEC stream
  788. and <code>port + 4</code> for the row FEC stream.
  789. </p>
  790. <p>This protocol accepts the following options:
  791. </p><dl compact="compact">
  792. <dt><samp>l=<var>n</var></samp></dt>
  793. <dd><p>The number of columns (4-20, LxD &lt;= 100)
  794. </p>
  795. </dd>
  796. <dt><samp>d=<var>n</var></samp></dt>
  797. <dd><p>The number of rows (4-20, LxD &lt;= 100)
  798. </p>
  799. </dd>
  800. </dl>
  801. <p>Example usage:
  802. </p>
  803. <div class="example">
  804. <pre class="example">-f rtp_mpegts -fec prompeg=l=8:d=4 rtp://<var>hostname</var>:<var>port</var>
  805. </pre></div>
  806. <a name="rist"></a>
  807. <h3 class="section">3.20 rist<span class="pull-right"><a class="anchor hidden-xs" href="#rist" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rist" aria-hidden="true">TOC</a></span></h3>
  808. <p>Reliable Internet Streaming Transport protocol
  809. </p>
  810. <p>The accepted options are:
  811. </p><dl compact="compact">
  812. <dt><samp>rist_profile</samp></dt>
  813. <dd><p>Supported values:
  814. </p><dl compact="compact">
  815. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  816. <dt>&lsquo;<samp>main</samp>&rsquo;</dt>
  817. <dd><p>This one is default.
  818. </p></dd>
  819. <dt>&lsquo;<samp>advanced</samp>&rsquo;</dt>
  820. </dl>
  821. </dd>
  822. <dt><samp>buffer_size</samp></dt>
  823. <dd><p>Set internal RIST buffer size in milliseconds for retransmission of data.
  824. Default value is 0 which means the librist default (1 sec). Maximum value is 30
  825. seconds.
  826. </p>
  827. </dd>
  828. <dt><samp>pkt_size</samp></dt>
  829. <dd><p>Set maximum packet size for sending data. 1316 by default.
  830. </p>
  831. </dd>
  832. <dt><samp>log_level</samp></dt>
  833. <dd><p>Set loglevel for RIST logging messages. You only need to set this if you
  834. explicitly want to enable debug level messages or packet loss simulation,
  835. otherwise the regular loglevel is respected.
  836. </p>
  837. </dd>
  838. <dt><samp>secret</samp></dt>
  839. <dd><p>Set override of encryption secret, by default is unset.
  840. </p>
  841. </dd>
  842. <dt><samp>encryption</samp></dt>
  843. <dd><p>Set encryption type, by default is disabled.
  844. Acceptable values are 128 and 256.
  845. </p></dd>
  846. </dl>
  847. <a name="rtmp"></a>
  848. <h3 class="section">3.21 rtmp<span class="pull-right"><a class="anchor hidden-xs" href="#rtmp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtmp" aria-hidden="true">TOC</a></span></h3>
  849. <p>Real-Time Messaging Protocol.
  850. </p>
  851. <p>The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
  852. content across a TCP/IP network.
  853. </p>
  854. <p>The required syntax is:
  855. </p><div class="example">
  856. <pre class="example">rtmp://[<var>username</var>:<var>password</var>@]<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>instance</var>][/<var>playpath</var>]
  857. </pre></div>
  858. <p>The accepted parameters are:
  859. </p><dl compact="compact">
  860. <dt><samp>username</samp></dt>
  861. <dd><p>An optional username (mostly for publishing).
  862. </p>
  863. </dd>
  864. <dt><samp>password</samp></dt>
  865. <dd><p>An optional password (mostly for publishing).
  866. </p>
  867. </dd>
  868. <dt><samp>server</samp></dt>
  869. <dd><p>The address of the RTMP server.
  870. </p>
  871. </dd>
  872. <dt><samp>port</samp></dt>
  873. <dd><p>The number of the TCP port to use (by default is 1935).
  874. </p>
  875. </dd>
  876. <dt><samp>app</samp></dt>
  877. <dd><p>It is the name of the application to access. It usually corresponds to
  878. the path where the application is installed on the RTMP server
  879. (e.g. <samp>/ondemand/</samp>, <samp>/flash/live/</samp>, etc.). You can override
  880. the value parsed from the URI through the <code>rtmp_app</code> option, too.
  881. </p>
  882. </dd>
  883. <dt><samp>playpath</samp></dt>
  884. <dd><p>It is the path or name of the resource to play with reference to the
  885. application specified in <var>app</var>, may be prefixed by &quot;mp4:&quot;. You
  886. can override the value parsed from the URI through the <code>rtmp_playpath</code>
  887. option, too.
  888. </p>
  889. </dd>
  890. <dt><samp>listen</samp></dt>
  891. <dd><p>Act as a server, listening for an incoming connection.
  892. </p>
  893. </dd>
  894. <dt><samp>timeout</samp></dt>
  895. <dd><p>Maximum time to wait for the incoming connection. Implies listen.
  896. </p></dd>
  897. </dl>
  898. <p>Additionally, the following parameters can be set via command line options
  899. (or in code via <code>AVOption</code>s):
  900. </p><dl compact="compact">
  901. <dt><samp>rtmp_app</samp></dt>
  902. <dd><p>Name of application to connect on the RTMP server. This option
  903. overrides the parameter specified in the URI.
  904. </p>
  905. </dd>
  906. <dt><samp>rtmp_buffer</samp></dt>
  907. <dd><p>Set the client buffer time in milliseconds. The default is 3000.
  908. </p>
  909. </dd>
  910. <dt><samp>rtmp_conn</samp></dt>
  911. <dd><p>Extra arbitrary AMF connection parameters, parsed from a string,
  912. e.g. like <code>B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0</code>.
  913. Each value is prefixed by a single character denoting the type,
  914. B for Boolean, N for number, S for string, O for object, or Z for null,
  915. followed by a colon. For Booleans the data must be either 0 or 1 for
  916. FALSE or TRUE, respectively. Likewise for Objects the data must be 0 or
  917. 1 to end or begin an object, respectively. Data items in subobjects may
  918. be named, by prefixing the type with &rsquo;N&rsquo; and specifying the name before
  919. the value (i.e. <code>NB:myFlag:1</code>). This option may be used multiple
  920. times to construct arbitrary AMF sequences.
  921. </p>
  922. </dd>
  923. <dt><samp>rtmp_flashver</samp></dt>
  924. <dd><p>Version of the Flash plugin used to run the SWF player. The default
  925. is LNX 9,0,124,2. (When publishing, the default is FMLE/3.0 (compatible;
  926. &lt;libavformat version&gt;).)
  927. </p>
  928. </dd>
  929. <dt><samp>rtmp_flush_interval</samp></dt>
  930. <dd><p>Number of packets flushed in the same request (RTMPT only). The default
  931. is 10.
  932. </p>
  933. </dd>
  934. <dt><samp>rtmp_live</samp></dt>
  935. <dd><p>Specify that the media is a live stream. No resuming or seeking in
  936. live streams is possible. The default value is <code>any</code>, which means the
  937. subscriber first tries to play the live stream specified in the
  938. playpath. If a live stream of that name is not found, it plays the
  939. recorded stream. The other possible values are <code>live</code> and
  940. <code>recorded</code>.
  941. </p>
  942. </dd>
  943. <dt><samp>rtmp_pageurl</samp></dt>
  944. <dd><p>URL of the web page in which the media was embedded. By default no
  945. value will be sent.
  946. </p>
  947. </dd>
  948. <dt><samp>rtmp_playpath</samp></dt>
  949. <dd><p>Stream identifier to play or to publish. This option overrides the
  950. parameter specified in the URI.
  951. </p>
  952. </dd>
  953. <dt><samp>rtmp_subscribe</samp></dt>
  954. <dd><p>Name of live stream to subscribe to. By default no value will be sent.
  955. It is only sent if the option is specified or if rtmp_live
  956. is set to live.
  957. </p>
  958. </dd>
  959. <dt><samp>rtmp_swfhash</samp></dt>
  960. <dd><p>SHA256 hash of the decompressed SWF file (32 bytes).
  961. </p>
  962. </dd>
  963. <dt><samp>rtmp_swfsize</samp></dt>
  964. <dd><p>Size of the decompressed SWF file, required for SWFVerification.
  965. </p>
  966. </dd>
  967. <dt><samp>rtmp_swfurl</samp></dt>
  968. <dd><p>URL of the SWF player for the media. By default no value will be sent.
  969. </p>
  970. </dd>
  971. <dt><samp>rtmp_swfverify</samp></dt>
  972. <dd><p>URL to player swf file, compute hash/size automatically.
  973. </p>
  974. </dd>
  975. <dt><samp>rtmp_tcurl</samp></dt>
  976. <dd><p>URL of the target stream. Defaults to proto://host[:port]/app.
  977. </p>
  978. </dd>
  979. </dl>
  980. <p>For example to read with <code>ffplay</code> a multimedia resource named
  981. &quot;sample&quot; from the application &quot;vod&quot; from an RTMP server &quot;myserver&quot;:
  982. </p><div class="example">
  983. <pre class="example">ffplay rtmp://myserver/vod/sample
  984. </pre></div>
  985. <p>To publish to a password protected server, passing the playpath and
  986. app names separately:
  987. </p><div class="example">
  988. <pre class="example">ffmpeg -re -i &lt;input&gt; -f flv -rtmp_playpath some/long/path -rtmp_app long/app/name rtmp://username:password@myserver/
  989. </pre></div>
  990. <a name="rtmpe"></a>
  991. <h3 class="section">3.22 rtmpe<span class="pull-right"><a class="anchor hidden-xs" href="#rtmpe" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtmpe" aria-hidden="true">TOC</a></span></h3>
  992. <p>Encrypted Real-Time Messaging Protocol.
  993. </p>
  994. <p>The Encrypted Real-Time Messaging Protocol (RTMPE) is used for
  995. streaming multimedia content within standard cryptographic primitives,
  996. consisting of Diffie-Hellman key exchange and HMACSHA256, generating
  997. a pair of RC4 keys.
  998. </p>
  999. <a name="rtmps"></a>
  1000. <h3 class="section">3.23 rtmps<span class="pull-right"><a class="anchor hidden-xs" href="#rtmps" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtmps" aria-hidden="true">TOC</a></span></h3>
  1001. <p>Real-Time Messaging Protocol over a secure SSL connection.
  1002. </p>
  1003. <p>The Real-Time Messaging Protocol (RTMPS) is used for streaming
  1004. multimedia content across an encrypted connection.
  1005. </p>
  1006. <a name="rtmpt"></a>
  1007. <h3 class="section">3.24 rtmpt<span class="pull-right"><a class="anchor hidden-xs" href="#rtmpt" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtmpt" aria-hidden="true">TOC</a></span></h3>
  1008. <p>Real-Time Messaging Protocol tunneled through HTTP.
  1009. </p>
  1010. <p>The Real-Time Messaging Protocol tunneled through HTTP (RTMPT) is used
  1011. for streaming multimedia content within HTTP requests to traverse
  1012. firewalls.
  1013. </p>
  1014. <a name="rtmpte"></a>
  1015. <h3 class="section">3.25 rtmpte<span class="pull-right"><a class="anchor hidden-xs" href="#rtmpte" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtmpte" aria-hidden="true">TOC</a></span></h3>
  1016. <p>Encrypted Real-Time Messaging Protocol tunneled through HTTP.
  1017. </p>
  1018. <p>The Encrypted Real-Time Messaging Protocol tunneled through HTTP (RTMPTE)
  1019. is used for streaming multimedia content within HTTP requests to traverse
  1020. firewalls.
  1021. </p>
  1022. <a name="rtmpts"></a>
  1023. <h3 class="section">3.26 rtmpts<span class="pull-right"><a class="anchor hidden-xs" href="#rtmpts" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtmpts" aria-hidden="true">TOC</a></span></h3>
  1024. <p>Real-Time Messaging Protocol tunneled through HTTPS.
  1025. </p>
  1026. <p>The Real-Time Messaging Protocol tunneled through HTTPS (RTMPTS) is used
  1027. for streaming multimedia content within HTTPS requests to traverse
  1028. firewalls.
  1029. </p>
  1030. <a name="libsmbclient"></a>
  1031. <h3 class="section">3.27 libsmbclient<span class="pull-right"><a class="anchor hidden-xs" href="#libsmbclient" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libsmbclient" aria-hidden="true">TOC</a></span></h3>
  1032. <p>libsmbclient permits one to manipulate CIFS/SMB network resources.
  1033. </p>
  1034. <p>Following syntax is required.
  1035. </p>
  1036. <div class="example">
  1037. <pre class="example">smb://[[domain:]user[:password@]]server[/share[/path[/file]]]
  1038. </pre></div>
  1039. <p>This protocol accepts the following options.
  1040. </p>
  1041. <dl compact="compact">
  1042. <dt><samp>timeout</samp></dt>
  1043. <dd><p>Set timeout in milliseconds of socket I/O operations used by the underlying
  1044. low level operation. By default it is set to -1, which means that the timeout
  1045. is not specified.
  1046. </p>
  1047. </dd>
  1048. <dt><samp>truncate</samp></dt>
  1049. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  1050. truncating. Default value is 1.
  1051. </p>
  1052. </dd>
  1053. <dt><samp>workgroup</samp></dt>
  1054. <dd><p>Set the workgroup used for making connections. By default workgroup is not specified.
  1055. </p>
  1056. </dd>
  1057. </dl>
  1058. <p>For more information see: <a href="http://www.samba.org/">http://www.samba.org/</a>.
  1059. </p>
  1060. <a name="libssh"></a>
  1061. <h3 class="section">3.28 libssh<span class="pull-right"><a class="anchor hidden-xs" href="#libssh" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libssh" aria-hidden="true">TOC</a></span></h3>
  1062. <p>Secure File Transfer Protocol via libssh
  1063. </p>
  1064. <p>Read from or write to remote resources using SFTP protocol.
  1065. </p>
  1066. <p>Following syntax is required.
  1067. </p>
  1068. <div class="example">
  1069. <pre class="example">sftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
  1070. </pre></div>
  1071. <p>This protocol accepts the following options.
  1072. </p>
  1073. <dl compact="compact">
  1074. <dt><samp>timeout</samp></dt>
  1075. <dd><p>Set timeout of socket I/O operations used by the underlying low level
  1076. operation. By default it is set to -1, which means that the timeout
  1077. is not specified.
  1078. </p>
  1079. </dd>
  1080. <dt><samp>truncate</samp></dt>
  1081. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  1082. truncating. Default value is 1.
  1083. </p>
  1084. </dd>
  1085. <dt><samp>private_key</samp></dt>
  1086. <dd><p>Specify the path of the file containing private key to use during authorization.
  1087. By default libssh searches for keys in the <samp>~/.ssh/</samp> directory.
  1088. </p>
  1089. </dd>
  1090. </dl>
  1091. <p>Example: Play a file stored on remote server.
  1092. </p>
  1093. <div class="example">
  1094. <pre class="example">ffplay sftp://user:password@server_address:22/home/user/resource.mpeg
  1095. </pre></div>
  1096. <a name="librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte"></a>
  1097. <h3 class="section">3.29 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte<span class="pull-right"><a class="anchor hidden-xs" href="#librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte" aria-hidden="true">TOC</a></span></h3>
  1098. <p>Real-Time Messaging Protocol and its variants supported through
  1099. librtmp.
  1100. </p>
  1101. <p>Requires the presence of the librtmp headers and library during
  1102. configuration. You need to explicitly configure the build with
  1103. &quot;&ndash;enable-librtmp&quot;. If enabled this will replace the native RTMP
  1104. protocol.
  1105. </p>
  1106. <p>This protocol provides most client functions and a few server
  1107. functions needed to support RTMP, RTMP tunneled in HTTP (RTMPT),
  1108. encrypted RTMP (RTMPE), RTMP over SSL/TLS (RTMPS) and tunneled
  1109. variants of these encrypted types (RTMPTE, RTMPTS).
  1110. </p>
  1111. <p>The required syntax is:
  1112. </p><div class="example">
  1113. <pre class="example"><var>rtmp_proto</var>://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>] <var>options</var>
  1114. </pre></div>
  1115. <p>where <var>rtmp_proto</var> is one of the strings &quot;rtmp&quot;, &quot;rtmpt&quot;, &quot;rtmpe&quot;,
  1116. &quot;rtmps&quot;, &quot;rtmpte&quot;, &quot;rtmpts&quot; corresponding to each RTMP variant, and
  1117. <var>server</var>, <var>port</var>, <var>app</var> and <var>playpath</var> have the same
  1118. meaning as specified for the RTMP native protocol.
  1119. <var>options</var> contains a list of space-separated options of the form
  1120. <var>key</var>=<var>val</var>.
  1121. </p>
  1122. <p>See the librtmp manual page (man 3 librtmp) for more information.
  1123. </p>
  1124. <p>For example, to stream a file in real-time to an RTMP server using
  1125. <code>ffmpeg</code>:
  1126. </p><div class="example">
  1127. <pre class="example">ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
  1128. </pre></div>
  1129. <p>To play the same stream using <code>ffplay</code>:
  1130. </p><div class="example">
  1131. <pre class="example">ffplay &quot;rtmp://myserver/live/mystream live=1&quot;
  1132. </pre></div>
  1133. <a name="rtp"></a>
  1134. <h3 class="section">3.30 rtp<span class="pull-right"><a class="anchor hidden-xs" href="#rtp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtp" aria-hidden="true">TOC</a></span></h3>
  1135. <p>Real-time Transport Protocol.
  1136. </p>
  1137. <p>The required syntax for an RTP URL is:
  1138. rtp://<var>hostname</var>[:<var>port</var>][?<var>option</var>=<var>val</var>...]
  1139. </p>
  1140. <p><var>port</var> specifies the RTP port to use.
  1141. </p>
  1142. <p>The following URL options are supported:
  1143. </p>
  1144. <dl compact="compact">
  1145. <dt><samp>ttl=<var>n</var></samp></dt>
  1146. <dd><p>Set the TTL (Time-To-Live) value (for multicast only).
  1147. </p>
  1148. </dd>
  1149. <dt><samp>rtcpport=<var>n</var></samp></dt>
  1150. <dd><p>Set the remote RTCP port to <var>n</var>.
  1151. </p>
  1152. </dd>
  1153. <dt><samp>localrtpport=<var>n</var></samp></dt>
  1154. <dd><p>Set the local RTP port to <var>n</var>.
  1155. </p>
  1156. </dd>
  1157. <dt><samp>localrtcpport=<var>n</var>'</samp></dt>
  1158. <dd><p>Set the local RTCP port to <var>n</var>.
  1159. </p>
  1160. </dd>
  1161. <dt><samp>pkt_size=<var>n</var></samp></dt>
  1162. <dd><p>Set max packet size (in bytes) to <var>n</var>.
  1163. </p>
  1164. </dd>
  1165. <dt><samp>buffer_size=<var>size</var></samp></dt>
  1166. <dd><p>Set the maximum UDP socket buffer size in bytes.
  1167. </p>
  1168. </dd>
  1169. <dt><samp>connect=0|1</samp></dt>
  1170. <dd><p>Do a <code>connect()</code> on the UDP socket (if set to 1) or not (if set
  1171. to 0).
  1172. </p>
  1173. </dd>
  1174. <dt><samp>sources=<var>ip</var>[,<var>ip</var>]</samp></dt>
  1175. <dd><p>List allowed source IP addresses.
  1176. </p>
  1177. </dd>
  1178. <dt><samp>block=<var>ip</var>[,<var>ip</var>]</samp></dt>
  1179. <dd><p>List disallowed (blocked) source IP addresses.
  1180. </p>
  1181. </dd>
  1182. <dt><samp>write_to_source=0|1</samp></dt>
  1183. <dd><p>Send packets to the source address of the latest received packet (if
  1184. set to 1) or to a default remote address (if set to 0).
  1185. </p>
  1186. </dd>
  1187. <dt><samp>localport=<var>n</var></samp></dt>
  1188. <dd><p>Set the local RTP port to <var>n</var>.
  1189. </p>
  1190. </dd>
  1191. <dt><samp>timeout=<var>n</var></samp></dt>
  1192. <dd><p>Set timeout (in microseconds) of socket I/O operations to <var>n</var>.
  1193. </p>
  1194. <p>This is a deprecated option. Instead, <samp>localrtpport</samp> should be
  1195. used.
  1196. </p>
  1197. </dd>
  1198. </dl>
  1199. <p>Important notes:
  1200. </p>
  1201. <ol>
  1202. <li> If <samp>rtcpport</samp> is not set the RTCP port will be set to the RTP
  1203. port value plus 1.
  1204. </li><li> If <samp>localrtpport</samp> (the local RTP port) is not set any available
  1205. port will be used for the local RTP and RTCP ports.
  1206. </li><li> If <samp>localrtcpport</samp> (the local RTCP port) is not set it will be
  1207. set to the local RTP port value plus 1.
  1208. </li></ol>
  1209. <a name="rtsp"></a>
  1210. <h3 class="section">3.31 rtsp<span class="pull-right"><a class="anchor hidden-xs" href="#rtsp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rtsp" aria-hidden="true">TOC</a></span></h3>
  1211. <p>Real-Time Streaming Protocol.
  1212. </p>
  1213. <p>RTSP is not technically a protocol handler in libavformat, it is a demuxer
  1214. and muxer. The demuxer supports both normal RTSP (with data transferred
  1215. over RTP; this is used by e.g. Apple and Microsoft) and Real-RTSP (with
  1216. data transferred over RDT).
  1217. </p>
  1218. <p>The muxer can be used to send a stream using RTSP ANNOUNCE to a server
  1219. supporting it (currently Darwin Streaming Server and Mischa Spiegelmock&rsquo;s
  1220. <a href="https://github.com/revmischa/rtsp-server">RTSP server</a>).
  1221. </p>
  1222. <p>The required syntax for a RTSP url is:
  1223. </p><div class="example">
  1224. <pre class="example">rtsp://<var>hostname</var>[:<var>port</var>]/<var>path</var>
  1225. </pre></div>
  1226. <p>Options can be set on the <code>ffmpeg</code>/<code>ffplay</code> command
  1227. line, or set in code via <code>AVOption</code>s or in
  1228. <code>avformat_open_input</code>.
  1229. </p>
  1230. <p>The following options are supported.
  1231. </p>
  1232. <dl compact="compact">
  1233. <dt><samp>initial_pause</samp></dt>
  1234. <dd><p>Do not start playing the stream immediately if set to 1. Default value
  1235. is 0.
  1236. </p>
  1237. </dd>
  1238. <dt><samp>rtsp_transport</samp></dt>
  1239. <dd><p>Set RTSP transport protocols.
  1240. </p>
  1241. <p>It accepts the following values:
  1242. </p><dl compact="compact">
  1243. <dt>&lsquo;<samp>udp</samp>&rsquo;</dt>
  1244. <dd><p>Use UDP as lower transport protocol.
  1245. </p>
  1246. </dd>
  1247. <dt>&lsquo;<samp>tcp</samp>&rsquo;</dt>
  1248. <dd><p>Use TCP (interleaving within the RTSP control channel) as lower
  1249. transport protocol.
  1250. </p>
  1251. </dd>
  1252. <dt>&lsquo;<samp>udp_multicast</samp>&rsquo;</dt>
  1253. <dd><p>Use UDP multicast as lower transport protocol.
  1254. </p>
  1255. </dd>
  1256. <dt>&lsquo;<samp>http</samp>&rsquo;</dt>
  1257. <dd><p>Use HTTP tunneling as lower transport protocol, which is useful for
  1258. passing proxies.
  1259. </p></dd>
  1260. </dl>
  1261. <p>Multiple lower transport protocols may be specified, in that case they are
  1262. tried one at a time (if the setup of one fails, the next one is tried).
  1263. For the muxer, only the &lsquo;<samp>tcp</samp>&rsquo; and &lsquo;<samp>udp</samp>&rsquo; options are supported.
  1264. </p>
  1265. </dd>
  1266. <dt><samp>rtsp_flags</samp></dt>
  1267. <dd><p>Set RTSP flags.
  1268. </p>
  1269. <p>The following values are accepted:
  1270. </p><dl compact="compact">
  1271. <dt>&lsquo;<samp>filter_src</samp>&rsquo;</dt>
  1272. <dd><p>Accept packets only from negotiated peer address and port.
  1273. </p></dd>
  1274. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  1275. <dd><p>Act as a server, listening for an incoming connection.
  1276. </p></dd>
  1277. <dt>&lsquo;<samp>prefer_tcp</samp>&rsquo;</dt>
  1278. <dd><p>Try TCP for RTP transport first, if TCP is available as RTSP RTP transport.
  1279. </p></dd>
  1280. </dl>
  1281. <p>Default value is &lsquo;<samp>none</samp>&rsquo;.
  1282. </p>
  1283. </dd>
  1284. <dt><samp>allowed_media_types</samp></dt>
  1285. <dd><p>Set media types to accept from the server.
  1286. </p>
  1287. <p>The following flags are accepted:
  1288. </p><dl compact="compact">
  1289. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  1290. <dt>&lsquo;<samp>audio</samp>&rsquo;</dt>
  1291. <dt>&lsquo;<samp>data</samp>&rsquo;</dt>
  1292. </dl>
  1293. <p>By default it accepts all media types.
  1294. </p>
  1295. </dd>
  1296. <dt><samp>min_port</samp></dt>
  1297. <dd><p>Set minimum local UDP port. Default value is 5000.
  1298. </p>
  1299. </dd>
  1300. <dt><samp>max_port</samp></dt>
  1301. <dd><p>Set maximum local UDP port. Default value is 65000.
  1302. </p>
  1303. </dd>
  1304. <dt><samp>timeout</samp></dt>
  1305. <dd><p>Set maximum timeout (in seconds) to wait for incoming connections.
  1306. </p>
  1307. <p>A value of -1 means infinite (default). This option implies the
  1308. <samp>rtsp_flags</samp> set to &lsquo;<samp>listen</samp>&rsquo;.
  1309. </p>
  1310. </dd>
  1311. <dt><samp>reorder_queue_size</samp></dt>
  1312. <dd><p>Set number of packets to buffer for handling of reordered packets.
  1313. </p>
  1314. </dd>
  1315. <dt><samp>stimeout</samp></dt>
  1316. <dd><p>Set socket TCP I/O timeout in microseconds.
  1317. </p>
  1318. </dd>
  1319. <dt><samp>user-agent</samp></dt>
  1320. <dd><p>Override User-Agent header. If not specified, it defaults to the
  1321. libavformat identifier string.
  1322. </p></dd>
  1323. </dl>
  1324. <p>When receiving data over UDP, the demuxer tries to reorder received packets
  1325. (since they may arrive out of order, or packets may get lost totally). This
  1326. can be disabled by setting the maximum demuxing delay to zero (via
  1327. the <code>max_delay</code> field of AVFormatContext).
  1328. </p>
  1329. <p>When watching multi-bitrate Real-RTSP streams with <code>ffplay</code>, the
  1330. streams to display can be chosen with <code>-vst</code> <var>n</var> and
  1331. <code>-ast</code> <var>n</var> for video and audio respectively, and can be switched
  1332. on the fly by pressing <code>v</code> and <code>a</code>.
  1333. </p>
  1334. <a name="Examples"></a>
  1335. <h4 class="subsection">3.31.1 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples" aria-hidden="true">TOC</a></span></h4>
  1336. <p>The following examples all make use of the <code>ffplay</code> and
  1337. <code>ffmpeg</code> tools.
  1338. </p>
  1339. <ul>
  1340. <li> Watch a stream over UDP, with a max reordering delay of 0.5 seconds:
  1341. <div class="example">
  1342. <pre class="example">ffplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
  1343. </pre></div>
  1344. </li><li> Watch a stream tunneled over HTTP:
  1345. <div class="example">
  1346. <pre class="example">ffplay -rtsp_transport http rtsp://server/video.mp4
  1347. </pre></div>
  1348. </li><li> Send a stream in realtime to a RTSP server, for others to watch:
  1349. <div class="example">
  1350. <pre class="example">ffmpeg -re -i <var>input</var> -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
  1351. </pre></div>
  1352. </li><li> Receive a stream in realtime:
  1353. <div class="example">
  1354. <pre class="example">ffmpeg -rtsp_flags listen -i rtsp://ownaddress/live.sdp <var>output</var>
  1355. </pre></div>
  1356. </li></ul>
  1357. <a name="sap"></a>
  1358. <h3 class="section">3.32 sap<span class="pull-right"><a class="anchor hidden-xs" href="#sap" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-sap" aria-hidden="true">TOC</a></span></h3>
  1359. <p>Session Announcement Protocol (RFC 2974). This is not technically a
  1360. protocol handler in libavformat, it is a muxer and demuxer.
  1361. It is used for signalling of RTP streams, by announcing the SDP for the
  1362. streams regularly on a separate port.
  1363. </p>
  1364. <a name="Muxer"></a>
  1365. <h4 class="subsection">3.32.1 Muxer<span class="pull-right"><a class="anchor hidden-xs" href="#Muxer" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Muxer" aria-hidden="true">TOC</a></span></h4>
  1366. <p>The syntax for a SAP url given to the muxer is:
  1367. </p><div class="example">
  1368. <pre class="example">sap://<var>destination</var>[:<var>port</var>][?<var>options</var>]
  1369. </pre></div>
  1370. <p>The RTP packets are sent to <var>destination</var> on port <var>port</var>,
  1371. or to port 5004 if no port is specified.
  1372. <var>options</var> is a <code>&amp;</code>-separated list. The following options
  1373. are supported:
  1374. </p>
  1375. <dl compact="compact">
  1376. <dt><samp>announce_addr=<var>address</var></samp></dt>
  1377. <dd><p>Specify the destination IP address for sending the announcements to.
  1378. If omitted, the announcements are sent to the commonly used SAP
  1379. announcement multicast address 224.2.127.254 (sap.mcast.net), or
  1380. ff0e::2:7ffe if <var>destination</var> is an IPv6 address.
  1381. </p>
  1382. </dd>
  1383. <dt><samp>announce_port=<var>port</var></samp></dt>
  1384. <dd><p>Specify the port to send the announcements on, defaults to
  1385. 9875 if not specified.
  1386. </p>
  1387. </dd>
  1388. <dt><samp>ttl=<var>ttl</var></samp></dt>
  1389. <dd><p>Specify the time to live value for the announcements and RTP packets,
  1390. defaults to 255.
  1391. </p>
  1392. </dd>
  1393. <dt><samp>same_port=<var>0|1</var></samp></dt>
  1394. <dd><p>If set to 1, send all RTP streams on the same port pair. If zero (the
  1395. default), all streams are sent on unique ports, with each stream on a
  1396. port 2 numbers higher than the previous.
  1397. VLC/Live555 requires this to be set to 1, to be able to receive the stream.
  1398. The RTP stack in libavformat for receiving requires all streams to be sent
  1399. on unique ports.
  1400. </p></dd>
  1401. </dl>
  1402. <p>Example command lines follow.
  1403. </p>
  1404. <p>To broadcast a stream on the local subnet, for watching in VLC:
  1405. </p>
  1406. <div class="example">
  1407. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255?same_port=1
  1408. </pre></div>
  1409. <p>Similarly, for watching in <code>ffplay</code>:
  1410. </p>
  1411. <div class="example">
  1412. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255
  1413. </pre></div>
  1414. <p>And for watching in <code>ffplay</code>, over IPv6:
  1415. </p>
  1416. <div class="example">
  1417. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://[ff0e::1:2:3:4]
  1418. </pre></div>
  1419. <a name="Demuxer"></a>
  1420. <h4 class="subsection">3.32.2 Demuxer<span class="pull-right"><a class="anchor hidden-xs" href="#Demuxer" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Demuxer" aria-hidden="true">TOC</a></span></h4>
  1421. <p>The syntax for a SAP url given to the demuxer is:
  1422. </p><div class="example">
  1423. <pre class="example">sap://[<var>address</var>][:<var>port</var>]
  1424. </pre></div>
  1425. <p><var>address</var> is the multicast address to listen for announcements on,
  1426. if omitted, the default 224.2.127.254 (sap.mcast.net) is used. <var>port</var>
  1427. is the port that is listened on, 9875 if omitted.
  1428. </p>
  1429. <p>The demuxers listens for announcements on the given address and port.
  1430. Once an announcement is received, it tries to receive that particular stream.
  1431. </p>
  1432. <p>Example command lines follow.
  1433. </p>
  1434. <p>To play back the first stream announced on the normal SAP multicast address:
  1435. </p>
  1436. <div class="example">
  1437. <pre class="example">ffplay sap://
  1438. </pre></div>
  1439. <p>To play back the first stream announced on one the default IPv6 SAP multicast address:
  1440. </p>
  1441. <div class="example">
  1442. <pre class="example">ffplay sap://[ff0e::2:7ffe]
  1443. </pre></div>
  1444. <a name="sctp"></a>
  1445. <h3 class="section">3.33 sctp<span class="pull-right"><a class="anchor hidden-xs" href="#sctp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-sctp" aria-hidden="true">TOC</a></span></h3>
  1446. <p>Stream Control Transmission Protocol.
  1447. </p>
  1448. <p>The accepted URL syntax is:
  1449. </p><div class="example">
  1450. <pre class="example">sctp://<var>host</var>:<var>port</var>[?<var>options</var>]
  1451. </pre></div>
  1452. <p>The protocol accepts the following options:
  1453. </p><dl compact="compact">
  1454. <dt><samp>listen</samp></dt>
  1455. <dd><p>If set to any value, listen for an incoming connection. Outgoing connection is done by default.
  1456. </p>
  1457. </dd>
  1458. <dt><samp>max_streams</samp></dt>
  1459. <dd><p>Set the maximum number of streams. By default no limit is set.
  1460. </p></dd>
  1461. </dl>
  1462. <a name="srt"></a>
  1463. <h3 class="section">3.34 srt<span class="pull-right"><a class="anchor hidden-xs" href="#srt" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-srt" aria-hidden="true">TOC</a></span></h3>
  1464. <p>Haivision Secure Reliable Transport Protocol via libsrt.
  1465. </p>
  1466. <p>The supported syntax for a SRT URL is:
  1467. </p><div class="example">
  1468. <pre class="example">srt://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  1469. </pre></div>
  1470. <p><var>options</var> contains a list of &amp;-separated options of the form
  1471. <var>key</var>=<var>val</var>.
  1472. </p>
  1473. <p>or
  1474. </p>
  1475. <div class="example">
  1476. <pre class="example"><var>options</var> srt://<var>hostname</var>:<var>port</var>
  1477. </pre></div>
  1478. <p><var>options</var> contains a list of &rsquo;-<var>key</var> <var>val</var>&rsquo;
  1479. options.
  1480. </p>
  1481. <p>This protocol accepts the following options.
  1482. </p>
  1483. <dl compact="compact">
  1484. <dt><samp>connect_timeout=<var>milliseconds</var></samp></dt>
  1485. <dd><p>Connection timeout; SRT cannot connect for RTT &gt; 1500 msec
  1486. (2 handshake exchanges) with the default connect timeout of
  1487. 3 seconds. This option applies to the caller and rendezvous
  1488. connection modes. The connect timeout is 10 times the value
  1489. set for the rendezvous mode (which can be used as a
  1490. workaround for this connection problem with earlier versions).
  1491. </p>
  1492. </dd>
  1493. <dt><samp>ffs=<var>bytes</var></samp></dt>
  1494. <dd><p>Flight Flag Size (Window Size), in bytes. FFS is actually an
  1495. internal parameter and you should set it to not less than
  1496. <samp>recv_buffer_size</samp> and <samp>mss</samp>. The default value
  1497. is relatively large, therefore unless you set a very large receiver buffer,
  1498. you do not need to change this option. Default value is 25600.
  1499. </p>
  1500. </dd>
  1501. <dt><samp>inputbw=<var>bytes/seconds</var></samp></dt>
  1502. <dd><p>Sender nominal input rate, in bytes per seconds. Used along with
  1503. <samp>oheadbw</samp>, when <samp>maxbw</samp> is set to relative (0), to
  1504. calculate maximum sending rate when recovery packets are sent
  1505. along with the main media stream:
  1506. <samp>inputbw</samp> * (100 + <samp>oheadbw</samp>) / 100
  1507. if <samp>inputbw</samp> is not set while <samp>maxbw</samp> is set to
  1508. relative (0), the actual input rate is evaluated inside
  1509. the library. Default value is 0.
  1510. </p>
  1511. </dd>
  1512. <dt><samp>iptos=<var>tos</var></samp></dt>
  1513. <dd><p>IP Type of Service. Applies to sender only. Default value is 0xB8.
  1514. </p>
  1515. </dd>
  1516. <dt><samp>ipttl=<var>ttl</var></samp></dt>
  1517. <dd><p>IP Time To Live. Applies to sender only. Default value is 64.
  1518. </p>
  1519. </dd>
  1520. <dt><samp>latency=<var>microseconds</var></samp></dt>
  1521. <dd><p>Timestamp-based Packet Delivery Delay.
  1522. Used to absorb bursts of missed packet retransmissions.
  1523. This flag sets both <samp>rcvlatency</samp> and <samp>peerlatency</samp>
  1524. to the same value. Note that prior to version 1.3.0
  1525. this is the only flag to set the latency, however
  1526. this is effectively equivalent to setting <samp>peerlatency</samp>,
  1527. when side is sender and <samp>rcvlatency</samp>
  1528. when side is receiver, and the bidirectional stream
  1529. sending is not supported.
  1530. </p>
  1531. </dd>
  1532. <dt><samp>listen_timeout=<var>microseconds</var></samp></dt>
  1533. <dd><p>Set socket listen timeout.
  1534. </p>
  1535. </dd>
  1536. <dt><samp>maxbw=<var>bytes/seconds</var></samp></dt>
  1537. <dd><p>Maximum sending bandwidth, in bytes per seconds.
  1538. -1 infinite (CSRTCC limit is 30mbps)
  1539. 0 relative to input rate (see <samp>inputbw</samp>)
  1540. &gt;0 absolute limit value
  1541. Default value is 0 (relative)
  1542. </p>
  1543. </dd>
  1544. <dt><samp>mode=<var>caller|listener|rendezvous</var></samp></dt>
  1545. <dd><p>Connection mode.
  1546. <samp>caller</samp> opens client connection.
  1547. <samp>listener</samp> starts server to listen for incoming connections.
  1548. <samp>rendezvous</samp> use Rendez-Vous connection mode.
  1549. Default value is caller.
  1550. </p>
  1551. </dd>
  1552. <dt><samp>mss=<var>bytes</var></samp></dt>
  1553. <dd><p>Maximum Segment Size, in bytes. Used for buffer allocation
  1554. and rate calculation using a packet counter assuming fully
  1555. filled packets. The smallest MSS between the peers is
  1556. used. This is 1500 by default in the overall internet.
  1557. This is the maximum size of the UDP packet and can be
  1558. only decreased, unless you have some unusual dedicated
  1559. network settings. Default value is 1500.
  1560. </p>
  1561. </dd>
  1562. <dt><samp>nakreport=<var>1|0</var></samp></dt>
  1563. <dd><p>If set to 1, Receiver will send &lsquo;UMSG_LOSSREPORT&lsquo; messages
  1564. periodically until a lost packet is retransmitted or
  1565. intentionally dropped. Default value is 1.
  1566. </p>
  1567. </dd>
  1568. <dt><samp>oheadbw=<var>percents</var></samp></dt>
  1569. <dd><p>Recovery bandwidth overhead above input rate, in percents.
  1570. See <samp>inputbw</samp>. Default value is 25%.
  1571. </p>
  1572. </dd>
  1573. <dt><samp>passphrase=<var>string</var></samp></dt>
  1574. <dd><p>HaiCrypt Encryption/Decryption Passphrase string, length
  1575. from 10 to 79 characters. The passphrase is the shared
  1576. secret between the sender and the receiver. It is used
  1577. to generate the Key Encrypting Key using PBKDF2
  1578. (Password-Based Key Derivation Function). It is used
  1579. only if <samp>pbkeylen</samp> is non-zero. It is used on
  1580. the receiver only if the received data is encrypted.
  1581. The configured passphrase cannot be recovered (write-only).
  1582. </p>
  1583. </dd>
  1584. <dt><samp>enforced_encryption=<var>1|0</var></samp></dt>
  1585. <dd><p>If true, both connection parties must have the same password
  1586. set (including empty, that is, with no encryption). If the
  1587. password doesn&rsquo;t match or only one side is unencrypted,
  1588. the connection is rejected. Default is true.
  1589. </p>
  1590. </dd>
  1591. <dt><samp>kmrefreshrate=<var>packets</var></samp></dt>
  1592. <dd><p>The number of packets to be transmitted after which the
  1593. encryption key is switched to a new key. Default is -1.
  1594. -1 means auto (0x1000000 in srt library). The range for
  1595. this option is integers in the 0 - <code>INT_MAX</code>.
  1596. </p>
  1597. </dd>
  1598. <dt><samp>kmpreannounce=<var>packets</var></samp></dt>
  1599. <dd><p>The interval between when a new encryption key is sent and
  1600. when switchover occurs. This value also applies to the
  1601. subsequent interval between when switchover occurs and
  1602. when the old encryption key is decommissioned. Default is -1.
  1603. -1 means auto (0x1000 in srt library). The range for
  1604. this option is integers in the 0 - <code>INT_MAX</code>.
  1605. </p>
  1606. </dd>
  1607. <dt><samp>payload_size=<var>bytes</var></samp></dt>
  1608. <dd><p>Sets the maximum declared size of a packet transferred
  1609. during the single call to the sending function in Live
  1610. mode. Use 0 if this value isn&rsquo;t used (which is default in
  1611. file mode).
  1612. Default is -1 (automatic), which typically means MPEG-TS;
  1613. if you are going to use SRT
  1614. to send any different kind of payload, such as, for example,
  1615. wrapping a live stream in very small frames, then you can
  1616. use a bigger maximum frame size, though not greater than
  1617. 1456 bytes.
  1618. </p>
  1619. </dd>
  1620. <dt><samp>pkt_size=<var>bytes</var></samp></dt>
  1621. <dd><p>Alias for &lsquo;<samp>payload_size</samp>&rsquo;.
  1622. </p>
  1623. </dd>
  1624. <dt><samp>peerlatency=<var>microseconds</var></samp></dt>
  1625. <dd><p>The latency value (as described in <samp>rcvlatency</samp>) that is
  1626. set by the sender side as a minimum value for the receiver.
  1627. </p>
  1628. </dd>
  1629. <dt><samp>pbkeylen=<var>bytes</var></samp></dt>
  1630. <dd><p>Sender encryption key length, in bytes.
  1631. Only can be set to 0, 16, 24 and 32.
  1632. Enable sender encryption if not 0.
  1633. Not required on receiver (set to 0),
  1634. key size obtained from sender in HaiCrypt handshake.
  1635. Default value is 0.
  1636. </p>
  1637. </dd>
  1638. <dt><samp>rcvlatency=<var>microseconds</var></samp></dt>
  1639. <dd><p>The time that should elapse since the moment when the
  1640. packet was sent and the moment when it&rsquo;s delivered to
  1641. the receiver application in the receiving function.
  1642. This time should be a buffer time large enough to cover
  1643. the time spent for sending, unexpectedly extended RTT
  1644. time, and the time needed to retransmit the lost UDP
  1645. packet. The effective latency value will be the maximum
  1646. of this options&rsquo; value and the value of <samp>peerlatency</samp>
  1647. set by the peer side. Before version 1.3.0 this option
  1648. is only available as <samp>latency</samp>.
  1649. </p>
  1650. </dd>
  1651. <dt><samp>recv_buffer_size=<var>bytes</var></samp></dt>
  1652. <dd><p>Set UDP receive buffer size, expressed in bytes.
  1653. </p>
  1654. </dd>
  1655. <dt><samp>send_buffer_size=<var>bytes</var></samp></dt>
  1656. <dd><p>Set UDP send buffer size, expressed in bytes.
  1657. </p>
  1658. </dd>
  1659. <dt><samp>timeout=<var>microseconds</var></samp></dt>
  1660. <dd><p>Set raise error timeouts for read, write and connect operations. Note that the
  1661. SRT library has internal timeouts which can be controlled separately, the
  1662. value set here is only a cap on those.
  1663. </p>
  1664. </dd>
  1665. <dt><samp>tlpktdrop=<var>1|0</var></samp></dt>
  1666. <dd><p>Too-late Packet Drop. When enabled on receiver, it skips
  1667. missing packets that have not been delivered in time and
  1668. delivers the following packets to the application when
  1669. their time-to-play has come. It also sends a fake ACK to
  1670. the sender. When enabled on sender and enabled on the
  1671. receiving peer, the sender drops the older packets that
  1672. have no chance of being delivered in time. It was
  1673. automatically enabled in the sender if the receiver
  1674. supports it.
  1675. </p>
  1676. </dd>
  1677. <dt><samp>sndbuf=<var>bytes</var></samp></dt>
  1678. <dd><p>Set send buffer size, expressed in bytes.
  1679. </p>
  1680. </dd>
  1681. <dt><samp>rcvbuf=<var>bytes</var></samp></dt>
  1682. <dd><p>Set receive buffer size, expressed in bytes.
  1683. </p>
  1684. <p>Receive buffer must not be greater than <samp>ffs</samp>.
  1685. </p>
  1686. </dd>
  1687. <dt><samp>lossmaxttl=<var>packets</var></samp></dt>
  1688. <dd><p>The value up to which the Reorder Tolerance may grow. When
  1689. Reorder Tolerance is &gt; 0, then packet loss report is delayed
  1690. until that number of packets come in. Reorder Tolerance
  1691. increases every time a &quot;belated&quot; packet has come, but it
  1692. wasn&rsquo;t due to retransmission (that is, when UDP packets tend
  1693. to come out of order), with the difference between the latest
  1694. sequence and this packet&rsquo;s sequence, and not more than the
  1695. value of this option. By default it&rsquo;s 0, which means that this
  1696. mechanism is turned off, and the loss report is always sent
  1697. immediately upon experiencing a &quot;gap&quot; in sequences.
  1698. </p>
  1699. </dd>
  1700. <dt><samp>minversion</samp></dt>
  1701. <dd><p>The minimum SRT version that is required from the peer. A connection
  1702. to a peer that does not satisfy the minimum version requirement
  1703. will be rejected.
  1704. </p>
  1705. <p>The version format in hex is 0xXXYYZZ for x.y.z in human readable
  1706. form.
  1707. </p>
  1708. </dd>
  1709. <dt><samp>streamid=<var>string</var></samp></dt>
  1710. <dd><p>A string limited to 512 characters that can be set on the socket prior
  1711. to connecting. This stream ID will be able to be retrieved by the
  1712. listener side from the socket that is returned from srt_accept and
  1713. was connected by a socket with that set stream ID. SRT does not enforce
  1714. any special interpretation of the contents of this string.
  1715. This option doesn’t make sense in Rendezvous connection; the result
  1716. might be that simply one side will override the value from the other
  1717. side and it’s the matter of luck which one would win
  1718. </p>
  1719. </dd>
  1720. <dt><samp>smoother=<var>live|file</var></samp></dt>
  1721. <dd><p>The type of Smoother used for the transmission for that socket, which
  1722. is responsible for the transmission and congestion control. The Smoother
  1723. type must be exactly the same on both connecting parties, otherwise
  1724. the connection is rejected.
  1725. </p>
  1726. </dd>
  1727. <dt><samp>messageapi=<var>1|0</var></samp></dt>
  1728. <dd><p>When set, this socket uses the Message API, otherwise it uses Buffer
  1729. API. Note that in live mode (see <samp>transtype</samp>) there’s only
  1730. message API available. In File mode you can chose to use one of two modes:
  1731. </p>
  1732. <p>Stream API (default, when this option is false). In this mode you may
  1733. send as many data as you wish with one sending instruction, or even use
  1734. dedicated functions that read directly from a file. The internal facility
  1735. will take care of any speed and congestion control. When receiving, you
  1736. can also receive as many data as desired, the data not extracted will be
  1737. waiting for the next call. There is no boundary between data portions in
  1738. the Stream mode.
  1739. </p>
  1740. <p>Message API. In this mode your single sending instruction passes exactly
  1741. one piece of data that has boundaries (a message). Contrary to Live mode,
  1742. this message may span across multiple UDP packets and the only size
  1743. limitation is that it shall fit as a whole in the sending buffer. The
  1744. receiver shall use as large buffer as necessary to receive the message,
  1745. otherwise the message will not be given up. When the message is not
  1746. complete (not all packets received or there was a packet loss) it will
  1747. not be given up.
  1748. </p>
  1749. </dd>
  1750. <dt><samp>transtype=<var>live|file</var></samp></dt>
  1751. <dd><p>Sets the transmission type for the socket, in particular, setting this
  1752. option sets multiple other parameters to their default values as required
  1753. for a particular transmission type.
  1754. </p>
  1755. <p>live: Set options as for live transmission. In this mode, you should
  1756. send by one sending instruction only so many data that fit in one UDP packet,
  1757. and limited to the value defined first in <samp>payload_size</samp> (1316 is
  1758. default in this mode). There is no speed control in this mode, only the
  1759. bandwidth control, if configured, in order to not exceed the bandwidth with
  1760. the overhead transmission (retransmitted and control packets).
  1761. </p>
  1762. <p>file: Set options as for non-live transmission. See <samp>messageapi</samp>
  1763. for further explanations
  1764. </p>
  1765. </dd>
  1766. <dt><samp>linger=<var>seconds</var></samp></dt>
  1767. <dd><p>The number of seconds that the socket waits for unsent data when closing.
  1768. Default is -1. -1 means auto (off with 0 seconds in live mode, on with 180
  1769. seconds in file mode). The range for this option is integers in the
  1770. 0 - <code>INT_MAX</code>.
  1771. </p>
  1772. </dd>
  1773. </dl>
  1774. <p>For more information see: <a href="https://github.com/Haivision/srt">https://github.com/Haivision/srt</a>.
  1775. </p>
  1776. <a name="srtp"></a>
  1777. <h3 class="section">3.35 srtp<span class="pull-right"><a class="anchor hidden-xs" href="#srtp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-srtp" aria-hidden="true">TOC</a></span></h3>
  1778. <p>Secure Real-time Transport Protocol.
  1779. </p>
  1780. <p>The accepted options are:
  1781. </p><dl compact="compact">
  1782. <dt><samp>srtp_in_suite</samp></dt>
  1783. <dt><samp>srtp_out_suite</samp></dt>
  1784. <dd><p>Select input and output encoding suites.
  1785. </p>
  1786. <p>Supported values:
  1787. </p><dl compact="compact">
  1788. <dt>&lsquo;<samp>AES_CM_128_HMAC_SHA1_80</samp>&rsquo;</dt>
  1789. <dt>&lsquo;<samp>SRTP_AES128_CM_HMAC_SHA1_80</samp>&rsquo;</dt>
  1790. <dt>&lsquo;<samp>AES_CM_128_HMAC_SHA1_32</samp>&rsquo;</dt>
  1791. <dt>&lsquo;<samp>SRTP_AES128_CM_HMAC_SHA1_32</samp>&rsquo;</dt>
  1792. </dl>
  1793. </dd>
  1794. <dt><samp>srtp_in_params</samp></dt>
  1795. <dt><samp>srtp_out_params</samp></dt>
  1796. <dd><p>Set input and output encoding parameters, which are expressed by a
  1797. base64-encoded representation of a binary block. The first 16 bytes of
  1798. this binary block are used as master key, the following 14 bytes are
  1799. used as master salt.
  1800. </p></dd>
  1801. </dl>
  1802. <a name="subfile"></a>
  1803. <h3 class="section">3.36 subfile<span class="pull-right"><a class="anchor hidden-xs" href="#subfile" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-subfile" aria-hidden="true">TOC</a></span></h3>
  1804. <p>Virtually extract a segment of a file or another stream.
  1805. The underlying stream must be seekable.
  1806. </p>
  1807. <p>Accepted options:
  1808. </p><dl compact="compact">
  1809. <dt><samp>start</samp></dt>
  1810. <dd><p>Start offset of the extracted segment, in bytes.
  1811. </p></dd>
  1812. <dt><samp>end</samp></dt>
  1813. <dd><p>End offset of the extracted segment, in bytes.
  1814. If set to 0, extract till end of file.
  1815. </p></dd>
  1816. </dl>
  1817. <p>Examples:
  1818. </p>
  1819. <p>Extract a chapter from a DVD VOB file (start and end sectors obtained
  1820. externally and multiplied by 2048):
  1821. </p><div class="example">
  1822. <pre class="example">subfile,,start,153391104,end,268142592,,:/media/dvd/VIDEO_TS/VTS_08_1.VOB
  1823. </pre></div>
  1824. <p>Play an AVI file directly from a TAR archive:
  1825. </p><div class="example">
  1826. <pre class="example">subfile,,start,183241728,end,366490624,,:archive.tar
  1827. </pre></div>
  1828. <p>Play a MPEG-TS file from start offset till end:
  1829. </p><div class="example">
  1830. <pre class="example">subfile,,start,32815239,end,0,,:video.ts
  1831. </pre></div>
  1832. <a name="tee"></a>
  1833. <h3 class="section">3.37 tee<span class="pull-right"><a class="anchor hidden-xs" href="#tee" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-tee" aria-hidden="true">TOC</a></span></h3>
  1834. <p>Writes the output to multiple protocols. The individual outputs are separated
  1835. by |
  1836. </p>
  1837. <div class="example">
  1838. <pre class="example">tee:file://path/to/local/this.avi|file://path/to/local/that.avi
  1839. </pre></div>
  1840. <a name="tcp"></a>
  1841. <h3 class="section">3.38 tcp<span class="pull-right"><a class="anchor hidden-xs" href="#tcp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-tcp" aria-hidden="true">TOC</a></span></h3>
  1842. <p>Transmission Control Protocol.
  1843. </p>
  1844. <p>The required syntax for a TCP url is:
  1845. </p><div class="example">
  1846. <pre class="example">tcp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  1847. </pre></div>
  1848. <p><var>options</var> contains a list of &amp;-separated options of the form
  1849. <var>key</var>=<var>val</var>.
  1850. </p>
  1851. <p>The list of supported options follows.
  1852. </p>
  1853. <dl compact="compact">
  1854. <dt><samp>listen=<var>2|1|0</var></samp></dt>
  1855. <dd><p>Listen for an incoming connection. 0 disables listen, 1 enables listen in
  1856. single client mode, 2 enables listen in multi-client mode. Default value is 0.
  1857. </p>
  1858. </dd>
  1859. <dt><samp>timeout=<var>microseconds</var></samp></dt>
  1860. <dd><p>Set raise error timeout, expressed in microseconds.
  1861. </p>
  1862. <p>This option is only relevant in read mode: if no data arrived in more
  1863. than this time interval, raise error.
  1864. </p>
  1865. </dd>
  1866. <dt><samp>listen_timeout=<var>milliseconds</var></samp></dt>
  1867. <dd><p>Set listen timeout, expressed in milliseconds.
  1868. </p>
  1869. </dd>
  1870. <dt><samp>recv_buffer_size=<var>bytes</var></samp></dt>
  1871. <dd><p>Set receive buffer size, expressed bytes.
  1872. </p>
  1873. </dd>
  1874. <dt><samp>send_buffer_size=<var>bytes</var></samp></dt>
  1875. <dd><p>Set send buffer size, expressed bytes.
  1876. </p>
  1877. </dd>
  1878. <dt><samp>tcp_nodelay=<var>1|0</var></samp></dt>
  1879. <dd><p>Set TCP_NODELAY to disable Nagle&rsquo;s algorithm. Default value is 0.
  1880. </p>
  1881. </dd>
  1882. <dt><samp>tcp_mss=<var>bytes</var></samp></dt>
  1883. <dd><p>Set maximum segment size for outgoing TCP packets, expressed in bytes.
  1884. </p></dd>
  1885. </dl>
  1886. <p>The following example shows how to setup a listening TCP connection
  1887. with <code>ffmpeg</code>, which is then accessed with <code>ffplay</code>:
  1888. </p><div class="example">
  1889. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tcp://<var>hostname</var>:<var>port</var>?listen
  1890. ffplay tcp://<var>hostname</var>:<var>port</var>
  1891. </pre></div>
  1892. <a name="tls"></a>
  1893. <h3 class="section">3.39 tls<span class="pull-right"><a class="anchor hidden-xs" href="#tls" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-tls" aria-hidden="true">TOC</a></span></h3>
  1894. <p>Transport Layer Security (TLS) / Secure Sockets Layer (SSL)
  1895. </p>
  1896. <p>The required syntax for a TLS/SSL url is:
  1897. </p><div class="example">
  1898. <pre class="example">tls://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  1899. </pre></div>
  1900. <p>The following parameters can be set via command line options
  1901. (or in code via <code>AVOption</code>s):
  1902. </p>
  1903. <dl compact="compact">
  1904. <dt><samp>ca_file, cafile=<var>filename</var></samp></dt>
  1905. <dd><p>A file containing certificate authority (CA) root certificates to treat
  1906. as trusted. If the linked TLS library contains a default this might not
  1907. need to be specified for verification to work, but not all libraries and
  1908. setups have defaults built in.
  1909. The file must be in OpenSSL PEM format.
  1910. </p>
  1911. </dd>
  1912. <dt><samp>tls_verify=<var>1|0</var></samp></dt>
  1913. <dd><p>If enabled, try to verify the peer that we are communicating with.
  1914. Note, if using OpenSSL, this currently only makes sure that the
  1915. peer certificate is signed by one of the root certificates in the CA
  1916. database, but it does not validate that the certificate actually
  1917. matches the host name we are trying to connect to. (With other backends,
  1918. the host name is validated as well.)
  1919. </p>
  1920. <p>This is disabled by default since it requires a CA database to be
  1921. provided by the caller in many cases.
  1922. </p>
  1923. </dd>
  1924. <dt><samp>cert_file, cert=<var>filename</var></samp></dt>
  1925. <dd><p>A file containing a certificate to use in the handshake with the peer.
  1926. (When operating as server, in listen mode, this is more often required
  1927. by the peer, while client certificates only are mandated in certain
  1928. setups.)
  1929. </p>
  1930. </dd>
  1931. <dt><samp>key_file, key=<var>filename</var></samp></dt>
  1932. <dd><p>A file containing the private key for the certificate.
  1933. </p>
  1934. </dd>
  1935. <dt><samp>listen=<var>1|0</var></samp></dt>
  1936. <dd><p>If enabled, listen for connections on the provided port, and assume
  1937. the server role in the handshake instead of the client role.
  1938. </p>
  1939. </dd>
  1940. <dt><samp>http_proxy</samp></dt>
  1941. <dd><p>The HTTP proxy to tunnel through, e.g. <code>http://example.com:1234</code>.
  1942. The proxy must support the CONNECT method.
  1943. </p>
  1944. </dd>
  1945. </dl>
  1946. <p>Example command lines:
  1947. </p>
  1948. <p>To create a TLS/SSL server that serves an input stream.
  1949. </p>
  1950. <div class="example">
  1951. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tls://<var>hostname</var>:<var>port</var>?listen&amp;cert=<var>server.crt</var>&amp;key=<var>server.key</var>
  1952. </pre></div>
  1953. <p>To play back a stream from the TLS/SSL server using <code>ffplay</code>:
  1954. </p>
  1955. <div class="example">
  1956. <pre class="example">ffplay tls://<var>hostname</var>:<var>port</var>
  1957. </pre></div>
  1958. <a name="udp"></a>
  1959. <h3 class="section">3.40 udp<span class="pull-right"><a class="anchor hidden-xs" href="#udp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-udp" aria-hidden="true">TOC</a></span></h3>
  1960. <p>User Datagram Protocol.
  1961. </p>
  1962. <p>The required syntax for an UDP URL is:
  1963. </p><div class="example">
  1964. <pre class="example">udp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  1965. </pre></div>
  1966. <p><var>options</var> contains a list of &amp;-separated options of the form <var>key</var>=<var>val</var>.
  1967. </p>
  1968. <p>In case threading is enabled on the system, a circular buffer is used
  1969. to store the incoming data, which allows one to reduce loss of data due to
  1970. UDP socket buffer overruns. The <var>fifo_size</var> and
  1971. <var>overrun_nonfatal</var> options are related to this buffer.
  1972. </p>
  1973. <p>The list of supported options follows.
  1974. </p>
  1975. <dl compact="compact">
  1976. <dt><samp>buffer_size=<var>size</var></samp></dt>
  1977. <dd><p>Set the UDP maximum socket buffer size in bytes. This is used to set either
  1978. the receive or send buffer size, depending on what the socket is used for.
  1979. Default is 32 KB for output, 384 KB for input. See also <var>fifo_size</var>.
  1980. </p>
  1981. </dd>
  1982. <dt><samp>bitrate=<var>bitrate</var></samp></dt>
  1983. <dd><p>If set to nonzero, the output will have the specified constant bitrate if the
  1984. input has enough packets to sustain it.
  1985. </p>
  1986. </dd>
  1987. <dt><samp>burst_bits=<var>bits</var></samp></dt>
  1988. <dd><p>When using <var>bitrate</var> this specifies the maximum number of bits in
  1989. packet bursts.
  1990. </p>
  1991. </dd>
  1992. <dt><samp>localport=<var>port</var></samp></dt>
  1993. <dd><p>Override the local UDP port to bind with.
  1994. </p>
  1995. </dd>
  1996. <dt><samp>localaddr=<var>addr</var></samp></dt>
  1997. <dd><p>Local IP address of a network interface used for sending packets or joining
  1998. multicast groups.
  1999. </p>
  2000. </dd>
  2001. <dt><samp>pkt_size=<var>size</var></samp></dt>
  2002. <dd><p>Set the size in bytes of UDP packets.
  2003. </p>
  2004. </dd>
  2005. <dt><samp>reuse=<var>1|0</var></samp></dt>
  2006. <dd><p>Explicitly allow or disallow reusing UDP sockets.
  2007. </p>
  2008. </dd>
  2009. <dt><samp>ttl=<var>ttl</var></samp></dt>
  2010. <dd><p>Set the time to live value (for multicast only).
  2011. </p>
  2012. </dd>
  2013. <dt><samp>connect=<var>1|0</var></samp></dt>
  2014. <dd><p>Initialize the UDP socket with <code>connect()</code>. In this case, the
  2015. destination address can&rsquo;t be changed with ff_udp_set_remote_url later.
  2016. If the destination address isn&rsquo;t known at the start, this option can
  2017. be specified in ff_udp_set_remote_url, too.
  2018. This allows finding out the source address for the packets with getsockname,
  2019. and makes writes return with AVERROR(ECONNREFUSED) if &quot;destination
  2020. unreachable&quot; is received.
  2021. For receiving, this gives the benefit of only receiving packets from
  2022. the specified peer address/port.
  2023. </p>
  2024. </dd>
  2025. <dt><samp>sources=<var>address</var>[,<var>address</var>]</samp></dt>
  2026. <dd><p>Only receive packets sent from the specified addresses. In case of multicast,
  2027. also subscribe to multicast traffic coming from these addresses only.
  2028. </p>
  2029. </dd>
  2030. <dt><samp>block=<var>address</var>[,<var>address</var>]</samp></dt>
  2031. <dd><p>Ignore packets sent from the specified addresses. In case of multicast, also
  2032. exclude the source addresses in the multicast subscription.
  2033. </p>
  2034. </dd>
  2035. <dt><samp>fifo_size=<var>units</var></samp></dt>
  2036. <dd><p>Set the UDP receiving circular buffer size, expressed as a number of
  2037. packets with size of 188 bytes. If not specified defaults to 7*4096.
  2038. </p>
  2039. </dd>
  2040. <dt><samp>overrun_nonfatal=<var>1|0</var></samp></dt>
  2041. <dd><p>Survive in case of UDP receiving circular buffer overrun. Default
  2042. value is 0.
  2043. </p>
  2044. </dd>
  2045. <dt><samp>timeout=<var>microseconds</var></samp></dt>
  2046. <dd><p>Set raise error timeout, expressed in microseconds.
  2047. </p>
  2048. <p>This option is only relevant in read mode: if no data arrived in more
  2049. than this time interval, raise error.
  2050. </p>
  2051. </dd>
  2052. <dt><samp>broadcast=<var>1|0</var></samp></dt>
  2053. <dd><p>Explicitly allow or disallow UDP broadcasting.
  2054. </p>
  2055. <p>Note that broadcasting may not work properly on networks having
  2056. a broadcast storm protection.
  2057. </p></dd>
  2058. </dl>
  2059. <a name="Examples-1"></a>
  2060. <h4 class="subsection">3.40.1 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples-1" aria-hidden="true">TOC</a></span></h4>
  2061. <ul>
  2062. <li> Use <code>ffmpeg</code> to stream over UDP to a remote endpoint:
  2063. <div class="example">
  2064. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> udp://<var>hostname</var>:<var>port</var>
  2065. </pre></div>
  2066. </li><li> Use <code>ffmpeg</code> to stream in mpegts format over UDP using 188
  2067. sized UDP packets, using a large input buffer:
  2068. <div class="example">
  2069. <pre class="example">ffmpeg -i <var>input</var> -f mpegts udp://<var>hostname</var>:<var>port</var>?pkt_size=188&amp;buffer_size=65535
  2070. </pre></div>
  2071. </li><li> Use <code>ffmpeg</code> to receive over UDP from a remote endpoint:
  2072. <div class="example">
  2073. <pre class="example">ffmpeg -i udp://[<var>multicast-address</var>]:<var>port</var> ...
  2074. </pre></div>
  2075. </li></ul>
  2076. <a name="unix"></a>
  2077. <h3 class="section">3.41 unix<span class="pull-right"><a class="anchor hidden-xs" href="#unix" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-unix" aria-hidden="true">TOC</a></span></h3>
  2078. <p>Unix local socket
  2079. </p>
  2080. <p>The required syntax for a Unix socket URL is:
  2081. </p>
  2082. <div class="example">
  2083. <pre class="example">unix://<var>filepath</var>
  2084. </pre></div>
  2085. <p>The following parameters can be set via command line options
  2086. (or in code via <code>AVOption</code>s):
  2087. </p>
  2088. <dl compact="compact">
  2089. <dt><samp>timeout</samp></dt>
  2090. <dd><p>Timeout in ms.
  2091. </p></dd>
  2092. <dt><samp>listen</samp></dt>
  2093. <dd><p>Create the Unix socket in listening mode.
  2094. </p></dd>
  2095. </dl>
  2096. <a name="zmq"></a>
  2097. <h3 class="section">3.42 zmq<span class="pull-right"><a class="anchor hidden-xs" href="#zmq" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-zmq" aria-hidden="true">TOC</a></span></h3>
  2098. <p>ZeroMQ asynchronous messaging using the libzmq library.
  2099. </p>
  2100. <p>This library supports unicast streaming to multiple clients without relying on
  2101. an external server.
  2102. </p>
  2103. <p>The required syntax for streaming or connecting to a stream is:
  2104. </p><div class="example">
  2105. <pre class="example">zmq:tcp://ip-address:port
  2106. </pre></div>
  2107. <p>Example:
  2108. Create a localhost stream on port 5555:
  2109. </p><div class="example">
  2110. <pre class="example">ffmpeg -re -i input -f mpegts zmq:tcp://127.0.0.1:5555
  2111. </pre></div>
  2112. <p>Multiple clients may connect to the stream using:
  2113. </p><div class="example">
  2114. <pre class="example">ffplay zmq:tcp://127.0.0.1:5555
  2115. </pre></div>
  2116. <p>Streaming to multiple clients is implemented using a ZeroMQ Pub-Sub pattern.
  2117. The server side binds to a port and publishes data. Clients connect to the
  2118. server (via IP address/port) and subscribe to the stream. The order in which
  2119. the server and client start generally does not matter.
  2120. </p>
  2121. <p>ffmpeg must be compiled with the &ndash;enable-libzmq option to support
  2122. this protocol.
  2123. </p>
  2124. <p>Options can be set on the <code>ffmpeg</code>/<code>ffplay</code> command
  2125. line. The following options are supported:
  2126. </p>
  2127. <dl compact="compact">
  2128. <dt><samp>pkt_size</samp></dt>
  2129. <dd><p>Forces the maximum packet size for sending/receiving data. The default value is
  2130. 131,072 bytes. On the server side, this sets the maximum size of sent packets
  2131. via ZeroMQ. On the clients, it sets an internal buffer size for receiving
  2132. packets. Note that pkt_size on the clients should be equal to or greater than
  2133. pkt_size on the server. Otherwise the received message may be truncated causing
  2134. decoding errors.
  2135. </p>
  2136. </dd>
  2137. </dl>
  2138. <a name="See-Also"></a>
  2139. <h2 class="chapter">4 See Also<span class="pull-right"><a class="anchor hidden-xs" href="#See-Also" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-See-Also" aria-hidden="true">TOC</a></span></h2>
  2140. <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
  2141. <a href="libavformat.html">libavformat</a>
  2142. </p>
  2143. <a name="Authors"></a>
  2144. <h2 class="chapter">5 Authors<span class="pull-right"><a class="anchor hidden-xs" href="#Authors" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Authors" aria-hidden="true">TOC</a></span></h2>
  2145. <p>The FFmpeg developers.
  2146. </p>
  2147. <p>For details about the authorship, see the Git history of the project
  2148. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  2149. <code>git log</code> in the FFmpeg source directory, or browsing the
  2150. online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
  2151. </p>
  2152. <p>Maintainers for the specific components are listed in the file
  2153. <samp>MAINTAINERS</samp> in the source code tree.
  2154. </p>
  2155. <p style="font-size: small;">
  2156. This document was generated using <a href="http://www.gnu.org/software/texinfo/"><em>makeinfo</em></a>.
  2157. </p>
  2158. </div>
  2159. </body>
  2160. </html>