How to set rtsp connection timeout in ffmpeg
<p>I'm using ffmpeg library to write to the rtsp stream.
It is working well when the rtsp url is correct.
But when this rtsp url is incorrect then it is stuck in avformat_write_header.
Is there any solution for this problem?
Thanks.</p>