blakeblackshear / frigate

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

[Support]: Getting a lot of RTSP and ffmpeg errors in the logs #3754

Closed Ming-A closed 1 year ago

Ming-A commented 1 year ago

Describe the problem you are having

In the logs im getting a lot of errors related to RTSP and ffmpeg. I have 7 cameras, 5 of the cameras are the Hikvision DS-2CD1023G0E-I(L) and 2 of them are TP-Link VIGI C400HP.

The setting on all of the Hikvision cameras are 1080p res, 15fps, and on H.264+ (I have tried with normal H.264 as well but still had errors). The res on the tp-link cameras is 2304x1296 with 15fps and H.264.

Hardware: MacBook Pro 2013 running proxmox and docker in an LXC container along with a coral USB.

Version

0.10.1-83481AF

Frigate config file

mqtt:
  host: 10.69.40.4
  user: USERNAME
  password: PASSWORD

database:
  path: /media/frigate/database/frigate.db

birdseye:
  enabled: True
  mode: continuous
  quality: 5

ffmpeg:
  hwaccel_args:
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p

detect:
#  width: 1920
#  height: 1080
  fps: 5
  enabled: True

objects:
  track:
    - person
    - car
    - motorcycle
    - cat
    - dog

#record:
#  enabled: True
#  retain:
#    days: 28
#  events:
#    max_seconds: 300
#    # Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones)
#    required_zones: []
#    # Optional: Retention settings for recordings of events
#    retain:
#      # Required: Default retention days (default: shown below)
#      default: 10

snapshots:
  enabled: True
  # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
  required_zones: []
  retain:
    # Required: Default retention days (default: shown below)
    default: 10

live:
  height: 1080
  quality: 8

cameras:
  carport-front:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.10:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
          roles:
            - detect
            - rtmp
#    record:
#      events:
#        required_zones:
#          - insidecarport
#          - outsidecarport
    snapshots:
      required_zones:
        - insidecarport
        - outsidecarport
    zones:
      insidecarport:
        coordinates: 1280,720,1280,446,1224,319,1156,225,1025,139,690,125,0,140,0,720
        objects:
          - person
          - motorcycle
          - cat
          - dog
      outsidecarport:
        coordinates: 1280,0,1280,136,0,129,0,0
        objects:
          - car
          - person
          - motorcycle
          - cat
          - dog

  garden:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.11:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
          roles:
            - detect
            - rtmp
#    record:
#      events:
#        required_zones:
#          - gardenzone
    snapshots:
      required_zones:
        - gardenzone
    zones:
      gardenzone:
        coordinates: 0,720,1280,720,1280,0,0,0
        objects:
          - person
          - motorcycle
          - cat
          - dog

  left:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
          roles:
            - detect
            - rtmp

  right:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.13:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
          roles:
            - detect
            - rtmp
    motion:
      mask:
        - 514,191,519,161,781,80,759,0,552,0,188,0,205,80,301,136,331,269

  back:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.14:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
          roles:
            - detect
            - rtmp
    motion:
      mask:
        - 1280,402,1280,0,924,0,673,0,973,155,944,161,786,127,660,100,649,174,725,196,708,225,743,234,870,265

  foyer:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.16:554/stream1
          roles:
            - detect
            - rtmp
    motion:
      mask:
        - 812,27,1202,117,1212,84,820,0
    live:
      height: 1296

  kitchen:
    ffmpeg:
      inputs:
        - path: rtsp://USERNAME:PASSWORD@10.69.25.15:554/stream1
          roles:
            - detect
            - rtmp
    live:
      height: 1296

detectors:
  coral:
    type: edgetpu
    device: usb

Relevant log output

https://pastebin.com/A9Ji603N Full log since github says that its too long

FFprobe output from your camera

Carport-front:

root@b6076ad9ed20:/opt/frigate# ffprobe rtsp://USERNAME:PASSWORD@10.69.25.10:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
[1] 4005
root@b6076ad9ed20:/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
[rtsp @ 0x562dced12b80] max delay reached. need to consume packet
[rtsp @ 0x562dced12b80] RTP: missed 67 packets
[h264 @ 0x562dced16a80] error while decoding MB 64 66, bytestream -17
[h264 @ 0x562dced16a80] concealing 225 DC, 225 AC, 225 MV errors in I frame
[h264 @ 0x562dced16a80] Increasing reorder buffer to 1
[rtsp @ 0x562dced12b80] max delay reached. need to consume packet
[rtsp @ 0x562dced12b80] RTP: missed 26 packets
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.10:554/Streaming/Channels/101?transportmode=unicast':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.080000, bitrate: N/A
    Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 25 tbr, 90k tbn, 180k tbc

Garden:

root@b6076ad9ed20:/opt/frigate# ffprobe rtsp://USERNAME:PASSWORD@10.69.25.11:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
[1] 4392
root@b6076ad9ed20:/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
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.11:554/Streaming/Channels/101?transportmode=unicast':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.400333, bitrate: N/A
    Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30 tbc

Left:

root@b6076ad9ed20:/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
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.399333, bitrate: N/A
    Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30 tbc

Right:

root@b6076ad9ed20:/opt/frigate# ffprobe rtsp://USERNAME:PASSWORD@10.69.25.13:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
[1] 4920
root@b6076ad9ed20:/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
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 1 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 1 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 1 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 7 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 2 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 3 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 1 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 1 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 10 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 1 packets
[rtsp @ 0x558650c58b80] max delay reached. need to consume packet
[rtsp @ 0x558650c58b80] RTP: missed 2 packets
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.13:554/Streaming/Channels/101?transportmode=unicast':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.466333, bitrate: N/A
    Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30 tbc

Back:

root@b6076ad9ed20:/opt/frigate# ffprobe rtsp://USERNAME:PASSWORD@10.69.25.14:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
[1] 5099
root@b6076ad9ed20:/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
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.14:554/Streaming/Channels/101?transportmode=unicast':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.400333, bitrate: N/A
    Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30 tbc

Foyer:

root@b6076ad9ed20:/opt/frigate# ffprobe rtsp://USERNAME:PASSWORD@10.69.25.16:554/stream1
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
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.16:554/stream1':
  Metadata:
    title           : Session streamed by "TP-LINK RTSP Server"
  Duration: N/A, start: 0.334333, bitrate: N/A
    Stream #0:0: Video: h264, yuv420p(progressive), 2304x1296, 15 fps, 25 tbr, 90k tbn, 30 tbc

Kitchen:

