-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Indefinite hang when connecting to a rtsp stream #5730
Copy link
Copy link
Closed
Description
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 hangReactions are currently unavailable