Esp32 cam and frigate

Hi

I have a esp32 cam and I can’t get it to work with frigate/HA. I have tried a number of setups/settings/combinations.

I have tried both esphome and arduino setup. Both methods work in a web browser but not in frigate.

I have frigate in docker on a Synology with high performs and shm size 128mb.

Synology DS218+, cpu 2ghz, ram 6144mb
HA latest version on NUCi3.

My RSPT camera works but not my esp32 cam.

ESP32 cam setup

esphome:
  name: kamera-1
  platform: ESP32
  friendly_name: Kamera-1
  board: esp32dev

# Enable logging
logger:

web_server:
  port: 80
  auth: 
    username: !secret web_username
    password: !secret web_password

esp32_camera_web_server:
  - port: 8080
    mode: stream
  - port: 8081
    mode: snapshot

# Enable Home Assistant API
api:
  encryption:
    key: "xxxx+xxxx="

ota:
  password: "xxxxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kamera-1 Fallback Hotspot"
    password: "xxxxx"

captive_portal:
    
# Example configuration entry
esp32_camera:
  id: espcam
  name: Kamera 1
  internal: true    #<-- set to 'false' only if you don't want to use Frigate
  external_clock:
    pin: GPIO0
    frequency: 20MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22
  power_down_pin: GPIO32
  resolution: 1600x1200
  jpeg_quality: 10
  agc_mode: auto
  agc_gain_ceiling: 128x
  wb_mode: auto
  vertical_flip: true      #<-- you can cange this if you need
  horizontal_mirror: true  #<-- you can cange this if you need  
  special_effect: none
#  brightness: -2 #mellan -2 och 2
 # saturation: -2
  max_framerate: 25 fps
  idle_framerate: 0.2 fps


time:
  - platform: homeassistant
    id: kamera1_time

output: 
  - platform: gpio
    pin: GPIO4
    id: gpio_4
  - platform: gpio
    pin:
      number: GPIO33
      inverted: True
    id: gpio_33

light:
  - platform: binary
    output: gpio_4
    name: Kamera1 LED light
    id: ledlight
  - platform: binary
    output: gpio_33
    name: Kamera1 wifi light state


  
sensor:
  - platform: wifi_signal
    name: "Kamera 1 WiFi Signal"
    update_interval: 60s
  - platform: uptime
    name: "Kamera 1 Uptime"
    filters:
      - lambda: return x / 60.0;
    unit_of_measurement: minutes
  
text_sensor:
    - platform: version
      name: Kamera1 ESPHome Version
    - platform: wifi_info
      ssid:
        name: Kamera1 WiFi
    
button:
  - platform: restart
    name: Kamera1 restart

number:
  - platform: template
    name: Kontrast
    id: cam_contrast
    optimistic: true
    initial_value: 0
    min_value: -2
    max_value: 2
    step: 1
    set_action:
      - lambda: |-
          id(espcam).set_contrast(x);
          id(espcam).update_camera_parameters();
  - platform: template
    name: Ljusstyrka
    id: cam_brightness
    optimistic: true
    initial_value: 0
    min_value: -2
    max_value: 2
    step: 1
    set_action:
      - lambda: |-
          id(espcam).set_brightness(x);
          id(espcam).update_camera_parameters();
  - platform: template
    name: Saturation
    id: cam_saturation
    optimistic: true
    initial_value: 0
    min_value: -2
    max_value: 2
    step: 1
    set_action:
      - lambda: |-
          id(espcam).set_saturation(x);
          id(espcam).update_camera_parameters();

mqtt:
  broker: 10.17.17.40
  username: xxxx
  password: xxxx

Frigate config

mqtt:
  host: 10.17.17.40
  port: 1883
  stats_interval: 60
  user: xxxx
  password: xxxx

#go2rtc:
#  streams:
#    kamera1:
#      - http://kamera-1.local:8080
#      - ffmpeg:kamera1#video=h264#hardware

cameras:
  hallen:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
          roles:
            - detect
    detect:
      width: 1280
      height: 720


  kamera1:
    ffmpeg:
      inputs:
        - path: http://kamera-1.local:8080
          roles:
            - detect
#            - rtmp
#            - record
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
      output_args:
        detect: -f rawvideo -pix_fmt yuv420p -an
#        record: -f segment -pix_fmt yuv420p -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -preset ultrafast -an
#        rtmp: -f flv -pix_fmt yuv420p -c:v libx264 -preset ultrafast -an
    rtmp:
      enabled: false
    record:
      enabled: false
    detect:
      enabled: false
      width: 800
      height: 600
      fps: 5
    objects:
      track:
        - person
        - cup
    snapshots:
      enabled: True
      timestamp: True
      bounding_box: True
      retain:
        default: 14
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      height: 1200

