Adding RTSP-Stream from ESP32-CAM into Frigate

I got it working and I must say I am really impressed. Even without a Google Coral Stick it’s fast and usable. Didn’t expected that.

To get it working I flashed the firmware from GitHub - geeksville/TenDollarWebcam: A small example app for ESP32 + Micro-RTSP onto my TTGO T-Camera ESP32 so it is able to output an RTSP stream. The AutoWifi-setup can be a bit annoying but it worked in the end.

After that I use the following configuration (frigate.yml):

cameras:
  ESP_TTGO_Cam:
    ffmpeg:
      global_args: -hide_banner -loglevel warning
      # Hardware acceleration does not work for me as described in the Frigate documentation on my Raspberry Pi 4 32Bit OS.
      hwaccel_args: []
      #  - -c:v
      #  - h264_mmal
      inputs:
        - path: rtsp://192.168.188.139:8554/mjpeg/1
          roles:
            - detect
     #       - rtmp # deactivate rtmp, otherwise you only see a green image
    width: 800
    height: 600
    fps: 5

What still not working is that Frigate offers the stream as RTMP and I think it’s somehow related to the ffmpeg output parameters that need tweaking.

After that I installed the HACS integration and I am seeing a screenshot of the last event in Lovelace. Pretty nice - EXCACTLY what I need.

Maybe my issues that I had are somehow related to the ESP32 board I used. I switched from a M5-Stack ESP32-CAM to the TTGO Cam-Board which has plenty of PSRAM.

Have fun with it.