blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18k stars 1.64k forks source link

[Config Support]: 0.13 Beta 6 & 7 --> No frames received, check logs for errors --> 0.13 Beta 5 is OK #8750

Closed Calimerorulez closed 7 months ago

Calimerorulez commented 9 months ago

Describe the problem you are having

Hi,

Updated from 0.13 beta 5 to 0.13 beta 6, I'm seeing errors again in the camera overview: 'No frames received, check logs for errors'. Beta 5 was running fine.

Ffmpeg seems to crash randomly for my Unifi cameras.

Running an externally go2rtc 1.8.4 Docker image on another server, just to free resources on my Frigate server.

Version

0.13-beta6

Frigate config file

detectors:
  coral_pci:
    type: edgetpu
    device: pci
mqtt:
  # Required: host name
  host: 192.168.5.110
  # Optional: port (default: shown below)
  port: 1883
  # Optional: topic prefix (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  topic_prefix: frigate
  # Optional: client id (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  client_id: frigate
  # Optional: user
  user: frigate
  # Optional: password
  # NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
  #       eg. password: '{FRIGATE_MQTT_PASSWORD}'
  password: frigate
  # Optional: interval in seconds for publishing stats (default: shown below)
  stats_interval: 60

logger:
  # Optional: default log level (default: shown below)
  default: info

record:
  enabled: true
  retain:
    days: 5
    mode: motion
  events:
    pre_capture: 10
    post_capture: 10
    retain:
      default: 5
      mode: motion
#    max_seconds: 90

# ffmpeg configuration
ffmpeg:
  global_args: -hide_banner -loglevel warning -threads 2

  hwaccel_args: preset-vaapi
  #hwaccel_args: preset-nvidia-h264

  input_args: preset-rtsp-restream
  output_args:
    detect: -threads 2 -f rawvideo -pix_fmt yuv420p
    record: preset-record-ubiquiti
    rtmp: preset-rtmp-ubiquiti

cameras:
  # Name of your camera
  g3b_voortuin:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g3b_voortuin
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  flex_ne:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/flex_ne
          roles:
            - record
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      filters:
        car:
          mask:
          - 1318,389,1382,227,1113,202,976,347
          - 749,556,991,304,198,224,0,427
          - 0,640,691,824,833,553,0,393
          - 1460,240,1624,242,1627,282,1638,420,1462,407
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      width: 1920
      height: 1080
      fps: 5

  flex_se:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/flex_se
          roles:
            - record
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g5b_achtertuin:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g5b_achtertuin
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g4_deurbel:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g4_deurbel
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    zones:
      zone_voortuin:
        coordinates: 1600,1200,1600,794,839,806,737,1200
    objects:
      track:
        - person
        - bird
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g5b_overkapping:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g5b_overkapping
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - bicycle
        - motorcycle
        - cat
        - dog
        - bird
        # Optional: save clips configuration
    detect:
      fps: 5

  g3i_garage:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g3i_garage
          roles:
            - record
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g4i_poort:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g4i_poort
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

Relevant log output

