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
  • Наука та технологія

КОМЕНТАРІ • 39

  • @mhamidjamil
    @mhamidjamil День тому

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

  • @WayneRiesterer
    @WayneRiesterer 5 місяців тому +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!

  • @ImMikeLo
    @ImMikeLo 2 місяці тому

    I love your tutorial. That helps a lot.

  • @bryanorlandohanccocondori279
    @bryanorlandohanccocondori279 2 місяці тому

    Thanks a lot!

  • @emirhanpolat330
    @emirhanpolat330 7 місяців тому

    Very inspiring video thanks

    • @emirhanpolat330
      @emirhanpolat330 7 місяців тому

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

  • @username_6948
    @username_6948 Рік тому

    cool :)

  • @jurilynperez4708
    @jurilynperez4708 Рік тому

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

  • @googlacco
    @googlacco 8 місяців тому +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  8 місяців тому

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

    • @googlacco
      @googlacco 7 місяців тому

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

  • @meltonermeltoner
    @meltonermeltoner Місяць тому

    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  Місяць тому

      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 Місяць тому

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

  • @CompanyBusinessCards
    @CompanyBusinessCards 11 місяців тому +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  11 місяців тому +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. :)

  • @buie545
    @buie545 Місяць тому

    How to send this video stream from esp32 to winform

  • @MichaelOsumune
    @MichaelOsumune 4 місяці тому

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

    • @Neumi
      @Neumi  4 місяці тому

      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.

  • @qd156
    @qd156 6 місяців тому

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

    • @Neumi
      @Neumi  6 місяців тому

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

  • @user-tk5zr2jc3b
    @user-tk5zr2jc3b 8 місяців тому

    Will this work for two devices on different networks?

    • @Neumi
      @Neumi  8 місяців тому

      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 4 місяці тому

    i want text code

  • @n.w.aicecube5713
    @n.w.aicecube5713 8 місяців тому

    have you tried to stream directly to youtube

    • @Neumi
      @Neumi  8 місяців тому

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

  • @johanjulian8699
    @johanjulian8699 7 місяців тому

    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 7 місяців тому

      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 5 місяців тому

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

    • @Neumi
      @Neumi  4 місяці тому

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

  • @christophersarzen5066
    @christophersarzen5066 3 місяці тому

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

    • @Neumi
      @Neumi  3 місяці тому

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

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

  • @BertMerdesacker-jf2sh
    @BertMerdesacker-jf2sh 4 місяці тому

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

    • @karimkalboussi4703
      @karimkalboussi4703 4 місяці тому

      ??

    • @BertMerdesacker-jf2sh
      @BertMerdesacker-jf2sh 4 місяці тому

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

  • @mohammadumer7663
    @mohammadumer7663 4 місяці тому

    how to send this video stream from esp32 to android studio

    • @Neumi
      @Neumi  4 місяці тому

      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.