Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

opencv_ffmpeg module crash (IP Camera)

$
0
0
I'm using IP webcam android app(It converts mobile camera into IP web camera).
I'm running below code in Visual Studio 2015 with OpenCV 3.1. VideoCapture cap; Mat img; cap.open("http://192.168.0.101:8080/video?x.mjpeg"); while(waitKey(33)!=27) { try{ cap>>img; //code crashes here if(img.empty()) { cout<<"camera Closed"< **Error:** > Exception thrown at 0x0BF2F6F0 (opencv_ffmpeg310.dll) in test.exe:> 0xC0000005: Access violation reading location 0x00000020.>> If there is a handler for this exception, the program may be safely> continued. even if the code is wrapped within try catch block, it crashes!

Should I use try {} catch (...) block in source file, if yes, then where should I use this?
I referred this [link][1] but did not find the right answer. [1]: https://github.com/opencv/opencv/issues/6726

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>