blakeblackshear / frigate

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

[Camera Support]: Lots of error messages in logs #8973

Closed hellomynameisleo closed 9 months ago

hellomynameisleo commented 11 months ago

Describe the problem you are having

Sometimes the video will look corrupted part way through or disconnect, my frigate logs constantly outputs error messages such as "corrupt decoded frame in stream 0", "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", "Connection timed out" and "corrupt decoded frame in stream 0".

Version

0.12.1-367d724

Frigate config file

mqtt:
  enabled: False
detectors:
  cpu1:
    type: cpu
    num_threads: 16
go2rtc:
  streams:
    bedroom:
      - rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.4.183:554/h264Preview_01_main
cameras:
  bedroom:
    enabled: True
    ffmpeg:
      inputs:
        - path: rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.4.183:554/h264Preview_01_main
          roles:
            - record
            - detect
    detect:
      enabled: True
      width: 2560
      height: 1920
      fps: 30
    record:
      enabled: True
      retain:
        days: 10
        mode: all
      events:
        retain:
          mode: motion
          default: 30
birdseye:
  enabled: True
  width: 1280
  height: 720
  quality: 1
live:
  quality: 1
ffmpeg:
  output_args:
    record: preset-record-generic-audio-aac

Relevant log output

2023-12-15 14:39:52.961051364  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x5588d71f6bc0] 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-12-15 14:39:52.961138677  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : More than 1000 frames duplicated
2023-12-15 14:39:52.961239658  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d71f1b80] Increasing reorder buffer to 1
2023-12-15 14:39:52.961324876  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d71f1b80] error while decoding MB 49 112, bytestream -22
2023-12-15 14:39:52.961435096  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:39:52.961520188  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d722dac0] error while decoding MB 75 32, bytestream -5
2023-12-15 14:39:52.961614659  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:39:52.961764279  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : More than 10000 frames duplicated
2023-12-15 14:39:52.961857657  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d71f1b80] error while decoding MB 148 68, bytestream -5
2023-12-15 14:39:52.961940217  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:39:52.962036215  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d71f1b80] error while decoding MB 37 37, bytestream -5
2023-12-15 14:39:52.962119028  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:39:52.962211086  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d722dac0] error while decoding MB 62 76, bytestream -11
2023-12-15 14:39:52.962294749  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:39:52.962387642  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x5588d71f1b80] error while decoding MB 47 49, bytestream -5
2023-12-15 14:39:52.962482161  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:39:52.962574100  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 14:39:52.962657180  [2023-12-15 14:39:52] ffmpeg.bedroom.detect          ERROR   : [rtsp @ 0x5588d71da100] RTP: PT=60: bad cseq ae26 expected=972c
2023-12-15 14:39:57.984783827  [2023-12-15 14:39:57] frigate.video                  ERROR   : bedroom: Unable to read frames from ffmpeg process.
2023-12-15 14:39:57.984876681  [2023-12-15 14:39:57] frigate.video                  ERROR   : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-15 14:40:02.972959417  [2023-12-15 14:40:02] watchdog.bedroom               ERROR   : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-15 14:40:02.972965395  [2023-12-15 14:40:02] watchdog.bedroom               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 14:40:02.972967379  [2023-12-15 14:40:02] ffmpeg.bedroom.detect          ERROR   : [tcp @ 0x55fab39954c0] Connection to tcp://192.168.4.183:554?timeout=5000000 failed: Connection timed out
2023-12-15 14:40:02.978228213  [2023-12-15 14:40:02] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 14:40:41.524525228  [2023-12-15 14:40:41] frigate.video                  ERROR   : bedroom: Unable to read frames from ffmpeg process.
2023-12-15 14:40:41.524532081  [2023-12-15 14:40:41] frigate.video                  ERROR   : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-15 14:40:43.000978619  [2023-12-15 14:40:42] watchdog.bedroom               ERROR   : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-15 14:40:43.000985205  [2023-12-15 14:40:42] watchdog.bedroom               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 14:40:43.000987972  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55dc9d30c5c0] Increasing reorder buffer to 1
2023-12-15 14:40:43.000991494  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x55dc9d323bc0] 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-12-15 14:40:43.000995031  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [mp4 @ 0x55dc9d4e5c00] 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-12-15 14:40:43.000997576  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [mp4 @ 0x55dc9d4e5c00] pts has no value
2023-12-15 14:40:43.001000054  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [aac @ 0x55dc9d322440] Queue input is backward in time
2023-12-15 14:40:43.001002617  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   :     Last message repeated 1 times
2023-12-15 14:40:43.001006127  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x55dc9d323bc0] Non-monotonous DTS in output stream 0:0; previous: 31863, current: -830103483316929823; changing to 31864. This may result in incorrect timestamps in the output file.
2023-12-15 14:40:43.001009620  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x55dc9d323bc0] Non-monotonous DTS in output stream 0:0; previous: 31864, current: -830103483316929823; changing to 31865. This may result in incorrect timestamps in the output file.
2023-12-15 14:40:43.001013166  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x55dc9d323bc0] Non-monotonous DTS in output stream 0:0; previous: 31865, current: -830103483316929823; changing to 31866. This may result in incorrect timestamps in the output file.
2023-12-15 14:40:43.001016634  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x55dc9d323bc0] Non-monotonous DTS in output stream 0:0; previous: 31866, current: -830103483316929823; changing to 31867. This may result in incorrect timestamps in the output file.
2023-12-15 14:40:43.001019240  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55dc9d35a840] error while decoding MB 102 63, bytestream -5
2023-12-15 14:40:43.001021867  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 14:40:43.001024427  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   :     Last message repeated 1 times
2023-12-15 14:40:43.001027213  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:40:43.001029906  [2023-12-15 14:40:42] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 14:41:26.817427130  [2023-12-15 14:41:26] frigate.video                  ERROR   : bedroom: Unable to read frames from ffmpeg process.
2023-12-15 14:41:26.817776435  [2023-12-15 14:41:26] frigate.video                  ERROR   : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-15 14:41:33.023565955  [2023-12-15 14:41:33] watchdog.bedroom               ERROR   : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-15 14:41:33.023666244  [2023-12-15 14:41:33] watchdog.bedroom               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 14:41:33.023783650  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x561a5e998b00] 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-12-15 14:41:33.023901775  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : [aac @ 0x561a5e999880] Queue input is backward in time
2023-12-15 14:41:33.024020355  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   :     Last message repeated 2 times
2023-12-15 14:41:33.024136196  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x561a5e9d23c0] Increasing reorder buffer to 1
2023-12-15 14:41:33.024252609  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x561a5e9d23c0] cabac decode of qscale diff failed at 148 79
2023-12-15 14:41:33.024374564  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x561a5e9d23c0] error while decoding MB 148 79, bytestream -5
2023-12-15 14:41:33.024505820  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 14:41:33.024619002  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:41:33.024738824  [2023-12-15 14:41:33] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 14:56:53.132224813  [2023-12-15 14:56:53] watchdog.bedroom               INFO    : bedroom exceeded fps limit. Exiting ffmpeg...
2023-12-15 14:56:53.132341303  [2023-12-15 14:56:53] watchdog.bedroom               INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-15 14:56:53.287169303  [2023-12-15 14:56:53] frigate.video                  ERROR   : bedroom: Unable to read frames from ffmpeg process.
2023-12-15 14:56:53.287902882  [2023-12-15 14:56:53] frigate.video                  ERROR   : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-15 14:57:03.297363786  [2023-12-15 14:57:03] watchdog.bedroom               ERROR   : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-15 14:57:03.297469133  [2023-12-15 14:57:03] watchdog.bedroom               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 14:57:03.297578705  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x557921e6c500] 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-12-15 14:57:03.297668532  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : More than 1000 frames duplicated
2023-12-15 14:57:03.297771181  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x557921e77f80] Increasing reorder buffer to 1
2023-12-15 14:57:03.297856310  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x557921e77f80] error while decoding MB 22 21, bytestream -9
2023-12-15 14:57:03.297971447  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:57:03.298080429  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x557921e6b080] error while decoding MB 69 33, bytestream -5
2023-12-15 14:57:03.298191065  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:57:03.298295444  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x557921e6b080] error while decoding MB 84 48, bytestream -7
2023-12-15 14:57:03.298384251  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:57:03.298492747  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x557921e6b080] error while decoding MB 1 86, bytestream -13
2023-12-15 14:57:03.298582549  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 14:57:03.298672540  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : More than 10000 frames duplicated
2023-12-15 14:57:03.298765593  [2023-12-15 14:57:03] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x557921e6b080] Increasing reorder buffer to 14
2023-12-15 15:36:23.587967190  [2023-12-15 15:36:23] watchdog.bedroom               INFO    : No frames received from bedroom in 20 seconds. Exiting ffmpeg...
2023-12-15 15:36:23.588055982  [2023-12-15 15:36:23] watchdog.bedroom               INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-15 15:36:28.756858420  [2023-12-15 15:36:28] frigate.video                  ERROR   : bedroom: Unable to read frames from ffmpeg process.
2023-12-15 15:36:28.757012997  [2023-12-15 15:36:28] frigate.video                  ERROR   : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-15 15:36:38.761500567  [2023-12-15 15:36:38] watchdog.bedroom               ERROR   : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-15 15:36:38.761619185  [2023-12-15 15:36:38] watchdog.bedroom               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 15:36:38.761711519  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [segment @ 0x55fa57928e40] 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-12-15 15:36:38.761802623  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : More than 1000 frames duplicated
2023-12-15 15:36:38.761900106  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] Increasing reorder buffer to 1
2023-12-15 15:36:38.761983329  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa5792cd00] error while decoding MB 51 63, bytestream -7
2023-12-15 15:36:38.762069674  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.762155874  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : More than 10000 frames duplicated
2023-12-15 15:36:38.762241747  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] error while decoding MB 87 38, bytestream -7
2023-12-15 15:36:38.762328026  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.762430621  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa5792cd00] error while decoding MB 152 110, bytestream -6
2023-12-15 15:36:38.762523855  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.762606506  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa5792cd00] error while decoding MB 78 65, bytestream -5
2023-12-15 15:36:38.762696901  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.767542088  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa5792cd00] error while decoding MB 99 53, bytestream -11
2023-12-15 15:36:38.767628737  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.767706369  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] error while decoding MB 102 42, bytestream -7
2023-12-15 15:36:38.767791167  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.767858400  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa5792cd00] error while decoding MB 76 56, bytestream -7
2023-12-15 15:36:38.767928091  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.767995621  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] error while decoding MB 51 94, bytestream -9
2023-12-15 15:36:38.768066593  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.768139425  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] error while decoding MB 86 22, bytestream -5
2023-12-15 15:36:38.768243225  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: corrupt decoded frame in stream 0
2023-12-15 15:36:38.768318955  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] Increasing reorder buffer to 9
2023-12-15 15:36:38.768388286  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [h264 @ 0x55fa57930f40] error while decoding MB 127 6, bytestream -7
2023-12-15 15:36:38.768477733  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 15:36:38.768583489  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   :     Last message repeated 2 times
2023-12-15 15:36:38.768688341  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : [rtsp @ 0x55fa5790b100] CSeq 78 expected, 0 received.
2023-12-15 15:36:38.768787515  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   :     Last message repeated 4 times
2023-12-15 15:36:38.768878822  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   : rtsp://*:*@192.168.4.183:554/h264Preview_01_main: Connection timed out
2023-12-15 15:36:38.768947830  [2023-12-15 15:36:38] ffmpeg.bedroom.detect          ERROR   :     Last message repeated 1 times