root@b6076ad9ed20:/opt/frigate# ffprobe rtsp://USERNAME:PASSWORD@10.69.25.15:554/stream1
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
Input #0, rtsp, from 'rtsp://USERNAME:PASSWORD@10.69.25.15:554/stream1':
  Metadata:
    title           : Session streamed by "TP-LINK RTSP Server"
  Duration: N/A, start: 0.316667, bitrate: N/A
    Stream #0:0: Video: h264, yuv420p(progressive), 2304x1296, 12 fps, 25 tbr, 90k tbn, 24 tbc

Frigate stats

Where is the /api/stats at? or what command do I run for the output?

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Hikvision DS-2CD1023G0E-I(L), TP-Link VIGI C400HP

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

Can you also include your docker compose file please.

NickM-27 commented 1 year ago

Looking back over this it looks like your cameras are being set to use UDP instead of TCP, in which case you need to reference https://docs.frigate.video/configuration/camera_specific#udp-only-cameras

Ming-A commented 1 year ago

Can you also include your docker compose file please.

version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64
shm_size: '64mb'
devices:
- /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime
- /home/frigate/config.yml:/config/config.yml
- /home/frigate/database:/media/frigate/database
- /mnt/CCTV:/media/frigate
- /mnt/CCTV/frigate/recordings:/media/frigate/recordings
- /mnt/CCTV/frigate/clips:/media/frigate/clips
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "password"

Looking back over this it looks like your cameras are being set to use UDP instead of TCP, in which case you need to reference https://docs.frigate.video/configuration/camera_specific#udp-only-cameras

I'll give this a try and check the logs. How do you check if it's using UDP instead of TCP?

Ming-A commented 1 year ago

Looking back over this it looks like your cameras are being set to use UDP instead of TCP, in which case you need to reference https://docs.frigate.video/configuration/camera_specific#udp-only-cameras

no errors have popped up yet in the logs but all the camera has some distortion (have placed some boxes on the clear part of the camera for privacy) image

The logs after 20 mins of running:

[2022-09-03 13:05:02] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
Starting migrations
[2022-09-03 13:05:02] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-09-03 13:05:02] peewee_migrate                 INFO    : There is nothing to migrate
[2022-09-03 13:05:02] frigate.app                    INFO    : Output process started: 219
[2022-09-03 13:05:02] detector.coral                 INFO    : Starting detection process: 217
[2022-09-03 13:05:02] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2022-09-03 13:05:02] ws4py                          INFO    : Using epoll
[2022-09-03 13:05:02] frigate.app                    INFO    : Camera processor started for carport-front: 221
[2022-09-03 13:05:02] frigate.app                    INFO    : Camera processor started for garden: 225
[2022-09-03 13:05:02] frigate.app                    INFO    : Camera processor started for left: 227
[2022-09-03 13:05:02] frigate.app                    INFO    : Camera processor started for right: 228
[2022-09-03 13:05:02] frigate.app                    INFO    : Camera processor started for back: 231
[2022-09-03 13:05:02] frigate.app                    INFO    : Camera processor started for foyer: 232
[2022-09-03 13:05:03] frigate.app                    INFO    : Camera processor started for kitchen: 234
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for carport-front: 235
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for garden: 239
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for left: 242
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for right: 243
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for back: 249
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for foyer: 255
[2022-09-03 13:05:03] frigate.app                    INFO    : Capture process started for kitchen: 265
[2022-09-03 13:05:03] ws4py                          INFO    : Using epoll
[2022-09-03 13:05:06] frigate.edgetpu                INFO    : TPU found
[2022-09-03 13:05:46] frigate.object_processing      WARNING : Unable to create jpg because frame 1662181546.262167 is not in the cache
[2022-09-03 13:05:48] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36342]
[2022-09-03 13:05:57] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52428]
[2022-09-03 13:06:01] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52428]
[2022-09-03 13:06:03] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52430]
[2022-09-03 13:06:05] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52430]
[2022-09-03 13:06:15] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52432]
[2022-09-03 13:06:55] frigate.object_processing      WARNING : Unable to create jpg because frame 1662181615.199838 is not in the cache
Fatal Python error: Bus error

Thread 0x00007f242bdb3700 (most recent call first):
  File "/usr/lib/python3.8/threading.py", line 302 in wait
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 227 in _feed
  File "/usr/lib/python3.8/threading.py", line 870 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x00007f242e5b4700 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 154 in capture_frames
  File "/opt/frigate/frigate/video.py", line 293 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f242edb5700 (most recent call first):
  File "/usr/lib/python3.8/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.8/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 219 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f24162ba700 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 65 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f2435244740 (most recent call first):
  File "/usr/lib/python3.8/threading.py", line 1027 in _wait_for_tstate_lock
  File "/usr/lib/python3.8/threading.py", line 1011 in join
  File "/opt/frigate/frigate/video.py", line 324 in capture_camera
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75 in _launch
  File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.8/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.8/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.8/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 266 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 344 in start
  File "/opt/frigate/frigate/__main__.py", line 17 in <module>
  File "/usr/lib/python3.8/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.8/runpy.py", line 194 in _run_module_as_main
NickM-27 commented 1 year ago

The fatal python bus error is in the documentation. You need to increase your SHM size.

You should also map your cache volume

- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000

https://docs.frigate.video/installation#storage

Ming-A commented 1 year ago

The fatal python bus error is in the documentation. You need to increase your SHM size.

You should also map your cache volume

- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000

https://docs.frigate.video/installation#storage

So far nothing is poping up in the logs and looks good, will let it run for a while and see if anything pops up, thanks a lot :)

Ming-A commented 1 year ago

The fatal python bus error is in the documentation. You need to increase your SHM size.

You should also map your cache volume

- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000

https://docs.frigate.video/installation#storage

After running for a while, there are still frame problems similar to the screenshot above. In the logs I'm getting a lot of RTP missed packets. I have increased the shm_size to 256mb, is it not enough? Currently, I have given the LXC 4 cores with 3gb of ram

Docker compose:

version: "3.9"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: blakeblackshear/frigate:stable-amd64
    shm_size: '256mb'
    devices:
      - /dev/bus/usb:/dev/bus/usb
    volumes:
      - /etc/localtime:/etc/localtime
      - /home/frigate/config.yml:/config/config.yml
      - /home/frigate/database:/media/frigate/database
      - /mnt/CCTV:/media/frigate
      - /mnt/CCTV/frigate/recordings:/media/frigate/recordings
      - /mnt/CCTV/frigate/clips:/media/frigate/clips
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "1935:1935" # RTMP feeds
    environment:
      FRIGATE_RTSP_PASSWORD: "password"

Logs:

