You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

798 lines
23KB

  1. @chapter Protocols
  2. @c man begin PROTOCOLS
  3. Protocols are configured elements in Libav which allow to access
  4. resources which require the use of a particular protocol.
  5. When you configure your Libav build, all the supported protocols are
  6. enabled by default. You can list all available ones using the
  7. configure option "--list-protocols".
  8. You can disable all the protocols using the configure option
  9. "--disable-protocols", and selectively enable a protocol using the
  10. option "--enable-protocol=@var{PROTOCOL}", or you can disable a
  11. particular protocol using the option
  12. "--disable-protocol=@var{PROTOCOL}".
  13. The option "-protocols" of the av* tools will display the list of
  14. supported protocols.
  15. A description of the currently available protocols follows.
  16. @section concat
  17. Physical concatenation protocol.
  18. Allow to read and seek from many resource in sequence as if they were
  19. a unique resource.
  20. A URL accepted by this protocol has the syntax:
  21. @example
  22. concat:@var{URL1}|@var{URL2}|...|@var{URLN}
  23. @end example
  24. where @var{URL1}, @var{URL2}, ..., @var{URLN} are the urls of the
  25. resource to be concatenated, each one possibly specifying a distinct
  26. protocol.
  27. For example to read a sequence of files @file{split1.mpeg},
  28. @file{split2.mpeg}, @file{split3.mpeg} with @command{avplay} use the
  29. command:
  30. @example
  31. avplay concat:split1.mpeg\|split2.mpeg\|split3.mpeg
  32. @end example
  33. Note that you may need to escape the character "|" which is special for
  34. many shells.
  35. @section file
  36. File access protocol.
  37. Allow to read from or read to a file.
  38. For example to read from a file @file{input.mpeg} with @command{avconv}
  39. use the command:
  40. @example
  41. avconv -i file:input.mpeg output.mpeg
  42. @end example
  43. The av* tools default to the file protocol, that is a resource
  44. specified with the name "FILE.mpeg" is interpreted as the URL
  45. "file:FILE.mpeg".
  46. @section gopher
  47. Gopher protocol.
  48. @section hls
  49. Read Apple HTTP Live Streaming compliant segmented stream as
  50. a uniform one. The M3U8 playlists describing the segments can be
  51. remote HTTP resources or local files, accessed using the standard
  52. file protocol.
  53. The nested protocol is declared by specifying
  54. "+@var{proto}" after the hls URI scheme name, where @var{proto}
  55. is either "file" or "http".
  56. @example
  57. hls+http://host/path/to/remote/resource.m3u8
  58. hls+file://path/to/local/resource.m3u8
  59. @end example
  60. Using this protocol is discouraged - the hls demuxer should work
  61. just as well (if not, please report the issues) and is more complete.
  62. To use the hls demuxer instead, simply use the direct URLs to the
  63. m3u8 files.
  64. @section http
  65. HTTP (Hyper Text Transfer Protocol).
  66. This protocol accepts the following options:
  67. @table @option
  68. @item chunked_post
  69. If set to 1 use chunked Transfer-Encoding for posts, default is 1.
  70. @item content_type
  71. Set a specific content type for the POST messages.
  72. @item headers
  73. Set custom HTTP headers, can override built in default headers. The
  74. value must be a string encoding the headers.
  75. @item multiple_requests
  76. Use persistent connections if set to 1, default is 0.
  77. @item post_data
  78. Set custom HTTP post data.
  79. @item user_agent
  80. Override the User-Agent header. If not specified a string of the form
  81. "Lavf/<version>" will be used.
  82. @item mime_type
  83. Export the MIME type.
  84. @item icy
  85. If set to 1 request ICY (SHOUTcast) metadata from the server. If the server
  86. supports this, the metadata has to be retrieved by the application by reading
  87. the @option{icy_metadata_headers} and @option{icy_metadata_packet} options.
  88. The default is 1.
  89. @item icy_metadata_headers
  90. If the server supports ICY metadata, this contains the ICY-specific HTTP reply
  91. headers, separated by newline characters.
  92. @item icy_metadata_packet
  93. If the server supports ICY metadata, and @option{icy} was set to 1, this
  94. contains the last non-empty metadata packet sent by the server. It should be
  95. polled in regular intervals by applications interested in mid-stream metadata
  96. updates.
  97. @item offset
  98. Set initial byte offset.
  99. @item end_offset
  100. Try to limit the request to bytes preceding this offset.
  101. @end table
  102. @section Icecast
  103. Icecast (stream to Icecast servers)
  104. This protocol accepts the following options:
  105. @table @option
  106. @item ice_genre
  107. Set the stream genre.
  108. @item ice_name
  109. Set the stream name.
  110. @item ice_description
  111. Set the stream description.
  112. @item ice_url
  113. Set the stream website URL.
  114. @item ice_public
  115. Set if the stream should be public or not.
  116. The default is 0 (not public).
  117. @item user_agent
  118. Override the User-Agent header. If not specified a string of the form
  119. "Lavf/<version>" will be used.
  120. @item password
  121. Set the Icecast mountpoint password.
  122. @item content_type
  123. Set the stream content type. This must be set if it is different from
  124. audio/mpeg.
  125. @item legacy_icecast
  126. This enables support for Icecast versions < 2.4.0, that do not support the
  127. HTTP PUT method but the SOURCE method.
  128. @end table
  129. @section mmst
  130. MMS (Microsoft Media Server) protocol over TCP.
  131. @section mmsh
  132. MMS (Microsoft Media Server) protocol over HTTP.
  133. The required syntax is:
  134. @example
  135. mmsh://@var{server}[:@var{port}][/@var{app}][/@var{playpath}]
  136. @end example
  137. @section md5
  138. MD5 output protocol.
  139. Computes the MD5 hash of the data to be written, and on close writes
  140. this to the designated output or stdout if none is specified. It can
  141. be used to test muxers without writing an actual file.
  142. Some examples follow.
  143. @example
  144. # Write the MD5 hash of the encoded AVI file to the file output.avi.md5.
  145. avconv -i input.flv -f avi -y md5:output.avi.md5
  146. # Write the MD5 hash of the encoded AVI file to stdout.
  147. avconv -i input.flv -f avi -y md5:
  148. @end example
  149. Note that some formats (typically MOV) require the output protocol to
  150. be seekable, so they will fail with the MD5 output protocol.
  151. @section pipe
  152. UNIX pipe access protocol.
  153. Allow to read and write from UNIX pipes.
  154. The accepted syntax is:
  155. @example
  156. pipe:[@var{number}]
  157. @end example
  158. @var{number} is the number corresponding to the file descriptor of the
  159. pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr). If @var{number}
  160. is not specified, by default the stdout file descriptor will be used
  161. for writing, stdin for reading.
  162. For example to read from stdin with @command{avconv}:
  163. @example
  164. cat test.wav | avconv -i pipe:0
  165. # ...this is the same as...
  166. cat test.wav | avconv -i pipe:
  167. @end example
  168. For writing to stdout with @command{avconv}:
  169. @example
  170. avconv -i test.wav -f avi pipe:1 | cat > test.avi
  171. # ...this is the same as...
  172. avconv -i test.wav -f avi pipe: | cat > test.avi
  173. @end example
  174. Note that some formats (typically MOV), require the output protocol to
  175. be seekable, so they will fail with the pipe output protocol.
  176. @section rtmp
  177. Real-Time Messaging Protocol.
  178. The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
  179. content across a TCP/IP network.
  180. The required syntax is:
  181. @example
  182. rtmp://[@var{username}:@var{password}@@]@var{server}[:@var{port}][/@var{app}][/@var{instance}][/@var{playpath}]
  183. @end example
  184. The accepted parameters are:
  185. @table @option
  186. @item username
  187. An optional username (mostly for publishing).
  188. @item password
  189. An optional password (mostly for publishing).
  190. @item server
  191. The address of the RTMP server.
  192. @item port
  193. The number of the TCP port to use (by default is 1935).
  194. @item app
  195. It is the name of the application to access. It usually corresponds to
  196. the path where the application is installed on the RTMP server
  197. (e.g. @file{/ondemand/}, @file{/flash/live/}, etc.). You can override
  198. the value parsed from the URI through the @code{rtmp_app} option, too.
  199. @item playpath
  200. It is the path or name of the resource to play with reference to the
  201. application specified in @var{app}, may be prefixed by "mp4:". You
  202. can override the value parsed from the URI through the @code{rtmp_playpath}
  203. option, too.
  204. @item listen
  205. Act as a server, listening for an incoming connection.
  206. @item timeout
  207. Maximum time to wait for the incoming connection. Implies listen.
  208. @end table
  209. Additionally, the following parameters can be set via command line options
  210. (or in code via @code{AVOption}s):
  211. @table @option
  212. @item rtmp_app
  213. Name of application to connect on the RTMP server. This option
  214. overrides the parameter specified in the URI.
  215. @item rtmp_buffer
  216. Set the client buffer time in milliseconds. The default is 3000.
  217. @item rtmp_conn
  218. Extra arbitrary AMF connection parameters, parsed from a string,
  219. e.g. like @code{B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0}.
  220. Each value is prefixed by a single character denoting the type,
  221. B for Boolean, N for number, S for string, O for object, or Z for null,
  222. followed by a colon. For Booleans the data must be either 0 or 1 for
  223. FALSE or TRUE, respectively. Likewise for Objects the data must be 0 or
  224. 1 to end or begin an object, respectively. Data items in subobjects may
  225. be named, by prefixing the type with 'N' and specifying the name before
  226. the value (i.e. @code{NB:myFlag:1}). This option may be used multiple
  227. times to construct arbitrary AMF sequences.
  228. @item rtmp_flashver
  229. Version of the Flash plugin used to run the SWF player. The default
  230. is LNX 9,0,124,2. (When publishing, the default is FMLE/3.0 (compatible;
  231. <libavformat version>).)
  232. @item rtmp_flush_interval
  233. Number of packets flushed in the same request (RTMPT only). The default
  234. is 10.
  235. @item rtmp_live
  236. Specify that the media is a live stream. No resuming or seeking in
  237. live streams is possible. The default value is @code{any}, which means the
  238. subscriber first tries to play the live stream specified in the
  239. playpath. If a live stream of that name is not found, it plays the
  240. recorded stream. The other possible values are @code{live} and
  241. @code{recorded}.
  242. @item rtmp_pageurl
  243. URL of the web page in which the media was embedded. By default no
  244. value will be sent.
  245. @item rtmp_playpath
  246. Stream identifier to play or to publish. This option overrides the
  247. parameter specified in the URI.
  248. @item rtmp_subscribe
  249. Name of live stream to subscribe to. By default no value will be sent.
  250. It is only sent if the option is specified or if rtmp_live
  251. is set to live.
  252. @item rtmp_swfhash
  253. SHA256 hash of the decompressed SWF file (32 bytes).
  254. @item rtmp_swfsize
  255. Size of the decompressed SWF file, required for SWFVerification.
  256. @item rtmp_swfurl
  257. URL of the SWF player for the media. By default no value will be sent.
  258. @item rtmp_swfverify
  259. URL to player swf file, compute hash/size automatically.
  260. @item rtmp_tcurl
  261. URL of the target stream. Defaults to proto://host[:port]/app.
  262. @end table
  263. For example to read with @command{avplay} a multimedia resource named
  264. "sample" from the application "vod" from an RTMP server "myserver":
  265. @example
  266. avplay rtmp://myserver/vod/sample
  267. @end example
  268. To publish to a password protected server, passing the playpath and
  269. app names separately:
  270. @example
  271. avconv -re -i <input> -f flv -rtmp_playpath some/long/path -rtmp_app long/app/name rtmp://username:password@@myserver/
  272. @end example
  273. @section rtmpe
  274. Encrypted Real-Time Messaging Protocol.
  275. The Encrypted Real-Time Messaging Protocol (RTMPE) is used for
  276. streaming multimedia content within standard cryptographic primitives,
  277. consisting of Diffie-Hellman key exchange and HMACSHA256, generating
  278. a pair of RC4 keys.
  279. @section rtmps
  280. Real-Time Messaging Protocol over a secure SSL connection.
  281. The Real-Time Messaging Protocol (RTMPS) is used for streaming
  282. multimedia content across an encrypted connection.
  283. @section rtmpt
  284. Real-Time Messaging Protocol tunneled through HTTP.
  285. The Real-Time Messaging Protocol tunneled through HTTP (RTMPT) is used
  286. for streaming multimedia content within HTTP requests to traverse
  287. firewalls.
  288. @section rtmpte
  289. Encrypted Real-Time Messaging Protocol tunneled through HTTP.
  290. The Encrypted Real-Time Messaging Protocol tunneled through HTTP (RTMPTE)
  291. is used for streaming multimedia content within HTTP requests to traverse
  292. firewalls.
  293. @section rtmpts
  294. Real-Time Messaging Protocol tunneled through HTTPS.
  295. The Real-Time Messaging Protocol tunneled through HTTPS (RTMPTS) is used
  296. for streaming multimedia content within HTTPS requests to traverse
  297. firewalls.
  298. @section librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte
  299. Real-Time Messaging Protocol and its variants supported through
  300. librtmp.
  301. Requires the presence of the librtmp headers and library during
  302. configuration. You need to explicitly configure the build with
  303. "--enable-librtmp". If enabled this will replace the native RTMP
  304. protocol.
  305. This protocol provides most client functions and a few server
  306. functions needed to support RTMP, RTMP tunneled in HTTP (RTMPT),
  307. encrypted RTMP (RTMPE), RTMP over SSL/TLS (RTMPS) and tunneled
  308. variants of these encrypted types (RTMPTE, RTMPTS).
  309. The required syntax is:
  310. @example
  311. @var{rtmp_proto}://@var{server}[:@var{port}][/@var{app}][/@var{playpath}] @var{options}
  312. @end example
  313. where @var{rtmp_proto} is one of the strings "rtmp", "rtmpt", "rtmpe",
  314. "rtmps", "rtmpte", "rtmpts" corresponding to each RTMP variant, and
  315. @var{server}, @var{port}, @var{app} and @var{playpath} have the same
  316. meaning as specified for the RTMP native protocol.
  317. @var{options} contains a list of space-separated options of the form
  318. @var{key}=@var{val}.
  319. See the librtmp manual page (man 3 librtmp) for more information.
  320. For example, to stream a file in real-time to an RTMP server using
  321. @command{avconv}:
  322. @example
  323. avconv -re -i myfile -f flv rtmp://myserver/live/mystream
  324. @end example
  325. To play the same stream using @command{avplay}:
  326. @example
  327. avplay "rtmp://myserver/live/mystream live=1"
  328. @end example
  329. @section rtp
  330. Real-Time Protocol.
  331. @section rtsp
  332. RTSP is not technically a protocol handler in libavformat, it is a demuxer
  333. and muxer. The demuxer supports both normal RTSP (with data transferred
  334. over RTP; this is used by e.g. Apple and Microsoft) and Real-RTSP (with
  335. data transferred over RDT).
  336. The muxer can be used to send a stream using RTSP ANNOUNCE to a server
  337. supporting it (currently Darwin Streaming Server and Mischa Spiegelmock's
  338. @uref{http://github.com/revmischa/rtsp-server, RTSP server}).
  339. The required syntax for a RTSP url is:
  340. @example
  341. rtsp://@var{hostname}[:@var{port}]/@var{path}
  342. @end example
  343. The following options (set on the @command{avconv}/@command{avplay} command
  344. line, or set in code via @code{AVOption}s or in @code{avformat_open_input}),
  345. are supported:
  346. Flags for @code{rtsp_transport}:
  347. @table @option
  348. @item udp
  349. Use UDP as lower transport protocol.
  350. @item tcp
  351. Use TCP (interleaving within the RTSP control channel) as lower
  352. transport protocol.
  353. @item udp_multicast
  354. Use UDP multicast as lower transport protocol.
  355. @item http
  356. Use HTTP tunneling as lower transport protocol, which is useful for
  357. passing proxies.
  358. @end table
  359. Multiple lower transport protocols may be specified, in that case they are
  360. tried one at a time (if the setup of one fails, the next one is tried).
  361. For the muxer, only the @code{tcp} and @code{udp} options are supported.
  362. Flags for @code{rtsp_flags}:
  363. @table @option
  364. @item filter_src
  365. Accept packets only from negotiated peer address and port.
  366. @item listen
  367. Act as a server, listening for an incoming connection.
  368. @end table
  369. When receiving data over UDP, the demuxer tries to reorder received packets
  370. (since they may arrive out of order, or packets may get lost totally). This
  371. can be disabled by setting the maximum demuxing delay to zero (via
  372. the @code{max_delay} field of AVFormatContext).
  373. When watching multi-bitrate Real-RTSP streams with @command{avplay}, the
  374. streams to display can be chosen with @code{-vst} @var{n} and
  375. @code{-ast} @var{n} for video and audio respectively, and can be switched
  376. on the fly by pressing @code{v} and @code{a}.
  377. Example command lines:
  378. To watch a stream over UDP, with a max reordering delay of 0.5 seconds:
  379. @example
  380. avplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
  381. @end example
  382. To watch a stream tunneled over HTTP:
  383. @example
  384. avplay -rtsp_transport http rtsp://server/video.mp4
  385. @end example
  386. To send a stream in realtime to a RTSP server, for others to watch:
  387. @example
  388. avconv -re -i @var{input} -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
  389. @end example
  390. To receive a stream in realtime:
  391. @example
  392. avconv -rtsp_flags listen -i rtsp://ownaddress/live.sdp @var{output}
  393. @end example
  394. @section sap
  395. Session Announcement Protocol (RFC 2974). This is not technically a
  396. protocol handler in libavformat, it is a muxer and demuxer.
  397. It is used for signalling of RTP streams, by announcing the SDP for the
  398. streams regularly on a separate port.
  399. @subsection Muxer
  400. The syntax for a SAP url given to the muxer is:
  401. @example
  402. sap://@var{destination}[:@var{port}][?@var{options}]
  403. @end example
  404. The RTP packets are sent to @var{destination} on port @var{port},
  405. or to port 5004 if no port is specified.
  406. @var{options} is a @code{&}-separated list. The following options
  407. are supported:
  408. @table @option
  409. @item announce_addr=@var{address}
  410. Specify the destination IP address for sending the announcements to.
  411. If omitted, the announcements are sent to the commonly used SAP
  412. announcement multicast address 224.2.127.254 (sap.mcast.net), or
  413. ff0e::2:7ffe if @var{destination} is an IPv6 address.
  414. @item announce_port=@var{port}
  415. Specify the port to send the announcements on, defaults to
  416. 9875 if not specified.
  417. @item ttl=@var{ttl}
  418. Specify the time to live value for the announcements and RTP packets,
  419. defaults to 255.
  420. @item same_port=@var{0|1}
  421. If set to 1, send all RTP streams on the same port pair. If zero (the
  422. default), all streams are sent on unique ports, with each stream on a
  423. port 2 numbers higher than the previous.
  424. VLC/Live555 requires this to be set to 1, to be able to receive the stream.
  425. The RTP stack in libavformat for receiving requires all streams to be sent
  426. on unique ports.
  427. @end table
  428. Example command lines follow.
  429. To broadcast a stream on the local subnet, for watching in VLC:
  430. @example
  431. avconv -re -i @var{input} -f sap sap://224.0.0.255?same_port=1
  432. @end example
  433. Similarly, for watching in avplay:
  434. @example
  435. avconv -re -i @var{input} -f sap sap://224.0.0.255
  436. @end example
  437. And for watching in avplay, over IPv6:
  438. @example
  439. avconv -re -i @var{input} -f sap sap://[ff0e::1:2:3:4]
  440. @end example
  441. @subsection Demuxer
  442. The syntax for a SAP url given to the demuxer is:
  443. @example
  444. sap://[@var{address}][:@var{port}]
  445. @end example
  446. @var{address} is the multicast address to listen for announcements on,
  447. if omitted, the default 224.2.127.254 (sap.mcast.net) is used. @var{port}
  448. is the port that is listened on, 9875 if omitted.
  449. The demuxers listens for announcements on the given address and port.
  450. Once an announcement is received, it tries to receive that particular stream.
  451. Example command lines follow.
  452. To play back the first stream announced on the normal SAP multicast address:
  453. @example
  454. avplay sap://
  455. @end example
  456. To play back the first stream announced on one the default IPv6 SAP multicast address:
  457. @example
  458. avplay sap://[ff0e::2:7ffe]
  459. @end example
  460. @section tcp
  461. Transmission Control Protocol.
  462. The required syntax for a TCP url is:
  463. @example
  464. tcp://@var{hostname}:@var{port}[?@var{options}]
  465. @end example
  466. @table @option
  467. @item listen
  468. Listen for an incoming connection
  469. @example
  470. avconv -i @var{input} -f @var{format} tcp://@var{hostname}:@var{port}?listen
  471. avplay tcp://@var{hostname}:@var{port}
  472. @end example
  473. @end table
  474. @section tls
  475. Transport Layer Security (TLS) / Secure Sockets Layer (SSL)
  476. The required syntax for a TLS url is:
  477. @example
  478. tls://@var{hostname}:@var{port}
  479. @end example
  480. The following parameters can be set via command line options
  481. (or in code via @code{AVOption}s):
  482. @table @option
  483. @item ca_file
  484. A file containing certificate authority (CA) root certificates to treat
  485. as trusted. If the linked TLS library contains a default this might not
  486. need to be specified for verification to work, but not all libraries and
  487. setups have defaults built in.
  488. @item tls_verify=@var{1|0}
  489. If enabled, try to verify the peer that we are communicating with.
  490. Note, if using OpenSSL, this currently only makes sure that the
  491. peer certificate is signed by one of the root certificates in the CA
  492. database, but it does not validate that the certificate actually
  493. matches the host name we are trying to connect to. (With GnuTLS,
  494. the host name is validated as well.)
  495. This is disabled by default since it requires a CA database to be
  496. provided by the caller in many cases.
  497. @item cert_file
  498. A file containing a certificate to use in the handshake with the peer.
  499. (When operating as server, in listen mode, this is more often required
  500. by the peer, while client certificates only are mandated in certain
  501. setups.)
  502. @item key_file
  503. A file containing the private key for the certificate.
  504. @item listen=@var{1|0}
  505. If enabled, listen for connections on the provided port, and assume
  506. the server role in the handshake instead of the client role.
  507. @end table
  508. @section udp
  509. User Datagram Protocol.
  510. The required syntax for a UDP url is:
  511. @example
  512. udp://@var{hostname}:@var{port}[?@var{options}]
  513. @end example
  514. @var{options} contains a list of &-separated options of the form @var{key}=@var{val}.
  515. Follow the list of supported options.
  516. @table @option
  517. @item buffer_size=@var{size}
  518. set the UDP buffer size in bytes
  519. @item localport=@var{port}
  520. override the local UDP port to bind with
  521. @item localaddr=@var{addr}
  522. Choose the local IP address. This is useful e.g. if sending multicast
  523. and the host has multiple interfaces, where the user can choose
  524. which interface to send on by specifying the IP address of that interface.
  525. @item pkt_size=@var{size}
  526. set the size in bytes of UDP packets
  527. @item reuse=@var{1|0}
  528. explicitly allow or disallow reusing UDP sockets
  529. @item ttl=@var{ttl}
  530. set the time to live value (for multicast only)
  531. @item connect=@var{1|0}
  532. Initialize the UDP socket with @code{connect()}. In this case, the
  533. destination address can't be changed with ff_udp_set_remote_url later.
  534. If the destination address isn't known at the start, this option can
  535. be specified in ff_udp_set_remote_url, too.
  536. This allows finding out the source address for the packets with getsockname,
  537. and makes writes return with AVERROR(ECONNREFUSED) if "destination
  538. unreachable" is received.
  539. For receiving, this gives the benefit of only receiving packets from
  540. the specified peer address/port.
  541. @item sources=@var{address}[,@var{address}]
  542. Only receive packets sent to the multicast group from one of the
  543. specified sender IP addresses.
  544. @item block=@var{address}[,@var{address}]
  545. Ignore packets sent to the multicast group from the specified
  546. sender IP addresses.
  547. @end table
  548. Some usage examples of the udp protocol with @command{avconv} follow.
  549. To stream over UDP to a remote endpoint:
  550. @example
  551. avconv -i @var{input} -f @var{format} udp://@var{hostname}:@var{port}
  552. @end example
  553. To stream in mpegts format over UDP using 188 sized UDP packets, using a large input buffer:
  554. @example
  555. avconv -i @var{input} -f mpegts udp://@var{hostname}:@var{port}?pkt_size=188&buffer_size=65535
  556. @end example
  557. To receive over UDP from a remote endpoint:
  558. @example
  559. avconv -i udp://[@var{multicast-address}]:@var{port}
  560. @end example
  561. @section unix
  562. Unix local socket
  563. The required syntax for a Unix socket URL is:
  564. @example
  565. unix://@var{filepath}
  566. @end example
  567. The following parameters can be set via command line options
  568. (or in code via @code{AVOption}s):
  569. @table @option
  570. @item timeout
  571. Timeout in ms.
  572. @item listen
  573. Create the Unix socket in listening mode.
  574. @end table
  575. @c man end PROTOCOLS