Ask Your Question

VideoCapture is not working in OpenCV 3.0.0 or the 3.1.0 in Windows 7

asked 2016-02-28 16:59:02 -0500

Hernan Navarro gravatar image

This code work in OpenCV 2.4.10 but not in 3.0.0, wireshark don't show any trafic to the address. I am using Windows 7"rtsp://admin:admin@");

cap.isOpened() return false


edit retag flag offensive close merge delete


Could you please give us more info? Is the rtsp link working? You can check that through vlc player. What error are you getting?

zshn25 gravatar imagezshn25 ( 2016-02-28 23:04:55 -0500 )edit

i don't know what is the error but it happened to me once but i switched to version 2.4.9 then it worked. It is not an answer but you can give it a try.

MarKS9 gravatar imageMarKS9 ( 2016-02-29 05:10:30 -0500 )edit

Thanks, the link "rtsp://admin:admin@" work with VLC and the Media Player Classic included in K-Lite Codec Pack, I did not find the way to get the specific error, only cap.isOpened() return false. I use Wireshark but did not see any activity to that IP address. The same code, but using OpenCV-2.4.10 works witout problems.

Hernan Navarro gravatar imageHernan Navarro ( 2016-02-29 13:25:53 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2016-02-29 22:44:18 -0500

zshn25 gravatar image

I think your rtsp link is broken. I tried the same with OpenCV 3.0.0 and its working perfectly fine! image description

edit flag offensive delete link more


Thanks, but I'm using Visual C ++, the behavior is different, the link is not broken because work with Opencv 2.4.9 and with VLC

Hernan Navarro gravatar imageHernan Navarro ( 2016-03-02 13:00:16 -0500 )edit

answered 2016-03-02 14:47:00 -0500

Hernan Navarro gravatar image

Thanks for your help, I found the problem, the opencv_ffmpeg300.dll file must be in the path or in the working folder.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-02-28 16:59:02 -0500

Seen: 3,545 times

Last updated: Mar 02 '16