[FFmpeg-user] How do I set a timeout for an RTSP source?
nzpwebcams at si.edu
Thu Jun 19 22:48:48 CEST 2014
>> 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:
Thank you for the info and link to the documentation. Using -stimeout 5000000 before the input solved my issue.
More information about the ffmpeg-user