[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] corrupted macroblock 29 21 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] error while decoding MB 29 21
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 32 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5d8b40] corrupted macroblock 90 50 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5d8b40] error while decoding MB 90 50
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 1026 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 21 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : Invalid UE golomb code
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] cbp too large (3199971767) at 94 64
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 94 64
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] corrupted macroblock 58 35 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 58 35
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 203 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] corrupted macroblock 76 36 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 76 36
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 20 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] negative number of zero coeffs at 79 42
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 79 42
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 276 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] corrupted macroblock 103 59 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 103 59
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 150 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : rtsp://USERNAME:PASSWORD@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 1215 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] negative number of zero coeffs at 31 47
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 31 47
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 650 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] corrupted macroblock 31 36 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 31 36
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 721 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] corrupted macroblock 49 67 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] error while decoding MB 49 67
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 123 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] corrupted macroblock 28 23 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 28 23
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 20 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] corrupted macroblock 75 50 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 75 50
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 271 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 332 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : Invalid UE golomb code
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] cbp too large (3199971767) at 31 47
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 31 47
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : Invalid UE golomb code
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] cbp too large (3199971767) at 55 9
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 55 9
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 49 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] negative number of zero coeffs at 27 31
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 27 31
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 575 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 1 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] corrupted macroblock 30 26 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 30 26
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] corrupted macroblock 107 67 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 107 67
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 132 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 14 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf66fa40] corrupted macroblock 31 26 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf66fa40] error while decoding MB 31 26
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : Invalid UE golomb code
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] cbp too large (3199971767) at 108 66
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf63ecc0] error while decoding MB 108 66
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 145 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] P sub_mb_type 11 out of range at 103 27
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] error while decoding MB 103 27
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 286 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] corrupted macroblock 31 17 (total_coeff=-1)
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf647080] error while decoding MB 31 17
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 371 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] max delay reached. need to consume packet
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [rtsp @ 0x55e0cf503b00] RTP: missed 27 packets
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : Invalid UE golomb code
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5d8b40] cbp too large (3199971767) at 111 9
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5d8b40] error while decoding MB 111 9
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] negative number of zero coeffs at 87 67
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [h264 @ 0x55e0cf5f5800] error while decoding MB 87 67
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [flv @ 0x55e0cf543240] Failed to update header with correct duration.
[2022-09-04 20:31:43] ffmpeg.left.detect             ERROR   : [flv @ 0x55e0cf543240] Failed to update header with correct filesize.
NickM-27 commented 1 year ago

I have increased the shm_size to 256mb, is it not enough?

This only has to do with the Python Bus Error

It looks like from the logs that the only camera having issues is `left. Is this the case? What kind of camera is it? Is it WiFi or Ethernet?

Ming-A commented 1 year ago

I have increased the shm_size to 256mb, is it not enough?

This only has to do with the Python Bus Error

It looks like from the logs that the only camera having issues is `left. Is this the case? What kind of camera is it? Is it WiFi or Ethernet?

they are running on ethernet poe. 5 of the cameras are the Hikvision DS-2CD1023G0E-I(L) and 2 of them are TP-Link VIGI C400HP.

NickM-27 commented 1 year ago

Are they all working besides left?

Ming-A commented 1 year ago

Are they all working besides left?

nope, they all have some sort of distortion and delay/frames freezing occasionally.

image

NickM-27 commented 1 year ago

I'm not really sure then, perhaps some different input args would help but I believe they should be working.

Might be worth trying Frigate 0.11 release candidate 2 (be sure to read release notes and the breaking changes). We have a new ffmpeg build / version that may be more compatible or give better info.

Ming-A commented 1 year ago

I'm not really sure then, perhaps some different input args would help but I believe they should be working.

Might be worth trying Frigate 0.11 release candidate 2 (be sure to read release notes and the breaking changes). We have a new ffmpeg build / version that may be more compatible or give better info.

Would give that release a try and see how it goes, thanks for the suggestion :)

Ming-A commented 1 year ago

I'm not really sure then, perhaps some different input args would help but I believe they should be working.

Might be worth trying Frigate 0.11 release candidate 2 (be sure to read release notes and the breaking changes). We have a new ffmpeg build / version that may be more compatible or give better info.

seems like this version has a lot of ffmpeg error in the logs and doesn't work for me, where all the cameras are just green screen.

Logs:

[2022-09-05 00:06:48] frigate.video                  ERROR   : left: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:57] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-05 00:06:57] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:57] ffmpeg.carport-front.detect    ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:57] ffmpeg.carport-front.detect    ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : carport-front: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:57] watchdog.back                  ERROR   : Ffmpeg process crashed unexpectedly for back.
[2022-09-05 00:06:57] watchdog.back                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:57] ffmpeg.back.detect             ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:57] ffmpeg.back.detect             ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:57] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:57] frigate.video                  ERROR   : back: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:57] watchdog.foyer                 ERROR   : Ffmpeg process crashed unexpectedly for foyer.
[2022-09-05 00:06:57] watchdog.foyer                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:57] ffmpeg.foyer.detect            ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:57] ffmpeg.foyer.detect            ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:58] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : foyer: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:58] watchdog.right                 ERROR   : Ffmpeg process crashed unexpectedly for right.
[2022-09-05 00:06:58] watchdog.right                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:58] ffmpeg.right.detect            ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:58] ffmpeg.right.detect            ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:58] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : right: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:58] watchdog.garden                ERROR   : Ffmpeg process crashed unexpectedly for garden.
[2022-09-05 00:06:58] watchdog.garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:58] ffmpeg.garden.detect           ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:58] ffmpeg.garden.detect           ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:58] frigate.video                  ERROR   : garden: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : garden: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:58] watchdog.kitchen               ERROR   : Ffmpeg process crashed unexpectedly for kitchen.
[2022-09-05 00:06:58] watchdog.kitchen               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:58] ffmpeg.kitchen.detect          ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:58] ffmpeg.kitchen.detect          ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:58] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:06:58] watchdog.left                  ERROR   : Ffmpeg process crashed unexpectedly for left.
[2022-09-05 00:06:58] watchdog.left                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:06:58] ffmpeg.left.detect             ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:06:58] ffmpeg.left.detect             ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:06:58] frigate.video                  ERROR   : left: Unable to read frames from ffmpeg process.
[2022-09-05 00:06:58] frigate.video                  ERROR   : left: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:07] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-05 00:07:07] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:07] ffmpeg.carport-front.detect    ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:07] ffmpeg.carport-front.detect    ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:07] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:07] frigate.video                  ERROR   : carport-front: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:07] watchdog.back                  ERROR   : Ffmpeg process crashed unexpectedly for back.
[2022-09-05 00:07:07] watchdog.back                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:07] ffmpeg.back.detect             ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:07] ffmpeg.back.detect             ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:07] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:07] frigate.video                  ERROR   : back: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:07] watchdog.foyer                 ERROR   : Ffmpeg process crashed unexpectedly for foyer.
[2022-09-05 00:07:07] watchdog.foyer                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:07] ffmpeg.foyer.detect            ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:07] ffmpeg.foyer.detect            ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:07] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:07] frigate.video                  ERROR   : foyer: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:08] watchdog.right                 ERROR   : Ffmpeg process crashed unexpectedly for right.
[2022-09-05 00:07:08] watchdog.right                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:08] ffmpeg.right.detect            ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:08] ffmpeg.right.detect            ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : right: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:08] watchdog.garden                ERROR   : Ffmpeg process crashed unexpectedly for garden.
[2022-09-05 00:07:08] watchdog.garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:08] ffmpeg.garden.detect           ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:08] ffmpeg.garden.detect           ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:08] frigate.video                  ERROR   : garden: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : garden: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:08] watchdog.kitchen               ERROR   : Ffmpeg process crashed unexpectedly for kitchen.
[2022-09-05 00:07:08] watchdog.kitchen               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:08] ffmpeg.kitchen.detect          ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:08] ffmpeg.kitchen.detect          ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:08] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] watchdog.left                  ERROR   : Ffmpeg process crashed unexpectedly for left.
[2022-09-05 00:07:08] watchdog.left                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 00:07:08] ffmpeg.left.detect             ERROR   : Unrecognized option 'stimeout'.
[2022-09-05 00:07:08] ffmpeg.left.detect             ERROR   : Error splitting the argument list: Option not found
[2022-09-05 00:07:08] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
[2022-09-05 00:07:08] frigate.video                  ERROR   : left: Unable to read frames from ffmpeg process.
[2022-09-05 00:07:08] frigate.video                  ERROR   : left: ffmpeg process is not running. exiting capture thread...
NickM-27 commented 1 year ago

You didn't read the release notes, you need to change the stimeout to timeout in the input args

Ming-A commented 1 year ago

You didn't read the release notes, you need to change the stimeout to timeout in the input args

My bad, went and taken a look at the breaking changes again. I have changed 'stimeout' to 'timeout', and seems like there are still some bugs with ffmpeg, I have also added 'LIBVA_DRIVER_NAME: i965' into the env and I'm having the same errors.

Logs:

[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:21] frigate.video                  ERROR   : foyer: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:01:22] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-05 19:01:22] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [flv @ 0x55ca1f5ab0c0] 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
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ca1f554d80] max delay reached. need to consume packet
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ca1f554d80] RTP: missed 1324 packets
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ca1f554d80] max delay reached. need to consume packet
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ca1f554d80] RTP: missed 411 packets
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55ca1f625200] Increasing reorder buffer to 1
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ca1f554d80] max delay reached. need to consume packet
[2022-09-05 19:01:22] watchdog.foyer                 ERROR   : Ffmpeg process crashed unexpectedly for foyer.
[2022-09-05 19:01:22] watchdog.foyer                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55eb696c4c00] 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
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55eb69699d80] max delay reached. need to consume packet
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55eb69699d80] RTP: missed 479 packets
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55eb69699d80] max delay reached. need to consume packet
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55eb69699d80] RTP: missed 468 packets
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [AVHWFramesContext @ 0x7fd078071f40] Failed to sync surface 0x17: 23 (internal decoding error).
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55eb696efd80] Failed to transfer data to output frame: -5.
[2022-09-05 19:01:22] ffmpeg.foyer.detect            ERROR   : Error while processing the decoded data for stream #0:0
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ca1f554d80] RTP: missed 35 packets
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [AVHWFramesContext @ 0x7f2704073b00] Failed to sync surface 0x17: 23 (internal decoding error).
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55ca1f58cac0] Failed to transfer data to output frame: -5.
[2022-09-05 19:01:22] ffmpeg.carport-front.detect    ERROR   : Error while processing the decoded data for stream #0:0
[2022-09-05 19:01:26] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:26] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:01:32] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:01:32] frigate.video                  ERROR   : carport-front: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:01:32] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-05 19:01:32] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] max delay reached. need to consume packet
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] RTP: missed 173 packets
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] max delay reached. need to consume packet
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] RTP: missed 224 packets
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] max delay reached. need to consume packet
[2022-09-05 19:01:32] watchdog.kitchen               ERROR   : Ffmpeg process crashed unexpectedly for kitchen.
[2022-09-05 19:01:32] watchdog.kitchen               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [flv @ 0x556877eb3f00] 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
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [rtsp @ 0x556877e5dd80] max delay reached. need to consume packet
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [rtsp @ 0x556877e5dd80] RTP: missed 235 packets
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [rtsp @ 0x556877e5dd80] max delay reached. need to consume packet
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [rtsp @ 0x556877e5dd80] RTP: missed 433 packets
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x5568781d8b80] Increasing reorder buffer to 1
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x5568781d8b80] reference picture missing during reorder
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x5568781d8b80] Missing reference picture, default is 65597
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x5568782a7dc0] mmco: unref short failure
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x5568782a7dc0] illegal short term buffer state detected
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [AVHWFramesContext @ 0x7fc7c005d140] Failed to sync surface 0x17: 23 (internal decoding error).
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x556877e93840] Failed to transfer data to output frame: -5.
[2022-09-05 19:01:32] ffmpeg.kitchen.detect          ERROR   : Error while processing the decoded data for stream #0:0
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] RTP: missed 390 packets
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] max delay reached. need to consume packet
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55ac23d04d80] RTP: missed 33 packets
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [flv @ 0x55ac23d5acc0] 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
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55ac23dbe500] Increasing reorder buffer to 1
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [AVHWFramesContext @ 0x7fde90072000] Failed to sync surface 0x14: 23 (internal decoding error).
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55ac23d3e680] Failed to transfer data to output frame: -5.
[2022-09-05 19:01:32] ffmpeg.carport-front.detect    ERROR   : Error while processing the decoded data for stream #0:0
Ming-A commented 1 year ago

Currently trying some trial and error, and it seems that when I have the env, LIBVA_DRIVER_NAME: i965, 3 of my cameras would stay as green screen. The CPU for this host is 'i5-5257U'.

I have also tried commenting out the input_arg in the config and these are the logs. There are frame freezes/delays but only occasional weird discoloration instead of every time when I had the input_args for udp connections.

Logs:

[2022-09-05 19:31:16] watchdog.left                  ERROR   : Ffmpeg process crashed unexpectedly for left.
[2022-09-05 19:31:16] watchdog.left                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [flv @ 0x563c126cdac0] 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
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [h264 @ 0x563c12720240] Failed setup for format vaapi: hwaccel initialisation returned error.
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c12fdea40] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c13027700] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1306ea80] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c130b6780] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c130ff040] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1312bc80] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c12ff3fc0] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1309a680] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c130e5540] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1300cf40] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1312bc80] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c13053d40] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1309c8c0] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1300f180] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c130e5540] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1312bc80] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c12ff54c0] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c13098440] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c1300dac0] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [swscaler @ 0x563c12fd1440] [swscaler @ 0x563c130e5540] deprecated pixel format used, make sure you did set range correctly
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [rtsp @ 0x563c126c3d80] RTP H.264 NAL unit type 25 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [h264 @ 0x563c12774f00] out of range intra chroma pred mode
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [h264 @ 0x563c12774f00] error while decoding MB 85 16
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [NULL @ 0x563c126c9200] missing picture in access unit with size 1432
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [h264 @ 0x563c12789380] Invalid NAL unit 0, skipping.
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [h264 @ 0x563c12789380] no frame!
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [h264 @ 0x563c1279d800] no frame!
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : rtsp://USERNAME:PASSWORD@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : Error while decoding stream #0:0: Invalid data found when processing input
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [flv @ 0x563c126cdac0] Failed to update header with correct duration.
[2022-09-05 19:31:16] ffmpeg.left.detect             ERROR   : [flv @ 0x563c126cdac0] Failed to update header with correct filesize.
[2022-09-05 19:32:06] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36382]
[2022-09-05 19:32:07] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:32:07] frigate.video                  ERROR   : carport-front: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:32:08] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52502]
[2022-09-05 19:32:09] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36382]
[2022-09-05 19:32:09] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52502]
[2022-09-05 19:32:10] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36384]
[2022-09-05 19:32:10] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52504]
[2022-09-05 19:32:12] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52504]
[2022-09-05 19:32:15] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36384]
[2022-09-05 19:32:15] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36386]
[2022-09-05 19:32:17] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-05 19:32:17] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:32:17] ffmpeg.carport-front.detect    ERROR   : [flv @ 0x55d0ec5573c0] 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
[2022-09-05 19:32:17] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55d0ec608380] Increasing reorder buffer to 1
[2022-09-05 19:32:17] ffmpeg.carport-front.detect    ERROR   : [AVHWFramesContext @ 0x7f8894076640] Failed to sync surface 0x14: 23 (internal decoding error).
[2022-09-05 19:32:17] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55d0ec71dcc0] Failed to transfer data to output frame: -5.
[2022-09-05 19:32:17] ffmpeg.carport-front.detect    ERROR   : Error while processing the decoded data for stream #0:0
[2022-09-05 19:32:26] watchdog.foyer                 INFO    : No frames received from foyer in 20 seconds. Exiting ffmpeg...
[2022-09-05 19:32:26] watchdog.foyer                 INFO    : Waiting for ffmpeg to exit gracefully...
[2022-09-05 19:32:26] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-05 19:32:26] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:32:28] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36386]
[2022-09-05 19:32:28] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:36388]
[2022-09-05 19:32:30] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52506]
[2022-09-05 19:32:31] frigate.output                 WARNING : Unable to copy frame garden1662377531.783708 to birdseye.
[2022-09-05 19:32:31] frigate.output                 WARNING : Unable to copy frame right1662377531.912795 to birdseye.
[2022-09-05 19:32:31] frigate.output                 WARNING : Unable to copy frame left1662377532.165642 to birdseye.
[2022-09-05 19:32:31] frigate.output                 WARNING : Unable to copy frame back1662377532.121068 to birdseye.
[2022-09-05 19:32:36] watchdog.kitchen               ERROR   : Ffmpeg process crashed unexpectedly for kitchen.
[2022-09-05 19:32:36] watchdog.kitchen               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:32:36] ffmpeg.kitchen.detect          ERROR   : [flv @ 0x55b9b191bb80] 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
[2022-09-05 19:32:36] ffmpeg.kitchen.detect          ERROR   : [AVHWFramesContext @ 0x7fad6c05be40] Failed to sync surface 0x13: 23 (internal decoding error).
[2022-09-05 19:32:36] ffmpeg.kitchen.detect          ERROR   : [h264 @ 0x55b9b1789f80] Failed to transfer data to output frame: -5.
[2022-09-05 19:32:36] ffmpeg.kitchen.detect          ERROR   : Error while processing the decoded data for stream #0:0
[2022-09-05 19:32:50] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-05 19:32:50] frigate.video                  ERROR   : foyer: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:33:00] watchdog.foyer                 ERROR   : Ffmpeg process crashed unexpectedly for foyer.
[2022-09-05 19:33:00] watchdog.foyer                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:33:00] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55d9d5055a80] 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
[2022-09-05 19:33:00] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55d9d503fd80] RTP: PT=60: bad cseq 8b5c expected=7aca
[2022-09-05 19:33:00] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55d9d5055a80] Failed to update header with correct duration.
[2022-09-05 19:33:00] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55d9d5055a80] Failed to update header with correct filesize.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:05] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:06] frigate.video                  ERROR   : carport-front: Unable to read frames from ffmpeg process.
[2022-09-05 19:33:06] frigate.video                  ERROR   : carport-front: ffmpeg process is not running. exiting capture thread...
[2022-09-05 19:33:07] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-05 19:33:07] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-05 19:33:07] ffmpeg.carport-front.detect    ERROR   : [flv @ 0x55a6c0896100] 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
[2022-09-05 19:33:07] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x55a6c0881d80] CSeq 5 expected, 0 received.
[2022-09-05 19:33:07] ffmpeg.carport-front.detect    ERROR   : [AVHWFramesContext @ 0x7f92e0077280] Failed to sync surface 0x18: 23 (internal decoding error).
[2022-09-05 19:33:07] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x55a6c0a539c0] Failed to transfer data to output frame: -5.
[2022-09-05 19:33:07] ffmpeg.carport-front.detect    ERROR   : Error while processing the decoded data for stream #0:0
kdill00 commented 1 year ago

I struggle with the these hikvision cameras and keeping the stream stable and always have for some reason especially through their dvr. Try turning off h264+. Im to the point where I’m thinking I need to decode and rencode the stream before feeding frigate. I have 20 of these cameras at my business and they are a headache. I’m seeing people post about memory issues and dropped packets and they seem to all be these hikvision or other brands selling them under a diff name. Mainly the “DS” series. Pure speculation but their is something odd about them. I don’t have these issues running frigate on my home setup of using a different brand of 10 cameras.

Edit: and the h264+ turn off is if you didn’t try that after fixing the timeout setting in frigate.

Ming-A commented 1 year ago

I struggle with the these hikvision cameras and keeping the stream stable and always have for some reason especially through their dvr. Try turning off h264+. Im to the point where I’m thinking I need to decode and rencode the stream before feeding frigate. I have 20 of these cameras at my business and they are a headache. I’m seeing people post about memory issues and dropped packets and they seem to all be these hikvision or other brands selling them under a diff name. Mainly the “DS” series. Pure speculation but their is something odd about them. I don’t have these issues running frigate on my home setup of using a different brand of 10 cameras.

Edit: and the h264+ turn off is if you didn’t try that after fixing the timeout setting in frigate.

I have tried turning h264+ off for one of the cameras but it didn't change anything (forgot at which point i did it but will try again), going to try it again with all of the hikvision cameras this time and see if there's a difference. It sucks that these cameras have some stability issues. Having it played back on something like VLC is fine and has no problem though.

Ming-A commented 1 year ago

still have issues, these are the config of all my Hikvision cameras. Besides this i also have recording issues where it does not fully capture a proper 24/7 recording and there would be time skip by like 10 or 20 mins in recordings

image

Logs:

[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318211703 / dts: 830103483318211768 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318228148 / dts: 830103483318228214 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318239993 / dts: 830103483318240060 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318249920 / dts: 830103483318249988 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318259755 / dts: 830103483318259824 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318270035 / dts: 830103483318270105 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318279935 / dts: 830103483318280006 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318290173 / dts: 830103483318290245 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318300174 / dts: 830103483318300247 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318307060 / dts: 830103483318307134 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318315226 / dts: 830103483318315301 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318378614 / dts: 830103483318378690 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318395320 / dts: 830103483318395397 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318404905 / dts: 830103483318404983 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318419287 / dts: 830103483318419366 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318432600 / dts: 830103483318432680 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318444265 / dts: 830103483318444346 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318456795 / dts: 830103483318456877 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318468022 / dts: 830103483318468105 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318476028 / dts: 830103483318476112 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x555b85564ac0] Increasing reorder buffer to 1
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318485853 / dts: 830103483318485938 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318497752 / dts: 830103483318497838 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318499131 / dts: 830103483318499218 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318514829 / dts: 830103483318514917 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318564451 / dts: 830103483318564540 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318584235 / dts: 830103483318584325 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318592212 / dts: 830103483318592303 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318600397 / dts: 830103483318600489 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318612262 / dts: 830103483318612355 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318620510 / dts: 830103483318620604 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318631158 / dts: 830103483318631253 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318642014 / dts: 830103483318642110 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318651158 / dts: 830103483318651255 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x555b85564ac0] Increasing reorder buffer to 7
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318658733 / dts: 830103483318658831 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318665571 / dts: 830103483318665670 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318666235 / dts: 830103483318666335 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318667302 / dts: 830103483318667403 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318668393 / dts: 830103483318668495 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318669002 / dts: 830103483318669105 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318669426 / dts: 830103483318669530 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318672752 / dts: 830103483318672857 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318673373 / dts: 830103483318673479 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318673478 / dts: 830103483318673585 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318674259 / dts: 830103483318674367 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318676301 / dts: 830103483318676410 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] Packet duration: 830103483318678297 / dts: 830103483318678407 is out of range
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x555b855e5ec0] pts has no value
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [AVHWFramesContext @ 0x555b8562d0c0] Failed to sync surface 0x11: 23 (internal decoding error).
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x555b85564ac0] Failed to transfer data to output frame: -5.
[2022-09-11 20:39:06] ffmpeg.carport-front.detect    ERROR   : Error while processing the decoded data for stream #0:0
[2022-09-11 20:39:09] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-09-11 20:39:09] frigate.record                 ERROR   : could not convert string to float: ''
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : back: ffmpeg process is not running. exiting capture thread...
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
[2022-09-11 21:51:14] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
[2022-09-11 21:51:15] watchdog.carport-front         ERROR   : Ffmpeg process crashed unexpectedly for carport-front.
[2022-09-11 21:51:15] watchdog.carport-front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x56472fcd40c0] max delay reached. need to consume packet
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [rtsp @ 0x56472fcd40c0] RTP: missed 75 packets
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [segment @ 0x56472fdec080] 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
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [flv @ 0x56472fd09ec0] 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
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483316929823 / dts: 830103483316929823 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483316937735 / dts: 830103483316937736 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483316940668 / dts: 830103483316940670 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483316947875 / dts: 830103483316947878 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483316955038 / dts: 830103483316955042 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483316958653 / dts: 830103483316958658 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317005112 / dts: 830103483317005118 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035415 / dts: 830103483317035422 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035433 / dts: 830103483317035441 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035446 / dts: 830103483317035455 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035457 / dts: 830103483317035467 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035465 / dts: 830103483317035476 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035474 / dts: 830103483317035486 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] Packet duration: 830103483317035483 / dts: 830103483317035496 is out of range
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [mp4 @ 0x56472fd8e140] pts has no value
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [AVHWFramesContext @ 0x56472fd8de00] Failed to sync surface 0x12: 23 (internal decoding error).
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : [h264 @ 0x56472fd0a800] Failed to transfer data to output frame: -5.
[2022-09-11 21:51:15] ffmpeg.carport-front.detect    ERROR   : Error while processing the decoded data for stream #0:0
Ming-A commented 1 year ago

So I removed everything inside hardware acceleration in the config, and that has seemed to stop a lot of the error in the logs but still do have issues with reliable recording and cameras still not processing properly occasionally (similar to the screenshot above)

Logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-09-13 18:58:54] frigate.app                    INFO    : Starting Frigate (0.11.0-c461c9e)
Starting migrations
[2022-09-13 18:58:54] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-09-13 18:58:54] peewee_migrate                 INFO    : There is nothing to migrate
[2022-09-13 18:58:55] frigate.app                    INFO    : Output process started: 209
[2022-09-13 18:58:55] detector.coral                 INFO    : Starting detection process: 208
[2022-09-13 18:58:55] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for carport-front: 213
[2022-09-13 18:58:55] ws4py                          INFO    : Using epoll
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for garden: 214
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for left: 217
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for right: 220
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for back: 223
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for foyer: 225
[2022-09-13 18:58:55] frigate.app                    INFO    : Camera processor started for kitchen: 227
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for carport-front: 228
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for garden: 230
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for left: 232
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for right: 239
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for back: 246
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for foyer: 247
[2022-09-13 18:58:55] frigate.app                    INFO    : Capture process started for kitchen: 254
[2022-09-13 18:58:56] ws4py                          INFO    : Using epoll
[2022-09-13 18:58:57] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:35966]
[2022-09-13 18:58:58] frigate.edgetpu                INFO    : TPU found
[2022-09-13 18:59:11] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:35966]
[2022-09-13 18:59:58] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:00:45] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:00:52] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:00:56] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:01:06] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:02:01] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:11:54] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-13 19:13:16] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:35968]
NickM-27 commented 1 year ago

Can you provide your docker compose file?

Ming-A commented 1 year ago

Can you provide your docker compose file?

version: "3.9"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    #image: blakeblackshear/frigate:stable-amd64
    image: blakeblackshear/frigate:0.11.0-rc2
    shm_size: '256mb'
    devices:
      - /dev/bus/usb:/dev/bus/usb
    volumes:
      - /etc/localtime:/etc/localtime
      - /home/frigate/config.yml:/config/config.yml
      - /home/frigate/database:/media/frigate/database
      - /mnt/CCTV:/media/frigate
      - /mnt/CCTV/frigate/recordings:/media/frigate/recordings
      - /mnt/CCTV/frigate/clips:/media/frigate/clips
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "1935:1935" # RTMP feeds
    environment:
      FRIGATE_RTSP_PASSWORD: "password"
      #LIBVA_DRIVER_NAME: i965
NickM-27 commented 1 year ago

You're mapping the /media directory and all its subdirectories which can cause issues. I'd start by removing - /mnt/CCTV:/media/frigate

NickM-27 commented 1 year ago

Or you could leave that and comment out the other two since they're the default location anyway

Ming-A commented 1 year ago

Or you could leave that and comment out the other two since they're the default location anyway

I have removed the two and changed it to /mnt/CCTV/frigate:/media/frigate. Would let it run for a while to see if recordings would be more stable.

When there are movement in the frame, this tends to happen, but so far in the logs nothing is poping up like previously image

NickM-27 commented 1 year ago

Interesting, that's usually a camera issue. Are you currently using TCP or UDP with the cameras?

Ming-A commented 1 year ago

Looking back over this it looks like your cameras are being set to use UDP instead of TCP, in which case you need to reference https://docs.frigate.video/configuration/camera_specific#udp-only-cameras

based on what you said previously it would be UDP, but I'm not entirely sure to be honest if its running on TCP or UDP.

so my input args is input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport udp -timeout 5000000 -use_wallclock_as_timestamps 1

NickM-27 commented 1 year ago

Okay yeah is currently udp. Might be worth a test to see if -rtsp_transport tcp (just change this part) provides better results.

Ming-A commented 1 year ago

Okay yeah is currently udp. Might be worth a test to see if -rtsp_transport tcp (just change this part) provides better results.

I'll give this a try and see how it goes, so far no errors in the logs yet. Thanks for helping out :)

edit: Looking into the settings again for the cameras and it seems like the browser live view is using TCP. image

Ming-A commented 1 year ago

nvm i take it back, seems like tcp has errors in the logs

Logs:

[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] no frame!
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : Error while decoding stream #0:0: Invalid data found when processing input
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 32 4, bytestream -31
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] cabac decode of qscale diff failed at 96 67
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 96 67, bytestream 11
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 68 45, bytestream -5
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 112 4, bytestream -11
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 29 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] Undefined type (31)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] cabac decode of qscale diff failed at 18 56
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 18 56, bytestream 779
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 27 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] cabac decode of qscale diff failed at 0 65
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 0 65, bytestream 761
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 29 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] CSeq 8 expected, 7 received.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [NULL @ 0x562d660d9300] too many reference frames 32
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] cabac decode of qscale diff failed at 97 35
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 97 35, bytestream 517
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] top block unavailable for requested intra mode -1
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 109 0, bytestream 1071
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 26 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 29 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [NULL @ 0x562d660d9300] missing picture in access unit with size 2863
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] no frame!
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : Error while decoding stream #0:0: Invalid data found when processing input
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 60 30, bytestream -7
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] cabac decode of qscale diff failed at 55 5
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 55 5, bytestream 691
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [NULL @ 0x562d660d9300] too many reference frames 32
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 29 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 29 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] A non-intra slice in an IDR NAL unit.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] decode_slice_header error
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] CSeq 9 expected, 8 received.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] Undefined type (30)
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [NULL @ 0x562d660d9300] missing picture in access unit with size 628
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] no frame!
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : Error while decoding stream #0:0: Invalid data found when processing input
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] nal size exceeds length: 64583 1425
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] left block unavailable for requested intra mode
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 0 2, bytestream 75
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [NULL @ 0x562d660d9300] SEI type 187 size 1848 truncated at 560
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] SEI type 187 size 1848 truncated at 551
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 108 67, bytestream -13
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 1 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] error while decoding MB 83 51, bytestream -7
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [rtsp @ 0x562d660d3f80] RTP H.264 NAL unit type 27 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [h264 @ 0x562d660f1280] Invalid NAL unit 0, skipping.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   :     Last message repeated 2 times
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : rtsp://REMOVED:REMOVED@10.69.25.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1: corrupt decoded frame in stream 0
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [flv @ 0x562d660e9ec0] Failed to update header with correct duration.
[2022-09-13 23:47:22] ffmpeg.left.detect             ERROR   : [flv @ 0x562d660e9ec0] Failed to update header with correct filesize.
NickM-27 commented 1 year ago

Okay at least worth a shot. If your camera supports another stream type like RTMP might be worth trying that.

Also, are you applying that input arg for all cameras? I notice left throws errors but garden is the camera with issues visually. Does garden work okay with TCP?

Ming-A commented 1 year ago

Okay at least worth a shot. If your camera supports another stream type like RTMP might be worth trying that.

Also, are you applying that input arg for all cameras? I notice left throws errors but garden is the camera with issues visually. Does garden work okay with TCP?

the logs I pasted are just the last 100 from portainer, above the 100 would be the rest of the other cameras so it seems like all the cameras that also has the errors.

Looking in the setting, I don't see any RTMP so I'm assuming that it does not support it. image

NickM-27 commented 1 year ago

It may be RTMP over HTTP. That's how the reolink cameras work, and they have similar issues with RTSP.

If you can might be worth trying http with https://deploy-preview-2829--frigate-docs.netlify.app/configuration/camera_specific#reolink-410520-possibly-others input args

NickM-27 commented 1 year ago

Might have to look up what the correct url is

Ming-A commented 1 year ago

It may be RTMP over HTTP. That's how the reolink cameras work, and they have similar issues with RTSP.

If you can might be worth trying http with https://deploy-preview-2829--frigate-docs.netlify.app/configuration/camera_specific#reolink-410520-possibly-others input args

I'll go research more on the camera if there's rtmp for it, but a quick google search and doesn't seem like much

NickM-27 commented 1 year ago

Looks like this is the url to try (might want to start by getting the ffprobe of it, then can figure out what args to use) http://<IP address of IPC>:<HTTP port>/ISAPI/Streaming/channels/102/httpPreview

Ming-A commented 1 year ago

Looks like this is the url to try (might want to start by getting the ffprobe of it, then can figure out what args to use) http://<IP address of IPC>:<HTTP port>/ISAPI/Streaming/channels/102/httpPreview

How did you find the link for the camera? Tried googling but didn't see much info, maybe searched for the wrong thing?

Currently trying this out in VLC, and it does prompt me for the login but it seems like the channel or something else is wrong (it stays stuck in loading), I have placed the <HTTP port> as 80 since that's what it shows in the screenshot above. Would be trying out different channels number and see if any of it works

Ming-A commented 1 year ago

Didnt manage to get http/RTMP to work yet but i found out that the rtsp works too when i removed transportmode=?transportmode=unicast&profile=Profile_1 from the link

ffprobe of the new link:

root@3488507475f8:/opt/frigate# ffprobe rtsp://REMOVED:REMOVED@10.69.25.11:554/Streaming/Channels/101
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-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=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, rtsp, from 'rtsp://REMOVED:REMOVED@10.69.25.11:554/Streaming/Channels/101':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.067000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn
NickM-27 commented 1 year ago

So it's working as expected now?

Ming-A commented 1 year ago

So it's working as expected now?

Sadly no, after letting it run for a while and looking at recordings, there's still freezing and distortions

NickM-27 commented 1 year ago

Another thing you could maybe try is using https://github.com/aler9/rtsp-simple-server as a proxy, might fix the weird issues with the camera stream

Ming-A commented 1 year ago

Another thing you could maybe try is using https://github.com/aler9/rtsp-simple-server as a proxy, might fix the weird issues with the camera stream

I would give this a try and see how it goes, so far been googling if it's possible to setup multiple streams with one docker container or if I would need one for each

NickM-27 commented 1 year ago

Another thing you could maybe try is using https://github.com/aler9/rtsp-simple-server as a proxy, might fix the weird issues with the camera stream

I would give this a try and see how it goes, so far been googling if it's possible to setup multiple streams with one docker container or if I would need one for each

One docker container handles all your streams

Ming-A commented 1 year ago

Another thing you could maybe try is using https://github.com/aler9/rtsp-simple-server as a proxy, might fix the weird issues with the camera stream

I would give this a try and see how it goes, so far been googling if it's possible to setup multiple streams with one docker container or if I would need one for each

One docker container handles all your streams

after putting the cameras into rtsp-simple-server, they look alright in vlc but after putting all the 7 proxies into frigate, it seems like the cameras are still sluggish where theres time skips and distortion

Logs on frigate (is not just the foyer camera, all cameras are affected):

[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] max delay reached. need to consume packet
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] RTP: missed 45 packets
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] error while decoding MB 81 72, bytestream -7
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] reference picture missing during reorder
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] Missing reference picture, default is 65623
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] max delay reached. need to consume packet
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] RTP: missed 357 packets
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] error while decoding MB 131 34, bytestream -7
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] max delay reached. need to consume packet
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] RTP: missed 84 packets
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] reference picture missing during reorder
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] Missing reference picture, default is 65653
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] error while decoding MB 129 53, bytestream -5
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] mmco: unref short failure
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] illegal short term buffer state detected
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] max delay reached. need to consume packet
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55b52dc71f80] RTP: missed 4 packets
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55b52ddd5240] error while decoding MB 94 13, bytestream -9
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : Finishing stream 2:0 without any data written to it.
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55b52dca65c0] Failed to update header with correct duration.
[2022-09-21 14:03:45] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55b52dca65c0] Failed to update header with correct filesize.
[2022-09-21 14:03:59] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:49528]
[2022-09-21 14:04:00] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:49532]
[2022-09-21 14:04:04] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41510]
[2022-09-21 14:04:05] watchdog.foyer                 INFO    : No frames received from foyer in 20 seconds. Exiting ffmpeg...
[2022-09-21 14:04:05] watchdog.foyer                 INFO    : Waiting for ffmpeg to exit gracefully...
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: Unable to read frames from ffmpeg process.
[2022-09-21 14:04:06] frigate.video                  ERROR   : foyer: ffmpeg process is not running. exiting capture thread...
[2022-09-21 14:04:16] watchdog.foyer                 ERROR   : Ffmpeg process crashed unexpectedly for foyer.
[2022-09-21 14:04:16] watchdog.foyer                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eaf9be00] reference picture missing during reorder
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eaf9be00] Missing reference picture, default is 65559
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] reference picture missing during reorder
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] Missing reference picture, default is 65559
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] reference picture missing during reorder
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] Missing reference picture, default is 65589
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55f4eaf96f80] max delay reached. need to consume packet
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55f4eaf96f80] RTP: missed 69 packets
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55f4eaf96f80] max delay reached. need to consume packet
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55f4eaf96f80] RTP: missed 526 packets
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] error while decoding MB 109 6, bytestream -13
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55f4eaf96f80] max delay reached. need to consume packet
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [rtsp @ 0x55f4eaf96f80] RTP: missed 97 packets
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] reference picture missing during reorder
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] Missing reference picture, default is 65627
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] error while decoding MB 121 8, bytestream -9
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] reference picture missing during reorder
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [h264 @ 0x55f4eafcf400] Missing reference picture, default is 65657
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : Finishing stream 2:0 without any data written to it.
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55f4eafd01c0] Failed to update header with correct duration.
[2022-09-21 14:04:16] ffmpeg.foyer.detect            ERROR   : [flv @ 0x55f4eafd01c0] Failed to update header with correct filesize.
[2022-09-21 14:04:18] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41510]
[2022-09-21 14:04:21] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41512]
[2022-09-21 14:05:05] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41512]
[2022-09-21 14:17:28] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41538]
[2022-09-21 14:21:12] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41538]
[2022-09-21 14:22:25] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-21 14:22:49] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41542]
[2022-09-21 14:26:59] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41542]
[2022-09-21 14:27:30] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41546]
[2022-09-21 14:27:34] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41546]
[2022-09-21 14:27:38] frigate.http                   ERROR   : No recordings found for the requested time range
[2022-09-21 14:27:44] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41548]
[2022-09-21 14:27:45] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:41548]
github-actions[bot] commented 1 year 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.

Rajkanwars15 commented 9 months ago

Hello, has anyone been able to find afix? I'm facing the same issue with my HikVision cameras

lucacalcaterra commented 7 months ago

Same issue on my Hikvision cameras (quite old cameras)

Farshidgolkarihagh commented 4 months ago

I have the same issue. Any one has a solution to this?

robinscheurwater commented 3 months ago

Same for me. I have 2 models of Hikvision with the same issue. Any solution?