mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-24 08:13:37 +00:00
doc: Update the documentation on setting options for RTSP
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
9867aea524
commit
02a1a28c61
@ -246,12 +246,15 @@ supporting it (currently Darwin Streaming Server and Mischa Spiegelmock's
|
|||||||
|
|
||||||
The required syntax for a RTSP url is:
|
The required syntax for a RTSP url is:
|
||||||
@example
|
@example
|
||||||
rtsp://@var{hostname}[:@var{port}]/@var{path}[?@var{options}]
|
rtsp://@var{hostname}[:@var{port}]/@var{path}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@var{options} is a @code{&}-separated list. The following options
|
The following options (set on the @file{avconv}/@file{avplay} command
|
||||||
|
line, or set in code via @code{AVOption}s or in @code{avformat_open_input}),
|
||||||
are supported:
|
are supported:
|
||||||
|
|
||||||
|
Flags for @code{rtsp_transport}:
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
|
|
||||||
@item udp
|
@item udp
|
||||||
@ -261,21 +264,25 @@ Use UDP as lower transport protocol.
|
|||||||
Use TCP (interleaving within the RTSP control channel) as lower
|
Use TCP (interleaving within the RTSP control channel) as lower
|
||||||
transport protocol.
|
transport protocol.
|
||||||
|
|
||||||
@item multicast
|
@item udp_multicast
|
||||||
Use UDP multicast as lower transport protocol.
|
Use UDP multicast as lower transport protocol.
|
||||||
|
|
||||||
@item http
|
@item http
|
||||||
Use HTTP tunneling as lower transport protocol, which is useful for
|
Use HTTP tunneling as lower transport protocol, which is useful for
|
||||||
passing proxies.
|
passing proxies.
|
||||||
|
|
||||||
@item filter_src
|
|
||||||
Accept packets only from negotiated peer address and port.
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
Multiple lower transport protocols may be specified, in that case they are
|
Multiple lower transport protocols may be specified, in that case they are
|
||||||
tried one at a time (if the setup of one fails, the next one is tried).
|
tried one at a time (if the setup of one fails, the next one is tried).
|
||||||
For the muxer, only the @code{tcp} and @code{udp} options are supported.
|
For the muxer, only the @code{tcp} and @code{udp} options are supported.
|
||||||
|
|
||||||
|
Flags for @code{rtsp_flags}:
|
||||||
|
|
||||||
|
@table @option
|
||||||
|
@item filter_src
|
||||||
|
Accept packets only from negotiated peer address and port.
|
||||||
|
@end table
|
||||||
|
|
||||||
When receiving data over UDP, the demuxer tries to reorder received packets
|
When receiving data over UDP, the demuxer tries to reorder received packets
|
||||||
(since they may arrive out of order, or packets may get lost totally). In
|
(since they may arrive out of order, or packets may get lost totally). In
|
||||||
order for this to be enabled, a maximum delay must be specified in the
|
order for this to be enabled, a maximum delay must be specified in the
|
||||||
@ -291,13 +298,13 @@ Example command lines:
|
|||||||
To watch a stream over UDP, with a max reordering delay of 0.5 seconds:
|
To watch a stream over UDP, with a max reordering delay of 0.5 seconds:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
avplay -max_delay 500000 rtsp://server/video.mp4?udp
|
avplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
To watch a stream tunneled over HTTP:
|
To watch a stream tunneled over HTTP:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
avplay rtsp://server/video.mp4?http
|
avplay -rtsp_transport http rtsp://server/video.mp4
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
To send a stream in realtime to a RTSP server, for others to watch:
|
To send a stream in realtime to a RTSP server, for others to watch:
|
||||||
|
Loading…
Reference in New Issue
Block a user