ESP32 Camera Websockets Video Stream to Remote Server | WEB Livestream AI Thinker CAM

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • 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.githubuser..." to "Additional Boards Manager URLs" in Preferences.
    The code is available on GitHub:
    github.com/Neu...
    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/...
    #esp32 #esp32cam #aithinker #websockets #stream

ความคิดเห็น • 45

  • @sanjaybhatikar
    @sanjaybhatikar 3 วันที่ผ่านมา

    This is one of those rare projects that gives a key that opens many possibilities. Hats off to you, sir!

  • @WayneRiesterer
    @WayneRiesterer 6 หลายเดือนก่อน +5

    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!

  • @sanjaybhatikar
    @sanjaybhatikar 3 วันที่ผ่านมา

    Hats off to you, sir! This is so cool!

  • @mhamidjamil
    @mhamidjamil หลายเดือนก่อน

    thanks man, i was looking for this approach and today find out your video in the youtube suggestion its helpful thanks again.

  • @sanjaybhatikar
    @sanjaybhatikar 12 ชั่วโมงที่ผ่านมา

    I set up a Nodered websockets server and HTML sever to show streaming images, inspired by your example. Thank you.

  • @ImMikeLo
    @ImMikeLo 4 หลายเดือนก่อน

    I love your tutorial. That helps a lot.

  • @googlacco
    @googlacco 9 หลายเดือนก่อน +1

    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

    • @Neumi
      @Neumi  9 หลายเดือนก่อน

      Good to know! Maybe it was set to external... no wonder it has bad reception :D

    • @googlacco
      @googlacco 9 หลายเดือนก่อน

      @@Neumi probably was if it came with an external antenna

  • @CompanyBusinessCards
    @CompanyBusinessCards ปีที่แล้ว +1

    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

    • @Neumi
      @Neumi  ปีที่แล้ว +1

      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. :)

  • @bryanorlandohanccocondori279
    @bryanorlandohanccocondori279 4 หลายเดือนก่อน

    Thanks a lot!

  • @feroxgameryt7837
    @feroxgameryt7837 หลายเดือนก่อน

    Is there an actual easy way to use external antenna without soldering

  • @buie545
    @buie545 2 หลายเดือนก่อน

    How to send this video stream from esp32 to winform

  • @username_6948
    @username_6948 ปีที่แล้ว

    cool :)

  • @meltonermeltoner
    @meltonermeltoner 2 หลายเดือนก่อน

    Hello thank you for your work. A quick quesiton, do you employ websockets for faster communication or so you can publish the stream to the internet?

    • @Neumi
      @Neumi  2 หลายเดือนก่อน

      Yes, WebSockets are the way to go, as they use UDP instead of TCP. UDP has way less overhead per packet and, therefore, is faster. But you cant be sure if you lost part of the data on the way. But for a stream, that's perfectly fine as long as it is fast.

    • @meltonermeltoner
      @meltonermeltoner 2 หลายเดือนก่อน

      @@Neumi thanks, though websockets do not use udp but tcp. the usual benefit of websockets is that they leave the connection open so you skip some parts of the usual handshake. are websockets used for the streaming or perhaps for sending json data?

  • @sparkhub9037
    @sparkhub9037 หลายเดือนก่อน

    Bro can i build two way communication with this code

    • @Neumi
      @Neumi  หลายเดือนก่อน

      You can use this code as a starter. But currently, it only sends the images to the backend. The other way you have to build yourself ;)

  • @BertMerdesacker-jf2sh
    @BertMerdesacker-jf2sh 6 หลายเดือนก่อน

    And people say Redrooms dont exist 😂
    Camera -> (Server IP) -> Websocket over TOR (.Onion) -> javascript enabled in Tor Browser -> done.

    • @karimkalboussi4703
      @karimkalboussi4703 5 หลายเดือนก่อน

      ??

    • @BertMerdesacker-jf2sh
      @BertMerdesacker-jf2sh 5 หลายเดือนก่อน

      ​@@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.

  • @speakup8721
    @speakup8721 ปีที่แล้ว +2

    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

    • @Neumi
      @Neumi  ปีที่แล้ว +1

      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 :)

  • @jurilynperez4708
    @jurilynperez4708 ปีที่แล้ว

    Can you make a video with the blynk latest blynk app?

  • @christophersarzen5066
    @christophersarzen5066 5 หลายเดือนก่อน

    is this possible to do on an open network that has no wifi password

    • @Neumi
      @Neumi  4 หลายเดือนก่อน

      Sure. Just leave the password sting empty. (If I remember correctly) But you should use password-protected networks if possible.

  • @qd156
    @qd156 7 หลายเดือนก่อน

    Hi bro, i have a question. Can i stream and receive data from computer with websocket at the same time?

    • @Neumi
      @Neumi  7 หลายเดือนก่อน

      Sure.I would not do it on an ESP though (due to limited processing power)

  • @SyedMuhammadAlam-v2o
    @SyedMuhammadAlam-v2o 9 หลายเดือนก่อน

    Will this work for two devices on different networks?

    • @Neumi
      @Neumi  9 หลายเดือนก่อน

      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).

  • @challenge1485
    @challenge1485 6 หลายเดือนก่อน

    i want text code

  • @n.w.aicecube5713
    @n.w.aicecube5713 10 หลายเดือนก่อน

    have you tried to stream directly to youtube

    • @Neumi
      @Neumi  10 หลายเดือนก่อน

      No actually not. but that would be a cool project!

  • @johanjulian8699
    @johanjulian8699 9 หลายเดือนก่อน

    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?

    • @johanjulian8699
      @johanjulian8699 9 หลายเดือนก่อน

      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?

    • @karimkalboussi4703
      @karimkalboussi4703 7 หลายเดือนก่อน

      @@johanjulian8699 hello brother, can you please help me ?

    • @Neumi
      @Neumi  5 หลายเดือนก่อน

      @@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.

  • @MichaelOsumune
    @MichaelOsumune 6 หลายเดือนก่อน

    Awesome work. Can I stream direct to AWS cloud (KVS or IVS). Can you do a tutorial on that

    • @Neumi
      @Neumi  5 หลายเดือนก่อน

      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.

  • @mohammadumer7663
    @mohammadumer7663 6 หลายเดือนก่อน

    how to send this video stream from esp32 to android studio

    • @Neumi
      @Neumi  6 หลายเดือนก่อน

      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.

  • @emirhanpolat330
    @emirhanpolat330 9 หลายเดือนก่อน

    Very inspiring video thanks

    • @emirhanpolat330
      @emirhanpolat330 9 หลายเดือนก่อน

      How can I make work it without board connection, Can I directly supply it with 5V battery pills ?