frigate: [Support]: Recording stops for 1 camera

Describe the problem you are having

After a while (of a specific event) it seems that the recording for 1 camera stops working. The live view works and the snapshots also work.

Version

0.10.0-BFECEE9

Frigate config file

mqtt:
  host: <host>
  user: <user>
  password: <pass>
detectors:
  cpu1:
    type: cpu
birdseye:
  enabled: True
#rtmp:
#  enabled: False
cameras:
  garage:
    ffmpeg:
      output_args:
        record:
          -f segment
          -segment_time 10
          -segment_format mp4
          -reset_timestamps 1
          -strftime 1
          -c:v copy
          -c:a aac
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - nobuffer+genpts+discardcorrupt
        - -flags
        - low_delay
        - -strict
        - experimental
        - -analyzeduration
        - 1000M
        - -rw_timeout
        - "5000000"
      inputs:
        - path:  http://192.168.2.75/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=xxxx
          roles:
            - record
        - path:  http://192.168.2.75/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=xxxx
          roles:
            - detect
            - rtmp
    snapshots:
      enabled: true
      height: 500
    detect:
      width: 640 
      height: 480 
      fps: 7 
    record:
      enabled: True 
      retain: 
        days: 1
        mode: all 
      events: 
        retain:
          default: 7
        pre_capture: 5





  voordeur:
    ffmpeg:
#      hwaccel_args: []
      output_args: 
        record: 
          -f segment 
          -segment_time 10 
          -segment_format mp4 
          -reset_timestamps 1 
          -strftime 1
          -c:v copy
          -c:a aac
##          -flvflags no_duration_filesize
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - nobuffer+genpts+discardcorrupt
        - -flags
        - low_delay
        - -strict
        - experimental
        - -analyzeduration
        - 1000M
        - -probesize
        - 1000M
        - -rw_timeout
        - "5000000"
      inputs:
       - path: http://192.168.2.31/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=xxxx
         roles:
           - record
#           - rtmp
       - path: http://192.168.2.31/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=xxxx
         roles:
           - detect
           - rtmp
    zones:
      voortuin: 
        coordinates: 640,214,640,480,0,480,0,403
      minibieb:
        coordinates: 549,189,533,157,381,192,400,233
    objects:
      track:
        - person
#        - car
#        - motorcycle
#        - bicycle
#        - horse
      filters:
        car:
          mask:
           - 0,0,0,153,640,44,640,0
    snapshots:
      enabled: true
      height: 500
    detect:
      width: 640
      height: 480
      fps: 7
    record:
      enabled: True
      retain:
        days: 1
        mode: all
      events:
        retain:
          default: 7
        pre_capture: 5
    motion:
      mask:
        - 275,438,272,480,0,480,0,437
        - 153,190,209,299,227,454,0,451,0,222
        - 0,0,640,0,640,38,0,111
        - 466,306,502,299,498,241,437,257

Relevant log output


[2022-07-06 22:00:46] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36142]
[2022-07-06 22:02:18] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36142]
[2022-07-06 22:02:48] frigate.video                  ERROR   : voordeur: Unable to read frames from ffmpeg process.
[2022-07-06 22:02:48] frigate.video                  ERROR   : voordeur: ffmpeg process is not running. exiting capture thread...
[2022-07-06 22:02:48] frigate.video                  ERROR   : garage: Unable to read frames from ffmpeg process.
[2022-07-06 22:02:48] frigate.video                  ERROR   : garage: ffmpeg process is not running. exiting capture thread...
[2022-07-06 22:02:56] watchdog.voordeur              ERROR   : Ffmpeg process crashed unexpectedly for voordeur.
[2022-07-06 22:02:56] watchdog.voordeur              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-07-06 22:02:56] ffmpeg.voordeur.detect         ERROR   : http://192.168.2.31/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=xxxx: Connection timed out
[2022-07-06 22:02:56] ffmpeg.voordeur.detect         ERROR   : [flv @ 0x56113cb8e180] Failed to update header with correct duration.
[2022-07-06 22:02:56] ffmpeg.voordeur.detect         ERROR   : [flv @ 0x56113cb8e180] Failed to update header with correct filesize.
[2022-07-06 22:02:56] watchdog.garage                ERROR   : Ffmpeg process crashed unexpectedly for garage.
[2022-07-06 22:02:56] watchdog.garage                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-07-06 22:02:56] ffmpeg.garage.detect           ERROR   : http://192.168.2.75/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=xxxx: Connection timed out
[2022-07-06 22:02:56] ffmpeg.garage.detect           ERROR   : [flv @ 0x562143fe8c80] Failed to update header with correct duration.
[2022-07-06 22:02:56] ffmpeg.garage.detect           ERROR   : [flv @ 0x562143fe8c80] Failed to update header with correct filesize.
[2022-07-06 22:02:56] ffmpeg.garage.record           ERROR   : http://192.168.2.75/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=zzzz: Connection timed out
[2022-07-06 22:02:56] watchdog.garage                INFO    : Terminating the existing ffmpeg process...
[2022-07-06 22:02:56] watchdog.garage                INFO    : Waiting for ffmpeg to exit gracefully...

FFprobe output from your camera

[1] 199926
[2] 199927
[3] 199928
[4] 199929
[2]   Done                    app=bcs
[3]-  Done                    stream=channel0_main.bcs
root@c2ca58c50b0a:/opt/frigate# ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmfx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[http @ 0x55d52c0b5700] HTTP error 500 Internal Server Error
http://192.168.2.75/flv?port=1935: Server returned 5XX Server Error reply

Frigate stats

{
"detection_fps": 13.9,
"detectors": {
"cpu1": {
"detection_start": 1657184221.352761,
"inference_speed": 69.27,
"pid": 216
}
},
"garage": {
"camera_fps": 7,
"capture_pid": 225,
"detection_fps": 7.4,
"pid": 220,
"process_fps": 3.2,
"skipped_fps": 0
},
"service": {
"storage": {
"/dev/shm": {
"free": 62.9,
"mount_type": "tmpfs",
"total": 67.1,
"used": 4.3
},
"/media/frigate/clips": {
"free": 95125.7,
"mount_type": "ext4",
"total": 230381.2,
"used": 123481.4
},
"/media/frigate/recordings": {
"free": 95125.7,
"mount_type": "ext4",
"total": 230381.2,
"used": 123481.4
},
"/tmp/cache": {
"free": 95125.7,
"mount_type": "overlay",
"total": 230381.2,
"used": 123481.4
}
},
"temperatures": {},
"uptime": 500176,
"version": "0.10.0-bfecee9"
},
"voordeur": {
"camera_fps": 7,
"capture_pid": 226,
"detection_fps": 6.5,
"pid": 223,
"process_fps": 6.4,
"skipped_fps": 0
}
}

Operating system

Proxmox

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Reolink RLC 410

Any other information that may be helpful

So far I have not found a specific moment where the recording ends. However yesterday I was viewing a recording on my phone (via the frigate web ui) and it seems the recording stopped around that time

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17

Most upvoted comments

Thank you very much for your help 😀