gocv icon indicating copy to clipboard operation
gocv copied to clipboard

Error opening video capture device: rtsp://xx:[email protected]

Open GlennZeng opened this issue 3 years ago • 3 comments

The computer system I use is windows7. I use VLC to play rtsp://xx:[email protected], which can be played normally, but I have no success using it webcam, err := gocv.OpenVideoCapture("rtsp://admin:[email protected]"), It reports the error as follows Error opening video capture device: rtsp://admin:[email protected] But I can successfully call my local computer camera with the following code webcam, err := gocv.OpenVideoCapture(0) It can work successfully. I tried many methods: ①install ffmpeg ②install opencv_videoio_ffmpeg_64.dll and opencv_videoio_ffmpeg.dll But it still doesn't work

GlennZeng avatar Jun 21 '21 02:06 GlennZeng

After testing, it can run successfully on linux and mac computers,But the test still fails on windows computer

GlennZeng avatar Jun 22 '21 01:06 GlennZeng

The computer system I use is windows7. I use VLC to play rtsp://xx:[email protected], which can be played normally, but I have no success using it webcam, err := gocv.OpenVideoCapture("rtsp://admin:[email protected]"), It reports the error as follows Error opening video capture device: rtsp://admin:[email protected] But I can successfully call my local computer camera with the following code webcam, err := gocv.OpenVideoCapture(0) It can work successfully. I tried many methods: ①install ffmpeg ②install opencv_videoio_ffmpeg_64.dll and opencv_videoio_ffmpeg.dll But it still doesn't work

my machine is centos7, BUT still got the same erroe as yours,what should i do

Wenshiqi222 avatar Sep 09 '21 07:09 Wenshiqi222

opencv_videoio_ffmpeg_64.dll files need to be put in C:\opencv\build\install\x64\mingw\bin ,That is, the location of your path environment variable,So opencv can be loaded into

kolonten avatar Sep 24 '21 10:09 kolonten