Ask Your Question

Thierry's profile - activity

2019-10-29 21:35:27 -0500 received badge  Self-Learner (source)
2019-10-29 09:52:44 -0500 marked best answer Cancel VideoCapture::open RTSP from an other thread

Hi all,

I'm developping a C++ application using Qt (5.12), OpenCv (4.1.0) and GStreamer on Ubuntu 18.04 I instanciate a VideoCapture object in a dedicaced thread, then I try to open a RSTP connection with a deconnected video camera. The timeout of VideoCapture::open("rtspsrc location=rtsp://...) is about 20 seconds. When I close my application, my main thread wait the open failed to close properly the GUI. 20 seconds are too long for a GUI. I think there are 2 solutions to solve my problem, but I don't manage to implement them... any help is appreciated :)

  • Reduce the timeout, but it seems to be implemented in the interface (cv::CAP_GSTREAMER in my case), and need to compile opencv :(
  • Cancel the open() from the main Thread, the best solution. I already tryed to call VideoCapture::release(), or to delete my object (desperate solution I know ^^'), but the open() doesn't exit before its timeout...
2019-10-29 09:36:01 -0500 edited question Cancel VideoCapture::open RTSP from an other thread

Cancel VideoCapture::open from an other thread Hi all, I'm developping a C++ application using Qt (5.12), OpenCv (4.1.0

2019-10-29 09:36:01 -0500 received badge  Editor (source)
2019-10-29 09:26:42 -0500 commented question Cancel VideoCapture::open RTSP from an other thread

I solved my problem (reducing the timeout). The open() is blocking with RTSP sources. The parameter "time-out" in rtsps

2019-10-29 09:25:22 -0500 commented question Cancel VideoCapture::open RTSP from an other thread

I solved my problem (reducing the timeout). The open() is blocking with RTSP sources. The parameter "time-out" in rtsps

2019-10-29 09:12:05 -0500 commented question Cancel VideoCapture::open RTSP from an other thread

Well seen @berak, it's the next step of my developpment :). For now, I just need to display/record/forwad a video.

2019-10-29 09:00:59 -0500 commented question Cancel VideoCapture::open RTSP from an other thread

With a GUI application and lot of treatments, I don't have other solution that threading treatments. My application arch

2019-10-29 05:48:51 -0500 asked a question Cancel VideoCapture::open RTSP from an other thread

Cancel VideoCapture::open from an other thread Hi all, I'm developping a C++ application using Qt (5.12), OpenCv (4.1.0