FFprobe output from your camera

ffprobe version N-109535-gfcd557a2c2-20230108 Copyright (c) 2007-2023 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20230108
  libavutil      57. 43.100 / 57. 43.100
  libavcodec     59. 56.100 / 59. 56.100
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 53.100 /  8. 53.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
192.168.4.183: No such file or directory

Frigate stats

No response

Operating system

UNRAID

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Reolink RLC-520a

Any other information that may be helpful

No response

NickM-27 commented 11 months ago

camera is timing out, which is common for reolink rtsp. This is why the docs have a recommended reolink config https://docs.frigate.video/configuration/camera_specific#reolink-cameras

hellomynameisleo commented 10 months ago

camera is timing out, which is common for reolink rtsp. This is why the docs have a recommended reolink config https://docs.frigate.video/configuration/camera_specific#reolink-cameras

thanks for this, but still getting errors below when I've changes the config to http video stream.

2023-12-24 01:40:54.398235735  [2023-12-24 01:40:54] frigate.video                  ERROR   : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-24 01:41:03.169224333  [2023-12-24 01:41:03] watchdog.bedroom               ERROR   : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-24 01:41:03.169354976  [2023-12-24 01:41:03] watchdog.bedroom               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-24 01:41:03.169503500  [2023-12-24 01:41:03] ffmpeg.bedroom.detect          ERROR   : [flv @ 0x56104c600f80] Packet corrupt (stream = 0, dts = 553143), dropping it.
2023-12-24 01:41:03.169551800  [2023-12-24 01:41:03] ffmpeg.bedroom.detect          ERROR   : http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=*&password=* Connection timed out

