blakeblackshear / frigate

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

[Config Support]: Unable to active 2 Camera at same time #6259

Closed lahayeg closed 1 year ago

lahayeg commented 1 year ago

Describe the problem you are having

I'm using HassOS + Frigate (full access) add-ons on RPI4 with Coral and SSD. I have 2 Reolink POE camera: DUO 2 and RLC-811A. When I enable one only (does not matter which one), it works perfectly but when I enable both. it crash, I'm not able to stop add-on and I need to restart the RPI4

Version

0.12.0-DA3E197

Frigate config file

# yaml-language-server: $schema=http://ccab4aaf-frigate-fa:5000/api/config/schema.json
mqtt:
  host: 192.168.x.x
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: xxx
  password: xxxxx
  stats_interval: 60

detectors:
    coral:
      type: edgetpu
      device: usb
birdseye:
    enabled: False
rtmp:
    enabled: False
live:
  height: 240
  quality: 8

objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
  - person
  - bicycle
  - car
  - motorcycle
  - bird
  - cat
  - dog

snapshots:
  enabled: True

record:
  enabled: true
  events:
    pre_capture: 1
    post_capture: 2
    retain:
      default: 5

ffmpeg:
  hwaccel_args: preset-rpi-64-h264 #https://docs.frigate.video/configuration/hardware_acceleration/

cameras:
  parking:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://xxx:xxx@192.168.x.x:554/h264Preview_01_sub #https://www.ispyconnect.com/camera/reolink
          roles:
            - detect
            - record
    detect:
      width: 640
      height: 360
      fps: 4
  jardin:
    enabled: false
    ffmpeg:
      inputs:
        - path: rtsp://xxx:xxx@192.168.x.x:554/h264Preview_01_sub
          roles:
            - detect
            - record
    detect:
      width: 1536
      height: 576
      fps: 4

Relevant log output

