circuitrocks / ESP32-RTSP

ESP32-CAM as RTSP stream server
228 stars 68 forks source link

RTSP seems not so stable, got to manual reset the esp32 cam #2

Closed soovui closed 3 years ago

soovui commented 4 years ago

Hi,

I try to put it up and running yesterday night, it stops working and got to manually reset it. I actually try a few RTSP program from others, it is the same. Even I change power supply too. Can you help to look into it?

Stuart

beegee-tokyo commented 4 years ago

Difficult to say, I have mine online for days now without the need to reset it.

One problem I found is that if both Webserver and RTSP server are enabled, the streaming is either very slow or stops sometimes.

In main.h check the following lines to make sure only one of the two is enabled:

// Select which of the servers are active
// Select only one or the streaming will be very slow!
// #define ENABLE_WEBSERVER
#define ENABLE_RTSPSERVER

Other than that, my module is really sensitive to power problems. I had to try several USB cables before I got it to run. Right now I am using a USB cable that is made for charging only, it does not have data lines and that works best for me.

soovui commented 4 years ago

Difficult to say, I have mine online for days now without the need to reset it.

One problem I found is that if both Webserver and RTSP server are enabled, the streaming is either very slow or stops sometimes.

In main.h check the following lines to make sure only one of the two is enabled:

// Select which of the servers are active
// Select only one or the streaming will be very slow!
// #define ENABLE_WEBSERVER
#define ENABLE_RTSPSERVER

Other than that, my module is really sensitive to power problems. I had to try several USB cables before I got it to run. Right now I am using a USB cable that is made for charging only, it does not have data lines and that works best for me.

Yes I only enable RTSP and I am using purely 5v 3000mA DC power adapter. Unfortunately, I tested this morning ok but at night I got to reset it again to make it work.

beegee-tokyo commented 4 years ago

Your setup sounds good. I have no idea why it stops after a few hours.

Can you try on a different WiFi network? Just to eliminate the possibility of a router problem?

beegee-tokyo commented 3 years ago

Please report problem at Micro-RTSP. I wrote just the app, not the streaming library.