ESP32-CAM as RTSP camera. Not working.
Posted: Thu Sep 18, 2025 9:15 am
Hello.
I need connect ESP32-CAM to CCTV recorder, so I need RTSP server, not the popular HTTP one.
I also used the HTTP version, and it worked well (of course only in browser, not with the CCTV recorder). So module itself is electrically fine.
But now I need RTSP, so I'm trying to use example project from this library:
https://www.arduinolibraries.info/libra ... tsp-server
I changed only SSID/PASSWORD, and disable audio.
Also I change model into "define CAMERA_MODEL_AI_THINKER", because I have PCB looking like this:

After flashing the firmware, the module displays this at startup, indicating that it is working (at least in some way):
The module responds to pings at the address 192.168.2.57.
But the problem is that CCTV recorder could not find the module. (of course all the equipment are on the same local network)
Also I trying to log into module using web browser, or receive stream using VLC (at port 554 and also 5430). Without success.
Is this ESP module/code not working properly, or am I perhaps configuring something incorrectly in VLC?
Or maybe CAMERA_MODEL_AI_THINKER is not proper setting for this board?
I need connect ESP32-CAM to CCTV recorder, so I need RTSP server, not the popular HTTP one.
I also used the HTTP version, and it worked well (of course only in browser, not with the CCTV recorder). So module itself is electrically fine.
But now I need RTSP, so I'm trying to use example project from this library:
https://www.arduinolibraries.info/libra ... tsp-server
I changed only SSID/PASSWORD, and disable audio.
Also I change model into "define CAMERA_MODEL_AI_THINKER", because I have PCB looking like this:

After flashing the firmware, the module displays this at startup, indicating that it is working (at least in some way):
Code: Select all
Connecting to WiFi...
Connecting to WiFi...
Connected to WiFi
Camera Setup Complete
Camera Quality is: 10
RTSP server started successfully using default values, Connect to rtsp://192.168.2.57:554/
==== Device Information ====
ESP32 Chip ID: XXXXXXXXXX
Flash Chip Size: 4 MB
PSRAM Size: 2 MB
==== Sketch Information ====
Sketch Size: 1022 KB
Free Sketch Space: 3 MB
Sketch MD5: 3834994b490d37cad9dd5c17f3d116cd
==== Task Information ====
Total tasks: 13
==== Network Information ====
IP Address: 192.168.2.57
MAC Address: XX:XX:XX:XX:XX:XX
SSID: TP-LINK_XXXXXX
RSSI: -51 dBm
==== RTSP Server Information ====
RTSP Port: 554
Sample Rate: 0
Transport Type: 4
Video Port: 5430
Audio Port: 5432
Subtitles Port: 5434
RTP IP: 239.255.0.1
RTP TTL: 64
RTSP Address: rtsp://192.168.2.57:554
==============================But the problem is that CCTV recorder could not find the module. (of course all the equipment are on the same local network)
Also I trying to log into module using web browser, or receive stream using VLC (at port 554 and also 5430). Without success.
Is this ESP module/code not working properly, or am I perhaps configuring something incorrectly in VLC?
Or maybe CAMERA_MODEL_AI_THINKER is not proper setting for this board?