[FFmpeg-user] How do I set a timeout for an RTSP source?
lou at lrcd.com
Thu Jun 19 19:26:07 CEST 2014
On Thu, 19 Jun 2014 13:14:14 +0000
NZPWebcams <nzpwebcams at si.edu> wrote:
> Is there any suggestion on how to prevent FFmpeg from stalling when
> opening an RTSP source has failed?
There are two timeout type of options for RTSP:
Set maximum timeout (in seconds) to wait for incoming connections.
A value of -1 mean infinite (default). This option implies the
‘rtsp_flags’ set to ‘listen’. ‘reorder_queue_size’
Set number of packets to buffer for handling of reordered packets.
Set socket TCP I/O timeout in micro seconds.
See the RTSP protocol documentation for more info:
More information about the ffmpeg-user