Ask Your Question

yari's profile - activity

2016-11-04 11:57:18 -0600 received badge  Student (source)
2015-06-23 02:32:24 -0600 received badge  Enthusiast
2015-06-12 04:33:23 -0600 commented answer VideoCapture blocked after loosing connection

Sorry, but I can find lot of videos explaining how to set up a videoCapture in order to read a video, but no one that explain how to handle connection lost. May you link one video here please?

2015-06-12 02:55:45 -0600 asked a question VideoCapture blocked after loosing connection

Hi everybody,

I have this problem, I am using opencv 2.4.10 to read a rtsp stream.

I used the VideoCapture end everything is going fine.

The problem is that I need to handle connection lost and failure during the opening of the connection.

At the moment I have two similar problem:

1) When I am trying to open the stream ( cv::VideoCapture inputVideo("rtsp://..."); ) and the streaming server is not available the program stay blocked forever without any error message.

2) If during the reading of the stream the connection is lost the program stay blocked forever without any error message.

There is a way to handle this problem?

Cheers,

Yari