Frigate log

2023-08-17 01:54:59.091343604  [2023-08-17 01:54:59] watchdog.kamera1               ERROR   : Ffmpeg process crashed unexpectedly for kamera1.
2023-08-17 01:54:59.091351908  [2023-08-17 01:54:59] watchdog.kamera1               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-17 01:54:59.091354561  [2023-08-17 01:54:59] ffmpeg.kamera1.detect          ERROR   : [tcp @ 0x55bf9216d600] Failed to resolve hostname kamera-1.local: Name or service not known
2023-08-17 01:54:59.091356702  [2023-08-17 01:54:59] ffmpeg.kamera1.detect          ERROR   : http://kamera-1.local:8080: Input/output error
2023-08-17 01:54:59.113207085  [2023-08-17 01:54:59] frigate.video                  ERROR   : kamera1: Unable to read frames from ffmpeg process.
2023-08-17 01:54:59.114915938  [2023-08-17 01:54:59] frigate.video                  ERROR   : kamera1: Unable to read frames from ffmpeg process.
2023-08-17 01:54:59.116010074  [2023-08-17 01:54:59] frigate.video                  ERROR   : kamera1: ffmpeg process is not running. exiting capture 

What do I have to do, do get it to work?

Thank you!

Use the IP address of the Kamera, or fix your mDNS/DNS

Great, Thank you! Changed to IP

I have played around a bit now, but still no luck.
Sometime I get no frames, sometime I get looks like a snapshot picture, it comes and goes.

Between all changes, I have restarted HA, esp32 cam and frigate docker .

no1
frigate config

mqtt:
  host: 10.17.17.40
  port: 1883
  stats_interval: 60
  user: xxxx
  password: xxxx

go2rtc:
  streams:
    kamera1:
      - http://10.17.17.239:8080
      - ffmpeg:kamera1#video=h264#hardware

cameras:
  hallen:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
          roles:
            - detect
    detect:
      width: 1280
      height: 720


  kamera1:
    ffmpeg:
      inputs:
        - path: http://10.17.17.239:8080
          roles:
            - detect
            - rtmp
            - record
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
      output_args:
        detect: -f rawvideo -pix_fmt yuv420p -an
        record: -f segment -pix_fmt yuv420p -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -preset ultrafast -an
        rtmp: -f flv -pix_fmt yuv420p -c:v libx264 -preset ultrafast -an
    rtmp:
      enabled: true
    record:
      enabled: true
    detect:
      enabled: true
      width: 1280
      height: 720
      fps: 5
    objects:
      track:
        - person
#        - cup
    snapshots:
      enabled: True
      timestamp: True
      bounding_box: True
      retain:
        default: 14
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      height: 1200




Frigate log

2023-08-17 13:14:49.781372864  [INFO] Preparing Frigate...
2023-08-17 13:14:49.890252763  [INFO] Starting Frigate...
2023-08-17 13:14:54.150837939  [2023-08-17 13:14:54] frigate.app                    INFO    : Starting Frigate (0.13.0-6801981)
2023-08-17 13:14:54.184981672  [2023-08-17 13:14:54] frigate.config                 WARNING : RTMP restream is deprecated in favor of the restream role, recommend disabling RTMP.
2023-08-17 13:14:54.221547716  [2023-08-17 13:14:54] peewee_migrate.logs            INFO    : Starting migrations
2023-08-17 13:14:54.231887278  [2023-08-17 13:14:54] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-08-17 13:14:54.379857430  [2023-08-17 13:14:54] frigate.app                    INFO    : Recording process started: 221
2023-08-17 13:14:54.385503353  [2023-08-17 13:14:54] frigate.app                    INFO    : go2rtc process pid: 93
2023-08-17 13:14:54.434440794  [2023-08-17 13:14:54] frigate.app                    INFO    : Output process started: 234
2023-08-17 13:14:54.444644776  [2023-08-17 13:14:54] frigate.app                    INFO    : Camera processor started for hallen: 237
2023-08-17 13:14:54.459384667  [2023-08-17 13:14:54] frigate.app                    INFO    : Camera processor started for kamera1: 239
2023-08-17 13:14:54.480183235  [2023-08-17 13:14:54] detector.cpu                   INFO    : Starting detection process: 233
2023-08-17 13:14:54.480191576  [2023-08-17 13:14:54] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-08-17 13:14:54.488105023  [2023-08-17 13:14:54] frigate.app                    INFO    : Capture process started for hallen: 242
2023-08-17 13:14:54.516553554  [2023-08-17 13:14:54] frigate.app                    INFO    : Capture process started for kamera1: 246
2023-08-17 13:14:54.545192702  [2023-08-17 13:14:54] frigate.record.maintainer      ERROR   : Error occurred when attempting to maintain recording cache
2023-08-17 13:14:54.545200219  [2023-08-17 13:14:54] frigate.record.maintainer      ERROR   : list index out of range


