3 <!-- Created on December 14, 2013 by texi2html 1.82 -->
5 texi2html was written by:
6 Lionel Cons <Lionel.Cons@cern.ch> (original author)
7 Karl Berry <karl@freefriends.org>
8 Olaf Bachmann <obachman@mathematik.uni-kl.de>
10 Maintained by: Many creative people.
11 Send bugs and suggestions to <texi2html-bug@nongnu.org>
15 <title>FFmpeg documentation : FFmpeg Protocols </title>
17 <meta name="description" content="FFmpeg Protocols Documentation: ">
18 <meta name="keywords" content="FFmpeg documentation : FFmpeg Protocols ">
19 <meta name="Generator" content="texi2html 1.82">
20 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
21 <link rel="stylesheet" type="text/css" href="default.css" />
23 <link rel="icon" href="favicon.png" type="image/png" />
29 <a name="SEC_Top"></a>
30 <h1 class="settitle">FFmpeg Protocols Documentation</h1>
32 <a name="SEC_Contents"></a>
33 <h1>Table of Contents</h1>
34 <div class="contents">
37 <li><a name="toc-Description" href="#Description">1. Description</a></li>
38 <li><a name="toc-Protocols" href="#Protocols">2. Protocols</a>
40 <li><a name="toc-bluray" href="#bluray">2.1 bluray</a></li>
41 <li><a name="toc-cache" href="#cache">2.2 cache</a></li>
42 <li><a name="toc-concat" href="#concat">2.3 concat</a></li>
43 <li><a name="toc-crypto" href="#crypto">2.4 crypto</a></li>
44 <li><a name="toc-data" href="#data">2.5 data</a></li>
45 <li><a name="toc-file" href="#file">2.6 file</a></li>
46 <li><a name="toc-ftp" href="#ftp">2.7 ftp</a></li>
47 <li><a name="toc-gopher" href="#gopher">2.8 gopher</a></li>
48 <li><a name="toc-hls" href="#hls">2.9 hls</a></li>
49 <li><a name="toc-http" href="#http">2.10 http</a>
51 <li><a name="toc-HTTP-Cookies" href="#HTTP-Cookies">2.10.1 HTTP Cookies</a></li>
53 <li><a name="toc-mmst" href="#mmst">2.11 mmst</a></li>
54 <li><a name="toc-mmsh" href="#mmsh">2.12 mmsh</a></li>
55 <li><a name="toc-md5" href="#md5">2.13 md5</a></li>
56 <li><a name="toc-pipe" href="#pipe">2.14 pipe</a></li>
57 <li><a name="toc-rtmp" href="#rtmp">2.15 rtmp</a></li>
58 <li><a name="toc-rtmpe" href="#rtmpe">2.16 rtmpe</a></li>
59 <li><a name="toc-rtmps" href="#rtmps">2.17 rtmps</a></li>
60 <li><a name="toc-rtmpt" href="#rtmpt">2.18 rtmpt</a></li>
61 <li><a name="toc-rtmpte" href="#rtmpte">2.19 rtmpte</a></li>
62 <li><a name="toc-rtmpts" href="#rtmpts">2.20 rtmpts</a></li>
63 <li><a name="toc-libssh" href="#libssh">2.21 libssh</a></li>
64 <li><a name="toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte" href="#librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte">2.22 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></li>
65 <li><a name="toc-rtp" href="#rtp">2.23 rtp</a></li>
66 <li><a name="toc-rtsp" href="#rtsp">2.24 rtsp</a></li>
67 <li><a name="toc-sap" href="#sap">2.25 sap</a>
69 <li><a name="toc-Muxer" href="#Muxer">2.25.1 Muxer</a></li>
70 <li><a name="toc-Demuxer" href="#Demuxer">2.25.2 Demuxer</a></li>
72 <li><a name="toc-sctp" href="#sctp">2.26 sctp</a></li>
73 <li><a name="toc-srtp" href="#srtp">2.27 srtp</a></li>
74 <li><a name="toc-tcp" href="#tcp">2.28 tcp</a></li>
75 <li><a name="toc-tls" href="#tls">2.29 tls</a></li>
76 <li><a name="toc-udp" href="#udp">2.30 udp</a></li>
77 <li><a name="toc-unix" href="#unix">2.31 unix</a></li>
79 <li><a name="toc-See-Also" href="#See-Also">3. See Also</a></li>
80 <li><a name="toc-Authors" href="#Authors">4. Authors</a></li>
84 <a name="Description"></a>
85 <h1 class="chapter"><a href="ffmpeg-protocols.html#toc-Description">1. Description</a></h1>
87 <p>This document describes the input and output protocols provided by the
91 <a name="Protocols"></a>
92 <h1 class="chapter"><a href="ffmpeg-protocols.html#toc-Protocols">2. Protocols</a></h1>
94 <p>Protocols are configured elements in FFmpeg that enable access to
95 resources that require specific protocols.
97 <p>When you configure your FFmpeg build, all the supported protocols are
98 enabled by default. You can list all available ones using the
99 configure option "–list-protocols".
101 <p>You can disable all the protocols using the configure option
102 "–disable-protocols", and selectively enable a protocol using the
103 option "–enable-protocol=<var>PROTOCOL</var>", or you can disable a
104 particular protocol using the option
105 "–disable-protocol=<var>PROTOCOL</var>".
107 <p>The option "-protocols" of the ff* tools will display the list of
110 <p>A description of the currently available protocols follows.
112 <a name="bluray"></a>
113 <h2 class="section"><a href="ffmpeg-protocols.html#toc-bluray">2.1 bluray</a></h2>
115 <p>Read BluRay playlist.
117 <p>The accepted options are:
118 </p><dl compact="compact">
119 <dt> ‘<samp>angle</samp>’</dt>
123 <dt> ‘<samp>chapter</samp>’</dt>
124 <dd><p>Start chapter (1...N)
127 <dt> ‘<samp>playlist</samp>’</dt>
128 <dd><p>Playlist to read (BDMV/PLAYLIST/?????.mpls)
135 <p>Read longest playlist from BluRay mounted to /mnt/bluray:
136 </p><table><tr><td> </td><td><pre class="example">bluray:/mnt/bluray
137 </pre></td></tr></table>
139 <p>Read angle 2 of playlist 4 from BluRay mounted to /mnt/bluray, start from chapter 2:
140 </p><table><tr><td> </td><td><pre class="example">-playlist 4 -angle 2 -chapter 2 bluray:/mnt/bluray
141 </pre></td></tr></table>
144 <h2 class="section"><a href="ffmpeg-protocols.html#toc-cache">2.2 cache</a></h2>
146 <p>Caching wrapper for input stream.
148 <p>Cache the input stream to temporary file. It brings seeking capability to live streams.
150 <table><tr><td> </td><td><pre class="example">cache:<var>URL</var>
151 </pre></td></tr></table>
153 <a name="concat"></a>
154 <h2 class="section"><a href="ffmpeg-protocols.html#toc-concat">2.3 concat</a></h2>
156 <p>Physical concatenation protocol.
158 <p>Allow to read and seek from many resource in sequence as if they were
161 <p>A URL accepted by this protocol has the syntax:
162 </p><table><tr><td> </td><td><pre class="example">concat:<var>URL1</var>|<var>URL2</var>|...|<var>URLN</var>
163 </pre></td></tr></table>
165 <p>where <var>URL1</var>, <var>URL2</var>, ..., <var>URLN</var> are the urls of the
166 resource to be concatenated, each one possibly specifying a distinct
169 <p>For example to read a sequence of files ‘<tt>split1.mpeg</tt>’,
170 ‘<tt>split2.mpeg</tt>’, ‘<tt>split3.mpeg</tt>’ with <code>ffplay</code> use the
172 </p><table><tr><td> </td><td><pre class="example">ffplay concat:split1.mpeg\|split2.mpeg\|split3.mpeg
173 </pre></td></tr></table>
175 <p>Note that you may need to escape the character "|" which is special for
178 <a name="crypto"></a>
179 <h2 class="section"><a href="ffmpeg-protocols.html#toc-crypto">2.4 crypto</a></h2>
181 <p>AES-encrypted stream reading protocol.
183 <p>The accepted options are:
184 </p><dl compact="compact">
185 <dt> ‘<samp>key</samp>’</dt>
186 <dd><p>Set the AES decryption key binary block from given hexadecimal representation.
189 <dt> ‘<samp>iv</samp>’</dt>
190 <dd><p>Set the AES decryption initialization vector binary block from given hexadecimal representation.
194 <p>Accepted URL formats:
195 </p><table><tr><td> </td><td><pre class="example">crypto:<var>URL</var>
196 crypto+<var>URL</var>
197 </pre></td></tr></table>
200 <h2 class="section"><a href="ffmpeg-protocols.html#toc-data">2.5 data</a></h2>
202 <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>.
204 <p>For example, to convert a GIF file given inline with <code>ffmpeg</code>:
205 </p><table><tr><td> </td><td><pre class="example">ffmpeg -i "data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=" smiley.png
206 </pre></td></tr></table>
209 <h2 class="section"><a href="ffmpeg-protocols.html#toc-file">2.6 file</a></h2>
211 <p>File access protocol.
213 <p>Allow to read from or read to a file.
215 <p>For example to read from a file ‘<tt>input.mpeg</tt>’ with <code>ffmpeg</code>
217 </p><table><tr><td> </td><td><pre class="example">ffmpeg -i file:input.mpeg output.mpeg
218 </pre></td></tr></table>
220 <p>The ff* tools default to the file protocol, that is a resource
221 specified with the name "FILE.mpeg" is interpreted as the URL
222 "file:FILE.mpeg".
224 <p>This protocol accepts the following options:
226 <dl compact="compact">
227 <dt> ‘<samp>truncate</samp>’</dt>
228 <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
229 truncating. Default value is 1.
232 <dt> ‘<samp>blocksize</samp>’</dt>
233 <dd><p>Set I/O operation maximum block size, in bytes. Default value is
234 <code>INT_MAX</code>, which results in not limiting the requested block size.
235 Setting this value reasonably low improves user termination request reaction
236 time, which is valuable for files on slow medium.
241 <h2 class="section"><a href="ffmpeg-protocols.html#toc-ftp">2.7 ftp</a></h2>
243 <p>FTP (File Transfer Protocol).
245 <p>Allow to read from or write to remote resources using FTP protocol.
247 <p>Following syntax is required.
248 </p><table><tr><td> </td><td><pre class="example">ftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
249 </pre></td></tr></table>
251 <p>This protocol accepts the following options.
253 <dl compact="compact">
254 <dt> ‘<samp>timeout</samp>’</dt>
255 <dd><p>Set timeout of socket I/O operations used by the underlying low level
256 operation. By default it is set to -1, which means that the timeout is
260 <dt> ‘<samp>ftp-anonymous-password</samp>’</dt>
261 <dd><p>Password used when login as anonymous user. Typically an e-mail address
265 <dt> ‘<samp>ftp-write-seekable</samp>’</dt>
266 <dd><p>Control seekability of connection during encoding. If set to 1 the
267 resource is supposed to be seekable, if set to 0 it is assumed not
268 to be seekable. Default value is 0.
272 <p>NOTE: Protocol can be used as output, but it is recommended to not do
273 it, unless special care is taken (tests, customized server configuration
274 etc.). Different FTP servers behave in different way during seek
275 operation. ff* tools may produce incomplete content due to server limitations.
277 <a name="gopher"></a>
278 <h2 class="section"><a href="ffmpeg-protocols.html#toc-gopher">2.8 gopher</a></h2>
283 <h2 class="section"><a href="ffmpeg-protocols.html#toc-hls">2.9 hls</a></h2>
285 <p>Read Apple HTTP Live Streaming compliant segmented stream as
286 a uniform one. The M3U8 playlists describing the segments can be
287 remote HTTP resources or local files, accessed using the standard
289 The nested protocol is declared by specifying
290 "+<var>proto</var>" after the hls URI scheme name, where <var>proto</var>
291 is either "file" or "http".
293 <table><tr><td> </td><td><pre class="example">hls+http://host/path/to/remote/resource.m3u8
294 hls+file://path/to/local/resource.m3u8
295 </pre></td></tr></table>
297 <p>Using this protocol is discouraged - the hls demuxer should work
298 just as well (if not, please report the issues) and is more complete.
299 To use the hls demuxer instead, simply use the direct URLs to the
303 <h2 class="section"><a href="ffmpeg-protocols.html#toc-http">2.10 http</a></h2>
305 <p>HTTP (Hyper Text Transfer Protocol).
307 <p>This protocol accepts the following options.
309 <dl compact="compact">
310 <dt> ‘<samp>seekable</samp>’</dt>
311 <dd><p>Control seekability of connection. If set to 1 the resource is
312 supposed to be seekable, if set to 0 it is assumed not to be seekable,
313 if set to -1 it will try to autodetect if it is seekable. Default
317 <dt> ‘<samp>chunked_post</samp>’</dt>
318 <dd><p>If set to 1 use chunked transfer-encoding for posts, default is 1.
321 <dt> ‘<samp>headers</samp>’</dt>
322 <dd><p>Set custom HTTP headers, can override built in default headers. The
323 value must be a string encoding the headers.
326 <dt> ‘<samp>content_type</samp>’</dt>
327 <dd><p>Force a content type.
330 <dt> ‘<samp>user-agent</samp>’</dt>
331 <dd><p>Override User-Agent header. If not specified the protocol will use a
332 string describing the libavformat build.
335 <dt> ‘<samp>multiple_requests</samp>’</dt>
336 <dd><p>Use persistent connections if set to 1. By default it is 0.
339 <dt> ‘<samp>post_data</samp>’</dt>
340 <dd><p>Set custom HTTP post data.
343 <dt> ‘<samp>timeout</samp>’</dt>
344 <dd><p>Set timeout of socket I/O operations used by the underlying low level
345 operation. By default it is set to -1, which means that the timeout is
349 <dt> ‘<samp>mime_type</samp>’</dt>
350 <dd><p>Set MIME type.
353 <dt> ‘<samp>icy</samp>’</dt>
354 <dd><p>If set to 1 request ICY (SHOUTcast) metadata from the server. If the server
355 supports this, the metadata has to be retrieved by the application by reading
356 the ‘<samp>icy_metadata_headers</samp>’ and ‘<samp>icy_metadata_packet</samp>’ options.
360 <dt> ‘<samp>icy_metadata_headers</samp>’</dt>
361 <dd><p>If the server supports ICY metadata, this contains the ICY specific HTTP reply
362 headers, separated with newline characters.
365 <dt> ‘<samp>icy_metadata_packet</samp>’</dt>
366 <dd><p>If the server supports ICY metadata, and ‘<samp>icy</samp>’ was set to 1, this
367 contains the last non-empty metadata packet sent by the server.
370 <dt> ‘<samp>cookies</samp>’</dt>
371 <dd><p>Set the cookies to be sent in future requests. The format of each cookie is the
372 same as the value of a Set-Cookie HTTP response field. Multiple cookies can be
373 delimited by a newline character.
377 <a name="HTTP-Cookies"></a>
378 <h3 class="subsection"><a href="ffmpeg-protocols.html#toc-HTTP-Cookies">2.10.1 HTTP Cookies</a></h3>
380 <p>Some HTTP requests will be denied unless cookie values are passed in with the
381 request. The ‘<samp>cookies</samp>’ option allows these cookies to be specified. At
382 the very least, each cookie must specify a value along with a path and domain.
383 HTTP requests that match both the domain and path will automatically include the
384 cookie value in the HTTP Cookie header field. Multiple cookies can be delimited
387 <p>The required syntax to play a stream specifying a cookie is:
388 </p><table><tr><td> </td><td><pre class="example">ffplay -cookies "nlqptid=nltid=tsn; path=/; domain=somedomain.com;" http://somedomain.com/somestream.m3u8
389 </pre></td></tr></table>
392 <h2 class="section"><a href="ffmpeg-protocols.html#toc-mmst">2.11 mmst</a></h2>
394 <p>MMS (Microsoft Media Server) protocol over TCP.
397 <h2 class="section"><a href="ffmpeg-protocols.html#toc-mmsh">2.12 mmsh</a></h2>
399 <p>MMS (Microsoft Media Server) protocol over HTTP.
401 <p>The required syntax is:
402 </p><table><tr><td> </td><td><pre class="example">mmsh://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>]
403 </pre></td></tr></table>
406 <h2 class="section"><a href="ffmpeg-protocols.html#toc-md5">2.13 md5</a></h2>
408 <p>MD5 output protocol.
410 <p>Computes the MD5 hash of the data to be written, and on close writes
411 this to the designated output or stdout if none is specified. It can
412 be used to test muxers without writing an actual file.
414 <p>Some examples follow.
415 </p><table><tr><td> </td><td><pre class="example"># Write the MD5 hash of the encoded AVI file to the file output.avi.md5.
416 ffmpeg -i input.flv -f avi -y md5:output.avi.md5
418 # Write the MD5 hash of the encoded AVI file to stdout.
419 ffmpeg -i input.flv -f avi -y md5:
420 </pre></td></tr></table>
422 <p>Note that some formats (typically MOV) require the output protocol to
423 be seekable, so they will fail with the MD5 output protocol.
426 <h2 class="section"><a href="ffmpeg-protocols.html#toc-pipe">2.14 pipe</a></h2>
428 <p>UNIX pipe access protocol.
430 <p>Allow to read and write from UNIX pipes.
432 <p>The accepted syntax is:
433 </p><table><tr><td> </td><td><pre class="example">pipe:[<var>number</var>]
434 </pre></td></tr></table>
436 <p><var>number</var> is the number corresponding to the file descriptor of the
437 pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr). If <var>number</var>
438 is not specified, by default the stdout file descriptor will be used
439 for writing, stdin for reading.
441 <p>For example to read from stdin with <code>ffmpeg</code>:
442 </p><table><tr><td> </td><td><pre class="example">cat test.wav | ffmpeg -i pipe:0
443 # ...this is the same as...
444 cat test.wav | ffmpeg -i pipe:
445 </pre></td></tr></table>
447 <p>For writing to stdout with <code>ffmpeg</code>:
448 </p><table><tr><td> </td><td><pre class="example">ffmpeg -i test.wav -f avi pipe:1 | cat > test.avi
449 # ...this is the same as...
450 ffmpeg -i test.wav -f avi pipe: | cat > test.avi
451 </pre></td></tr></table>
453 <p>This protocol accepts the following options:
455 <dl compact="compact">
456 <dt> ‘<samp>blocksize</samp>’</dt>
457 <dd><p>Set I/O operation maximum block size, in bytes. Default value is
458 <code>INT_MAX</code>, which results in not limiting the requested block size.
459 Setting this value reasonably low improves user termination request reaction
460 time, which is valuable if data transmission is slow.
464 <p>Note that some formats (typically MOV), require the output protocol to
465 be seekable, so they will fail with the pipe output protocol.
468 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtmp">2.15 rtmp</a></h2>
470 <p>Real-Time Messaging Protocol.
472 <p>The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
473 content across a TCP/IP network.
475 <p>The required syntax is:
476 </p><table><tr><td> </td><td><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>]
477 </pre></td></tr></table>
479 <p>The accepted parameters are:
480 </p><dl compact="compact">
481 <dt> ‘<samp>username</samp>’</dt>
482 <dd><p>An optional username (mostly for publishing).
485 <dt> ‘<samp>password</samp>’</dt>
486 <dd><p>An optional password (mostly for publishing).
489 <dt> ‘<samp>server</samp>’</dt>
490 <dd><p>The address of the RTMP server.
493 <dt> ‘<samp>port</samp>’</dt>
494 <dd><p>The number of the TCP port to use (by default is 1935).
497 <dt> ‘<samp>app</samp>’</dt>
498 <dd><p>It is the name of the application to access. It usually corresponds to
499 the path where the application is installed on the RTMP server
500 (e.g. ‘<tt>/ondemand/</tt>’, ‘<tt>/flash/live/</tt>’, etc.). You can override
501 the value parsed from the URI through the <code>rtmp_app</code> option, too.
504 <dt> ‘<samp>playpath</samp>’</dt>
505 <dd><p>It is the path or name of the resource to play with reference to the
506 application specified in <var>app</var>, may be prefixed by "mp4:". You
507 can override the value parsed from the URI through the <code>rtmp_playpath</code>
511 <dt> ‘<samp>listen</samp>’</dt>
512 <dd><p>Act as a server, listening for an incoming connection.
515 <dt> ‘<samp>timeout</samp>’</dt>
516 <dd><p>Maximum time to wait for the incoming connection. Implies listen.
520 <p>Additionally, the following parameters can be set via command line options
521 (or in code via <code>AVOption</code>s):
522 </p><dl compact="compact">
523 <dt> ‘<samp>rtmp_app</samp>’</dt>
524 <dd><p>Name of application to connect on the RTMP server. This option
525 overrides the parameter specified in the URI.
528 <dt> ‘<samp>rtmp_buffer</samp>’</dt>
529 <dd><p>Set the client buffer time in milliseconds. The default is 3000.
532 <dt> ‘<samp>rtmp_conn</samp>’</dt>
533 <dd><p>Extra arbitrary AMF connection parameters, parsed from a string,
534 e.g. like <code>B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0</code>.
535 Each value is prefixed by a single character denoting the type,
536 B for Boolean, N for number, S for string, O for object, or Z for null,
537 followed by a colon. For Booleans the data must be either 0 or 1 for
538 FALSE or TRUE, respectively. Likewise for Objects the data must be 0 or
539 1 to end or begin an object, respectively. Data items in subobjects may
540 be named, by prefixing the type with ’N’ and specifying the name before
541 the value (i.e. <code>NB:myFlag:1</code>). This option may be used multiple
542 times to construct arbitrary AMF sequences.
545 <dt> ‘<samp>rtmp_flashver</samp>’</dt>
546 <dd><p>Version of the Flash plugin used to run the SWF player. The default
547 is LNX 9,0,124,2. (When publishing, the default is FMLE/3.0 (compatible;
548 <libavformat version>).)
551 <dt> ‘<samp>rtmp_flush_interval</samp>’</dt>
552 <dd><p>Number of packets flushed in the same request (RTMPT only). The default
556 <dt> ‘<samp>rtmp_live</samp>’</dt>
557 <dd><p>Specify that the media is a live stream. No resuming or seeking in
558 live streams is possible. The default value is <code>any</code>, which means the
559 subscriber first tries to play the live stream specified in the
560 playpath. If a live stream of that name is not found, it plays the
561 recorded stream. The other possible values are <code>live</code> and
562 <code>recorded</code>.
565 <dt> ‘<samp>rtmp_pageurl</samp>’</dt>
566 <dd><p>URL of the web page in which the media was embedded. By default no
570 <dt> ‘<samp>rtmp_playpath</samp>’</dt>
571 <dd><p>Stream identifier to play or to publish. This option overrides the
572 parameter specified in the URI.
575 <dt> ‘<samp>rtmp_subscribe</samp>’</dt>
576 <dd><p>Name of live stream to subscribe to. By default no value will be sent.
577 It is only sent if the option is specified or if rtmp_live
581 <dt> ‘<samp>rtmp_swfhash</samp>’</dt>
582 <dd><p>SHA256 hash of the decompressed SWF file (32 bytes).
585 <dt> ‘<samp>rtmp_swfsize</samp>’</dt>
586 <dd><p>Size of the decompressed SWF file, required for SWFVerification.
589 <dt> ‘<samp>rtmp_swfurl</samp>’</dt>
590 <dd><p>URL of the SWF player for the media. By default no value will be sent.
593 <dt> ‘<samp>rtmp_swfverify</samp>’</dt>
594 <dd><p>URL to player swf file, compute hash/size automatically.
597 <dt> ‘<samp>rtmp_tcurl</samp>’</dt>
598 <dd><p>URL of the target stream. Defaults to proto://host[:port]/app.
603 <p>For example to read with <code>ffplay</code> a multimedia resource named
604 "sample" from the application "vod" from an RTMP server "myserver":
605 </p><table><tr><td> </td><td><pre class="example">ffplay rtmp://myserver/vod/sample
606 </pre></td></tr></table>
608 <p>To publish to a password protected server, passing the playpath and
609 app names separately:
610 </p><table><tr><td> </td><td><pre class="example">ffmpeg -re -i <input> -f flv -rtmp_playpath some/long/path -rtmp_app long/app/name rtmp://username:password@myserver/
611 </pre></td></tr></table>
614 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtmpe">2.16 rtmpe</a></h2>
616 <p>Encrypted Real-Time Messaging Protocol.
618 <p>The Encrypted Real-Time Messaging Protocol (RTMPE) is used for
619 streaming multimedia content within standard cryptographic primitives,
620 consisting of Diffie-Hellman key exchange and HMACSHA256, generating
624 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtmps">2.17 rtmps</a></h2>
626 <p>Real-Time Messaging Protocol over a secure SSL connection.
628 <p>The Real-Time Messaging Protocol (RTMPS) is used for streaming
629 multimedia content across an encrypted connection.
632 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtmpt">2.18 rtmpt</a></h2>
634 <p>Real-Time Messaging Protocol tunneled through HTTP.
636 <p>The Real-Time Messaging Protocol tunneled through HTTP (RTMPT) is used
637 for streaming multimedia content within HTTP requests to traverse
640 <a name="rtmpte"></a>
641 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtmpte">2.19 rtmpte</a></h2>
643 <p>Encrypted Real-Time Messaging Protocol tunneled through HTTP.
645 <p>The Encrypted Real-Time Messaging Protocol tunneled through HTTP (RTMPTE)
646 is used for streaming multimedia content within HTTP requests to traverse
649 <a name="rtmpts"></a>
650 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtmpts">2.20 rtmpts</a></h2>
652 <p>Real-Time Messaging Protocol tunneled through HTTPS.
654 <p>The Real-Time Messaging Protocol tunneled through HTTPS (RTMPTS) is used
655 for streaming multimedia content within HTTPS requests to traverse
658 <a name="libssh"></a>
659 <h2 class="section"><a href="ffmpeg-protocols.html#toc-libssh">2.21 libssh</a></h2>
661 <p>Secure File Transfer Protocol via libssh
663 <p>Allow to read from or write to remote resources using SFTP protocol.
665 <p>Following syntax is required.
667 <table><tr><td> </td><td><pre class="example">sftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
668 </pre></td></tr></table>
670 <p>This protocol accepts the following options.
672 <dl compact="compact">
673 <dt> ‘<samp>timeout</samp>’</dt>
674 <dd><p>Set timeout of socket I/O operations used by the underlying low level
675 operation. By default it is set to -1, which means that the timeout
679 <dt> ‘<samp>truncate</samp>’</dt>
680 <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
681 truncating. Default value is 1.
686 <p>Example: Play a file stored on remote server.
688 <table><tr><td> </td><td><pre class="example">ffplay sftp://user:password@server_address:22/home/user/resource.mpeg
689 </pre></td></tr></table>
691 <a name="librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte"></a>
692 <h2 class="section"><a href="ffmpeg-protocols.html#toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte">2.22 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></h2>
694 <p>Real-Time Messaging Protocol and its variants supported through
697 <p>Requires the presence of the librtmp headers and library during
698 configuration. You need to explicitly configure the build with
699 "–enable-librtmp". If enabled this will replace the native RTMP
702 <p>This protocol provides most client functions and a few server
703 functions needed to support RTMP, RTMP tunneled in HTTP (RTMPT),
704 encrypted RTMP (RTMPE), RTMP over SSL/TLS (RTMPS) and tunneled
705 variants of these encrypted types (RTMPTE, RTMPTS).
707 <p>The required syntax is:
708 </p><table><tr><td> </td><td><pre class="example"><var>rtmp_proto</var>://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>] <var>options</var>
709 </pre></td></tr></table>
711 <p>where <var>rtmp_proto</var> is one of the strings "rtmp", "rtmpt", "rtmpe",
712 "rtmps", "rtmpte", "rtmpts" corresponding to each RTMP variant, and
713 <var>server</var>, <var>port</var>, <var>app</var> and <var>playpath</var> have the same
714 meaning as specified for the RTMP native protocol.
715 <var>options</var> contains a list of space-separated options of the form
716 <var>key</var>=<var>val</var>.
718 <p>See the librtmp manual page (man 3 librtmp) for more information.
720 <p>For example, to stream a file in real-time to an RTMP server using
722 </p><table><tr><td> </td><td><pre class="example">ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
723 </pre></td></tr></table>
725 <p>To play the same stream using <code>ffplay</code>:
726 </p><table><tr><td> </td><td><pre class="example">ffplay "rtmp://myserver/live/mystream live=1"
727 </pre></td></tr></table>
730 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtp">2.23 rtp</a></h2>
732 <p>Real-time Transport Protocol.
734 <p>The required syntax for an RTP URL is:
735 rtp://<var>hostname</var>[:<var>port</var>][?<var>option</var>=<var>val</var>...]
737 <p><var>port</var> specifies the RTP port to use.
739 <p>The following URL options are supported:
741 <dl compact="compact">
742 <dt> ‘<samp>ttl=<var>n</var></samp>’</dt>
743 <dd><p>Set the TTL (Time-To-Live) value (for multicast only).
746 <dt> ‘<samp>rtcpport=<var>n</var></samp>’</dt>
747 <dd><p>Set the remote RTCP port to <var>n</var>.
750 <dt> ‘<samp>localrtpport=<var>n</var></samp>’</dt>
751 <dd><p>Set the local RTP port to <var>n</var>.
754 <dt> ‘<samp>localrtcpport=<var>n</var>'</samp>’</dt>
755 <dd><p>Set the local RTCP port to <var>n</var>.
758 <dt> ‘<samp>pkt_size=<var>n</var></samp>’</dt>
759 <dd><p>Set max packet size (in bytes) to <var>n</var>.
762 <dt> ‘<samp>connect=0|1</samp>’</dt>
763 <dd><p>Do a <code>connect()</code> on the UDP socket (if set to 1) or not (if set
767 <dt> ‘<samp>sources=<var>ip</var>[,<var>ip</var>]</samp>’</dt>
768 <dd><p>List allowed source IP addresses.
771 <dt> ‘<samp>block=<var>ip</var>[,<var>ip</var>]</samp>’</dt>
772 <dd><p>List disallowed (blocked) source IP addresses.
775 <dt> ‘<samp>write_to_source=0|1</samp>’</dt>
776 <dd><p>Send packets to the source address of the latest received packet (if
777 set to 1) or to a default remote address (if set to 0).
780 <dt> ‘<samp>localport=<var>n</var></samp>’</dt>
781 <dd><p>Set the local RTP port to <var>n</var>.
783 <p>This is a deprecated option. Instead, ‘<samp>localrtpport</samp>’ should be
793 If ‘<samp>rtcpport</samp>’ is not set the RTCP port will be set to the RTP
797 If ‘<samp>localrtpport</samp>’ (the local RTP port) is not set any available
798 port will be used for the local RTP and RTCP ports.
801 If ‘<samp>localrtcpport</samp>’ (the local RTCP port) is not set it will be
802 set to the the local RTP port value plus 1.
806 <h2 class="section"><a href="ffmpeg-protocols.html#toc-rtsp">2.24 rtsp</a></h2>
808 <p>RTSP is not technically a protocol handler in libavformat, it is a demuxer
809 and muxer. The demuxer supports both normal RTSP (with data transferred
810 over RTP; this is used by e.g. Apple and Microsoft) and Real-RTSP (with
811 data transferred over RDT).
813 <p>The muxer can be used to send a stream using RTSP ANNOUNCE to a server
814 supporting it (currently Darwin Streaming Server and Mischa Spiegelmock’s
815 <a href="http://github.com/revmischa/rtsp-server">RTSP server</a>).
817 <p>The required syntax for a RTSP url is:
818 </p><table><tr><td> </td><td><pre class="example">rtsp://<var>hostname</var>[:<var>port</var>]/<var>path</var>
819 </pre></td></tr></table>
821 <p>The following options (set on the <code>ffmpeg</code>/<code>ffplay</code> command
822 line, or set in code via <code>AVOption</code>s or in <code>avformat_open_input</code>),
825 <p>Flags for <code>rtsp_transport</code>:
827 <dl compact="compact">
828 <dt> ‘<samp>udp</samp>’</dt>
829 <dd><p>Use UDP as lower transport protocol.
832 <dt> ‘<samp>tcp</samp>’</dt>
833 <dd><p>Use TCP (interleaving within the RTSP control channel) as lower
837 <dt> ‘<samp>udp_multicast</samp>’</dt>
838 <dd><p>Use UDP multicast as lower transport protocol.
841 <dt> ‘<samp>http</samp>’</dt>
842 <dd><p>Use HTTP tunneling as lower transport protocol, which is useful for
847 <p>Multiple lower transport protocols may be specified, in that case they are
848 tried one at a time (if the setup of one fails, the next one is tried).
849 For the muxer, only the <code>tcp</code> and <code>udp</code> options are supported.
851 <p>Flags for <code>rtsp_flags</code>:
853 <dl compact="compact">
854 <dt> ‘<samp>filter_src</samp>’</dt>
855 <dd><p>Accept packets only from negotiated peer address and port.
857 <dt> ‘<samp>listen</samp>’</dt>
858 <dd><p>Act as a server, listening for an incoming connection.
862 <p>When receiving data over UDP, the demuxer tries to reorder received packets
863 (since they may arrive out of order, or packets may get lost totally). This
864 can be disabled by setting the maximum demuxing delay to zero (via
865 the <code>max_delay</code> field of AVFormatContext).
867 <p>When watching multi-bitrate Real-RTSP streams with <code>ffplay</code>, the
868 streams to display can be chosen with <code>-vst</code> <var>n</var> and
869 <code>-ast</code> <var>n</var> for video and audio respectively, and can be switched
870 on the fly by pressing <code>v</code> and <code>a</code>.
872 <p>Example command lines:
874 <p>To watch a stream over UDP, with a max reordering delay of 0.5 seconds:
876 <table><tr><td> </td><td><pre class="example">ffplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
877 </pre></td></tr></table>
879 <p>To watch a stream tunneled over HTTP:
881 <table><tr><td> </td><td><pre class="example">ffplay -rtsp_transport http rtsp://server/video.mp4
882 </pre></td></tr></table>
884 <p>To send a stream in realtime to a RTSP server, for others to watch:
886 <table><tr><td> </td><td><pre class="example">ffmpeg -re -i <var>input</var> -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
887 </pre></td></tr></table>
889 <p>To receive a stream in realtime:
891 <table><tr><td> </td><td><pre class="example">ffmpeg -rtsp_flags listen -i rtsp://ownaddress/live.sdp <var>output</var>
892 </pre></td></tr></table>
894 <dl compact="compact">
895 <dt> ‘<samp>stimeout</samp>’</dt>
896 <dd><p>Socket IO timeout in micro seconds.
901 <h2 class="section"><a href="ffmpeg-protocols.html#toc-sap">2.25 sap</a></h2>
903 <p>Session Announcement Protocol (RFC 2974). This is not technically a
904 protocol handler in libavformat, it is a muxer and demuxer.
905 It is used for signalling of RTP streams, by announcing the SDP for the
906 streams regularly on a separate port.
909 <h3 class="subsection"><a href="ffmpeg-protocols.html#toc-Muxer">2.25.1 Muxer</a></h3>
911 <p>The syntax for a SAP url given to the muxer is:
912 </p><table><tr><td> </td><td><pre class="example">sap://<var>destination</var>[:<var>port</var>][?<var>options</var>]
913 </pre></td></tr></table>
915 <p>The RTP packets are sent to <var>destination</var> on port <var>port</var>,
916 or to port 5004 if no port is specified.
917 <var>options</var> is a <code>&</code>-separated list. The following options
920 <dl compact="compact">
921 <dt> ‘<samp>announce_addr=<var>address</var></samp>’</dt>
922 <dd><p>Specify the destination IP address for sending the announcements to.
923 If omitted, the announcements are sent to the commonly used SAP
924 announcement multicast address 224.2.127.254 (sap.mcast.net), or
925 ff0e::2:7ffe if <var>destination</var> is an IPv6 address.
928 <dt> ‘<samp>announce_port=<var>port</var></samp>’</dt>
929 <dd><p>Specify the port to send the announcements on, defaults to
930 9875 if not specified.
933 <dt> ‘<samp>ttl=<var>ttl</var></samp>’</dt>
934 <dd><p>Specify the time to live value for the announcements and RTP packets,
938 <dt> ‘<samp>same_port=<var>0|1</var></samp>’</dt>
939 <dd><p>If set to 1, send all RTP streams on the same port pair. If zero (the
940 default), all streams are sent on unique ports, with each stream on a
941 port 2 numbers higher than the previous.
942 VLC/Live555 requires this to be set to 1, to be able to receive the stream.
943 The RTP stack in libavformat for receiving requires all streams to be sent
948 <p>Example command lines follow.
950 <p>To broadcast a stream on the local subnet, for watching in VLC:
952 <table><tr><td> </td><td><pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255?same_port=1
953 </pre></td></tr></table>
955 <p>Similarly, for watching in <code>ffplay</code>:
957 <table><tr><td> </td><td><pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255
958 </pre></td></tr></table>
960 <p>And for watching in <code>ffplay</code>, over IPv6:
962 <table><tr><td> </td><td><pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://[ff0e::1:2:3:4]
963 </pre></td></tr></table>
965 <a name="Demuxer"></a>
966 <h3 class="subsection"><a href="ffmpeg-protocols.html#toc-Demuxer">2.25.2 Demuxer</a></h3>
968 <p>The syntax for a SAP url given to the demuxer is:
969 </p><table><tr><td> </td><td><pre class="example">sap://[<var>address</var>][:<var>port</var>]
970 </pre></td></tr></table>
972 <p><var>address</var> is the multicast address to listen for announcements on,
973 if omitted, the default 224.2.127.254 (sap.mcast.net) is used. <var>port</var>
974 is the port that is listened on, 9875 if omitted.
976 <p>The demuxers listens for announcements on the given address and port.
977 Once an announcement is received, it tries to receive that particular stream.
979 <p>Example command lines follow.
981 <p>To play back the first stream announced on the normal SAP multicast address:
983 <table><tr><td> </td><td><pre class="example">ffplay sap://
984 </pre></td></tr></table>
986 <p>To play back the first stream announced on one the default IPv6 SAP multicast address:
988 <table><tr><td> </td><td><pre class="example">ffplay sap://[ff0e::2:7ffe]
989 </pre></td></tr></table>
992 <h2 class="section"><a href="ffmpeg-protocols.html#toc-sctp">2.26 sctp</a></h2>
994 <p>Stream Control Transmission Protocol.
996 <p>The accepted URL syntax is:
997 </p><table><tr><td> </td><td><pre class="example">sctp://<var>host</var>:<var>port</var>[?<var>options</var>]
998 </pre></td></tr></table>
1000 <p>The protocol accepts the following options:
1001 </p><dl compact="compact">
1002 <dt> ‘<samp>listen</samp>’</dt>
1003 <dd><p>If set to any value, listen for an incoming connection. Outgoing connection is done by default.
1006 <dt> ‘<samp>max_streams</samp>’</dt>
1007 <dd><p>Set the maximum number of streams. By default no limit is set.
1012 <h2 class="section"><a href="ffmpeg-protocols.html#toc-srtp">2.27 srtp</a></h2>
1014 <p>Secure Real-time Transport Protocol.
1016 <p>The accepted options are:
1017 </p><dl compact="compact">
1018 <dt> ‘<samp>srtp_in_suite</samp>’</dt>
1019 <dt> ‘<samp>srtp_out_suite</samp>’</dt>
1020 <dd><p>Select input and output encoding suites.
1022 <p>Supported values:
1023 </p><dl compact="compact">
1024 <dt> ‘<samp>AES_CM_128_HMAC_SHA1_80</samp>’</dt>
1025 <dt> ‘<samp>SRTP_AES128_CM_HMAC_SHA1_80</samp>’</dt>
1026 <dt> ‘<samp>AES_CM_128_HMAC_SHA1_32</samp>’</dt>
1027 <dt> ‘<samp>SRTP_AES128_CM_HMAC_SHA1_32</samp>’</dt>
1031 <dt> ‘<samp>srtp_in_params</samp>’</dt>
1032 <dt> ‘<samp>srtp_out_params</samp>’</dt>
1033 <dd><p>Set input and output encoding parameters, which are expressed by a
1034 base64-encoded representation of a binary block. The first 16 bytes of
1035 this binary block are used as master key, the following 14 bytes are
1036 used as master salt.
1041 <h2 class="section"><a href="ffmpeg-protocols.html#toc-tcp">2.28 tcp</a></h2>
1043 <p>Trasmission Control Protocol.
1045 <p>The required syntax for a TCP url is:
1046 </p><table><tr><td> </td><td><pre class="example">tcp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
1047 </pre></td></tr></table>
1049 <dl compact="compact">
1050 <dt> ‘<samp>listen</samp>’</dt>
1051 <dd><p>Listen for an incoming connection
1054 <dt> ‘<samp>timeout=<var>microseconds</var></samp>’</dt>
1055 <dd><p>In read mode: if no data arrived in more than this time interval, raise error.
1056 In write mode: if socket cannot be written in more than this time interval, raise error.
1057 This also sets timeout on TCP connection establishing.
1059 <table><tr><td> </td><td><pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tcp://<var>hostname</var>:<var>port</var>?listen
1060 ffplay tcp://<var>hostname</var>:<var>port</var>
1061 </pre></td></tr></table>
1067 <h2 class="section"><a href="ffmpeg-protocols.html#toc-tls">2.29 tls</a></h2>
1069 <p>Transport Layer Security (TLS) / Secure Sockets Layer (SSL)
1071 <p>The required syntax for a TLS/SSL url is:
1072 </p><table><tr><td> </td><td><pre class="example">tls://<var>hostname</var>:<var>port</var>[?<var>options</var>]
1073 </pre></td></tr></table>
1075 <p>The following parameters can be set via command line options
1076 (or in code via <code>AVOption</code>s):
1078 <dl compact="compact">
1079 <dt> ‘<samp>ca_file, cafile=<var>filename</var></samp>’</dt>
1080 <dd><p>A file containing certificate authority (CA) root certificates to treat
1081 as trusted. If the linked TLS library contains a default this might not
1082 need to be specified for verification to work, but not all libraries and
1083 setups have defaults built in.
1084 The file must be in OpenSSL PEM format.
1087 <dt> ‘<samp>tls_verify=<var>1|0</var></samp>’</dt>
1088 <dd><p>If enabled, try to verify the peer that we are communicating with.
1089 Note, if using OpenSSL, this currently only makes sure that the
1090 peer certificate is signed by one of the root certificates in the CA
1091 database, but it does not validate that the certificate actually
1092 matches the host name we are trying to connect to. (With GnuTLS,
1093 the host name is validated as well.)
1095 <p>This is disabled by default since it requires a CA database to be
1096 provided by the caller in many cases.
1099 <dt> ‘<samp>cert_file, cert=<var>filename</var></samp>’</dt>
1100 <dd><p>A file containing a certificate to use in the handshake with the peer.
1101 (When operating as server, in listen mode, this is more often required
1102 by the peer, while client certificates only are mandated in certain
1106 <dt> ‘<samp>key_file, key=<var>filename</var></samp>’</dt>
1107 <dd><p>A file containing the private key for the certificate.
1110 <dt> ‘<samp>listen=<var>1|0</var></samp>’</dt>
1111 <dd><p>If enabled, listen for connections on the provided port, and assume
1112 the server role in the handshake instead of the client role.
1117 <p>Example command lines:
1119 <p>To create a TLS/SSL server that serves an input stream.
1121 <table><tr><td> </td><td><pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tls://<var>hostname</var>:<var>port</var>?listen&cert=<var>server.crt</var>&key=<var>server.key</var>
1122 </pre></td></tr></table>
1124 <p>To play back a stream from the TLS/SSL server using <code>ffplay</code>:
1126 <table><tr><td> </td><td><pre class="example">ffplay tls://<var>hostname</var>:<var>port</var>
1127 </pre></td></tr></table>
1130 <h2 class="section"><a href="ffmpeg-protocols.html#toc-udp">2.30 udp</a></h2>
1132 <p>User Datagram Protocol.
1134 <p>The required syntax for a UDP url is:
1135 </p><table><tr><td> </td><td><pre class="example">udp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
1136 </pre></td></tr></table>
1138 <p><var>options</var> contains a list of &-separated options of the form <var>key</var>=<var>val</var>.
1140 <p>In case threading is enabled on the system, a circular buffer is used
1141 to store the incoming data, which allows to reduce loss of data due to
1142 UDP socket buffer overruns. The <var>fifo_size</var> and
1143 <var>overrun_nonfatal</var> options are related to this buffer.
1145 <p>The list of supported options follows.
1147 <dl compact="compact">
1148 <dt> ‘<samp>buffer_size=<var>size</var></samp>’</dt>
1149 <dd><p>Set the UDP socket buffer size in bytes. This is used both for the
1150 receiving and the sending buffer size.
1153 <dt> ‘<samp>localport=<var>port</var></samp>’</dt>
1154 <dd><p>Override the local UDP port to bind with.
1157 <dt> ‘<samp>localaddr=<var>addr</var></samp>’</dt>
1158 <dd><p>Choose the local IP address. This is useful e.g. if sending multicast
1159 and the host has multiple interfaces, where the user can choose
1160 which interface to send on by specifying the IP address of that interface.
1163 <dt> ‘<samp>pkt_size=<var>size</var></samp>’</dt>
1164 <dd><p>Set the size in bytes of UDP packets.
1167 <dt> ‘<samp>reuse=<var>1|0</var></samp>’</dt>
1168 <dd><p>Explicitly allow or disallow reusing UDP sockets.
1171 <dt> ‘<samp>ttl=<var>ttl</var></samp>’</dt>
1172 <dd><p>Set the time to live value (for multicast only).
1175 <dt> ‘<samp>connect=<var>1|0</var></samp>’</dt>
1176 <dd><p>Initialize the UDP socket with <code>connect()</code>. In this case, the
1177 destination address can’t be changed with ff_udp_set_remote_url later.
1178 If the destination address isn’t known at the start, this option can
1179 be specified in ff_udp_set_remote_url, too.
1180 This allows finding out the source address for the packets with getsockname,
1181 and makes writes return with AVERROR(ECONNREFUSED) if "destination
1182 unreachable" is received.
1183 For receiving, this gives the benefit of only receiving packets from
1184 the specified peer address/port.
1187 <dt> ‘<samp>sources=<var>address</var>[,<var>address</var>]</samp>’</dt>
1188 <dd><p>Only receive packets sent to the multicast group from one of the
1189 specified sender IP addresses.
1192 <dt> ‘<samp>block=<var>address</var>[,<var>address</var>]</samp>’</dt>
1193 <dd><p>Ignore packets sent to the multicast group from the specified
1194 sender IP addresses.
1197 <dt> ‘<samp>fifo_size=<var>units</var></samp>’</dt>
1198 <dd><p>Set the UDP receiving circular buffer size, expressed as a number of
1199 packets with size of 188 bytes. If not specified defaults to 7*4096.
1202 <dt> ‘<samp>overrun_nonfatal=<var>1|0</var></samp>’</dt>
1203 <dd><p>Survive in case of UDP receiving circular buffer overrun. Default
1207 <dt> ‘<samp>timeout=<var>microseconds</var></samp>’</dt>
1208 <dd><p>In read mode: if no data arrived in more than this time interval, raise error.
1212 <p>Some usage examples of the UDP protocol with <code>ffmpeg</code> follow.
1214 <p>To stream over UDP to a remote endpoint:
1215 </p><table><tr><td> </td><td><pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> udp://<var>hostname</var>:<var>port</var>
1216 </pre></td></tr></table>
1218 <p>To stream in mpegts format over UDP using 188 sized UDP packets, using a large input buffer:
1219 </p><table><tr><td> </td><td><pre class="example">ffmpeg -i <var>input</var> -f mpegts udp://<var>hostname</var>:<var>port</var>?pkt_size=188&buffer_size=65535
1220 </pre></td></tr></table>
1222 <p>To receive over UDP from a remote endpoint:
1223 </p><table><tr><td> </td><td><pre class="example">ffmpeg -i udp://[<var>multicast-address</var>]:<var>port</var>
1224 </pre></td></tr></table>
1227 <h2 class="section"><a href="ffmpeg-protocols.html#toc-unix">2.31 unix</a></h2>
1229 <p>Unix local socket
1231 <p>The required syntax for a Unix socket URL is:
1233 <table><tr><td> </td><td><pre class="example">unix://<var>filepath</var>
1234 </pre></td></tr></table>
1236 <p>The following parameters can be set via command line options
1237 (or in code via <code>AVOption</code>s):
1239 <dl compact="compact">
1240 <dt> ‘<samp>timeout</samp>’</dt>
1241 <dd><p>Timeout in ms.
1243 <dt> ‘<samp>listen</samp>’</dt>
1244 <dd><p>Create the Unix socket in listening mode.
1249 <a name="See-Also"></a>
1250 <h1 class="chapter"><a href="ffmpeg-protocols.html#toc-See-Also">3. See Also</a></h1>
1252 <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>, <a href="ffserver.html">ffserver</a>,
1253 <a href="libavformat.html">libavformat</a>
1256 <a name="Authors"></a>
1257 <h1 class="chapter"><a href="ffmpeg-protocols.html#toc-Authors">4. Authors</a></h1>
1259 <p>The FFmpeg developers.
1261 <p>For details about the authorship, see the Git history of the project
1262 (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
1263 <code>git log</code> in the FFmpeg source directory, or browsing the
1264 online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
1266 <p>Maintainers for the specific components are listed in the file
1267 ‘<tt>MAINTAINERS</tt>’ in the source code tree.
1270 <footer class="footer pagination-right">
1271 <span class="label label-info">This document was generated by <em>Kyle Schwarz</em> on <em>December 14, 2013</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.</span></footer></div></div></body>