Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working with Esp32-cam #28

Open
owenplanchart opened this issue Jun 13, 2021 · 2 comments
Open

Example not working with Esp32-cam #28

owenplanchart opened this issue Jun 13, 2021 · 2 comments

Comments

@owenplanchart
Copy link

owenplanchart commented Jun 13, 2021

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
Copy link
Owner

bakercp commented Jun 14, 2021

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants