From 5a99015acf184a2989ea7ebf50ab2c990be41125 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 14 Nov 2019 13:46:03 +0100 Subject: stream_lavf: set --network-timeout to 60 seconds by default Until now, we've made FFmpeg use the default network timeout - which is apparently infinite. I don't know if this was changed at some point, although it seems likely, as I was sure there was a more useful default. For most use cases, a smaller timeout is more useful (for example recording something in the background), so force a timeout of 1 minute. See: #5793 --- DOCS/man/options.rst | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index d4e3bb5c7c..6a73ac7a85 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4280,9 +4280,10 @@ Network Specify a referrer path or URL for HTTP requests. ``--network-timeout=`` - Specify the network timeout in seconds. This affects at least HTTP. The - special value 0 (default) uses the FFmpeg/Libav defaults. If a protocol - is used which does not support timeouts, this option is silently ignored. + Specify the network timeout in seconds (default: 60 seconds). This affects + at least HTTP. The special value 0 uses the FFmpeg/Libav defaults. If a + protocol is used which does not support timeouts, this option is silently + ignored. .. warning:: @@ -4291,8 +4292,10 @@ Network option accept different units (seconds instead of microseconds, causing mpv to pass it huge values), it will also overflow FFmpeg internal calculations. The worst is that merely setting the option will put RTSP - into listening mode, which breaks any client uses. Do not use this - option with RTSP URLs. + into listening mode, which breaks any client uses. At time of this + writing, the fix was not made effective yet. For this reason, this + option is ignored (or should be ignored) on RTSP URLs. You can still + set the timeout option directly with ``--demuxer-lavf-o``. ``--rtsp-transport=`` Select RTSP transport method (default: tcp). This selects the underlying -- cgit v1.2.3