Changed to this config

mqtt:
  host: 10.17.17.40
  port: 1883
  stats_interval: 60
  user: xxx
  password: xxxx

#go2rtc:
#  streams:
#    kamera1:
#      - http://10.17.17.239:8080
#      - ffmpeg:kamera1#video=h264#hardware

cameras:
  hallen:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
          roles:
            - detect
    detect:
      width: 1280
      height: 720


  kamera1:
    ffmpeg:
      inputs:
        - path: http://10.17.17.239:8080
          roles:
            - detect
            - rtmp
            - record
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
      output_args:
        detect: -f rawvideo -pix_fmt yuv420p -an
        record: -f segment -pix_fmt yuv420p -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -preset ultrafast -an
        rtmp: -f flv -pix_fmt yuv420p -c:v libx264 -preset ultrafast -an
    rtmp:
      enabled: true
    record:
      enabled: true
    detect:
      enabled: true
      width: 1280
      height: 720
      fps: 5
    objects:
      track:
        - person
#        - cup
    snapshots:
      enabled: True
      timestamp: True
      bounding_box: True
      retain:
        default: 14
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      height: 1200




Get this log

2023-08-17 13:26:47.586388150  [INFO] Preparing Frigate...
2023-08-17 13:26:47.680287676  [INFO] Starting Frigate...
2023-08-17 13:26:50.847866669  [2023-08-17 13:26:50] frigate.app                    INFO    : Starting Frigate (0.13.0-6801981)
2023-08-17 13:26:50.882934139  [2023-08-17 13:26:50] frigate.config                 WARNING : RTMP restream is deprecated in favor of the restream role, recommend disabling RTMP.
2023-08-17 13:26:50.918830454  [2023-08-17 13:26:50] peewee_migrate.logs            INFO    : Starting migrations
2023-08-17 13:26:50.928357867  [2023-08-17 13:26:50] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-08-17 13:26:51.059911188  [2023-08-17 13:26:51] frigate.app                    INFO    : Recording process started: 221
2023-08-17 13:26:51.065639463  [2023-08-17 13:26:51] frigate.app                    INFO    : go2rtc process pid: 90
2023-08-17 13:26:51.114570758  [2023-08-17 13:26:51] frigate.app                    INFO    : Output process started: 232
2023-08-17 13:26:51.131637067  [2023-08-17 13:26:51] detector.cpu                   INFO    : Starting detection process: 231
2023-08-17 13:26:51.144525255  [2023-08-17 13:26:51] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-08-17 13:26:51.149995097  [2023-08-17 13:26:51] frigate.app                    INFO    : Camera processor started for hallen: 238
2023-08-17 13:26:51.168172912  [2023-08-17 13:26:51] frigate.record.maintainer      ERROR   : Error occurred when attempting to maintain recording cache
2023-08-17 13:26:51.169048629  [2023-08-17 13:26:51] frigate.record.maintainer      ERROR   : list index out of range
2023-08-17 13:26:51.176983143  [2023-08-17 13:26:51] frigate.app                    INFO    : Camera processor started for kamera1: 243
2023-08-17 13:26:51.192870158  [2023-08-17 13:26:51] frigate.app                    INFO    : Capture process started for hallen: 245
2023-08-17 13:26:51.219630233  [2023-08-17 13:26:51] frigate.app                    INFO    : Capture process started for kamera1: 248
2023-08-17 13:31:08.553996463  [2023-08-17 13:31:08] frigate.video                  ERROR   : kamera1: Unable to read frames from ffmpeg process.
2023-08-17 13:31:08.554956675  [2023-08-17 13:31:08] frigate.video                  ERROR   : kamera1: ffmpeg process is not running. exiting capture thread...
2023-08-17 13:31:11.315984111  [2023-08-17 13:31:11] watchdog.kamera1               ERROR   : Ffmpeg process crashed unexpectedly for kamera1.
2023-08-17 13:31:11.317266145  [2023-08-17 13:31:11] watchdog.kamera1               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-17 13:31:11.317278667  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6cc0240] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.317283939  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d11f40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.317287715  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d63800] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.317290787  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6cc0240] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.318285573  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d0b340] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.318292181  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d64b80] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.318295136  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6cc0240] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.318297897  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d53a40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.318300650  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d0cd40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.318303318  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6cc0240] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.319278183  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d54640] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.319662654  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6cb3280] [swscaler @ 0x55ccd6d0cd40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.320508923  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6f68d40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.320864850  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6fbaa40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.321538923  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd700c300] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.321905439  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6f68d40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.322609250  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd7002600] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.322968525  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6fba640] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.330953811  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6f68d40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.331610665  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd7002ac0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.332826254  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6fb8780] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.333478350  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6f68d40] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.335838726  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd7002ac0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.336082200  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd6f5b980] [swscaler @ 0x55ccd6fb8780] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.336337100  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd71ffb00] [swscaler @ 0x55ccd720cac0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.337070810  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd71ffb00] [swscaler @ 0x55ccd72673c0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.337341852  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd71ffb00] [swscaler @ 0x55ccd72c1cc0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.337578403  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd7300000] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.337736700  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd723db80] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.337886361  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd72984c0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.338035682  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd7300000] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.338184957  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd729d2c0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.338382146  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd723db80] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.338825580  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd7300000] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.339031043  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd729d2c0] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.339180080  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [swscaler @ 0x55ccd72f3040] [swscaler @ 0x55ccd723db80] deprecated pixel format used, make sure you did set range correctly
2023-08-17 13:31:11.339400718  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : More than 1000 frames duplicated
2023-08-17 13:31:11.339558661  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [mjpeg @ 0x55ccd6c5a5c0] mjpeg_decode_dc: bad vlc: 0:0 (0x55ccd6c5c410)
2023-08-17 13:31:11.339705521  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [mjpeg @ 0x55ccd6c5a5c0] error dc
2023-08-17 13:31:11.339853732  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [mjpeg @ 0x55ccd6c5a5c0] error y=149 x=93
2023-08-17 13:31:11.340002392  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [mjpeg @ 0x55ccd6c5a5c0] mjpeg_decode_dc: bad vlc: 0:0 (0x55ccd6c5c410)
2023-08-17 13:31:11.340145792  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [mjpeg @ 0x55ccd6c5a5c0] error dc
2023-08-17 13:31:11.340324052  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [mjpeg @ 0x55ccd6c5a5c0] error y=149 x=98
2023-08-17 13:31:11.340562507  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [http @ 0x55ccd6c55e40] Stream ends prematurely at 33029689, should be 18446744073709551615
2023-08-17 13:31:11.340719302  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : http://10.17.17.239:8080: Input/output error
2023-08-17 13:31:11.340866562  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [flv @ 0x55ccd6c625c0] Failed to update header with correct duration.
2023-08-17 13:31:11.341015901  [2023-08-17 13:31:11] ffmpeg.kamera1.detect          ERROR   : [flv @ 0x55ccd6c625c0] Failed to update header with correct filesize.
2023-08-17 13:31:16.423973293  [2023-08-17 13:31:16] frigate.video                  ERROR   : kamera1: Unable to read frames from ffmpeg process.
2023-08-17 13:31:16.424818364  [2023-08-17 13:31:16] frigate.video                  ERROR   : kamera1: ffmpeg process is not running. exiting capture thread...
2023-08-17 13:31:21.418099455  [2023-08-17 13:31:21] watchdog.kamera1               ERROR   : Ffmpeg process crashed unexpectedly for kamera1.
2023-08-17 13:31:21.418718557  [2023-08-17 13:31:21] watchdog.kamera1               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-17 13:31:21.419053864  [2023-08-17 13:31:21] ffmpeg.kamera1.detect          ERROR   : [tcp @ 0x563fb8cafbc0] Connection to tcp://10.17.17.239:8080 failed: Connection timed out
2023-08-17 13:31:21.419341963  [2023-08-17 13:31:21] ffmpeg.kamera1.detect          ERROR   : http://10.17.17.239:8080: Connection timed out
2023-08-17 13:31:41.435986613  [2023-08-17 13:31:41] watchdog.kamera1               INFO    : No frames received from kamera1 in 20 seconds. Exiting ffmpeg...
2023-08-17 13:31:41.437366112  [2023-08-17 13:31:41] watchdog.kamera1               INFO    : Waiting for ffmpeg to exit gracefully...
2023-08-17 13:31:41.438784464  [2023-08-17 13:31:41] frigate.video                  ERROR   : kamera1: Unable to read frames from ffmpeg process.
2023-08-17 13:31:41.440883174  [2023-08-17 13:31:41] frigate.video                  ERROR   : kamera1: ffmpeg process is not running. exiting capture thread...
2023-08-17 13:31:51.448939537  [2023-08-17 13:31:51] watchdog.kamera1               ERROR   : Ffmpeg process crashed unexpectedly for kamera1.
2023-08-17 13:31:51.449430647  [2023-08-17 13:31:51] watchdog.kamera1               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-17 13:31:51.450003106  [2023-08-17 13:31:51] ffmpeg.kamera1.detect          ERROR   : http://10.17.17.239:8080: Immediate exit requested
2023-08-17 13:31:56.477137083  [2023-08-17 13:31:56] frigate.video                  ERROR   : kamera1: Unable to read frames from ffmpeg process.
2023-08-17 13:31:56.477860325  [2023-08-17 13:31:56] frigate.video                  ERROR   : kamera1: ffmpeg process is not running. exiting capture thread...

