Ask Your Question
0

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

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

Hernan Navarro gravatar image

updated 2019-12-09 07:55:23 -0600

Akhil Patel 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

cap.open("rtsp://admin:[email protected]:554/live");

cap.isOpened() return false

thanks.

edit retag flag offensive close merge delete

Comments

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 -0600 )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 -0600 )edit

Thanks, the link "rtsp://admin:[email protected]:554/live" 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 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

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

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

Comments

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 -0600 )edit
0

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

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

Question Tools

1 follower

Stats

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

Seen: 5,347 times

Last updated: Mar 02 '16