gocv
gocv copied to clipboard
Error opening video capture device: rtsp://xx:[email protected]
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
After testing, it can run successfully on linux and mac computers,But the test still fails on windows computer
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 codewebcam, 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
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