bakercp / ofxIpVideoGrabber

An openFrameworks addon for MJPEG streams (Axis IP Camera, mjpeg-streamer, etc.).
MIT License
104 stars 28 forks source link

Example not working with Esp32-cam #28

Open owenplanchart opened 3 years ago

owenplanchart commented 3 years ago

Hi, This seems like exactly what I'm looking for but not getting the stream using the OF single_camera_example. Using an esp32-cam and OF 10.1. I am definitely getting the stream on my laptop and the serial shows me all the mjpg files being sent, but not sure if I'm accessing the URL properly inside OF, so it's timing out:

Screenshot 2021-06-13 at 20 03 05

Thanks so much for your great work and support

ps. ignore the fact that the resolution on the stream doesn't match the resolution in the OF sketch, I did try it with the same width and height

bakercp commented 3 years ago

Hi @owenplanchart - if you take the URL (in red) that you are using to set in grabber.setURI(...) and put it into a web browser (I know firefox works), do you get a video stream? Likewise, if you open that link in VLC (using remote location) do you get a video stream? If you don't get a video stream there, then you likely won't get it in this addon. A couple other ideas. In a browser, you can inspect the source right on the working video stream to get the fully resolved URL to use. If you've already confirmed all of that stuff, I suspect that maybe the host on the ESP32 has a 1 client limit and simply times out if additional clients try to connect. Perhaps try disconnecting your web interface (seen in the photo) and connect exclusively with another source? Good luck!

owenplanchart commented 3 years ago

I think you were right. The sketch seems to only support one client at a time and the "start stream" button was on the interface itself. I used a different, less complicated, sketch and it worked.

In case you haven't heard it in a while, I can't thank you and the other heavyweights of openFrameworks enough for the support and the development of these tools. Amazing work.