Built latest version from HEAD with ffmpeg support enabled on Windows 10.
When you connect to a rtsp stream and the resource (read: the streaming server) is unavailable an indefinite hang on Windows is observed.
I've done some initial research and if you want to handle transient connection issues you need to specify a interrupt callback as per documentation before avformat_open_input is called.
Digging through their bug tracker i found a related issue submitted about two years ago.
Repo:
auto vc = new cv::VideoCapture();
auto success = vc->open("rstp://192.168.1.200/media/video1");
// -- indefinite hang
Built latest version from
HEADwith ffmpeg support enabled on Windows 10.When you connect to a rtsp stream and the resource (read: the streaming server) is unavailable an indefinite hang on Windows is observed.
I've done some initial research and if you want to handle transient connection issues you need to specify a interrupt callback as per documentation before
avformat_open_inputis called.Digging through their bug tracker i found a related issue submitted about two years ago.
Repo: