blakeblackshear / frigate

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

[Camera Support]: error "no frames have been received" after move detect from default (cpu) to codeproject/deepstack #8173

Closed boyphongsakorn closed 11 months ago

boyphongsakorn commented 11 months ago

Describe the problem you are having

i change from default detect to codeproject/deepstack after that all 5 camera show "no frames have been received" wait almost 12 hours, 3 camera show "no frames have been received" some camera watch from web (mse mode) after that is show "no frames have been received" (is error i get from version 12 to beta 13 version 11 is never get error like that)

Version

0.13.0-beta2

Frigate config file

mqtt:
  host: 192.168.31.227
  user: mqtt
  password: xxxxxxxx

detectors:
  deepstack:
    api_url: http://192.168.31.215:32168/v1/vision/detection
    type: deepstack
    api_timeout: 120

environment_vars:
  TZ: Asia/Bangkok

ffmpeg:
  #hwaccel_args: ["-hwaccel", "vaapi", "-hwaccel_device", "/dev/dri/renderD128", "-hwaccel_output_format", "yuv420p"]
  hwaccel_args: preset-nvidia-h265
  output_args:
    #record: ["-f", "segment", "-segment_time", "10", "-segment_format", "mp4", "-reset_timestamps", "1", "-strftime", "1", "-c:v", "copy", "-c:a", "aac"]
    #rtmp: ["-c", "copy", "-f", "flv", "-c:v", "copy", "-c:a", "aac"]
    #rtmp: preset-rtsp-restream
    detect: -threads 2 -f rawvideo -pix_fmt yuv420p
    record: preset-record-generic-audio-copy
    #rtmp: preset-rtmp-generic
  retry_interval: 1

detect:
  # Optional: width of the frame for the input with the detect role (default: shown below)
  width: 1280
  # Optional: height of the frame for the input with the detect role (default: shown below)
  height: 720

go2rtc:
  streams:
    # fh_camera: ffmpeg:rtsp://admin:xxxxxxxx@192.168.31.208:554#video=copy#audio=copy#audio=opus
    # ff_camera: ffmpeg:rtsp://boyalone99:xxxxxxxx@192.168.31.207:554/stream1#video=copy#audio=copy#audio=opus
    # ff_camera_sub: ffmpeg:rtsp://boyalone99:xxxxxxxx@192.168.31.207:554/stream2#video=copy#audio=copy#audio=opus
    # dw_camera: ffmpeg:rtsp://admin:xxxxxxxx@192.168.31.205:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif#video=copy#audio=copy#audio=opus
    # dw_camera_sub: ffmpeg:rtsp://admin:xxxxxxxx@192.168.31.205:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif#video=copy#audio=copy#audio=opus
    dw_camera:
      - rtsp://admin:xxxxxxxx@192.168.31.208:554
      - ffmpeg:dw_camera#video=h264#audio=aac
    ff_camera:
      - rtsp://boyalone99:xxxxxxxx@192.168.31.207:554/stream1
      - ffmpeg:ff_camera#video=h264#audio=aac
    ff_camera_sub:
      - rtsp://boyalone99:xxxxxxxx@192.168.31.207:554/stream2
      - ffmpeg:ff_camera_sub#video=h264#audio=aac
    fh_camera:
      - rtsp://admin:L2F9CD06@192.168.31.205:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
    fh_camera_sub:
      - rtsp://admin:L2F9CD06@192.168.31.205:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
    # sfh_camera:
    #   - rtsp://192.168.31.88:5554/chinacamera
    #   - "ffmpeg:sfh_camera#video=h264#audio=aac"
    # sfh_camera_sub:
    #   - rtsp://192.168.31.88:5554/chinacamera_sub
    #   - "ffmpeg:sfh_camera_sub#video=h264#audio=aac"
    # sfh_camera:
    #   - rtsp://admin:xxxxxxxx@192.168.31.109:10554/udp/av0_0
    #   - "ffmpeg:sfh_camera#input=rtsp/udp#video=h264#audio=aac"
    # sfh_camera_sub:
    #   - rtsp://admin:xxxxxxxx@192.168.31.109:10554/udp/av0_1
    #   - "ffmpeg:sfh_camera_sub#input=rtsp/udp#video=h264#audio=aac"
    sfh_camera:
      - ffmpeg:rtsp://admin:xxxxxxxx@192.168.31.109:10554/tcp/av0_0#video=h264#audio=aac
    sfh_camera_sub:
      - ffmpeg:rtsp://admin:xxxxxxxx@192.168.31.109:10554/tcp/av0_1#video=h264#audio=aac
    future_camera:
      - rtsp://admin:xxxxxxxx@192.168.31.118:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
    future_camera_sub:
      - rtsp://admin:xxxxxxxx@192.168.31.118:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
  webrtc:
    candidates:
      - 192.168.31.220:9005

cameras:
  fh_camera:
    ffmpeg:
      #input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
      #input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport udp -timeout 5000000 -use_wallclock_as_timestamps 1
      inputs:
        #- path: rtmp://192.168.31.210:1935/cctv/uterum
        #- path: rtsp://admin:xxxxxxxx@192.168.31.205:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
        - path: rtsp://127.0.0.1:8554/fh_camera?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - record
          #- path: rtmp://192.168.31.210:1935/cctv/tertwo
          #- path: rtsp://admin:xxxxxxxx@192.168.31.205:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
          #roles:
          #- restream
        - path: rtsp://127.0.0.1:8554/fh_camera_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
    # live:
    #   stream_name: fh_camera
    objects:
      track:
        - person
        - car
        - motorcycle
      filters:
        car:
          mask:
            - 399,332,1280,73,1280,443
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: false
      retain:
        default: 2
    motion:
      mask:
        - 399,332,1280,73,1280,443
        - 886,70,1228,69,1227,44,886,43
  # ftfh_camera:
  #   ffmpeg:
  #     input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
  #     inputs:
  #       - path: http://192.168.31.92:8080/video
  #         roles:
  #           - detect
  #     output_args:
  #       record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
  #       rtmp: -c:v libx264 -an -f flv
  #   objects:
  #     track:
  #       - person
  #       - cat
  #       - dog
  #   snapshots:
  #     enabled: true
  #     timestamp: false
  #     bounding_box: false
  #     retain:
  #       default: 2
  ff_camera:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-aac
      inputs:
        #- path: rtsp://boyalone99:xxxxxxxx@192.168.31.207:554/stream1
        - path: rtsp://127.0.0.1:8554/ff_camera_sub?video=copy&audio=aac
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/ff_camera?video=copy&audio=aac
          input_args: preset-rtsp-restream-low-latency
          roles:
            - record
          #- path: rtsp://boyalone99:xxxxxxxx@192.168.31.207:554/stream2
          #roles:
          #- restream
    live:
      stream_name: ff_camera
    objects:
      track:
        - person
        - cat
        - dog
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: false
      retain:
        default: 2
    motion:
      mask:
        - 459,49,465,0,0,0,0,46
    #mqtt:
    #  timestamp: false
    #  bounding_box: false
    #  crop: True
    #  quality: 100
    #  height: 500
    #clips:
    #  enabled: true
    #  retain:
    #    default: 7
  dw_camera:
    ffmpeg:
      inputs:
        #- path: rtsp://admin:xxxxxxxx@192.168.31.208:554
        - path: rtsp://127.0.0.1:8554/dw_camera?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - record
              #- restream
    objects:
      track:
        - person
        - cat
        - dog
      filters:
        person:
          mask:
            - 1182,720,857,720,981,325,1143,314
            - 363,684,363,720,56,720,56,685
            - 792,464,806,653,577,599,462,493,452,391
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: false
      retain:
        default: 2
    motion:
      mask:
        - 1182,720,857,720,981,325,1143,314
        - 363,684,363,720,56,720,56,685
        - 792,464,806,653,577,599,462,493,452,391
    #mqtt:
    #  timestamp: false
    #  bounding_box: false
    #  crop: True
    #  quality: 100
    #  height: 500
  #gm_camera: # <------ Name the camera
  #  ffmpeg:
  #    inputs:
  #      - path: rtsp://192.168.31.206:8554/mjpeg/1 # <----- Update for your camera
  #        roles:
  #          - detect
  #    output_args:
  #      detect: -vf transpose=2,transpose=2 -f rawvideo -pix_fmt yuv420p
  #  restream:
  # Optional: Enable the RTMP stream (default: True)
  #    enabled: false
  #  detect:
  #    width: 640 # <---- update for your camera's resolution
  #    height: 480 # <---- update for your camera's resolution
  sfh_camera:
    ffmpeg:
      hwaccel_args: preset-nvidia-h264
      # input_args: preset-rtsp-udp
      # output_args:
      #   record: preset-record-generic-audio-aac
      inputs:
        # - path: rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=aac
        #   input_args: preset-rtsp-restream-low-latency
        #   roles:
        #     - record
        #     # - detect
        # - path: rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=aac
        #   input_args: preset-rtsp-restream-low-latency
        #   roles:
        #     # - record
        #     - detect
        - path: rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - record
              # - detect
        - path: rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            # - record
            - detect
          # - path: rtmp://192.168.31.86:1935/cctv/uterum
          # input_args: preset-rtsp-restream-low-latency
          # input_args: preset-rtmp-generic
    objects:
      track:
        - person
        - car
        - motorcycle
      filters:
        car:
          mask:
        motorcycle:
          mask:
        person:
          mask:
            - 534,720,1011,720,1074,415,834,361
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: false
      retain:
        default: 2
    motion:
      mask:
        - 324,21,329,48,0,50,0,21
  future_camera:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/future_camera?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/future_camera_sub?video=copy&audio=copy
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
    live:
      stream_name: future_camera
    objects:
      track:
        - person
          # - car
          # - motorcycle
      # filters:
      #   car:
      #     mask:
      #       - 719,195,1280,292,1280,0,168,137
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: false
      retain:
        default: 2
    motion:
      mask:
        # - 719,195,1280,292,1280,0,168,137
        - 1225,42,1225,73,893,71,890,41

record:
  enabled: true
  retain:
    days: 7
    mode: all

birdseye:
  enabled: true
  mode: motion

ui:
  # Optional: Set the default live mode for cameras in the UI (default: shown below)
  live_mode: mse
  # Optional: Set a timezone to use in the UI (default: use browser local time)
  timezone: asia/bangkok

Relevant log output

in comment

FFprobe output from your camera

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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
[rtsp @ 0x152704900] Missing PPS in sprop-parameter-sets, ignoring
Input #0, rtsp, from 'rtsp://admin:xxxxxxxx@192.168.31.208:554':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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://boyalone99:xxxxxxxx@192.168.31.207:554/stream1':
  Metadata:
    title           : Session streamed by "TP-LINK RTSP Server"
    comment         : stream1
  Duration: N/A, start: 0.030750, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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://boyalone99:xxxxxxxx@192.168.31.207:554/stream2':
  Metadata:
    title           : Session streamed by "TP-LINK RTSP Server"
    comment         : stream2
  Duration: N/A, start: 0.035500, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 640x360, 15 fps, 15 tbr, 90k tbn
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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://admin:xxxxxxxx@192.168.31.205:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
  Stream #0:2: Data: none
Unsupported codec with id 0 for input stream 2

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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://admin:xxxxxxxx@192.168.31.205:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 640x480, 15 fps, 20 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
  Stream #0:2: Data: none
Unsupported codec with id 0 for input stream 2

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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
[rtsp @ 0x139605600] max delay reached. need to consume packet
[rtsp @ 0x139605600] RTP: missed 1 packets
Input #0, rtsp, from 'rtsp://admin:xxxxxxxx@192.168.31.118:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
  Stream #0:2: Data: none
Unsupported codec with id 0 for input stream 2

ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  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://admin:xxxxxxxx@192.168.31.118:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 640x480, 15 fps, 15 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
  Stream #0:2: Data: none
Unsupported codec with id 0 for input stream 2

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

IMOU,TPLink (Tapo),EZVIZ

Any other information that may be helpful

No response

boyphongsakorn commented 11 months ago

log

2023-10-14 22:27:25.124078747  [INFO] Preparing Frigate...
2023-10-14 22:27:25.134428986  [INFO] Starting Frigate...
2023-10-14 22:27:26.454377329  [2023-10-14 22:27:26] frigate.app                    INFO    : Starting Frigate (0.13.0-0858859)
2023-10-14 22:27:26.454475024  [2023-10-14 22:27:26] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-10-14 22:27:26.501145727  [2023-10-14 22:27:26] peewee_migrate.logs            INFO    : Starting migrations
2023-10-14 22:27:26.504509730  [2023-10-14 22:27:26] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-10-14 22:27:26.550648834  [2023-10-14 22:27:26] frigate.app                    INFO    : Recording process started: 585
2023-10-14 22:27:26.553526965  [2023-10-14 22:27:26] frigate.app                    INFO    : go2rtc process pid: 89
2023-10-14 22:27:26.570784850  [2023-10-14 22:27:26] detector.deepstack             INFO    : Starting detection process: 595
2023-10-14 22:27:26.573623927  [2023-10-14 22:27:26] frigate.app                    INFO    : Output process started: 597
2023-10-14 22:27:26.578808424  [2023-10-14 22:27:26] frigate.app                    INFO    : Camera processor started for fh_camera: 601
2023-10-14 22:27:26.584792418  [2023-10-14 22:27:26] frigate.app                    INFO    : Camera processor started for ff_camera: 603
2023-10-14 22:27:26.589875944  [2023-10-14 22:27:26] frigate.app                    INFO    : Camera processor started for dw_camera: 605
2023-10-14 22:27:26.596044989  [2023-10-14 22:27:26] frigate.app                    INFO    : Camera processor started for sfh_camera: 608
2023-10-14 22:27:26.601696011  [2023-10-14 22:27:26] frigate.app                    INFO    : Camera processor started for future_camera: 612
2023-10-14 22:27:26.608202857  [2023-10-14 22:27:26] frigate.app                    INFO    : Capture process started for fh_camera: 613
2023-10-14 22:27:26.614219083  [2023-10-14 22:27:26] frigate.app                    INFO    : Capture process started for ff_camera: 618
2023-10-14 22:27:26.626575558  [2023-10-14 22:27:26] frigate.app                    INFO    : Capture process started for dw_camera: 623
2023-10-14 22:27:26.627214821  [2023-10-14 22:27:26] frigate.app                    INFO    : Capture process started for sfh_camera: 629
2023-10-14 22:27:26.633057797  [2023-10-14 22:27:26] frigate.app                    INFO    : Capture process started for future_camera: 636
2023-10-14 22:50:22.526536416  [2023-10-14 22:50:22] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 22:50:22.526722169  [2023-10-14 22:50:22] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 22:50:23.189059274  [2023-10-14 22:50:23] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 22:50:23.189159545  [2023-10-14 22:50:23] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 22:50:23.189268191  [2023-10-14 22:50:23] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Connection timed out
2023-10-14 22:50:23.200529759  [2023-10-14 22:50:23] ffmpeg.sfh_camera.record       ERROR   : [segment @ 0x5594cbe52980] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-10-14 22:50:23.200626373  [2023-10-14 22:50:23] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Connection timed out
2023-10-14 22:50:23.200719820  [2023-10-14 22:50:23] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 22:50:23.200806885  [2023-10-14 22:50:23] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 22:50:28.223973757  [2023-10-14 22:50:28] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 22:50:28.224125415  [2023-10-14 22:50:28] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 22:50:29.213439699  [2023-10-14 22:50:29] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 22:50:29.213601166  [2023-10-14 22:50:29] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 22:50:29.213740580  [2023-10-14 22:50:29] ffmpeg.sfh_camera.detect       ERROR   : [rtsp @ 0x5584e114fe40] method DESCRIBE failed: 404 Not Found
2023-10-14 22:50:29.213876728  [2023-10-14 22:50:29] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 22:50:29.225502489  [2023-10-14 22:50:29] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x55f73f2ccf00] method DESCRIBE failed: 404 Not Found
2023-10-14 22:50:29.225561470  [2023-10-14 22:50:29] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 22:50:29.225633918  [2023-10-14 22:50:29] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 22:50:29.225704562  [2023-10-14 22:50:29] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 22:50:29.258898657  [2023-10-14 22:50:29] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 22:50:29.259180241  [2023-10-14 22:50:29] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 22:50:30.236168026  [2023-10-14 22:50:30] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 22:50:30.236352296  [2023-10-14 22:50:30] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 22:50:30.236524954  [2023-10-14 22:50:30] ffmpeg.sfh_camera.detect       ERROR   : [rtsp @ 0x558e433d3e40] method DESCRIBE failed: 404 Not Found
2023-10-14 22:50:30.236688504  [2023-10-14 22:50:30] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 22:50:30.249235331  [2023-10-14 22:50:30] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x564ae1cb5f00] method DESCRIBE failed: 404 Not Found
2023-10-14 22:50:30.249244478  [2023-10-14 22:50:30] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 22:50:30.249317036  [2023-10-14 22:50:30] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 22:50:30.249393421  [2023-10-14 22:50:30] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:20:50.012222089  [2023-10-14 23:20:50] ffmpeg.sfh_camera.record       ERROR   : [segment @ 0x55679a61bf40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-10-14 23:20:50.012292773  [2023-10-14 23:20:50] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Connection timed out
2023-10-14 23:20:50.012351384  [2023-10-14 23:20:50] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:20:50.012412480  [2023-10-14 23:20:50] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:20:55.133068699  [2023-10-14 23:20:55] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 23:20:55.133135465  [2023-10-14 23:20:55] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 23:20:56.024410696  [2023-10-14 23:20:56] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 23:20:56.033516494  [2023-10-14 23:20:56] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 23:20:56.033875977  [2023-10-14 23:20:56] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Connection timed out
2023-10-14 23:20:56.051458018  [2023-10-14 23:20:56] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x562978198f00] method DESCRIBE failed: 404 Not Found
2023-10-14 23:20:56.051588295  [2023-10-14 23:20:56] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:20:56.051692312  [2023-10-14 23:20:56] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:20:56.054800550  [2023-10-14 23:20:56] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:20:56.058321060  [2023-10-14 23:20:56] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 23:20:56.058555344  [2023-10-14 23:20:56] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 23:20:57.058622746  [2023-10-14 23:20:57] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 23:20:57.058822485  [2023-10-14 23:20:57] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 23:20:57.059022986  [2023-10-14 23:20:57] ffmpeg.sfh_camera.detect       ERROR   : [rtsp @ 0x563c02f9be40] method DESCRIBE failed: 404 Not Found
2023-10-14 23:20:57.059225209  [2023-10-14 23:20:57] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:20:57.071474432  [2023-10-14 23:20:57] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x5599ff127f00] method DESCRIBE failed: 404 Not Found
2023-10-14 23:20:57.071682096  [2023-10-14 23:20:57] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:20:57.071880693  [2023-10-14 23:20:57] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:20:57.072047749  [2023-10-14 23:20:57] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:51:17.817541036  [2023-10-14 23:51:17] ffmpeg.sfh_camera.record       ERROR   : [segment @ 0x558f936b8880] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-10-14 23:51:17.817726809  [2023-10-14 23:51:17] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Connection timed out
2023-10-14 23:51:17.817891491  [2023-10-14 23:51:17] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:51:17.818046926  [2023-10-14 23:51:17] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:51:21.832480844  [2023-10-14 23:51:21] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x56346021ef00] method DESCRIBE failed: 404 Not Found
2023-10-14 23:51:21.832556618  [2023-10-14 23:51:21] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:51:21.832631550  [2023-10-14 23:51:21] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:51:21.832690532  [2023-10-14 23:51:21] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:51:22.425749370  [2023-10-14 23:51:22] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 23:51:22.425939741  [2023-10-14 23:51:22] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 23:51:22.842790237  [2023-10-14 23:51:22] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 23:51:22.842979476  [2023-10-14 23:51:22] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 23:51:22.843151693  [2023-10-14 23:51:22] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Connection timed out
2023-10-14 23:51:22.861159860  [2023-10-14 23:51:22] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x5570b6331f00] method DESCRIBE failed: 404 Not Found
2023-10-14 23:51:22.861335904  [2023-10-14 23:51:22] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:51:22.861497320  [2023-10-14 23:51:22] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:51:22.861632196  [2023-10-14 23:51:22] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 23:51:22.881844215  [2023-10-14 23:51:22] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-14 23:51:22.881979472  [2023-10-14 23:51:22] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-14 23:51:23.877975137  [2023-10-14 23:51:23] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-14 23:51:23.878041342  [2023-10-14 23:51:23] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-14 23:51:23.878108901  [2023-10-14 23:51:23] ffmpeg.sfh_camera.detect       ERROR   : [rtsp @ 0x555eadbf7e40] method DESCRIBE failed: 404 Not Found
2023-10-14 23:51:23.878171139  [2023-10-14 23:51:23] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:51:23.894273229  [2023-10-14 23:51:23] ffmpeg.sfh_camera.record       ERROR   : [rtsp @ 0x5643d8acbf00] method DESCRIBE failed: 404 Not Found
2023-10-14 23:51:23.894327923  [2023-10-14 23:51:23] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Server returned 404 Not Found
2023-10-14 23:51:23.894384440  [2023-10-14 23:51:23] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-14 23:51:23.894463059  [2023-10-14 23:51:23] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-15 00:21:43.757257053  [2023-10-15 00:21:43] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-15 00:21:43.757420483  [2023-10-15 00:21:43] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-15 00:21:44.631510945  [2023-10-15 00:21:44] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-15 00:21:44.631568834  [2023-10-15 00:21:44] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-15 00:21:44.631616856  [2023-10-15 00:21:44] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Connection timed out
2023-10-15 00:21:49.642158366  [2023-10-15 00:21:49] ffmpeg.sfh_camera.record       ERROR   : [segment @ 0x562429debd00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-10-15 00:21:49.645397712  [2023-10-15 00:21:49] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Connection timed out
2023-10-15 00:21:49.645456824  [2023-10-15 00:21:49] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-15 00:21:49.645494426  [2023-10-15 00:21:49] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-15 00:21:49.751112071  [2023-10-15 00:21:49] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-15 00:21:49.751167917  [2023-10-15 00:21:49] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-15 00:21:50.650274054  [2023-10-15 00:21:50] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-15 00:21:50.650376839  [2023-10-15 00:21:50] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-15 00:21:50.650474935  [2023-10-15 00:21:50] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Invalid data found when processing input
2023-10-15 00:21:55.662474262  [2023-10-15 00:21:55] ffmpeg.sfh_camera.record       ERROR   : rtsp://127.0.0.1:8554/sfh_camera?video=copy&audio=copy: Invalid data found when processing input
2023-10-15 00:21:55.662618215  [2023-10-15 00:21:55] watchdog.sfh_camera            INFO    : Terminating the existing ffmpeg process...
2023-10-15 00:21:55.662752370  [2023-10-15 00:21:55] watchdog.sfh_camera            INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-15 00:21:55.771882460  [2023-10-15 00:21:55] frigate.video                  ERROR   : sfh_camera: Unable to read frames from ffmpeg process.
2023-10-15 00:21:55.772065697  [2023-10-15 00:21:55] frigate.video                  ERROR   : sfh_camera: ffmpeg process is not running. exiting capture thread...
2023-10-15 00:21:56.672145883  [2023-10-15 00:21:56] watchdog.sfh_camera            ERROR   : Ffmpeg process crashed unexpectedly for sfh_camera.
2023-10-15 00:21:56.672218151  [2023-10-15 00:21:56] watchdog.sfh_camera            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-10-15 00:21:56.672281350  [2023-10-15 00:21:56] ffmpeg.sfh_camera.detect       ERROR   : rtsp://127.0.0.1:8554/sfh_camera_sub?video=copy&audio=copy: Invalid data found when processing input
2023-10-15 03:58:27.701911316  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 141583800, current: 141583455; changing to 141583801. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.708255645  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.708385902  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 141624676, current: 141624284; changing to 141624677. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.708515458  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.708741547  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 141882944, current: 141882908; changing to 141882945. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.708916148  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.709666462  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 142678933, current: 142678837; changing to 142678934. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.709675139  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.709688905  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 142716909, current: 142716827; changing to 142716910. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.709721637  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.709764418  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 143426465, current: 143426453; changing to 143426466. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.709905436  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.710003752  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 143746257, current: 143745949; changing to 143746258. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.710157384  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.710297850  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 145154095, current: 145154079; changing to 145154096. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.710467522  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.710597258  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 145465621, current: 145465551; changing to 145465622. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.710710904  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.710849868  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 145605231, current: 145604471; changing to 145605232. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.710941983  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.711055919  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 146980925, current: 146980892; changing to 146980926. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.711163002  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.711289773  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 147321752, current: 147321718; changing to 147321753. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.711404190  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.711543294  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 147323766, current: 147323744; changing to 147323767. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.711688229  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.711819758  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 147497005, current: 147496898; changing to 147497006. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.711943443  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.712069382  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 147632649, current: 147632017; changing to 147632650. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.712203446  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.712351257  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 148316030, current: 148315935; changing to 148316031. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.712485602  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.712628573  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 148595436, current: 148595416; changing to 148595437. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.712760073  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.712883046  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 148597548, current: 148597351; changing to 148597549. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.713004426  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.713135796  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 148913400, current: 148913355; changing to 148913401. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.713248680  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.713380680  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   :     Last message repeated 1 times
2023-10-15 03:58:27.713498254  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150043561, current: 150043448; changing to 150043562. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.713615526  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.713730695  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150122396, current: 150122360; changing to 150122397. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.713845332  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.713966392  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150334071, current: 150333960; changing to 150334072. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.714088233  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.714215445  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150336008, current: 150335902; changing to 150336009. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.714333438  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.714492130  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150466638, current: 150466559; changing to 150466639. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.714631444  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.714840841  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150932545, current: 150932272; changing to 150932546. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.714979915  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.715222786  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 150964240, current: 150964094; changing to 150964241. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.715419239  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.715571237  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 151106549, current: 151106540; changing to 151106550. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.715786115  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.716024507  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 151111542, current: 151111370; changing to 151111543. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.716156167  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.716285453  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 151242008, current: 151241980; changing to 151242009. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.716435678  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.716590481  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 151364094, current: 151364059; changing to 151364095. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.716731619  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:0; previous: 291367615, current: 291367615; changing to 291367616. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.716877797  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.717007924  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 151988293, current: 151988246; changing to 151988294. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.717146927  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.717276734  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 152062721, current: 152062620; changing to 152062722. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.717419174  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.717556775  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 152313193, current: 152312787; changing to 152313194. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.717696410  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.717850322  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 152366677, current: 152366502; changing to 152366678. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.718058658  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.718193383  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 154042950, current: 154042868; changing to 154042951. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.718324833  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.718504033  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 154970455, current: 154970392; changing to 154970456. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.718721566  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.718924992  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 155069154, current: 155068937; changing to 155069155. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.719112688  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.719235431  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 155168649, current: 155168247; changing to 155168650. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.719376579  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.719520862  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 155417790, current: 155417740; changing to 155417791. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.719653775  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.719788490  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 155595058, current: 155595033; changing to 155595059. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.719930530  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.720066868  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 155654823, current: 155654656; changing to 155654824. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.720199801  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.720336250  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 156037083, current: 156037061; changing to 156037084. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.720456307  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.720566547  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157013763, current: 157011955; changing to 157013764. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.720694730  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157013764, current: 157012979; changing to 157013765. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.720824867  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.720941208  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157168191, current: 157167800; changing to 157168192. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.721068008  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.721186924  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157447593, current: 157447021; changing to 157447594. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.721575652  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.721582945  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157616832, current: 157616550; changing to 157616833. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.721586893  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.721691762  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157650053, current: 157649991; changing to 157650054. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.721802502  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [aac @ 0x562d790c3a00] Queue input is backward in time
2023-10-15 03:58:27.721916458  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [segment @ 0x562d790bd0c0] Non-monotonous DTS in output stream 0:1; previous: 157972753, current: 157972742; changing to 157972754. This may result in incorrect timestamps in the output file.
2023-10-15 03:58:27.722030184  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : [NULL @ 0x562d790a9e80] missing picture in access unit with size 44
2023-10-15 03:58:27.722158678  [2023-10-15 03:58:27] ffmpeg.ff_camera.record        ERROR   : rtsp://127.0.0.1:8554/ff_camera?video=copy&audio=aac: Connection timed out
2023-10-15 03:58:27.722277433  [2023-10-15 03:58:27] watchdog.ff_camera             INFO    : Terminating the existing ffmpeg process...
2023-10-15 03:58:27.722384036  [2023-10-15 03:58:27] watchdog.ff_camera             INFO    : Waiting for ffmpeg to exit gracefully...
2023-10-14 22:27:25.126733925  [INFO] Preparing go2rtc config...
2023-10-14 22:27:25.345672580  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-10-14 22:27:25.390405726  [INFO] Starting go2rtc...
2023-10-14 22:27:25.447088116  22:27:25.446 INF go2rtc version 1.7.1 linux/amd64
2023-10-14 22:27:25.447342208  22:27:25.447 INF [api] listen addr=0.0.0.0:1984
2023-10-14 22:27:25.447771482  22:27:25.447 INF [rtsp] listen addr=0.0.0.0:8554
2023-10-14 22:27:25.447969999  22:27:25.447 INF [webrtc] listen addr=0.0.0.0:8555/tcp
2023-10-14 22:27:35.125191478  [INFO] Starting go2rtc healthcheck service...
2023-10-14 22:50:17.330813845  22:50:17.330 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_1#video=h264#audio=aac
2023-10-14 22:50:17.389062130  22:50:17.388 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_0#video=h264#audio=aac
2023-10-14 22:50:28.222203448  22:50:28.222 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera_sub
2023-10-14 22:50:28.236798181  22:50:28.236 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-14 22:50:29.257301115  22:50:29.257 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera_sub
2023-10-14 22:50:29.267974818  22:50:29.267 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-14 23:20:44.845407416  23:20:44.845 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_1#video=h264#audio=aac
2023-10-14 23:20:44.868806446  23:20:44.868 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_0#video=h264#audio=aac
2023-10-14 23:20:55.071207208  23:20:55.071 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-14 23:20:56.057061280  23:20:56.056 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera_sub
2023-10-14 23:20:56.074147921  23:20:56.074 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-14 23:51:12.118041222  23:51:12.117 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_0#video=h264#audio=aac
2023-10-14 23:51:12.138501562  23:51:12.138 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_1#video=h264#audio=aac
2023-10-14 23:51:20.913005662  23:51:20.912 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-14 23:51:21.860586930  23:51:21.860 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-14 23:51:22.880658174  23:51:22.880 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera_sub
2023-10-14 23:51:22.899983541  23:51:22.899 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera
2023-10-15 00:21:38.571998084  00:21:38.571 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_1#video=h264#audio=aac
2023-10-15 00:21:38.600893411  00:21:38.600 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error=EOF url=ffmpeg:rtsp://admin:team1556th@192.168.31.109:10554/tcp/av0_0#video=h264#audio=aac
2023-10-15 00:21:52.731404696  00:21:52.731 WRN [rtsp] error="streams: exec: exit status 1" stream=sfh_camera_sub
2023-10-15 01:24:15.786682360  01:24:15.786 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 01:31:05.630586930  01:31:05.630 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 02:16:39.530221956  02:16:39.530 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 02:54:46.898802311  02:54:46.898 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 03:43:40.713548869  03:43:40.713 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 03:43:41.193234167  03:43:41.193 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream2
2023-10-15 03:54:16.880351772  03:54:16.880 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 03:58:17.342199377  03:58:17.341 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 04:00:30.341819581  04:00:30.341 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 04:05:12.259322134  04:05:12.259 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
2023-10-15 04:53:47.584414658  04:53:47.584 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1
NickM-27 commented 11 months ago

looks like your cameras are having errors with go2rtc github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1

you may want to try adding ffmpeg: to all of the streams defined in the go2rtc config

boyphongsakorn commented 11 months ago

looks like your cameras are having errors with go2rtc github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://boyalone99:team1556th@192.168.31.207:554/stream1

you may want to try adding ffmpeg: to all of the streams defined in the go2rtc config

is the same but went i add retry_interval: 150 it work but 2 minutes late what is really problem is? 🤔

NickM-27 commented 11 months ago

seems the stream is taking a long time to start for some reason, lots of errors in go2rtc