2023-11-26 11:55:44.177589218  [INFO] Preparing Frigate...
2023-11-26 11:55:44.248106527  [INFO] Starting Frigate...
2023-11-26 11:55:50.485436553  [2023-11-26 11:55:50] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-11-26 11:55:50.485890025  [2023-11-26 11:55:50] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-11-26 11:56:03.634858339  [2023-11-26 11:56:03] peewee_migrate.logs            INFO    : Starting migrations
2023-11-26 11:56:03.648357878  [2023-11-26 11:56:03] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-11-26 11:56:03.664368942  [2023-11-26 11:56:03] frigate.app                    INFO    : Recording process started: 335
2023-11-26 11:56:03.674054138  [2023-11-26 11:56:03] frigate.app                    INFO    : go2rtc process pid: 89
2023-11-26 11:56:03.782639135  [2023-11-26 11:56:03] detector.coral_pci             INFO    : Starting detection process: 345
2023-11-26 11:56:03.801309830  [2023-11-26 11:56:03] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci
2023-11-26 11:56:03.813820016  [2023-11-26 11:56:03] frigate.app                    INFO    : Output process started: 347
2023-11-26 11:56:03.824566194  [2023-11-26 11:56:03] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-11-26 11:56:04.693594931  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for g3b_voortuin: 390
2023-11-26 11:56:04.712629106  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for flex_ne: 391
2023-11-26 11:56:04.739237337  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for flex_se: 393
2023-11-26 11:56:04.766304777  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for g5b_achtertuin: 395
2023-11-26 11:56:04.787618469  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for g4_deurbel: 397
2023-11-26 11:56:04.814507650  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for g5b_overkapping: 399
2023-11-26 11:56:04.842026678  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for g3i_garage: 401
2023-11-26 11:56:04.861869185  [2023-11-26 11:56:04] frigate.app                    INFO    : Camera processor started for g4i_poort: 403
2023-11-26 11:56:04.888042913  [2023-11-26 11:56:04] frigate.app                    INFO    : Capture process started for g3b_voortuin: 405
2023-11-26 11:56:04.918470694  [2023-11-26 11:56:04] frigate.app                    INFO    : Capture process started for flex_ne: 409
2023-11-26 11:56:04.947600378  [2023-11-26 11:56:04] frigate.app                    INFO    : Capture process started for flex_se: 413
2023-11-26 11:56:04.975589611  [2023-11-26 11:56:04] frigate.app                    INFO    : Capture process started for g5b_achtertuin: 418
2023-11-26 11:56:05.026758458  [2023-11-26 11:56:05] frigate.app                    INFO    : Capture process started for g4_deurbel: 423
2023-11-26 11:56:05.064680325  [2023-11-26 11:56:05] frigate.app                    INFO    : Capture process started for g5b_overkapping: 429
2023-11-26 11:56:05.124461113  [2023-11-26 11:56:05] frigate.app                    INFO    : Capture process started for g3i_garage: 434
2023-11-26 11:56:05.128226674  [2023-11-26 11:56:05] frigate.app                    INFO    : Capture process started for g4i_poort: 436
2023-11-26 11:56:05.168944997  [2023-11-26 11:56:05] frigate.app                    INFO    : Audio process started: 442
2023-11-26 11:58:55.189085685  [2023-11-26 11:58:55] frigate.record.maintainer      ERROR   : Found 1 old audio frames, segments from recordings may be missing
2023-11-26 12:02:25.327775759  [2023-11-26 12:02:25] watchdog.g3i_garage            INFO    : No frames received from g3i_garage in 20 seconds. Exiting ffmpeg...
2023-11-26 12:02:25.330530012  [2023-11-26 12:02:25] watchdog.g3i_garage            INFO    : Waiting for ffmpeg to exit gracefully...
2023-11-26 12:02:34.806165425  [2023-11-26 12:02:34] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-26 12:02:34.809386149  [2023-11-26 12:02:34] frigate.video                  ERROR   : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-26 12:02:44.915543269  [2023-11-26 12:02:44] watchdog.g3i_garage            ERROR   : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-26 12:02:44.915563350  [2023-11-26 12:02:44] watchdog.g3i_garage            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-26 12:02:44.915584013  [2023-11-26 12:02:44] ffmpeg.g3i_garage.detect       ERROR   : [rtsp @ 0x564a04a1a140] CSeq 16 expected, 0 received.
2023-11-26 12:02:44.915596797  [2023-11-26 12:02:44] ffmpeg.g3i_garage.detect       ERROR   :     Last message repeated 1 times
2023-11-26 12:03:45.244872593  [2023-11-26 12:03:45] watchdog.g4_deurbel            INFO    : No frames received from g4_deurbel in 20 seconds. Exiting ffmpeg...
2023-11-26 12:03:45.246427234  [2023-11-26 12:03:45] watchdog.g4_deurbel            INFO    : Waiting for ffmpeg to exit gracefully...
2023-11-26 12:04:15.270673604  [2023-11-26 12:04:15] watchdog.g4_deurbel            INFO    : FFmpeg did not exit. Force killing...
2023-11-26 12:04:15.370397006  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380161232  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380179568  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380190228  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380199560  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380208715  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380295640  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380410605  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380423419  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.380518487  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.386266194  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.388276709  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.396642487  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.400792132  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.402857017  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.408788060  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.410250245  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.411544639  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.416153379  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.427597039  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.434415516  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.488286901  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.490404366  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.502667238  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.508961561  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.510753053  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.517025756  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.518765649  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.520459240  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.524648887  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.536428349  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.538666361  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.543641788  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.546853032  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.551675483  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.556577491  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.559523927  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.564325159  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.581038704  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.589032051  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.592276165  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.598030247  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.607525775  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-26 12:04:15.607543115  [2023-11-26 12:04:15] frigate.video                  ERROR   : g4_deurbel: ffmpeg process is not running. exiting capture thread...
2023-11-26 12:04:16.728877271  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9e1428a640] moov atom not found
2023-11-26 12:04:17.971941856  [2023-11-26 12:04:17] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/g4_deurbel@20231126120312+0100.mp4
2023-11-26 12:04:17.974835149  [2023-11-26 12:04:17] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/g4_deurbel@20231126120312+0100.mp4
2023-11-26 12:04:25.756299590  [2023-11-26 12:04:25] watchdog.g4_deurbel            ERROR   : Ffmpeg process crashed unexpectedly for g4_deurbel.
2023-11-26 12:04:25.756318904  [2023-11-26 12:04:25] watchdog.g4_deurbel            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-26 12:04:25.756329203  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 11 expected, 10 received.
2023-11-26 12:04:25.756339838  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 12 expected, 11 received.
2023-11-26 12:04:25.756349570  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 13 expected, 12 received.
2023-11-26 12:04:25.756360470  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 14 expected, 13 received.
2023-11-26 12:04:25.756370288  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 15 expected, 14 received.
2023-11-26 12:04:25.756378787  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 17 expected, 15 received.
2023-11-26 12:04:25.756388580  [2023-11-26 12:04:25] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x564f9728b140] CSeq 18 expected, 16 received.
2023-11-26 12:04:55.300575047  [2023-11-26 12:04:55] watchdog.g3b_voortuin          INFO    : No frames received from g3b_voortuin in 20 seconds. Exiting ffmpeg...
2023-11-26 12:04:55.303257776  [2023-11-26 12:04:55] watchdog.g3b_voortuin          INFO    : Waiting for ffmpeg to exit gracefully...

Frigate stats

{"cameras":{"flex_ne":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.6,"capture_pid":409,"detection_enabled":1,"detection_fps":0.8,"ffmpeg_pid":414,"pid":391,"process_fps":4.4,"skipped_fps":0.0},"flex_se":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":5.7,"capture_pid":413,"detection_enabled":1,"detection_fps":3.7,"ffmpeg_pid":420,"pid":393,"process_fps":4.6,"skipped_fps":0.0},"g3b_voortuin":{"audio_dBFS":-39.2599,"audio_rms":356.825,"camera_fps":5.2,"capture_pid":405,"detection_enabled":1,"detection_fps":1.7,"ffmpeg_pid":412,"pid":390,"process_fps":4.2,"skipped_fps":0.0},"g3i_garage":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":4.3,"capture_pid":434,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":3014,"pid":401,"process_fps":3.5,"skipped_fps":0.0},"g4_deurbel":{"audio_dBFS":-53.3592,"audio_rms":70.3862,"camera_fps":0.0,"capture_pid":423,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":428,"pid":397,"process_fps":3.4,"skipped_fps":0.0},"g4i_poort":{"audio_dBFS":-68.3894,"audio_rms":12.4733,"camera_fps":5.1,"capture_pid":436,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":445,"pid":403,"process_fps":4.1,"skipped_fps":0.0},"g5b_achtertuin":{"audio_dBFS":-58.1784,"audio_rms":40.4139,"camera_fps":5.0,"capture_pid":418,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":426,"pid":395,"process_fps":4.0,"skipped_fps":0.0},"g5b_overkapping":{"audio_dBFS":-89.906,"audio_rms":1.0475,"camera_fps":5.0,"capture_pid":429,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":435,"pid":399,"process_fps":4.0,"skipped_fps":0.0}},"cpu_usages":{"1":{"cmdline":"/package/admin/s6/command/s6-svscan -d4 -- /run/service","cpu":"0.0","cpu_average":"0","mem":"0.0"},"15":{"cmdline":"s6-supervise s6-linux-init-shutdownd","cpu":"0.0","cpu_average":"0","mem":"0.0"},"17":{"cmdline":"/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B","cpu":"0.0","cpu_average":"0","mem":"0.0"},"24":{"cmdline":"s6-supervise frigate","cpu":"0.0","cpu_average":"0","mem":"0.0"},"25":{"cmdline":"s6-supervise frigate-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"26":{"cmdline":"s6-supervise nginx-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"27":{"cmdline":"s6-supervise go2rtc-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"28":{"cmdline":"s6-supervise s6rc-oneshot-runner","cpu":"0.0","cpu_average":"0","mem":"0.0"},"29":{"cmdline":"s6-supervise nginx","cpu":"0.0","cpu_average":"0","mem":"0.0"},"30":{"cmdline":"s6-supervise s6rc-fdholder","cpu":"0.0","cpu_average":"0","mem":"0.0"},"31":{"cmdline":"s6-supervise go2rtc","cpu":"0.0","cpu_average":"0","mem":"0.0"},"32":{"cmdline":"s6-supervise go2rtc-healthcheck","cpu":"0.0","cpu_average":"0","mem":"0.0"},"41":{"cmdline":"/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules","cpu":"0.0","cpu_average":"0","mem":"0.0"},"42":{"cmdline":"/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --","cpu":"0.0","cpu_average":"0","mem":"0.0"},"80":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx","cpu":"0.0","cpu_average":"0","mem":"0.0"},"81":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc","cpu":"0.0","cpu_average":"0","mem":"0.0"},"82":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate","cpu":"0.0","cpu_average":"0","mem":"0.0"},"89":{"cmdline":"/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml","cpu":"0.0","cpu_average":"0","mem":"0.1"},"111":{"cmdline":"bash ./run.user go2rtc-healthcheck","cpu":"0.1","cpu_average":"0","mem":"0.0"},"112":{"cmdline":"python3 -u -m frigate","cpu":"27.3","cpu_average":"25","mem":"4.2"},"119":{"cmdline":"nginx: master process nginx","cpu":"0.0","cpu_average":"0","mem":"0.1"},"145":{"cmdline":"nginx: worker process","cpu":"0.2","cpu_average":"0","mem":"0.0"},"146":{"cmdline":"nginx: worker process","cpu":"0.2","cpu_average":"0","mem":"0.0"},"147":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"152":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"163":{"cmdline":"nginx: cache manager process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"297":{"cmdline":"frigate.logger       ","cpu":"0.0","cpu_average":"0","mem":"0.7"},"335":{"cmdline":"frigate.recording_manager","cpu":"14.7","cpu_average":"16","mem":"1.0"},"344":{"cmdline":"/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(71)","cpu":"1.4","cpu_average":"0","mem":"0.1"},"345":{"cmdline":"frigate.detector.coral_pci","cpu":"4.8","cpu_average":"11","mem":"0.9"},"347":{"cmdline":"frigate.output       ","cpu":"7.7","cpu_average":"3","mem":"0.8"},"361":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"362":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"363":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"364":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"365":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1600x1200 -i pipe: -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"366":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"367":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"368":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"369":{"cmdline":"ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"390":{"cmdline":"frigate.process:g3b_voortuin","cpu":"11.5","cpu_average":"8","mem":"1.3"},"391":{"cmdline":"frigate.process:flex_ne","cpu":"16.9","cpu_average":"11","mem":"1.1"},"393":{"cmdline":"frigate.process:flex_se","cpu":"11.0","cpu_average":"6","mem":"1.2"},"395":{"cmdline":"frigate.process:g5b_achtertuin","cpu":"4.4","cpu_average":"6","mem":"1.2"},"397":{"cmdline":"frigate.process:g4_deurbel","cpu":"0.1","cpu_average":"4","mem":"1.2"},"399":{"cmdline":"frigate.process:g5b_overkapping","cpu":"4.5","cpu_average":"7","mem":"1.2"},"401":{"cmdline":"frigate.process:g3i_garage","cpu":"3.8","cpu_average":"6","mem":"1.2"},"403":{"cmdline":"frigate.process:g4i_poort","cpu":"4.1","cpu_average":"7","mem":"1.2"},"405":{"cmdline":"frigate.capture:g3b_voortuin","cpu":"9.1","cpu_average":"8","mem":"1.0"},"409":{"cmdline":"frigate.capture:flex_ne","cpu":"10.2","cpu_average":"9","mem":"1.0"},"412":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g3b_voortuin -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/g3b_voortuin@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"28.0","cpu_average":"24","mem":"0.4"},"413":{"cmdline":"frigate.capture:flex_se","cpu":"10.3","cpu_average":"8","mem":"1.0"},"414":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/flex_ne -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/flex_ne@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"28.5","cpu_average":"25","mem":"0.4"},"418":{"cmdline":"frigate.capture:g5b_achtertuin","cpu":"4.5","cpu_average":"4","mem":"1.0"},"420":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/flex_se -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/flex_se@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"29.3","cpu_average":"24","mem":"0.4"},"423":{"cmdline":"frigate.capture:g4_deurbel","cpu":"0.0","cpu_average":"6","mem":"1.0"},"426":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g5b_achtertuin -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/g5b_achtertuin@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1280:h=720:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"19.0","cpu_average":"18","mem":"0.3"},"428":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g4_deurbel -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/g4_deurbel@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1600:h=1200:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"30.8","cpu_average":"24","mem":"0.4"},"429":{"cmdline":"frigate.capture:g5b_overkapping","cpu":"4.4","cpu_average":"4","mem":"1.0"},"434":{"cmdline":"frigate.capture:g3i_garage","cpu":"7.4","cpu_average":"6","mem":"1.0"},"435":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g5b_overkapping -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/g5b_overkapping@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1280:h=720:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"18.9","cpu_average":"18","mem":"0.3"},"436":{"cmdline":"frigate.capture:g4i_poort","cpu":"4.4","cpu_average":"4","mem":"1.0"},"442":{"cmdline":"frigate.audio_manager","cpu":"1.0","cpu_average":"5","mem":"1.1"},"445":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g4i_poort -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/g4i_poort@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1280:h=720:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"18.9","cpu_average":"18","mem":"0.3"},"450":{"cmdline":"ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g3b_voortuin -f s16le -ar 16000 -ac 1 -y pipe:","cpu":"1.1","cpu_average":"1","mem":"0.1"},"453":{"cmdline":"ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g5b_achtertuin -f s16le -ar 16000 -ac 1 -y pipe:","cpu":"1.2","cpu_average":"1","mem":"0.1"},"457":{"cmdline":"ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g4_deurbel -f s16le -ar 16000 -ac 1 -y pipe:","cpu":"2.0","cpu_average":"2","mem":"0.2"},"460":{"cmdline":"ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g5b_overkapping -f s16le -ar 16000 -ac 1 -y pipe:","cpu":"1.1","cpu_average":"1","mem":"0.1"},"462":{"cmdline":"ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g4i_poort -f s16le -ar 16000 -ac 1 -y pipe:","cpu":"1.2","cpu_average":"1","mem":"0.1"},"3014":{"cmdline":"ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-614a36a -rtsp_transport tcp -timeout 5000000 -i rtsp://192.168.5.113:8554/g3i_garage -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/g3i_garage@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:","cpu":"24.6","cpu_average":"21","mem":"0.4"},"3460":{"cmdline":"sleep 30s","cpu":"0.0","cpu_average":"0","mem":"0.0"}},"detection_fps":6.2,"detectors":{"coral_pci":{"detection_start":0.0,"inference_speed":27.79,"pid":345}},"gpu_usages":{"intel-vaapi":{"gpu":"7.86%","mem":"-%"}},"processes":{"audioDetector":{"pid":442},"go2rtc":{"pid":89},"logger":{"pid":297},"recording":{"pid":335}},"service":{"last_updated":1700996651,"latest_version":"0.12.1","storage":{"/dev/shm":{"free":270.0,"mount_type":"tmpfs","total":300.0,"used":30.0},"/media/frigate/clips":{"free":10613.3,"mount_type":"ext4","total":579472.4,"used":541133.9},"/media/frigate/recordings":{"free":10613.3,"mount_type":"ext4","total":579472.4,"used":541133.9},"/tmp/cache":{"free":43536.9,"mount_type":"overlay","total":64199.7,"used":17697.8}},"temperatures":{"apex_0":53.05},"uptime":486,"version":"0.13.0-614a36a"}}

Operating system

Proxmox

Install method

Docker Compose

Coral version

PCIe

Any other information that may be helpful

Migrating back to beta 5 solves the problems.

NickM-27 commented 9 months ago

no changes have been made on this front between beta 5 and beta 6, we would need to see go2rtc logs

Calimerorulez commented 9 months ago

Hi @NickM-27,

I've enabled debug logging on my go2rtc instance, in beta 6, I see lines like: 21:06:38.101 DBG [rtsp] handle=EOF

21:02:51.543 DBG [rtsp] new consumer stream=g3b_voortuin
21:02:51.685 DBG [rtsp] new consumer stream=g5b_achtertuin
21:02:51.726 DBG [rtsp] new consumer stream=g4_deurbel
21:02:51.891 DBG [rtsp] new consumer stream=g4i_poort
21:02:51.911 DBG [rtsp] new consumer stream=g5b_overkapping
21:02:52.352 DBG [streams] start producer url=rtspx://192.168.1.4:7441/rJZPoPnJ6kSG130v
21:06:38.101 DBG [rtsp] handle=EOF
21:06:38.102 DBG [streams] stop producer url=rtspx://192.168.1.4:7441/Fz3j4v2biFVY3rKB
21:06:38.102 DBG [rtsp] disconnect stream=g3i_garage
21:06:48.396 DBG [rtsp] new consumer stream=g3i_garage
21:06:48.419 DBG [streams] start producer url=rtspx://192.168.1.4:7441/Fz3j4v2biFVY3rKB

Which corresponds with these lines in the Frigate log:

2023-11-26 21:06:31.503623335  [2023-11-26 21:06:31] watchdog.g3i_garage            INFO    : No frames received from g3i_garage in 20 seconds. Exiting ffmpeg...
2023-11-26 21:06:31.507323902  [2023-11-26 21:06:31] watchdog.g3i_garage            INFO    : Waiting for ffmpeg to exit gracefully...
2023-11-26 21:06:38.183805921  [2023-11-26 21:06:38] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-26 21:06:38.183822459  [2023-11-26 21:06:38] frigate.video                  ERROR   : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-26 21:06:48.275933136  [2023-11-26 21:06:48] watchdog.g3i_garage            ERROR   : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-26 21:06:48.275949784  [2023-11-26 21:06:48] watchdog.g3i_garage            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-26 21:06:48.275960032  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e804c080] Missing reference picture, default is 0
2023-11-26 21:06:48.276028204  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e804c080] decode_slice_header error
2023-11-26 21:06:48.276041309  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e806ea00] Missing reference picture, default is 0
2023-11-26 21:06:48.276051167  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e806ea00] decode_slice_header error
2023-11-26 21:06:48.276148606  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e806ea00] Failed to begin picture decode issue: 6 (invalid VASurfaceID).
2023-11-26 21:06:48.282915302  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e806ea00] Failed to end picture decode after error: 18 (invalid parameter).
2023-11-26 21:06:48.282934031  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : [h264 @ 0x5636e806ea00] hardware accelerator failed to decode picture
2023-11-26 21:06:48.282944184  [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect       ERROR   : Error while decoding stream #0:0: Input/output error

The EOF lines don't show in the go2rtc log when using beta 5.

NickM-27 commented 9 months ago

You're running an external go2rtc version so that won't have anything to do with frigate, the EOF is referring to the stream coming from the camera

Calimerorulez commented 9 months ago

OK, I will debug further. But I still can't explain why beta 5 is stable to me, and in beta 6 all ffmpeg processes crash continuously.

Calimerorulez commented 9 months ago

Using preset-vaapi, I see the preset is changed in:

https://github.com/blakeblackshear/frigate/pull/8604

As a test, I've tried to use the beta5 variant in my config.yml, but I do not know which parameters to use for the substitutes:

hwaccel_args: -r {0} -vf fps={0},scale_vaapi=w={1}:h={2},hwdownload,format=yuv420p

NickM-27 commented 9 months ago

go2rtc is showing an error in the logs, so this won't be related to frigate since go2rtc logs show that it is getting an EOF from the camera

Calimerorulez commented 9 months ago

Ok, I give up then. I can reproduce it consistently switching between 5 and 6, and in between switch versions I haven't changed any cameras or settings or my go2rtc version.

I will close this issue. Sorry to bother :)

