From b0f7a26f1a6dc061db0a60908842371e7a010db2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Sep 2013 02:40:29 +0200 Subject: network: fix rtsp playback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, libavformat uses UDP for rtsp playback. This doesn't work very well. Apparently the reason is that the buffer sizes libavformat chooses for UDP are way too small, and switching to TCP gets rid of this issue entirely (thanks go to Reimar Döffinger for figuring this out). In theory, you can set buffer sizes as libavformat options, but that doesn't seem to help. Add an option to select the rtsp transport, and make TCP the default. Also remove an outdated comment from stream.c. --- DOCS/man/en/options.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DOCS/man/en/options.rst') diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index 766118e4c6..8efb1eb70f 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1772,6 +1772,11 @@ - ``--reset-on-next-file=""`` Do not reset pause mode. +``--rtsp-transport=`` + Select RTSP transport method (default: tcp). This selects the underlying + network transport when playing ``rtsp://...`` URLs. The value ``lavf`` + leaves the decision to libavformat. + ``--saturation=<-100-100>`` Adjust the saturation of the video signal (default: 0). You can get grayscale output with this option. Not supported by all video output -- cgit v1.2.3