[Libav-user] RTSP Connection timeout

Talgorn François-Xavier fxtalgorn at yahoo.fr
Tue Jun 16 18:38:28 CEST 2015


Hello,
If you copy/paste your code it will be much easier to help you.
The first question would be: do you manage the return code to see what's going on ? (avformat_open_input returns a  negative error code in case of failure).


Le 16 juin 2015 à 16:09, yari mattei <yari.mattei at student.supsi.ch> a écrit :

> Hi guys,
> 
> I am using the FFMPEG API to implement a RTSP stream reader and I have a problem.
> 
> If I try to connect to a stream wchich is unavailable the program is freezing (it try to connect forever without any massage or possibility to handle this)
> 
> The function I am using is avformat_open_input(&pFormatCtx, filename, NULL, NULL).
> 
> Do you know if there is a way to handle this problem? Or any other API which allows to handle it?
> 
> Cheers,
> Yari
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user



More information about the Libav-user mailing list