here is the new config I've set

mqtt:
  enabled: False
detectors:
  cpu1:
    type: cpu
    num_threads: 16
go2rtc:
  streams:
    bedroom:
      - http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
cameras:
  bedroom:
    enabled: True
    ffmpeg:
      inputs:
        - path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
          input_args: preset-http-reolink
          roles:
            - record
        - path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
          input_args: preset-http-reolink
          roles:
            - detect
    detect:
      enabled: True
      width: 640
      height: 480
      fps: 5
    record:
      enabled: True
      retain:
        days: 10
        mode: all
      events:
        retain:
          mode: motion
          default: 30
birdseye:
  enabled: True
  restream: False
  width: 640
  height: 480
  quality: 12
ffmpeg:
  output_args:
    record: preset-record-generic-audio-copy
NickM-27 commented 10 months ago

Looks like camera is timing out

hellomynameisleo commented 10 months ago

Looks like camera is timing out Looks good now, just not timing out frequently, guessing its a reolink camera issue.

I've enable hardware acceleration for my gpu rtx 2060 and it has reduced filesize by about 80% but this causes the timestamps on frigate and the video recording to go out of sync, also the video recordings are now in only 8 or 16 seconds whereas before they was all 10 seconds long, is there something in the ffmpeg encoding config causing these issues?

2023-12-26 23:00:20.332778254  [2023-12-26 23:00:20] watchdog.bedroom               ERROR   : No new recording segments were created for bedroom in the last 120s. restarting the ffmpeg record process...
2023-12-26 23:00:20.332881015  [2023-12-26 23:00:20] watchdog.bedroom               INFO    : Terminating the existing ffmpeg process...
2023-12-26 23:00:20.332935245  [2023-12-26 23:00:20] watchdog.bedroom               INFO    : Waiting for ffmpeg to exit gracefully...
mqtt:
  enabled: False
detectors:
  cpu1:
    type: cpu
    num_threads: 6
go2rtc:
  streams:
    bedroom:
      - http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
cameras:
  bedroom:
    enabled: True
    ffmpeg:
      inputs:
        - path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
          input_args: preset-http-reolink
          roles:
            - record
        - path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
          input_args: preset-http-reolink
          roles:
            - detect
    detect:
      enabled: True
      width: 640
      height: 480
      fps: 5
    record:
      enabled: True
      retain:
        days: 10
        mode: all
      events:
        retain:
          mode: motion
          default: 20
birdseye:
  enabled: True
  restream: False
  width: 640
  height: 480
  quality: 12
ffmpeg:
  hwaccel_args: preset-nvidia-h264
  output_args:
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v h264_nvenc -preset medium -c:a copy
hellomynameisleo commented 10 months ago

found out my cctv is out of sync with ntp since I disconnected it from the internet, did a quick reconnect and synced it up again

github-actions[bot] commented 9 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.