2023-04-25 15:38:45.087441407  [2023-04-25 17:38:45] frigate.app                    INFO    : Starting Frigate (0.12.0-da3e197)
2023-04-25 15:38:45.184316349  [2023-04-25 17:38:45] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-04-25 15:38:45.194105966  [2023-04-25 17:38:45] peewee_migrate                 INFO    : Starting migrations
2023-04-25 15:38:45.224631570  [2023-04-25 17:38:45] peewee_migrate                 INFO    : There is nothing to migrate
2023-04-25 15:38:45.311164139  [2023-04-25 17:38:45] frigate.app                    INFO    : Output process started: 301
2023-04-25 15:38:45.333753428  [2023-04-25 17:38:45] frigate.app                    INFO    : Camera processor started for parking: 305
2023-04-25 15:38:45.354883708  [2023-04-25 17:38:45] frigate.app                    INFO    : Camera processor started for jardin: 307
2023-04-25 15:38:45.383421566  [2023-04-25 17:38:45] frigate.app                    INFO    : Capture process started for parking: 308
2023-04-25 15:38:45.424328432  [2023-04-25 17:38:45] frigate.app                    INFO    : Capture process started for jardin: 311
2023-04-25 15:38:45.660404727  [2023-04-25 17:38:45] detector.coral                 INFO    : Starting detection process: 300
2023-04-25 15:38:45.662882525  [2023-04-25 17:38:45] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-04-25 15:38:46.230301828  [INFO] Starting go2rtc healthcheck service...
2023-04-25 15:38:48.571595350  [2023-04-25 17:38:48] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-04-25 15:39:05.700545342  [2023-04-25 17:39:05] watchdog.parking               INFO    : No frames received from parking in 20 seconds. Exiting ffmpeg...
2023-04-25 15:39:05.702233997  [2023-04-25 17:39:05] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-25 15:39:22.557312461  [2023-04-25 17:39:22] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:22.557570477  [2023-04-25 17:39:22] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:27.164429923  [2023-04-25 17:39:27] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:27.165984116  [2023-04-25 17:39:27] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:29.141603946  [2023-04-25 17:39:29] frigate.video                  ERROR   : parking: Unable to read frames from ffmpeg process.
2023-04-25 15:39:29.143189064  [2023-04-25 17:39:29] frigate.video                  ERROR   : parking: Unable to read frames from ffmpeg process.
2023-04-25 15:39:29.145002848  [2023-04-25 17:39:29] frigate.video                  ERROR   : parking: ffmpeg process is not running. exiting capture thread...
2023-04-25 15:39:32.619430673  [2023-04-25 17:39:32] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:32.619442061  [2023-04-25 17:39:32] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:35.718479857  [2023-04-25 17:39:35] watchdog.jardin                INFO    : No frames received from jardin in 20 seconds. Exiting ffmpeg...
2023-04-25 15:39:35.719468442  [2023-04-25 17:39:35] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-25 15:39:37.165684523  [2023-04-25 17:39:37] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:37.166171557  [2023-04-25 17:39:37] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:39.149315640  [2023-04-25 17:39:39] watchdog.parking               ERROR   : Ffmpeg process crashed unexpectedly for parking.
2023-04-25 15:39:39.150454021  [2023-04-25 17:39:39] watchdog.parking               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-04-25 15:39:39.152034214  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [segment @ 0x558ee9e1b0] 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-04-25 15:39:39.153083318  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] V4L2 capture poll unexpected timeout: events=0x106
2023-04-25 15:39:39.154805028  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] Poll thinks src Q has space; none found
2023-04-25 15:39:39.155919576  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] V4L2 capture poll unexpected timeout: events=0x106
2023-04-25 15:39:39.157054513  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] Poll thinks src Q has space; none found
2023-04-25 15:39:39.158113246  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] V4L2 capture poll unexpected timeout: events=0x106
2023-04-25 15:39:39.159031147  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] Poll thinks src Q has space; none found
2023-04-25 15:39:39.159937993  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] V4L2 capture poll unexpected timeout: events=0x106
2023-04-25 15:39:39.160993393  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] Poll thinks src Q has space; none found
2023-04-25 15:39:39.162042330  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] V4L2 capture poll unexpected timeout: events=0x106
2023-04-25 15:39:39.162581512  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] Poll thinks src Q has space; none found
2023-04-25 15:39:39.163259544  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] V4L2 capture poll unexpected timeout: events=0x106
2023-04-25 15:39:39.163916688  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x558ee9f0d0] Poll thinks src Q has space; none found
2023-04-25 15:39:39.164634165  [2023-04-25 17:39:39] ffmpeg.parking.detect          ERROR   : Finishing stream 1:0 without any data written to it.
2023-04-25 15:39:42.165913729  [2023-04-25 17:39:42] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:42.165925229  [2023-04-25 17:39:42] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:47.183941533  [2023-04-25 17:39:47] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:47.185796001  [2023-04-25 17:39:47] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:49.622331503  [2023-04-25 17:39:49] frigate.video                  ERROR   : parking: Unable to read frames from ffmpeg process.
2023-04-25 15:39:49.622343651  [2023-04-25 17:39:49] frigate.video                  ERROR   : parking: ffmpeg process is not running. exiting capture thread...
2023-04-25 15:39:52.617216486  [2023-04-25 17:39:52] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:52.617228227  [2023-04-25 17:39:52] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:57.223677049  [2023-04-25 17:39:57] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:39:57.223688772  [2023-04-25 17:39:57] frigate.record                 ERROR   : list index out of range
2023-04-25 15:39:59.209672648  [2023-04-25 17:39:59] watchdog.parking               ERROR   : Ffmpeg process crashed unexpectedly for parking.
2023-04-25 15:39:59.210379236  [2023-04-25 17:39:59] watchdog.parking               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-04-25 15:39:59.211004676  [2023-04-25 17:39:59] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x55d25ec0d0] output VIDIOC_REQBUFS failed: Invalid argument
2023-04-25 15:39:59.211122397  [2023-04-25 17:39:59] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x55d25ec0d0] no v4l2 output context's buffers
2023-04-25 15:39:59.212066557  [2023-04-25 17:39:59] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x55d25ec0d0] can't configure decoder
2023-04-25 15:39:59.212080113  [2023-04-25 17:39:59] ffmpeg.parking.detect          ERROR   : Error while opening decoder for input stream #0:0 : Invalid argument
2023-04-25 15:40:02.181028607  [2023-04-25 17:40:02] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:40:02.181039514  [2023-04-25 17:40:02] frigate.record                 ERROR   : list index out of range
2023-04-25 15:40:05.729945709  [2023-04-25 17:40:05] watchdog.jardin                INFO    : FFmpeg did not exit. Force killing...
2023-04-25 15:40:07.174313212  [2023-04-25 17:40:07] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:40:07.174326563  [2023-04-25 17:40:07] frigate.record                 ERROR   : list index out of range
2023-04-25 15:40:12.179590434  [2023-04-25 17:40:12] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:40:12.179602008  [2023-04-25 17:40:12] frigate.record                 ERROR   : list index out of range
2023-04-25 15:40:17.178324640  [2023-04-25 17:40:17] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:40:17.178336381  [2023-04-25 17:40:17] frigate.record                 ERROR   : list index out of range
2023-04-25 15:40:19.234390037  [2023-04-25 17:40:19] watchdog.parking               INFO    : No frames received from parking in 20 seconds. Exiting ffmpeg...
2023-04-25 15:40:19.234409666  [2023-04-25 17:40:19] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-25 15:40:19.257820304  [2023-04-25 17:40:19] frigate.video                  ERROR   : parking: Unable to read frames from ffmpeg process.
2023-04-25 15:40:19.258866630  [2023-04-25 17:40:19] frigate.video                  ERROR   : parking: ffmpeg process is not running. exiting capture thread...

