JavaFX, OpenCV and mjpeg
Hello, I am trying to integrate the video stream of an IP camera into a JavaFX app.
To do that, I followed this tutorial: - For the installation of OpenCV:
Install OpenCV 3.x under Windows.
http://opencv-java-tutorials.readthed...
And I use this project:
http://opencv-java-tutorials.readthed...
https://github.com/opencv-java/gettin...
Using the webcam of my laptop, it works.
Then I tried to do the same thing with my ip cam (D-Link 5000L) The URL to see the video with google chrome is http://192.168.1.70/mjpeg.cgi
So I changed this line : this.capture.open("http://192.168.1.70/mjpeg.cgi");
To connect to the ip camera instead of my laptop camera.
I tried with another ip cam (not the same brand) with the right url, and it works.
Any idea of what I did wrong? could it come from the video format (mjpeg?) since it works with a camera and not the other?
Thanks you for your help :)
make sure, opencv_ffmpeg.dll is on the PATH
Hello, I just had the folder C:\opencv\build\bin to the PATH, which contain: opencv_ffmpeg340.dll and opencv_ffmpeg340_64.dll
now I obtain those 2 warnings when close the JavaFX window:
warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:808) warning: http://192.168.1.70/mjpeg.cgi (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:809)