mirror of https://github.com/mpv-player/mpv
demuxer-lavf: udp_multicast rtsp-transport option
This commit is contained in:
parent
e7bab0025f
commit
24acddbdc4
|
@ -4629,7 +4629,7 @@ Network
|
||||||
option is ignored (or should be ignored) on RTSP URLs. You can still
|
option is ignored (or should be ignored) on RTSP URLs. You can still
|
||||||
set the timeout option directly with ``--demuxer-lavf-o``.
|
set the timeout option directly with ``--demuxer-lavf-o``.
|
||||||
|
|
||||||
``--rtsp-transport=<lavf|udp|tcp|http>``
|
``--rtsp-transport=<lavf|udp|udp_multicast|tcp|http>``
|
||||||
Select RTSP transport method (default: tcp). This selects the underlying
|
Select RTSP transport method (default: tcp). This selects the underlying
|
||||||
network transport when playing ``rtsp://...`` URLs. The value ``lavf``
|
network transport when playing ``rtsp://...`` URLs. The value ``lavf``
|
||||||
leaves the decision to libavformat.
|
leaves the decision to libavformat.
|
||||||
|
|
|
@ -102,7 +102,9 @@ const struct m_sub_options demux_lavf_conf = {
|
||||||
({"lavf", 0},
|
({"lavf", 0},
|
||||||
{"udp", 1},
|
{"udp", 1},
|
||||||
{"tcp", 2},
|
{"tcp", 2},
|
||||||
{"http", 3})),
|
{"http", 3},
|
||||||
|
{"udp_multicast", 4}
|
||||||
|
)),
|
||||||
OPT_CHOICE("demuxer-lavf-linearize-timestamps", linearize_ts, 0,
|
OPT_CHOICE("demuxer-lavf-linearize-timestamps", linearize_ts, 0,
|
||||||
({"no", 0}, {"auto", -1}, {"yes", 1})),
|
({"no", 0}, {"auto", -1}, {"yes", 1})),
|
||||||
OPT_FLAG("demuxer-lavf-propagate-opts", propagate_opts, 0),
|
OPT_FLAG("demuxer-lavf-propagate-opts", propagate_opts, 0),
|
||||||
|
@ -986,6 +988,7 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check)
|
||||||
case 1: transport = "udp"; break;
|
case 1: transport = "udp"; break;
|
||||||
case 2: transport = "tcp"; break;
|
case 2: transport = "tcp"; break;
|
||||||
case 3: transport = "http"; break;
|
case 3: transport = "http"; break;
|
||||||
|
case 4: transport = "udp_multicast"; break;
|
||||||
}
|
}
|
||||||
if (transport)
|
if (transport)
|
||||||
av_dict_set(&dopts, "rtsp_transport", transport, 0);
|
av_dict_set(&dopts, "rtsp_transport", transport, 0);
|
||||||
|
|
Loading…
Reference in New Issue