ESP32 Camera Websockets Video Stream to Remote Server | WEB Livestream AI Thinker CAM
ฝัง
- เผยแพร่เมื่อ 18 เม.ย. 2023
- The ESP32 camera test example only lets you stream video to your local network.
Using Websockets, I built code to stream real-time video to a remote machine on the internet / local network.
To get the ESP32 boards in your Arduino IDEs boards menu, enter this: "raw.githubusercontent.com/esp..." to "Additional Boards Manager URLs" in Preferences.
The code is available on GitHub:
github.com/Neumi/esp32_camera...
Discord: / discord
LinkedIn: / neumi
GitHub: github.com/Neumi
If you want to support my work and projects, please check out my Amazon wish list!
www.amazon.de/hz/wishlist/ls/...
#esp32 #esp32cam #aithinker #websockets #stream - วิทยาศาสตร์และเทคโนโลยี
Well done. It's easy to use a library and example code, but to work out how to do something 'outside of the box' like you have is certainly more challenging. Thanks for sharing!
I love your tutorial. That helps a lot.
Thanks a lot!
Very inspiring video thanks
How can I make work it without board connection, Can I directly supply it with 5V battery pills ?
cool :)
theres a little resistor that allows you to switch between the pcb trace antenna and the external ipex antenna connector
if its set to the ipex connector, disconnecting the external antenna means that youre left without an antenna
Good to know! Maybe it was set to external... no wonder it has bad reception :D
@@Neumi probably was if it came with an external antenna
I was hoping that you would have shown how it works to a live server, the title of your video in this case should have been how to stream from esp32 to raspberry pi on local network. that's what I've been looking at if I'm not mistaken
There is actually no difference in running this code on a live server. The interesting part is the routing and the WS stream as the server receives and then streams it again to another client (like a relais). You can just open the port on your server and go for it. :)
Can you make a video with the blynk latest blynk app?
Awesome work. Can I stream direct to AWS cloud (KVS or IVS). Can you do a tutorial on that
I usually don't work with AWS but as it is just a websockets stream, I'm sure you can use my code directly on AWS or write some backend.
Hi bro, i have a question. Can i stream and receive data from computer with websocket at the same time?
Sure.I would not do it on an ESP though (due to limited processing power)
Great work, subscribed already. can you please make a similar project to work on cloud server. I will keep checking back if i will be lucky to have my request granted. cheers
Hey! Thanks!
The exact same process works on an online server running ie Ubuntu. The only thing you have to do is to open the corresponding port in your firewall. The Raspberry was just an example on the local network but it could be on a different network as well :)
I'm going to try it with a spring boot back, I'll let you know if I can get a live broadcast from anywhere in the world, the problem is having it connected to the internet, is it possible with a phone chip?
ok, I work the live streaming with my back in spring boot, but there is a problem and is that it disconnects and connects more and more often depending on the parameters of quality and size of the image, so I left jpeg_quality in 40 and frame_size in FRAMESIZE_CIF, so it works relatively well, what problem do you think I'm having?
@@johanjulian8699 hello brother, can you please help me ?
@@johanjulian8699 the ESP boards are quite low power. The RAM and CPU are a hair too weak to handle the amount of data with the larger image sizes and qualities. Try a lower resolution or higher compression. A good wifi connection with an external antenna also helps quite a bit.
Will this work for two devices on different networks?
Sure. The example was on the same network. But I tested with a remote server and it worked flawlessly. Even with multiple clients on the server (that acts like a relay).
have you tried to stream directly to youtube
No actually not. but that would be a cool project!
i want text code
is this possible to do on an open network that has no wifi password
Sure. Just leave the password sting empty. (If I remember correctly) But you should use password-protected networks if possible.
how to send this video stream from esp32 to android studio
What do you mean by sending a stream to Android Studio? Would you like to receive the stream in an Android app? You'll need a relay server to make this useful. You could use the same server as I did and open a web frame from that to see the stream on your Android device. I'm not into app development, but there is probably a standard way to receive an image/video stream on Android.
And people say Redrooms dont exist 😂
Camera -> (Server IP) -> Websocket over TOR (.Onion) -> javascript enabled in Tor Browser -> done.
??
@@karimkalboussi4703
Redroom = Livestreaming Gore to a Person "paid with Bitcoins" via the Darknet
Most people say that Redrooms cannot exists because Tor is "slow". But thats not the case for Websockets.