NickM-27 commented 9 months ago

there's no need to close the issue, we just need more information like more detailed logs. You could also try running frigate connecting directly to the camera and see if that has the same issue

Calimerorulez commented 9 months ago

Then I will dive further into this quest :)

Calimerorulez commented 9 months ago

OK, I switched to directly connecting Frigate to my Unifi cameras, but there was a reason I started using go2rtc, because I couldn't get Ffmpeg to play nicely with Unifi.

I can't see any difference in behaviour now between beta 5 and beta 6, as the errors are the same between the betas:

2023-11-27 10:12:17.360140824  [INFO] Preparing Frigate...
2023-11-27 10:12:17.416889385  [INFO] Starting Frigate...
2023-11-27 10:12:23.184811728  [2023-11-27 10:12:23] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-11-27 10:12:23.185180972  [2023-11-27 10:12:23] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-11-27 10:12:35.346738475  [2023-11-27 10:12:35] peewee_migrate.logs            INFO    : Starting migrations
2023-11-27 10:12:35.360438943  [2023-11-27 10:12:35] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-11-27 10:12:35.376945725  [2023-11-27 10:12:35] frigate.app                    INFO    : Recording process started: 337
2023-11-27 10:12:35.386593405  [2023-11-27 10:12:35] frigate.app                    INFO    : go2rtc process pid: 89
2023-11-27 10:12:35.496437460  [2023-11-27 10:12:35] detector.coral_pci             INFO    : Starting detection process: 347
2023-11-27 10:12:35.509352083  [2023-11-27 10:12:35] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci
2023-11-27 10:12:35.524434411  [2023-11-27 10:12:35] frigate.app                    INFO    : Output process started: 349
2023-11-27 10:12:35.526903844  [2023-11-27 10:12:35] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-11-27 10:12:36.355023502  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for g3b_voortuin: 392
2023-11-27 10:12:36.374402502  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for flex_ne: 393
2023-11-27 10:12:36.400876760  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for flex_se: 395
2023-11-27 10:12:36.427940537  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for g5b_achtertuin: 397
2023-11-27 10:12:36.449550985  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for g4_deurbel: 399
2023-11-27 10:12:36.476576574  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for g5b_overkapping: 401
2023-11-27 10:12:36.504442659  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for g3i_garage: 404
2023-11-27 10:12:36.526664671  [2023-11-27 10:12:36] frigate.app                    INFO    : Camera processor started for g4i_poort: 405
2023-11-27 10:12:36.555293810  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for g3b_voortuin: 407
2023-11-27 10:12:36.580514963  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for flex_ne: 411
2023-11-27 10:12:36.606241313  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for flex_se: 415
2023-11-27 10:12:36.636161553  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for g5b_achtertuin: 420
2023-11-27 10:12:36.669632030  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for g4_deurbel: 424
2023-11-27 10:12:36.699626321  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for g5b_overkapping: 427
2023-11-27 10:12:36.731330098  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for g3i_garage: 429
2023-11-27 10:12:36.764871899  [2023-11-27 10:12:36] frigate.app                    INFO    : Capture process started for g4i_poort: 435
2023-11-27 10:12:36.804648986  [2023-11-27 10:12:36] frigate.app                    INFO    : Audio process started: 440
2023-11-27 10:12:37.361998980  [2023-11-27 10:12:37] audio.g4i_poort                ERROR   : ffmpeg process is not running, restarting...
2023-11-27 10:12:47.459725968  [2023-11-27 10:12:47] ffmpeg.g4i_poort.audio         ERROR   : rtsp://192.168.1.4:7447/rJZPoPnJ6kSG130v: Invalid data found when processing input
2023-11-27 10:12:47.459750669  [2023-11-27 10:12:47] audio.g4i_poort                INFO    : Terminating the existing ffmpeg process...
2023-11-27 10:12:47.459765463  [2023-11-27 10:12:47] audio.g4i_poort                INFO    : Waiting for ffmpeg to exit gracefully...
2023-11-27 10:13:41.495718353  [2023-11-27 10:13:41] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:13:41.499721992  [2023-11-27 10:13:41] frigate.video                  ERROR   : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:13:47.101825539  [2023-11-27 10:13:46] watchdog.g3i_garage            ERROR   : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:13:47.101848447  [2023-11-27 10:13:46] watchdog.g3i_garage            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:13:47.101871625  [2023-11-27 10:13:46] ffmpeg.g3i_garage.detect       ERROR   : [segment @ 0x563d9e5f3400] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-11-27 10:13:50.863837340  [h264 @ 0x7fdcd41b3340] error while decoding MB 19 45, bytestream -14
2023-11-27 10:15:13.784418996  [2023-11-27 10:15:13] frigate.video                  ERROR   : g5b_achtertuin: Unable to read frames from ffmpeg process.
2023-11-27 10:15:13.784438566  [2023-11-27 10:15:13] frigate.video                  ERROR   : g5b_achtertuin: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:15:16.836101171  [2023-11-27 10:15:16] watchdog.g5b_achtertuin        ERROR   : Ffmpeg process crashed unexpectedly for g5b_achtertuin.
2023-11-27 10:15:16.836118606  [2023-11-27 10:15:16] watchdog.g5b_achtertuin        ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:15:16.836130970  [2023-11-27 10:15:16] ffmpeg.g5b_achtertuin.detect   ERROR   : [segment @ 0x55a571ff75c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-11-27 10:15:21.722697924  [2023-11-27 10:15:21] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:15:21.722722371  [2023-11-27 10:15:21] frigate.video                  ERROR   : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:15:27.452950823  [2023-11-27 10:15:27] watchdog.g3i_garage            ERROR   : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:15:27.452967577  [2023-11-27 10:15:27] watchdog.g3i_garage            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:15:27.452979735  [2023-11-27 10:15:27] ffmpeg.g3i_garage.detect       ERROR   : [segment @ 0x55d06338b0c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-11-27 10:16:18.509025896  [2023-11-27 10:16:18] frigate.video                  ERROR   : g3b_voortuin: Unable to read frames from ffmpeg process.
2023-11-27 10:16:18.513717882  [2023-11-27 10:16:18] frigate.video                  ERROR   : g3b_voortuin: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:16:26.952452152  [2023-11-27 10:16:26] watchdog.g3b_voortuin          ERROR   : Ffmpeg process crashed unexpectedly for g3b_voortuin.
2023-11-27 10:16:26.952470113  [2023-11-27 10:16:26] watchdog.g3b_voortuin          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:16:26.952480407  [2023-11-27 10:16:26] ffmpeg.g3b_voortuin.detect     ERROR   : [rtsp @ 0x56505435b140] CSeq 9 expected, 8 received.
2023-11-27 10:16:26.953380164  [2023-11-27 10:16:26] ffmpeg.g3b_voortuin.detect     ERROR   : [rtsp @ 0x56505435b140] CSeq 10 expected, 9 received.
2023-11-27 10:16:26.953398587  [2023-11-27 10:16:26] ffmpeg.g3b_voortuin.detect     ERROR   : [rtsp @ 0x56505435b140] CSeq 12 expected, 10 received.
2023-11-27 10:16:42.939549151  [2023-11-27 10:16:42] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:16:42.939567262  [2023-11-27 10:16:42] frigate.video                  ERROR   : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:16:47.810221296  [2023-11-27 10:16:47] watchdog.g3i_garage            ERROR   : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:16:47.810240019  [2023-11-27 10:16:47] watchdog.g3i_garage            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:16:47.810251961  [2023-11-27 10:16:47] ffmpeg.g3i_garage.detect       ERROR   : [segment @ 0x55f1daca6c80] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-11-27 10:17:06.754644367  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.759550750  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.761358734  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.763522355  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.765904103  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.767928985  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.769874981  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.771766166  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.773683526  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.776021488  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.778217984  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.780707018  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.782453877  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.784205897  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.785870562  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.787636048  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.789426161  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.791482762  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.793844583  [2023-11-27 10:17:06] frigate.video                  ERROR   : g4i_poort: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:17:07.271702752  [2023-11-27 10:17:07] watchdog.g4i_poort             ERROR   : Ffmpeg process crashed unexpectedly for g4i_poort.
2023-11-27 10:17:07.271720197  [2023-11-27 10:17:07] watchdog.g4i_poort             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:17:07.271730165  [2023-11-27 10:17:07] ffmpeg.g4i_poort.detect        ERROR   : [rtsp @ 0x5593e5c44140] CSeq 13 expected, 12 received.
2023-11-27 10:17:07.274710538  [2023-11-27 10:17:07] ffmpeg.g4i_poort.detect        ERROR   : [rtsp @ 0x5593e5c44140] CSeq 14 expected, 13 received.
2023-11-27 10:17:14.403358355  [2023-11-27 10:17:14] frigate.video                  ERROR   : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-27 10:17:14.406881555  [2023-11-27 10:17:14] frigate.video                  ERROR   : g4_deurbel: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:17:17.082461017  [2023-11-27 10:17:16] watchdog.g4_deurbel            ERROR   : Ffmpeg process crashed unexpectedly for g4_deurbel.
2023-11-27 10:17:17.082479639  [2023-11-27 10:17:16] watchdog.g4_deurbel            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:17:17.082492595  [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x563023a12140] CSeq 9 expected, 8 received.
2023-11-27 10:17:17.082503590  [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x563023a12140] CSeq 10 expected, 9 received.
2023-11-27 10:17:17.082514109  [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x563023a12140] CSeq 12 expected, 10 received.
2023-11-27 10:17:17.082608661  [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect       ERROR   : [rtsp @ 0x563023a12140] CSeq 14 expected, 11 received.
2023-11-27 10:17:24.949039832  [2023-11-27 10:17:24] frigate.video                  ERROR   : g5b_overkapping: Unable to read frames from ffmpeg process.
2023-11-27 10:17:24.968979816  [2023-11-27 10:17:24] frigate.video                  ERROR   : g5b_overkapping: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:17:26.989406580  [2023-11-27 10:17:26] watchdog.g5b_overkapping       ERROR   : Ffmpeg process crashed unexpectedly for g5b_overkapping.
2023-11-27 10:17:26.989423965  [2023-11-27 10:17:26] watchdog.g5b_overkapping       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:17:26.989434479  [2023-11-27 10:17:26] ffmpeg.g5b_overkapping.detect  ERROR   : [rtsp @ 0x5567a0cda140] CSeq 12 expected, 11 received.
2023-11-27 10:17:26.989443430  [2023-11-27 10:17:26] ffmpeg.g5b_overkapping.detect  ERROR   : [rtsp @ 0x5567a0cda140] CSeq 13 expected, 12 received.
2023-11-27 10:17:26.989452004  [2023-11-27 10:17:26] ffmpeg.g5b_overkapping.detect  ERROR   : [rtsp @ 0x5567a0cda140] CSeq 14 expected, 13 received.
2023-11-27 10:18:22.386867111  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.386888284  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.394991652  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395009102  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395020193  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395029970  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395038811  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395047676  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395056852  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.397266830  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.404615995  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.416824931  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.430415001  [2023-11-27 10:18:22] frigate.video                  ERROR   : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:18:28.002069546  [2023-11-27 10:18:27] watchdog.g3i_garage            ERROR   : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:18:28.002086776  [2023-11-27 10:18:27] watchdog.g3i_garage            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
TyzzyT commented 9 months ago

I'm running Frigate add-on within HA OS and see a lot of crashes since updating from Beta 5 to Beta 6. Not sure if this is the same issue, but I downgraded to Beta 5 and everything is working fine again. The problems I see are colored blocks in the bottom half of the screen. Which weren't there in Beta 5. I didn't make any config change.

NickM-27 commented 9 months ago

@Calimerorulez Then perhaps go2rtc 1.8.4 is causing issues and that should be downgraded.

@TyzzyT We need logs and information to understand what's going wrong in your case

TyzzyT commented 9 months ago

It looks like a problem with ffmpeg. When using beta-6, the ffmpeg process is using 100.1% according to System dashboard and is having an FPS of 3.5 and after a while even lower (2.7), while I expect it to be 5 FPS. I'm using a high res stream for detection, which was working fine with beta-5. Even though CPU usage was high, it was always able to keep up with the stream speed. (~89% CPU, 5.2 FPS according to system dashboard) Also, when I look at the stream in Frigate UI the live viewing is working fine. When looking at the debug stream, it's 1 minute behind the live stream according to the timestamp. It looks like the CPU/ffmpeg is not able to keep up with the speed of the stream. I'm not sure what has changed between beta5 and beta6, but when switching back to beta-5 everything is working fine with the same config. If this is a different problem and you need a separate issue for this, please let me know. Happy to open a separate issue for it.

NickM-27 commented 9 months ago

you can make a separate issue and include all the requested information

Calimerorulez commented 9 months ago

Well, I've now tested go2rtc 1.8.4, 1.8.2, 1.8.0, 1.7.1 and 1.7.0, but all EOF on the camera streams when using beta 6, and not on beta 5 :(

NickM-27 commented 9 months ago

What is the vainfo output when running vainfo on the host?

Calimerorulez commented 9 months ago
root@frigate-nuc:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Ran on the Proxmox host and in the Frigate container host.

The Frigate container host has this extra logging line:

error: XDG_RUNTIME_DIR is invalid or not set in the environment.

Calimerorulez commented 8 months ago

Just upgraded to beta 7, and there's the same behavior as in beta 6, reverting back to beta 5, because that runs fine.

I can't explain why, if my go2rtc container stays the same, and I change the running version of Frigate in another container, why my camera's suddenly stop playing nicely with my go2rtc installation.

Can it have something to do with the ffmpeg presets I'm using in my config in relation to my externally running go2rtc?

NickM-27 commented 8 months ago

what is your current config and also what CPU is this again?

Calimerorulez commented 8 months ago

My config:

detectors:
  coral_pci:
    type: edgetpu
    device: pci
mqtt:
  # Required: host name
  host: 192.168.5.110
  # Optional: port (default: shown below)
  port: 1883
  # Optional: topic prefix (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  topic_prefix: frigate
  # Optional: client id (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  client_id: frigate
  # Optional: user
  user: frigate
  # Optional: password
  # NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
  #       eg. password: '{FRIGATE_MQTT_PASSWORD}'
  password: frigate
  # Optional: interval in seconds for publishing stats (default: shown below)
  stats_interval: 60

logger:
  # Optional: default log level (default: shown below)
  default: info

record:
  enabled: true
  retain:
    days: 5
    mode: motion
  events:
    pre_capture: 10
    post_capture: 10
    retain:
      default: 5
      mode: motion
#    max_seconds: 90

# ffmpeg configuration
ffmpeg:
  global_args: -hide_banner -loglevel warning -threads 2

  hwaccel_args: preset-vaapi
  #hwaccel_args: -r {0} -vf fps={0},scale_vaapi=w={1}:h={2},hwdownload,format=yuv420p

  input_args: preset-rtsp-restream
  output_args:
    detect: -threads 2 -f rawvideo -pix_fmt yuv420p
    record: preset-record-ubiquiti
    rtmp: preset-rtmp-ubiquiti

cameras:
  # Name of your camera
  g3b_voortuin:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g3b_voortuin
        #- path: rtsp://192.168.1.4:7447/hJ84WEkjmUXe6H66
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  flex_ne:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/flex_ne
        #- path: rtsp://192.168.1.4:7447/eXz1bJYvAZNRyNOg
          roles:
            - record
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      filters:
        car:
          mask:
          - 1318,389,1382,227,1113,202,976,347
          - 749,556,991,304,198,224,0,427
          - 0,640,691,824,833,553,0,393
          - 1460,240,1624,242,1627,282,1638,420,1462,407
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      width: 1920
      height: 1080
      fps: 5

  flex_se:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/flex_se
        #- path: rtsp://192.168.1.4:7447/8jU5tkUhuBVLqUNS
          roles:
            - record
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g5b_achtertuin:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g5b_achtertuin
        #- path: rtsp://192.168.1.4:7447/EjLlBeq6I1DdXJjj
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g4_deurbel:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g4_deurbel
        #- path: rtsp://192.168.1.4:7447/8AwXQAd8rnKMYexm
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    zones:
      zone_voortuin:
        coordinates: 1600,1200,1600,794,839,806,737,1200
    objects:
      track:
        - person
        - bird
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g5b_overkapping:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g5b_overkapping
        #- path: rtsp://192.168.1.4:7447/SZdBKah2Y2GTO5Ph
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - bicycle
        - motorcycle
        - cat
        - dog
        - bird
        # Optional: save clips configuration
    detect:
      fps: 5

  g3i_garage:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g3i_garage
        #- path: rtsp://192.168.1.4:7447/Fz3j4v2biFVY3rKB
          roles:
            - record
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

  g4i_poort:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
    audio:
      enabled: True
      listen:
        - children_playing
        - cat
        - bird
        - dog
        - dogs
        - footsteps
        - clapping
        - bark
        - scream
        - speech
        - yell
        - whispering
        - laughter
        - honk
        - fireworks
        - firecracker
        - music
    ffmpeg:
      inputs:
        - path: rtsp://192.168.5.113:8554/g4i_poort
        #- path: rtsp://192.168.1.4:7447/rJZPoPnJ6kSG130v
          roles:
            - record
            - audio
            - detect
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: true
      retain:
        default: 7
    objects:
      track:
        - person
        - car
        - truck
        - bicycle
        - motorcycle
        - cat
        - dog
        # Optional: save clips configuration
    detect:
      fps: 5

Running in a Proxmox container on a Intel Core i5-4250U NUC.

Calimerorulez commented 8 months ago

Ok, I took the plunge and migrated the Frigate container to another server, a Ryzen 5600G, using the AMD-vaapi driver, instead of the i965 driver on my Intel NUC. Now everything is working on beta 7.

Will test further :)

NickM-27 commented 8 months ago

interesting, perhaps some issue with that particular driver / CPU then, https://github.com/blakeblackshear/frigate/pull/8604 seems like what changed

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.