Revision 61c089a8

View differences:

doc/protocols.texi
287 287
ffmpeg -re -i @var{input} -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
288 288
@end example
289 289

  
290
@section sap
291

  
292
Session Announcement Protocol (RFC 2974). This is not technically a
293
protocol handler in libavformat, it is a muxer.
294
It is used for signalling of RTP streams, by announcing the SDP for the
295
streams regularly on a separate port.
296

  
297
The syntax for a SAP url given to the muxer is:
298
@example
299
sap://@var{destination}[:@var{port}][?@var{options}]
300
@end example
301

  
302
The RTP packets are sent to @var{destination} on port @var{port},
303
or to port 5004 if no port is specified.
304
@var{options} is a @code{&}-separated list. The following options
305
are supported:
306

  
307
@table @option
308

  
309
@item announce_addr=@var{address}
310
Specify the destination IP address for sending the announcements to.
311
If omitted, the announcements are sent to the commonly used SAP
312
announcement multicast address 224.2.127.254 (sap.mcast.net), or
313
ff0e::2:7ffe if @var{destination} is an IPv6 address.
314

  
315
@item announce_port=@var{port}
316
Specify the port to send the announcements on, defaults to
317
9875 if not specified.
318

  
319
@item ttl=@var{ttl}
320
Specify the time to live value for the announcements and RTP packets,
321
defaults to 255.
322

  
323
@item same_port=@var{0|1}
324
If set to 1, send all RTP streams on the same port pair. If zero (the
325
default), all streams are sent on unique ports, with each stream on a
326
port 2 numbers higher than the previous.
327
VLC/Live555 requires this to be set to 1, to be able to receive the stream.
328
@end table
329

  
330
Example command lines follow.
331

  
332
To broadcast a stream on the local subnet, for watching in VLC:
333

  
334
@example
335
ffmpeg -re -i @var{input} -f sap sap://224.0.0.255?same_port=1
336
@end example
337

  
290 338
@section tcp
291 339

  
292 340
Trasmission Control Protocol.

Also available in: Unified diff