Open videocapture freeze with no device (gstreamer)

asked 2020-11-10 21:14:40 -0600

Hi,

It works fine with the device exist, but freeze with no device. I would like it can return to fail when connecting fail. Have any suggestions?

Thanks

This is my sample to open the camera by videcocapture: bRes &= cap->open("udpsrc port=5003 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! appsink", cv::CAP_GSTREAMER);

edit retag flag offensive close merge delete