# RE: ESP32-CAM and live streaming to Youtube (and Twitch)

**URL:** <https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468>\
**Category:** Programming\
**Created:** [January 8, 2025, 9:08pm UTC](https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468 "2025-01-08T21:08:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolacika](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tolacika/32/1130191_2.png) [@tolacika](https://forum.arduino.cc/u/tolacika)\
**Post date:** [January 8, 2025, 9:08pm UTC](https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468/1 "2025-01-08T21:08:49Z")

</div>

Original post: [forum](https://forum.arduino.cc/t/esp32-cam-and-live-streaming-to-youtube/609425)

Hi everyone,

I wanted to share my experience with setting up live streaming from an ESP32-CAM to YouTube. After some research and experimentation, I was able to create a functional prototype in just a few hours. I’ve made the code available for free on GitHub and would really appreciate feedback from the community.

Here’s a quick summary of the process:

1. **Hardware** : I used an ESP32-WROVER-DEV board paired with an OV2640 camera module, though any ESP32-CAM board should work.
2. **Software** : The project uses the [esp-idf](https://github.com/espressif/esp-idf) framework. I set up the environment in VSCode with the [ESP-IDF extension](https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension).
3. **Server** : For handling RTMP protocol and H.264 encoding, I used a server that can run on a Raspberry Pi, a local machine, or a Digital Ocean droplet. The server-side processing was done using FFmpeg and Node.js.

The detailed instructions and code are available in the [GitHub repository](https://github.com/tolacika/espcam-live-straming).

This project didn’t take me months - just 4 hours to get a working prototype. I’m not a fan of gatekeeping or charging for information that should be freely accessible. I do hate attitude. We are working from the same publicly available sources tho. Let’s collaborate to improve this project and learn together!

I’m looking forward to hearing your thoughts and suggestions.

Best regards,  
Tolacika

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [January 8, 2025, 10:18pm UTC](https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468/2 "2025-01-08T22:18:52Z")

</div>

> [@tolacika](#):
>
> **Server** : For handling RTMP protocol and H.264 encoding, I used a server that can run on a Raspberry Pi, a local machine, or a Digital Ocean droplet. The server-side processing was done using FFmpeg and Node.js.

For a simpler setup with much higher quality images, dispense with the ESP32-CAM and connect a decent camera directly to the server.

---

<div class="post-metadata">

**Author:** ![grinta](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grinta/32/1178731_2.png) [@grinta](https://forum.arduino.cc/u/grinta)\
**Post date:** [January 22, 2025, 8:49am UTC](https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468/3 "2025-01-22T08:49:46Z")

</div>

Thank you, that's exactly what I was looking for, to be able to make a live show visible outside the local network. However, I would need help with the server-side implementation, be it local or in the cloud. I would really appreciate it

---

<div class="post-metadata">

**Author:** ![tolacika](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tolacika/32/1130191_2.png) [@tolacika](https://forum.arduino.cc/u/tolacika)\
**Post date:** [January 23, 2025, 10:49pm UTC](https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468/4 "2025-01-23T22:49:02Z")

</div>

It can be both. I have tested on a PC on my local network, but it could work as long as the server has a public IP address or at least the ESP can reach the server. Don't expect too much quality tho...

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 22, 2025, 10:49pm UTC](https://forum.arduino.cc/t/re-esp32-cam-and-live-streaming-to-youtube-and-twitch/1340468/5 "2025-07-22T22:49:26Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