...

exit gracefully...
2023-04-25 15:41:49.489220845  [2023-04-25 17:41:49] frigate.video                  ERROR   : parking: Unable to read frames from ffmpeg process.
2023-04-25 15:41:49.491276332  [2023-04-25 17:41:49] frigate.video                  ERROR   : parking: ffmpeg process is not running. exiting capture thread...
2023-04-25 15:41:52.185192916  [2023-04-25 17:41:52] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:41:52.187771362  [2023-04-25 17:41:52] frigate.record                 ERROR   : list index out of range
2023-04-25 15:41:57.189634217  [2023-04-25 17:41:57] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
2023-04-25 15:41:57.189647440  [2023-04-25 17:41:57] frigate.record                 ERROR   : list index out of range
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2023-04-25 15:41:58.663895801  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-04-25 15:41:58.713066269  [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
2023-04-25 15:41:58.725559834  [2023-04-25 17:41:58] frigate.app                    INFO    : Stopping...
s6-rc: info: service nginx-log successfully stopped
2023-04-25 15:41:58.734106722  [2023-04-25 17:41:58] root                           INFO    : Waiting for detection process to exit gracefully...
2023-04-25 15:41:58.735265696  [2023-04-25 17:41:58] frigate.record                 INFO    : Exiting recording cleanup...
2023-04-25 15:41:58.735457880  [2023-04-25 17:41:58] frigate.storage                INFO    : Exiting storage maintainer...
2023-04-25 15:41:58.736629853  [2023-04-25 17:41:58] frigate.stats                  INFO    : Exiting stats emitter...
2023-04-25 15:41:58.737430311  [2023-04-25 17:41:58] frigate.watchdog               INFO    : Exiting watchdog...
2023-04-25 15:41:58.738460008  [2023-04-25 17:41:58] detector.coral                 INFO    : Signal to exit detection process...
2023-04-25 15:41:58.738607470  [2023-04-25 17:41:58] frigate.record                 INFO    : Exiting recording maintenance...
2023-04-25 15:41:58.739413687  [2023-04-25 17:41:58] frigate.events                 INFO    : Exiting event cleanup...
2023-04-25 15:41:59.409750794  [2023-04-25 17:41:59] frigate.events                 INFO    : Exiting event processor...
2023-04-25 15:41:59.510643919  [2023-04-25 17:41:59] watchdog.parking               ERROR   : Ffmpeg process crashed unexpectedly for parking.
2023-04-25 15:41:59.511259766  [2023-04-25 17:41:59] watchdog.parking               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-04-25 15:41:59.511839429  [2023-04-25 17:41:59] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x55a7ab50d0] Could not find a valid device
2023-04-25 15:41:59.512393500  [2023-04-25 17:41:59] ffmpeg.parking.detect          ERROR   : [h264_v4l2m2m @ 0x55a7ab50d0] can't configure decoder
2023-04-25 15:41:59.512913441  [2023-04-25 17:41:59] ffmpeg.parking.detect          ERROR   : Error while opening decoder for input stream #0:0 : Invalid argument
2023-04-25 15:41:59.635822177  [2023-04-25 17:41:59] detector.coral                 INFO    : Exited detection process...
2023-04-25 15:41:59.656697094  [2023-04-25 17:41:59] frigate.object_processing      INFO    : Exiting object processor...
2023-04-25 15:41:59.665655238  [2023-04-25 17:41:59] root                           INFO    : Detection process has exited...
2023-04-25 15:41:59.946795383  [2023-04-25 17:41:59] frigate.comms.ws               INFO    : Exiting websocket client...
2023-04-25 15:41:59.947459194  [2023-04-25 17:41:59] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
2023-04-25 15:41:59.957529071  [2023-04-25 17:41:59] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-25 15:41:59.958831896  [2023-04-25 17:41:59] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-25 15:42:00.624889737  [2023-04-25 17:42:00] frigate.video                  INFO    : parking: exiting subprocess
2023-04-25 15:42:00.637581004  [2023-04-25 17:42:00] frigate.video                  INFO    : jardin: exiting subprocess
2023-04-25 15:42:00.952803330  [2023-04-25 17:42:00] frigate.output                 INFO    : exiting output process...

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

detect width, height and fps are the same that config on camera side

