Quote:
Originally Posted by virtuald
My guess is that you either didn't compile OpenCV with ffmpeg support, or perhaps it can't find the ffmpeg library. Check the OpenCV file to see what the code is doing at that point. You could post the entirety of the error message and context (like where it is being issued) too.
|
That is the entire error message. It was during the runtime. I have a screen recording of it. If you want, I can drop it into my CDN so you can watch it.
The funny thing is that the code compiles correctly. The code also works perfectly when I use cvCaptureFromCAM(0); instead of reading it from a file, with a URL.
If you change, int capMode to 2, modify the IP URLs on:
PHP Code:
capture = cvCaptureFromFile("http://10.11.65.10/axis-cgi/mjpeg/video.cgi?camera=1&resolution=640x480"); //hook to network camera
capture2 = cvCaptureFromFile("http://10.11.65.10/axis-cgi/mjpeg/video.cgi?camera=1&resolution=640x480"); //hook to network camera
,
the AXIS camera on the bot will do cascade-based vision tracking.
How do I fix this issue about FFMPEG not being correctly detected? I spent over two hours trying to modify code, find a better stream URL, etc., but couldn't find out anything, so now it is time that I ask the experts
Also, what is the URL that I should use to gather the MJPEG stream to the AXIS (I think it is M1011)?
Also, should I use another drop-in command like capture = cvCaptureFromFIle("URL"); ?
Thanks for your time and effort and good luck this year
