Code Monkey home page Code Monkey logo

esp32-rtsp's Introduction

ESP32-CAM RTSP stream

This repository is for the Circuitrocks@Learn blog how to stream a video from the ESP32-CAM to a RTSP client or web browser.

The source code for both ArduinoIDE and PlatformIO is in the src subfolder.

Compiling with PlatformIO

Just open the folder containing the files with PlatformIO and adjust your settings in platformio.ini. Required libraries are either automatically installed (OneButton) or in the lib folder (Micro-RTSP).

Compiling with ArduinoIDE

Install the required libraries as explained in the blog. Open the file src.ino in the src folder. Don't be surprised that the file is empty. It is only there for compatibility with ArduinoIDE.

esp32-rtsp's People

Contributors

beegee-tokyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-rtsp's Issues

Detected camera not supported

Hi,

I'm having an issue with a camera model 2640.
Here the serial debug 👍

"⸮j�ZI⸮F⸮F�⸮�⸮⸮�x⸮BJF⸮ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
[E][camera.c:1113] camera_probe(): Detected camera not supported.
[E][camera.c:1379] esp_camera_init(): Camera probe failed with error 0x20004
.....WiFi connected

192.168.1.31"

Please, could you help me or give some advice ?

Best regards,

Romain

Compilation error: 'class CRtspSession' has no member named 'broadcastCurrentFrame'

/Users/..../Desktop/ESP32-RTSP-master/src/rtsp.cpp: In function 'void rtspTask(void*)':
/Users/..../Desktop/ESP32-RTSP-master/src/rtsp.cpp:80:14: error: 'class CRtspSession' has no member named 'broadcastCurrentFrame'
session->broadcastCurrentFrame(now);
^~~~~~~~~~~~~~~~~~~~~
/Users/..../Desktop/ESP32-RTSP-master/src/rtsp.cpp:101:51: error: no matching function for call to 'OV2640Streamer::OV2640Streamer(WiFiClient*, OV2640&)'
streamer = new OV2640Streamer(&rtspClient, cam); // our streamer for UDP/TCP based RTP transport
^
In file included from /Users/..../Desktop/ESP32-RTSP-master/src/main.h:15,
from /Users/..../Desktop/ESP32-RTSP-master/src/rtsp.cpp:1:
/Users/..../Documents/Arduino/libraries/Micro-RTSP/src/OV2640Streamer.h:12:5: note: candidate: 'OV2640Streamer::OV2640Streamer(OV2640*)'
OV2640Streamer(OV2640 *cam);
^~~~~~~~~~~~~~
/Users/..../Documents/Arduino/libraries/Micro-RTSP/src/OV2640Streamer.h:12:5: note: candidate expects 1 argument, 2 provided
/Users/..../Documents/Arduino/libraries/Micro-RTSP/src/OV2640Streamer.h:6:7: note: candidate: 'OV2640Streamer::OV2640Streamer(const OV2640Streamer&)'
class OV2640Streamer : public CStreamer
^~~~~~~~~~~~~~
/Users/..../Documents/Arduino/libraries/Micro-RTSP/src/OV2640Streamer.h:6:7: note: candidate expects 1 argument, 2 provided
/Users/..../Documents/Arduino/libraries/Micro-RTSP/src/OV2640Streamer.h:6:7: note: candidate: 'OV2640Streamer::OV2640Streamer(OV2640Streamer&&)'
/Users/..../Documents/Arduino/libraries/Micro-RTSP/src/OV2640Streamer.h:6:7: note: candidate expects 1 argument, 2 provided

exit status 1

Compilation error: 'class CRtspSession' has no member named 'broadcastCurrentFrame'

I cant compile the code. What is the problem?

vlc streaming closes after about 10mins

13:08:17.360 -> error sending udp packet
13:08:17.408 -> error sending udp packet
13:08:17.408 -> error sending udp packet
13:08:17.408 -> error sending udp packet
13:08:17.455 -> error sending udp packet
13:08:17.455 -> error sending udp packet
13:08:17.455 -> error sending udp packet
13:08:17.502 -> error sending udp packet
13:08:18.528 -> RTSP received TEARDOWN
13:08:18.528 -> RTSP client closed connection
13:08:18.528 -> closing TCP socket
13:08:18.528 -> closing UDP socket
13:08:18.528 -> closing UDP socket

HTTP vs RTSP

Hey there!

I stumbled upon your blog post https://learn.circuit.rocks/esp32-cam-with-rtsp-video-streaming and from there on to your repository here.

I was wondering if you could share your experience which of the two server options you included (HTTP vs RTSP)
-) has better performance (higher fps)
-) takes less space in the code binary upload to the esp32

Thank you for sharing your code and experience :)

Frame resolution

I can see that it streams at 800x600, is there any way to reduce that resolution? That would help to make it faster

It is working, but may I reduce the latency?

Hi,
I can get the rtsp working. thanks.
I have reduced my rtsp client side latency to almost zero second, but the delay is still about 1 second.
(FYI, I could make my another IP cam latency close to zero.)
Is there any way I can make the latency close to zero in the server side?
Thanks.

Thoughts about streaming audio?

I'm curious if you have any suggestions on how to also stream audio on ESP32 devices that have both a camera and a MEMS microphone. Do you feel that's even possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.