this config

mqtt:
  host: 10.17.17.40
  port: 1883
  stats_interval: 60
  user: xxxx
  password: xxxxx

go2rtc:
  streams:
    kamera1:
      - http://10.17.17.239:8080
      - ffmpeg:kamera1#video=h264#hardware

cameras:
  hallen:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
          roles:
            - detect
    detect:
      width: 1280
      height: 720


  kamera1:
    ffmpeg:
      inputs:
        - path: http://10.17.17.239:8080
          roles:
#            - detect
            - rtmp
#            - record
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
      output_args:
#        detect: -f rawvideo -pix_fmt yuv420p -an
#        record: -f segment -pix_fmt yuv420p -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -preset ultrafast -an
        rtmp: -f flv -pix_fmt yuv420p -c:v libx264 -preset ultrafast -an
    rtmp:
      enabled: true
    record:
      enabled: false
    detect:
      enabled: false
      width: 1280
      height: 720
      fps: 5
    objects:
      track:
        - person
#        - cup
    snapshots:
      enabled: True
      timestamp: True
      bounding_box: True
      retain:
        default: 14
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      quality: 100
      height: 1200




Log

2023-08-17 13:45:14.093301945  [INFO] Preparing Frigate...
2023-08-17 13:45:14.156322064  [INFO] Starting Frigate...
2023-08-17 13:45:17.282389398  [2023-08-17 13:45:17] frigate.app                    INFO    : Starting Frigate (0.13.0-6801981)
2023-08-17 13:45:17.323664837  [2023-08-17 13:45:17] frigate.config                 WARNING : RTMP restream is deprecated in favor of the restream role, recommend disabling RTMP.
2023-08-17 13:45:17.357314456  [2023-08-17 13:45:17] peewee_migrate.logs            INFO    : Starting migrations
2023-08-17 13:45:17.370125788  [2023-08-17 13:45:17] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-08-17 13:45:17.533515765  [2023-08-17 13:45:17] frigate.app                    INFO    : Recording process started: 221
2023-08-17 13:45:17.539622058  [2023-08-17 13:45:17] frigate.app                    INFO    : go2rtc process pid: 95
2023-08-17 13:45:17.586741961  [2023-08-17 13:45:17] frigate.app                    INFO    : Output process started: 232
2023-08-17 13:45:17.604268870  [2023-08-17 13:45:17] frigate.app                    INFO    : Camera processor started for hallen: 237
2023-08-17 13:45:17.613970405  [2023-08-17 13:45:17] detector.cpu                   INFO    : Starting detection process: 231
2023-08-17 13:45:17.614968413  [2023-08-17 13:45:17] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-08-17 13:45:17.625671231  [2023-08-17 13:45:17] frigate.app                    INFO    : Camera processor started for kamera1: 239
2023-08-17 13:45:17.692001676  [2023-08-17 13:45:17] frigate.app                    INFO    : Capture process started for hallen: 242
2023-08-17 13:45:17.692477044  [2023-08-17 13:45:17] frigate.app                    INFO    : Capture process started for kamera1: 244

Last config:
I frigate overview I get like a snapshot. Every time I update browser, I get a picture. no live.
If I go in to cameras and chose. JSMPEG I get live (2 sec delay). I HA I get the same view as in the overview in frigate. No live stream.

Perhaps ask on the frigate github (this is not the frigate forum!)