NickM-27 commented 1 year ago

You're running out of GPU memory, you need to use ssh to increase the GPU memory

lahayeg commented 1 year ago

@NickM-27 how do you saw it? you proceed to use ssh to increase the GPU memory?

NickM-27 commented 1 year ago

It's covered in the docs https://docs.frigate.video/configuration/hardware_acceleration#raspberry-pi-34

lahayeg commented 1 year ago

on HassOS, sudo raspi-config is not available through SSH addon

NickM-27 commented 1 year ago

I know other HA OS users have gotten it configured. But if you are not able to, then the only option is to not use hwaccel for other cameras that are added

NickM-27 commented 1 year ago

https://github.com/blakeblackshear/frigate/issues/3208 is similar

lahayeg commented 1 year ago

For other people, I'm able to use https://community.home-assistant.io/t/add-on-hassos-ssh-port-22222-configurator/264109 to access config.txt

lahayeg commented 1 year ago

So setup up gpu_mem=128 and uncomment

ffmpeg:
  hwaccel_args: preset-rpi-64-h264

but then error in log

2023-04-28 12:29:25.013248359  [2023-04-28 14:29:25] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:25.207951434  [2023-04-28 14:29:25] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:25.207966416  [2023-04-28 14:29:25] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:25.207970045  [2023-04-28 14:29:25] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:26.634562953  172.30.33.4 - - [28/Apr/2023:14:29:26 +0200] "GET /api/config/schema.json HTTP/1.1" 200 25632 "-" "-" "-"
2023-04-28 12:29:35.064962464  [2023-04-28 14:29:35] watchdog.jardin                ERROR   : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:35.064978038  [2023-04-28 14:29:35] watchdog.jardin                INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:35.065677774  [2023-04-28 14:29:35] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:35.274668593  [2023-04-28 14:29:35] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:35.275385125  [2023-04-28 14:29:35] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:35.276140675  [2023-04-28 14:29:35] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:45.109988289  [2023-04-28 14:29:45] watchdog.jardin                ERROR   : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:45.135978403  [2023-04-28 14:29:45] watchdog.jardin                INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:45.136692231  [2023-04-28 14:29:45] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:45.327096323  [2023-04-28 14:29:45] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:45.337242696  [2023-04-28 14:29:45] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:45.337824711  [2023-04-28 14:29:45] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:55.162985348  [2023-04-28 14:29:55] watchdog.jardin                ERROR   : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:55.163689602  [2023-04-28 14:29:55] watchdog.jardin                INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:55.164912131  [2023-04-28 14:29:55] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:29:55.358443490  [2023-04-28 14:29:55] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:29:55.359262151  [2023-04-28 14:29:55] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:29:55.360524735  [2023-04-28 14:29:55] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:05.205175650  [2023-04-28 14:30:05] watchdog.jardin                ERROR   : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:05.205203409  [2023-04-28 14:30:05] watchdog.jardin                INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:30:05.206272290  [2023-04-28 14:30:05] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:05.391864123  [2023-04-28 14:30:05] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:05.392912245  [2023-04-28 14:30:05] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:30:05.393760869  [2023-04-28 14:30:05] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:15.252925328  [2023-04-28 14:30:15] watchdog.jardin                ERROR   : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:15.254847982  [2023-04-28 14:30:15] watchdog.jardin                INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:30:15.255546255  [2023-04-28 14:30:15] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:15.427625820  [2023-04-28 14:30:15] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:15.428496351  [2023-04-28 14:30:15] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:30:15.429855712  [2023-04-28 14:30:15] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:25.295172818  [2023-04-28 14:30:25] watchdog.jardin                ERROR   : No new recording segments were created for jardin in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:25.298768090  [2023-04-28 14:30:25] watchdog.jardin                INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:30:25.300452264  [2023-04-28 14:30:25] watchdog.jardin                INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-28 12:30:25.464004526  [2023-04-28 14:30:25] watchdog.parking               ERROR   : No new recording segments were created for parking in the last 120s. restarting the ffmpeg record process...
2023-04-28 12:30:25.464536467  [2023-04-28 14:30:25] watchdog.parking               INFO    : Terminating the existing ffmpeg process...
2023-04-28 12:30:25.464613670  [2023-04-28 14:30:25] watchdog.parking               INFO    : Waiting for ffmpeg to exit gracefully...

Any idea?

NickM-27 commented 1 year ago

128 is not going to be close to enough, 512 is the minimum recommended and probably want 1024

lahayeg commented 1 year ago

Still some error on gpu_mem equals to 512. I read many block not recommending to setup 1024 on RPI4 4g (boot error, crash). I will remove hw accel has it seems to works pretty well