blakeblackshear / frigate

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

[Support]: Events and Snapshots but no Recordings #7424

Closed BlackRapsbeere closed 1 year ago

BlackRapsbeere commented 1 year ago

Describe the problem you are having

Hi everyone,

I tried desperately to get my cameras working in frigate. There is a Foscam FI9900P on an ethernet cord and a Reolink Doorbell WiFi. The detector seems to run fine as frigate shows events and snapshots of those. But there are no recordings. The log also seems not too happy about something.

I am thankful for any ideas!

Version

0.12.1-367d724

Frigate config file

birdseye:
  enabled: true
  height: 1080
  mode: continuous
  quality: 8
  width: 1920
##########################################################################
go2rtc:
  streams:
    foscam9900p:
      - rtsp://****:****@192.168.16.102:88/videoMain
      - "ffmpeg:foscam9900p#input=rtsp-foscam#video=copy#audio=copy"
    foscam9900p_sub:
      - rtsp://****:****@192.168.16.102:88/videoSub
      - "ffmpeg:foscam9900p_sub#input=rtsp-foscam#video=copy#audio=copy"
    reolinkdoorbell: 
      - http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=****&password=****
      - "ffmpeg:reolinkdoorbell_sub#input=http-reolink#video=copy#audio=opus#audio=volume"
    reolinkdoorbell_sub:
      - http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=****&password=****
      - "ffmpeg:reolinkdoorbell_sub#input=http-reolink#video=copy#audio=opus#audio=volume"
  ffmpeg:
    volume: "-af \"volume=30dB\""
    http-reolink: "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000"
    rtsp-foscam: "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5M -use_wallclock_as_timestamps 1 -analyzeduration 5M -probesize 5M"
  webrtc:
    candidates:
      - 192.168.16.35:8555
      - stun:8555
##########################################################################
cameras:
  ReolinkDoorbell:
    enabled: true
    name: Reolink-Klingel
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/reolinkdoorbell
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/reolinkdoorbell_sub
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-copy
    detect:
      enabled: true
      fps: 7
      width: 640
      height: 480
      max_disappeared: 35
      stationary:
        interval: 14
        max_frames:
          default: 25200
        threshold: 70
    objects:
      track:
        - person
        - bicycle
        - car
        - motorcycle
        - bus
        - car
        - bird
        - cat
        - dog
        - hat
        - backpack
        - umbrella
        - eye glasses
        - handbag
        - suitcase
    motion:
      mask:
        - 640,246,640,0,378,0,290,162,287,247
        - 0,480,272,480,260,254,284,0,0,0
    zones:
      Vorgarten:
        coordinates: 414,310,640,388,640,480,273,480,265,310
      Strasse:
        coordinates: 403,271,338,284,640,379,640,303
    live:
      stream_name: reolinkdoorbell_sub
      height: 480
  FoscamFI9900P:
    enabled: true
    name: Foscam-FI9900P
    best_image_timeout: 60
    detect:
      enabled: true
      fps: 5
      width: 1280
      height: 720
      max_disappeared: 25
      stationary:
        interval: 10
        max_frames:
          default: 18000
        threshold: 50
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/foscam9900p_sub
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/foscam9900p
          roles:
            - record
      input_args: preset-rtsp-restream
#        - -avoid_negative_ts 
#        - make_zero
#        - -fflags
#        - +genpts+discardcorrupt
#        - -rtsp_transport
#        - tcp
#        - -timeout
#        - 5M
#        - -use_wallclock_as_timestamps
#        - "1"
#        - -analyzeduration
#        - 5M
#        - -probesize
#        - 5M
      output_args:
#        detect:
#          - -f
#          - rawvideo
#          - -pix_fmt
#          - yuv420p
        record: preset-record-generic
    live:
      stream_name: foscam9900p_sub
      height: 720
    motion:
      mask:
        - 0,720,368,720,201,373,71,0,0,0
      contour_area: 50
      delta_alpha: 0.2
      frame_alpha: 0.2
      frame_height: 50
      improve_contrast: false
      mqtt_off_delay: 20
      threshold: 25
    zones:
      Keller:
        coordinates: 328,720,585,671,323,334,188,389
      Terasse:
        coordinates: 574,239,570,22,470,0,73,0,209,368
      Weg:
        coordinates: 344,322,654,720,1174,720,1280,445,1280,283,1132,263,891,490,702,483,468,279
      Garten:
        coordinates: 578,0,1087,0,1280,55,1280,290,1126,264,885,491,699,485,462,274,579,243
    mqtt:
      bounding_box: true
      crop: true
      enabled: true
      height: 480
      quality: 80
      required_zones: []
      timestamp: true
    objects:
      filters:
        backpack:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.7
          threshold: 0.8
        bird:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.5
          threshold: 0.7
        cat:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.5
          threshold: 0.7
        dog:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.6
          threshold: 0.75
        eye glasses:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.5
          threshold: 0.7
        handbag:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.7
          threshold: 0.8
        hat:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.5
          threshold: 0.7
        person:
          max_area: 350000
          max_ratio: 4
          min_area: 680
          min_ratio: 0.2
          min_score: 0.5
          threshold: 0.7
        suitcase:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.7
          threshold: 0.8
        umbrella:
          max_area: 24000000
          max_ratio: 24000000
          min_area: 0
          min_ratio: 0
          min_score: 0.5
          threshold: 0.7
      track:
      - person
      - bird
      - cat
      - dog
      - hat
      - backpack
      - umbrella
      - eye glasses
      - handbag
      - suitcase
##########################################################################
detect:
  enabled: true
##########################################################################
detectors:
  CoralTPU-PCIe:
    device: pci
    num_threads: 3
    type: edgetpu
##########################################################################
environment_vars: {}
##########################################################################
ffmpeg:
  hwaccel_args: preset-vaapi 
##########################################################################
live:
  quality: 8
##########################################################################
logger:
  default: warning
##########################################################################
model:
  height: 320
  width: 320
##########################################################################
motion:
  contour_area: 50
  delta_alpha: 0.2
  frame_alpha: 0.2
  frame_height: 50
  improve_contrast: false
  mqtt_off_delay: 20
  threshold: 25
##########################################################################
objects:
  track:
    - person
    - bicycle
    - car
    - motorcycle
    - bus
    - car
    - bird
    - cat
    - dog
    - hat
    - backpack
    - umbrella
    - eye glasses
    - handbag
    - suitcase
##########################################################################
record:
  enabled: true
  events:
    objects:
      - person
      - bicycle
      - car
      - motorcycle
      - bus
      - car
      - bird
      - cat
      - dog
      - hat
      - backpack
      - umbrella
      - eye glasses
      - handbag
      - suitcase
    post_capture: 10
    pre_capture: 10
    retain:
      default: 30
      mode: motion
  expire_interval: 60
  retain:
    days: 30
    mode: all
##########################################################################
rtmp:
  enabled: false
##########################################################################
snapshots:
  bounding_box: false
  clean_copy: true
  crop: false
  enabled: true
  quality: 80
  retain:
    default: 30
    mode: motion
    objects: {}
  timestamp: true
##########################################################################
timestamp_style:
  color:
    blue: 255
    green: 255
    red: 255
  format: "%Y-%m-%d %H:%M:%S"
  position: tl
  thickness: 2
##########################################################################
ui:
  live_mode: mse
  use_experimental: false
  time_format: browser
  time_style: medium
  date_style: medium
##########################################################################
telemetry:
  version_check: True
########################################################################## 
mqtt:
  client_id: frigate
  host: 192.168.16.35
  port: 1883
  stats_interval: 60
  topic_prefix: frigate
##########################################################################

Relevant log output

2023-08-08 19:44:58.520853849  [INFO] Starting Frigate...
2023-08-08 19:44:59.726211063  [2023-08-08 21:44:59] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-08 19:44:59.770456445  [2023-08-08 21:44:59] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-08-08 19:47:19.865230056  [2023-08-08 21:47:19] watchdog.FoscamFI9900P         ERROR   : No new recording segments were created for FoscamFI9900P in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:19.866200215  [2023-08-08 21:47:19] watchdog.ReolinkDoorbell       ERROR   : No new recording segments were created for ReolinkDoorbell in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:29.891601852  [2023-08-08 21:47:29] watchdog.ReolinkDoorbell       ERROR   : No new recording segments were created for ReolinkDoorbell in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:29.996359848  [2023-08-08 21:47:29] watchdog.FoscamFI9900P         ERROR   : No new recording segments were created for FoscamFI9900P in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:40.015793326  [2023-08-08 21:47:40] watchdog.ReolinkDoorbell       ERROR   : No new recording segments were created for ReolinkDoorbell in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:40.230763937  [2023-08-08 21:47:40] watchdog.FoscamFI9900P         ERROR   : No new recording segments were created for FoscamFI9900P in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:43.526754105  [2023-08-08 21:47:43] frigate.http                   ERROR   : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
2023-08-08 19:47:43.526757711    built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
2023-08-08 19:47:43.526768089    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
2023-08-08 19:47:43.526795723    libavutil      57. 28.100 / 57. 28.100
2023-08-08 19:47:43.526797644    libavcodec     59. 37.100 / 59. 37.100
2023-08-08 19:47:43.526799124    libavformat    59. 27.100 / 59. 27.100
2023-08-08 19:47:43.526800104    libavdevice    59.  7.100 / 59.  7.100
2023-08-08 19:47:43.526841951    libavfilter     8. 44.100 /  8. 44.100
2023-08-08 19:47:43.526843201    libswscale      6.  7.100 /  6.  7.100
2023-08-08 19:47:43.526844101    libswresample   4.  7.100 /  4.  7.100
2023-08-08 19:47:43.526844985    libpostproc    56.  6.100 / 56.  6.100
2023-08-08 19:47:43.526846296  [concat @ 0x5556121cba80] No files to concat
2023-08-08 19:47:43.526847276  /dev/stdin: Invalid data found when processing input
2023-08-08 19:47:43.526848115  
2023-08-08 19:47:50.048345099  [2023-08-08 21:47:50] watchdog.ReolinkDoorbell       ERROR   : No new recording segments were created for ReolinkDoorbell in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:47:50.461972044  [2023-08-08 21:47:50] watchdog.FoscamFI9900P         ERROR   : No new recording segments were created for FoscamFI9900P in the last 120s. restarting the ffmpeg record process...
[...]
2023-08-08 19:57:56.368528608  [2023-08-08 21:57:56] watchdog.ReolinkDoorbell       ERROR   : No new recording segments were created for ReolinkDoorbell in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:57:56.550169587  [2023-08-08 21:57:56] watchdog.FoscamFI9900P         ERROR   : No new recording segments were created for FoscamFI9900P in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:58:02.904469680  [2023-08-08 21:58:02] frigate.video                  ERROR   : ReolinkDoorbell: Unable to read frames from ffmpeg process.
2023-08-08 19:58:02.905285903  [2023-08-08 21:58:02] frigate.video                  ERROR   : ReolinkDoorbell: ffmpeg process is not running. exiting capture thread...
2023-08-08 19:58:06.384570774  [2023-08-08 21:58:06] watchdog.ReolinkDoorbell       ERROR   : Ffmpeg process crashed unexpectedly for ReolinkDoorbell.
2023-08-08 19:58:06.384863452  [2023-08-08 21:58:06] watchdog.ReolinkDoorbell       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-08 19:58:06.385251176  [2023-08-08 21:58:06] ffmpeg.ReolinkDoorbell.detect  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell_sub: Connection timed out
2023-08-08 19:58:06.385629036  [2023-08-08 21:58:06] ffmpeg.ReolinkDoorbell.detect  ERROR   :     Last message repeated 1 times
2023-08-08 19:58:06.405608801  [2023-08-08 21:58:06] watchdog.ReolinkDoorbell       ERROR   : No new recording segments were created for ReolinkDoorbell in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:58:06.631830469  [2023-08-08 21:58:06] watchdog.FoscamFI9900P         ERROR   : No new recording segments were created for FoscamFI9900P in the last 120s. restarting the ffmpeg record process...
2023-08-08 19:58:11.521706087  [2023-08-08 21:58:11] frigate.video                  ERROR   : ReolinkDoorbell: Unable to read frames from ffmpeg process.
2023-08-08 19:58:11.521720563  [2023-08-08 21:58:11] frigate.video                  ERROR   : ReolinkDoorbell: ffmpeg process is not running. exiting capture thread...
2023-08-08 19:58:16.417490353  [2023-08-08 21:58:16] watchdog.ReolinkDoorbell       ERROR   : Ffmpeg process crashed unexpectedly for ReolinkDoorbell.
2023-08-08 19:58:16.417599406  [2023-08-08 21:58:16] watchdog.ReolinkDoorbell       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-08 19:58:16.417694974  [2023-08-08 21:58:16] ffmpeg.ReolinkDoorbell.detect  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell_sub: Invalid data found when processing input
[...]

go2rtc-log:
2023-08-08 19:44:58.518619092  [INFO] Preparing go2rtc config...
2023-08-08 19:44:58.763984892  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-08-08 19:44:58.795071746  [INFO] Starting go2rtc...
2023-08-08 19:44:58.921992781  21:44:58.921 INF go2rtc version 1.6.2 linux/amd64
2023-08-08 19:44:58.922392725  21:44:58.922 INF [api] listen addr=0.0.0.0:1984
2023-08-08 19:44:58.922805228  21:44:58.922 INF [rtsp] listen addr=0.0.0.0:8554
2023-08-08 19:44:58.922996104  21:44:58.922 INF [webrtc] listen addr=0.0.0.0:8555/tcp
2023-08-08 19:44:58.923705069  21:44:58.923 INF [srtp] listen addr=0.0.0.0:8443
2023-08-08 19:45:08.523987721  [INFO] Starting go2rtc healthcheck service...
2023-08-08 19:59:01.016849692  21:59:01.016 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: i/o timeout,exec: exit status 1,Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host" stream=reolinkdoorbell_sub
2023-08-08 19:59:10.225627061  21:59:10.225 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:16.379697794  21:59:16.379 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:19.439697053  21:59:19.439 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:25.594245302  21:59:25.594 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:28.659437894  21:59:28.659 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:34.816404759  21:59:34.816 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:40.941732528  21:59:40.941 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:47.087921913  21:59:47.087 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:50.170287525  21:59:50.170 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 19:59:56.313828116  21:59:56.313 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 20:00:02.449133118  22:00:02.449 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 20:00:12.922542244  22:00:12.922 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 20:00:22.969892469  22:00:22.969 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 20:01:12.522134433  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:48226: write: broken pipe"
2023-08-08 20:01:12.522151868  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:38884: write: broken pipe"
2023-08-08 20:01:12.522163971  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:53738: write: broken pipe"
2023-08-08 20:01:12.522176606  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:59562: write: broken pipe"
2023-08-08 20:01:12.522230943  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:36444: write: broken pipe"
2023-08-08 20:01:12.522244143  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:58102: write: broken pipe"
2023-08-08 20:01:12.522312836  22:01:12.521 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:43842: write: broken pipe"
2023-08-08 20:01:12.522438191  22:01:12.522 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:42338: write: broken pipe"

FFprobe output from your camera

User@Server:~$ ffprobe rtsp://****:****@192.168.16.102:88/videoMain
ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, rtsp, from 'rtsp://****:****@192.168.16.102:88/videoMain':
  Metadata:
    title           : IP Camera Video
    comment         : videoMain
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5 tbr, 90k tbn, 2108081.16 tbc
  Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

User@Server:~$ ffprobe rtsp://****:****@192.168.16.102:88/videoSub
ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, rtsp, from 'rtsp://****:****@192.168.16.102:88/videoSub':
  Metadata:
    title           : IP Camera Video
    comment         : videoSub
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 10.17 tbr, 90k tbn, 3520886.88 tbc
  Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

User@Server:~$ ffprobe rtsp://****:****@192.168.16.102:88/videoMain -hide_banner
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65598
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65600
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65602
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65604
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65606
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65608
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65610
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65612
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65614
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65616
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65618
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65620
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65622
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65624
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65626
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65628
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65630
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65632
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65634
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65636
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65638
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65640
[h264 @ 0x55a4379f26c0] Missing reference picture, default is 65642
[rtsp @ 0x55a4379ecec0] decoding for stream 0 failed
Input #0, rtsp, from 'rtsp://****:****@192.168.16.102:88/videoMain':
  Metadata:
    title           : IP Camera Video
    comment         : videoMain
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 2108081.16 tbc
  Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

User@Server:~$ ffprobe rtsp://****:****@192.168.16.102:88/videoSub -hide_banner
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65542
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65544
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65546
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65548
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65550
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65552
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65554
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65556
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65558
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65560
[h264 @ 0x55bb38ae36c0] Missing reference picture, default is 65562
Input #0, rtsp, from 'rtsp://****:****@192.168.16.102:88/videoSub':
  Metadata:
    title           : IP Camera Video
    comment         : videoSub
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 5 tbr, 90k tbn, 3520886.88 tbc
  Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

User@Server:~$ ffprobe "http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=****&password=****" -hide_banner
Input #0, flv, from 'http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=****&password=****':
  Metadata:
    displayWidth    : 2560
    displayHeight   : 1920
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 9 fps, 12.50 tbr, 1k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

User@Server:~$ ffprobe "http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=****&password=****" -hide_banner
Input #0, flv, from 'http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=****&password=****':
  Metadata:
    displayWidth    : 896
    displayHeight   : 672
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 896x672, 12 fps, 12.50 tbr, 1k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Frigate stats

{"FoscamFI9900P":{"camera_fps":5.0,"capture_pid":459,"detection_enabled":1,"detection_fps":1.7,"ffmpeg_pid":467,"pid":454,"process_fps":5.0,"skipped_fps":0.0},"ReolinkDoorbell":{"camera_fps":7.0,"capture_pid":455,"detection_enabled":1,"detection_fps":7.9,"ffmpeg_pid":2226,"pid":444,"process_fps":7.0,"skipped_fps":0.0},"cpu_usages":{"1":{"cpu":"0.0","mem":"0.0"},"102":{"cpu":"0.0","mem":"0.0"},"104":{"cpu":"5.0","mem":"4.4"},"116":{"cpu":"0.0","mem":"0.2"},"134":{"cpu":"0.0","mem":"0.1"},"135":{"cpu":"0.0","mem":"0.1"},"136":{"cpu":"0.0","mem":"0.1"},"137":{"cpu":"0.0","mem":"0.1"},"140":{"cpu":"0.0","mem":"0.1"},"15":{"cpu":"0.0","mem":"0.0"},"153":{"cpu":"0.0","mem":"0.1"},"16":{"cpu":"0.0","mem":"0.0"},"174":{"cpu":"0.0","mem":"0.1"},"204":{"cpu":"0.0","mem":"0.1"},"2226":{"cpu":"3.7","mem":"0.5"},"24":{"cpu":"0.0","mem":"0.0"},"25":{"cpu":"0.0","mem":"0.0"},"26":{"cpu":"0.0","mem":"0.0"},"27":{"cpu":"0.0","mem":"0.0"},"28":{"cpu":"0.0","mem":"0.0"},"2853":{"cpu":"0.0","mem":"0.0"},"2868":{"cpu":"0.0","mem":"0.3"},"2869":{"cpu":"13.3","mem":"0.4"},"2884":{"cpu":"0.3","mem":"0.0"},"2885":{"cpu":"10.0","mem":"0.5"},"2886":{"cpu":"2.7","mem":"0.4"},"2893":{"cpu":"0.3","mem":"0.0"},"29":{"cpu":"0.0","mem":"0.0"},"30":{"cpu":"0.0","mem":"0.0"},"31":{"cpu":"0.0","mem":"0.0"},"32":{"cpu":"0.0","mem":"0.0"},"41":{"cpu":"0.0","mem":"0.0"},"42":{"cpu":"0.0","mem":"0.0"},"428":{"cpu":"0.0","mem":"0.9"},"434":{"cpu":"0.7","mem":"0.1"},"435":{"cpu":"4.0","mem":"1.2"},"436":{"cpu":"1.3","mem":"1.1"},"444":{"cpu":"50.2","mem":"1.1"},"453":{"cpu":"0.0","mem":"0.2"},"454":{"cpu":"1.0","mem":"1.1"},"455":{"cpu":"2.3","mem":"1.0"},"456":{"cpu":"0.0","mem":"0.2"},"459":{"cpu":"3.3","mem":"1.0"},"464":{"cpu":"0.0","mem":"0.2"},"467":{"cpu":"3.0","mem":"0.6"},"80":{"cpu":"0.0","mem":"0.0"},"81":{"cpu":"0.0","mem":"0.0"},"82":{"cpu":"0.0","mem":"0.0"},"89":{"cpu":"8.3","mem":"0.3"},"Tasks:":{"cpu":"stopped,","mem":"0.0"}},"detection_fps":9.6,"detectors":{"CoralTPU-PCIe":{"detection_start":0.0,"inference_speed":10.44,"pid":435}},"gpu_usages":{"intel-vaapi":{"gpu":"1.17 %","mem":"- %"}},"service":{"last_updated":1691525798,"latest_version":"0.12.1","storage":{"/dev/shm":{"free":8586.3,"mount_type":"tmpfs","total":8589.9,"used":3.6},"/media/frigate/clips":{"free":432574.3,"mount_type":"nfs4","total":1099511.6,"used":666937.3},"/media/frigate/recordings":{"free":432574.3,"mount_type":"nfs4","total":1099511.6,"used":666937.3},"/tmp/cache":{"free":1791998.0,"mount_type":"zfs","total":1793605.6,"used":1607.6}},"temperatures":{"apex_0":43.8},"uptime":1899,"version":"0.12.1-367d724"}}

Operating system

Other Linux

Install method

Docker Compose

Coral version

M.2

Network connection

Mixed

Camera make and model

Foscam FI9900P on an ethernet cord and a Reolink Doorbell WiFi

Any other information that may be helpful

Installed as helm chart from TrueCharts for TrueNAS Scale Network in host mode Reolink Firmware Version v3.0.0.2033_23041300 ffprobe for reolink sub stream is puzzling me - shows weird resolution but I set 480p on the cam itself for the substream.

NickM-27 commented 1 year ago
go2rtc:
  streams:
    foscam9900p:
      - rtsp://****:****@192.168.16.102:88/videoMain
      - "ffmpeg:foscam9900p#input=rtsp-foscam#video=copy#audio=copy"
    foscam9900p_sub:
      - rtsp://****:****@192.168.16.102:88/videoSub
      - "ffmpeg:foscam9900p_sub#input=rtsp-foscam#video=copy#audio=copy"
    reolinkdoorbell: 
      - http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=****&password=****
      - "ffmpeg:reolinkdoorbell_sub#input=http-reolink#video=copy#audio=opus#audio=volume"
    reolinkdoorbell_sub:
      - http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=****&password=****
      - "ffmpeg:reolinkdoorbell_sub#input=http-reolink#video=copy#audio=opus#audio=volume"

none of your ffmpeg presets are going to be used here because go2rtc resolves on the first stream and never tries to run ffmpeg. You should use different names for the ffmpeg streams or just use ffmpeg:rtsp_url directly so the input args and other things will apply.

2023-08-08 20:00:22.969892469 22:00:22.969 WRN [rtsp] error="Get \"http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg\": dial tcp 192.168.16.103:80: connect: no route to host,exec: exit status 1" stream=reolinkdoorbell_sub

Can't find your camera on the network

BlackRapsbeere commented 1 year ago

So you recommend the following for go2rtc?

go2rtc:
  streams:
    foscam9900p: "ffmpeg:rtsp://****:****@192.168.16.102:88/videoMain#input=rtsp-foscam#video=copy#audio=copy"
    foscam9900p_sub: "ffmpeg:rtsp://****:****@192.168.16.102:88/videoSub#input=rtsp-foscam#video=copy#audio=copy"
    reolinkdoorbell: "ffmpeg:http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=****&password=****#input=http-reolink#video=copy#audio=opus#audio=volume"
    reolinkdoorbell_sub: "ffmpeg:http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=****&password=****#input=http-reolink#video=copy#audio=opus#audio=volume"

Maybe WiFi connection is not that strong. But that would not bother with the Foscam one, which is connected with ethernet.

Thanks for the fast response btw! My next response will be in several hours.

NickM-27 commented 1 year ago

Not sure that will fix the problem but it will actually use the ffmpeg args so hopefully it helps.

BlackRapsbeere commented 1 year ago

Well it actually got worse. go2rtc-log:

2023-08-08 21:02:36.090726633  [INFO] Preparing go2rtc config...
2023-08-08 21:02:36.333429448  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-08-08 21:02:36.365224478  [INFO] Starting go2rtc...
2023-08-08 21:02:36.467335326  23:02:36.467 INF go2rtc version 1.6.2 linux/amd64
2023-08-08 21:02:36.467765699  23:02:36.467 INF [api] listen addr=0.0.0.0:1984
2023-08-08 21:02:36.468162961  23:02:36.468 INF [rtsp] listen addr=0.0.0.0:8554
2023-08-08 21:02:36.468375809  23:02:36.468 INF [webrtc] listen addr=0.0.0.0:8555/tcp
2023-08-08 21:02:36.468890141  23:02:36.468 INF [srtp] listen addr=0.0.0.0:8443
2023-08-08 21:02:37.356996234  23:02:37.356 WRN [rtsp] error="exec: exit status 1" stream=foscam9900p_sub
2023-08-08 21:02:37.359151934  23:02:37.359 WRN [rtsp] error="exec: exit status 1" stream=reolinkdoorbell_sub
2023-08-08 21:02:37.390260165  23:02:37.390 WRN [rtsp] error="exec: exit status 1" stream=reolinkdoorbell
2023-08-08 21:02:37.390577492  23:02:37.390 WRN [rtsp] error="exec: exit status 1" stream=foscam9900p

And the frigate log:

2023-08-08 21:02:36.091289902  [INFO] Starting Frigate...
2023-08-08 21:02:37.236609507  [2023-08-08 23:02:37] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-08 21:02:37.281137384  [2023-08-08 23:02:37] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-08-08 21:02:37.358659360  [2023-08-08 23:02:37] frigate.video                  ERROR   : FoscamFI9900P: Unable to read frames from ffmpeg process.
2023-08-08 21:02:37.358770667  [2023-08-08 23:02:37] frigate.video                  ERROR   : FoscamFI9900P: ffmpeg process is not running. exiting capture thread...
2023-08-08 21:02:37.360694608  [2023-08-08 23:02:37] frigate.video                  ERROR   : ReolinkDoorbell: Unable to read frames from ffmpeg process.
2023-08-08 21:02:37.360830885  [2023-08-08 23:02:37] frigate.video                  ERROR   : ReolinkDoorbell: ffmpeg process is not running. exiting capture thread...
2023-08-08 21:02:57.387486822  [2023-08-08 23:02:57] watchdog.FoscamFI9900P         ERROR   : Ffmpeg process crashed unexpectedly for FoscamFI9900P.
2023-08-08 21:02:57.394878178  [2023-08-08 23:02:57] watchdog.ReolinkDoorbell       ERROR   : Ffmpeg process crashed unexpectedly for ReolinkDoorbell.
2023-08-08 21:02:57.395339507  [2023-08-08 23:02:57] watchdog.FoscamFI9900P         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-08 21:02:57.395909936  [2023-08-08 23:02:57] watchdog.ReolinkDoorbell       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-08 21:02:57.396887917  [2023-08-08 23:02:57] ffmpeg.FoscamFI9900P.detect    ERROR   : [rtsp @ 0x563dcffece40] method DESCRIBE failed: 404 Not Found
2023-08-08 21:02:57.397326133  [2023-08-08 23:02:57] ffmpeg.ReolinkDoorbell.detect  ERROR   : [rtsp @ 0x555644d0be40] method DESCRIBE failed: 404 Not Found
2023-08-08 21:02:57.397674752  [2023-08-08 23:02:57] ffmpeg.FoscamFI9900P.detect    ERROR   : rtsp://127.0.0.1:8554/foscam9900p_sub: Server returned 404 Not Found
2023-08-08 21:02:57.398025311  [2023-08-08 23:02:57] ffmpeg.ReolinkDoorbell.detect  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell_sub: Server returned 404 Not Found
2023-08-08 21:02:57.410307475  [2023-08-08 23:02:57] ffmpeg.FoscamFI9900P.record    ERROR   : [rtsp @ 0x55f613fa1f00] method DESCRIBE failed: 404 Not Found
2023-08-08 21:02:57.410749022  [2023-08-08 23:02:57] ffmpeg.FoscamFI9900P.record    ERROR   : rtsp://127.0.0.1:8554/foscam9900p: Server returned 404 Not Found
2023-08-08 21:02:57.417586289  [2023-08-08 23:02:57] ffmpeg.ReolinkDoorbell.record  ERROR   : [rtsp @ 0x5648f0f54ec0] method DESCRIBE failed: 404 Not Found
2023-08-08 21:02:57.418050168  [2023-08-08 23:02:57] ffmpeg.ReolinkDoorbell.record  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell: Server returned 404 Not Found 

Seems like using ffmpeg or the args are not proper.

NickM-27 commented 1 year ago

Let's try this and see what happens

go2rtc:
  log:
    exec: trace

  streams:
    foscam9900p: "ffmpeg:rtsp://****:****@192.168.16.102:88/videoMain"
    foscam9900p_sub: "ffmpeg:rtsp://****:****@192.168.16.102:88/videoSub"
    reolinkdoorbell: "ffmpeg:http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=****&password=****"
    reolinkdoorbell_sub: "ffmpeg:http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=****&password=****"
BlackRapsbeere commented 1 year ago

I did it the way you suggested. But there are no ffmpeg-args, right?

Frigate-Log:

2023-08-09 15:55:51.216260661  [INFO] Starting Frigate...
2023-08-09 15:55:52.406734997  [2023-08-09 17:55:52] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-09 15:55:52.457268210  [2023-08-09 17:55:52] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-08-09 15:55:57.644295505  [2023-08-09 17:55:57] frigate.video                  ERROR   : FoscamFI9900P: Unable to read frames from ffmpeg process.
2023-08-09 15:55:57.644386024  [2023-08-09 17:55:57] frigate.video                  ERROR   : FoscamFI9900P: ffmpeg process is not running. exiting capture thread...
2023-08-09 15:56:12.571020515  [2023-08-09 17:56:12] watchdog.FoscamFI9900P         ERROR   : Ffmpeg process crashed unexpectedly for FoscamFI9900P.
2023-08-09 15:56:12.571234435  [2023-08-09 17:56:12] watchdog.FoscamFI9900P         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-09 15:56:12.571451264  [2023-08-09 17:56:12] ffmpeg.FoscamFI9900P.detect    ERROR   : rtsp://127.0.0.1:8554/foscam9900p_sub: Invalid data found when processing input
2023-08-09 15:56:12.583596370  [2023-08-09 17:56:12] ffmpeg.FoscamFI9900P.record    ERROR   : rtsp://127.0.0.1:8554/foscam9900p: Invalid data found when processing input
2023-08-09 15:56:17.698674897  [2023-08-09 17:56:17] frigate.video                  ERROR   : FoscamFI9900P: Unable to read frames from ffmpeg process.
2023-08-09 15:56:17.699017026  [2023-08-09 17:56:17] frigate.video                  ERROR   : FoscamFI9900P: ffmpeg process is not running. exiting capture thread...
2023-08-09 15:56:22.559415588  [2023-08-09 17:56:22] ffmpeg.ReolinkDoorbell.record  ERROR   : [segment @ 0x5616f6db7300] 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-08-09 15:56:22.559729599  [2023-08-09 17:56:22] ffmpeg.ReolinkDoorbell.record  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell: Connection timed out
2023-08-09 15:56:22.592471034  [2023-08-09 17:56:22] watchdog.FoscamFI9900P         ERROR   : Ffmpeg process crashed unexpectedly for FoscamFI9900P.
2023-08-09 15:56:22.592728832  [2023-08-09 17:56:22] watchdog.FoscamFI9900P         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-09 15:56:22.592999961  [2023-08-09 17:56:22] ffmpeg.FoscamFI9900P.detect    ERROR   : rtsp://127.0.0.1:8554/foscam9900p_sub: Invalid data found when processing input
2023-08-09 15:56:22.614151048  [2023-08-09 17:56:22] ffmpeg.FoscamFI9900P.record    ERROR   : rtsp://127.0.0.1:8554/foscam9900p: Invalid data found when processing input
2023-08-09 15:56:26.506182295  [2023-08-09 17:56:26] frigate.video                  ERROR   : ReolinkDoorbell: Unable to read frames from ffmpeg process.
2023-08-09 15:56:26.506806687  [2023-08-09 17:56:26] frigate.video                  ERROR   : ReolinkDoorbell: ffmpeg process is not running. exiting capture thread...
2023-08-09 15:56:27.734604160  [2023-08-09 17:56:27] frigate.video                  ERROR   : FoscamFI9900P: Unable to read frames from ffmpeg process.
2023-08-09 15:56:27.735049679  [2023-08-09 17:56:27] frigate.video                  ERROR   : FoscamFI9900P: ffmpeg process is not running. exiting capture thread...
2023-08-09 15:56:32.569533255  [2023-08-09 17:56:32] watchdog.ReolinkDoorbell       ERROR   : Ffmpeg process crashed unexpectedly for ReolinkDoorbell.
2023-08-09 15:56:32.569737310  [2023-08-09 17:56:32] watchdog.ReolinkDoorbell       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-09 15:56:32.570055663  [2023-08-09 17:56:32] ffmpeg.ReolinkDoorbell.detect  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell_sub: Connection timed out
2023-08-09 15:56:32.570244796  [2023-08-09 17:56:32] ffmpeg.ReolinkDoorbell.detect  ERROR   :     Last message repeated 1 times
2023-08-09 15:56:32.605161153  [2023-08-09 17:56:32] ffmpeg.ReolinkDoorbell.record  ERROR   : rtsp://127.0.0.1:8554/reolinkdoorbell: Invalid data found when processing input

go2rtc-Log:

2023-08-09 15:55:51.215169180  [INFO] Preparing go2rtc config...
2023-08-09 15:55:51.451341094  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-08-09 15:55:51.481543225  [INFO] Starting go2rtc...
2023-08-09 15:55:51.604390271  17:55:51.604 INF go2rtc version 1.6.2 linux/amd64
2023-08-09 15:55:51.604699393  17:55:51.604 INF [api] listen addr=0.0.0.0:1984
2023-08-09 15:55:51.605081017  17:55:51.605 INF [rtsp] listen addr=0.0.0.0:8554
2023-08-09 15:55:51.605342056  17:55:51.605 INF [webrtc] listen addr=0.0.0.0:8555/tcp
2023-08-09 15:55:51.605908201  17:55:51.605 INF [srtp] listen addr=0.0.0.0:8443
2023-08-09 15:55:52.526282552  17:55:52.518 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:55:52.534157258  17:55:52.533 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:55:52.553062190  17:55:52.552 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:55:52.565291566  17:55:52.565 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:55:54.847202885  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65596
2023-08-09 15:55:55.049490865  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65598
2023-08-09 15:55:55.253897072  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65600
2023-08-09 15:55:55.416771300  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65602
2023-08-09 15:55:55.427284290  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65542
2023-08-09 15:55:55.615570787  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65604
2023-08-09 15:55:55.637433232  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65544
2023-08-09 15:55:55.810857201  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65546
2023-08-09 15:55:55.819663863  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65606
2023-08-09 15:55:56.010404993  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65608
2023-08-09 15:55:56.021283700  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65548
2023-08-09 15:55:56.213112134  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65610
2023-08-09 15:55:56.232172875  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65550
2023-08-09 15:55:56.266428504  Input #0, flv, from 'http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg':
2023-08-09 15:55:56.266432983    Metadata:
2023-08-09 15:55:56.266435064      displayWidth    : 896
2023-08-09 15:55:56.266436932      displayHeight   : 672
2023-08-09 15:55:56.266438939    Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
2023-08-09 15:55:56.266465709    Stream #0:0: Video: h264 (High), yuv420p(progressive), 896x672, 12 fps, 20 tbr, 1k tbn
2023-08-09 15:55:56.266492545    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
2023-08-09 15:55:56.316860879  17:55:56.316 DBG [exec] run launch=3.7978404s
2023-08-09 15:55:56.317342205  Output #0, rtsp, to 'rtsp://127.0.0.1:8554/1c969685d4d5d8322ee46890c0d208fa':
2023-08-09 15:55:56.317453134    Metadata:
2023-08-09 15:55:56.317594947      displayWidth    : 896
2023-08-09 15:55:56.317605592      displayHeight   : 672
2023-08-09 15:55:56.317678996      encoder         : Lavf59.27.100
2023-08-09 15:55:56.317780694    Stream #0:0: Video: h264 (High), yuv420p(progressive), 896x672, q=2-31, 12 fps, 20 tbr, 90k tbn
2023-08-09 15:55:56.317878317    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
2023-08-09 15:55:56.317886323  Stream mapping:
2023-08-09 15:55:56.317932531    Stream #0:0 -> #0:0 (copy)
2023-08-09 15:55:56.317939853    Stream #0:1 -> #0:1 (copy)
2023-08-09 15:55:56.317982567  Press [q] to stop, [?] for help
2023-08-09 15:55:56.378949440  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:02.13 bitrate=N/A speed=2.85e+04x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65612
2023-08-09 15:55:56.391601215  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65552
2023-08-09 15:55:56.581446778  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65614
2023-08-09 15:55:56.600900744  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65554
2023-08-09 15:55:56.779019315  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65616
2023-08-09 15:55:56.792006570  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65556
2023-08-09 15:55:56.984436671  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:02.77 bitrate=N/A speed= 5.3x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65618
2023-08-09 15:55:57.004169095  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65558
2023-08-09 15:55:57.184364281  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65620
2023-08-09 15:55:57.198586168  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65560
2023-08-09 15:55:57.224398442  Input #0, flv, from 'http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg':
2023-08-09 15:55:57.224401413    Metadata:
2023-08-09 15:55:57.224402504      displayWidth    : 2560
2023-08-09 15:55:57.224403572      displayHeight   : 1920
2023-08-09 15:55:57.224404591    Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
2023-08-09 15:55:57.224418025    Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 9 fps, 20 tbr, 1k tbn
2023-08-09 15:55:57.224419088    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
2023-08-09 15:55:57.270384593  17:55:57.270 DBG [exec] run launch=4.717290389s
2023-08-09 15:55:57.270709944  Output #0, rtsp, to 'rtsp://127.0.0.1:8554/19317e672049482e0a97b40d8d59acff':
2023-08-09 15:55:57.270714839    Metadata:
2023-08-09 15:55:57.270717961      displayWidth    : 2560
2023-08-09 15:55:57.270720648      displayHeight   : 1920
2023-08-09 15:55:57.270723400      encoder         : Lavf59.27.100
2023-08-09 15:55:57.270772171    Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, q=2-31, 9 fps, 20 tbr, 90k tbn
2023-08-09 15:55:57.270837844    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
2023-08-09 15:55:57.270840801  Stream mapping:
2023-08-09 15:55:57.270866480    Stream #0:0 -> #0:0 (copy)
2023-08-09 15:55:57.270894612    Stream #0:1 -> #0:1 (copy)
2023-08-09 15:55:57.270898906  Press [q] to stop, [?] for help
2023-08-09 15:55:57.353829321  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:04.11 bitrate=N/A speed=4.12e+06x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65622
2023-08-09 15:55:57.373899672  [h264 @ 0x55f06ae841c0] Missing reference picture, default is 65562
2023-08-09 15:55:57.549169456  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:03.28 bitrate=N/A speed=3.21x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65624
2023-08-09 15:55:57.750038233  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65626
2023-08-09 15:55:57.947229361  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:04.75 bitrate=N/A speed=8.91x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:03.79 bitrate=N/A speed=2.46x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65628
2023-08-09 15:55:58.151194424  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65630
2023-08-09 15:55:58.311461609  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65632
2023-08-09 15:55:58.512547357  frame=    3 fps=2.8 q=-1.0 size=N/A time=00:00:05.26 bitrate=N/A speed=4.98x    
frame=    5 fps=2.4 q=-1.0 size=N/A time=00:00:04.31 bitrate=N/A speed=2.08x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65634
2023-08-09 15:55:58.716796255  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65636
2023-08-09 15:55:58.915449160  frame=    8 fps=5.1 q=-1.0 size=N/A time=00:00:05.78 bitrate=N/A speed=3.66x    
[h264 @ 0x5566d54971c0] Missing reference picture, default is 65638
2023-08-09 15:55:59.112377473  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65640
2023-08-09 15:55:59.287712957  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65642
2023-08-09 15:55:59.481436494  [h264 @ 0x5566d54971c0] Missing reference picture, default is 65644
2023-08-09 15:55:59.617390974  frame=   13 fps=5.6 q=-1.0 size=N/A time=00:00:06.29 bitrate=N/A speed=2.71x    
Guessed Channel Layout for Input Stream #0.1 : mono
2023-08-09 15:55:59.617398483  Input #0, rtsp, from 'rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain':
2023-08-09 15:55:59.617402033    Metadata:
2023-08-09 15:55:59.617405804      title           : IP Camera Video
2023-08-09 15:55:59.617409105      comment         : videoMain
2023-08-09 15:55:59.617441456    Duration: N/A, start: 0.000000, bitrate: N/A
2023-08-09 15:55:59.617521087    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn
2023-08-09 15:55:59.617587372    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:55:59.635782634  Guessed Channel Layout for Input Stream #0.1 : mono
2023-08-09 15:55:59.635787877  Input #0, rtsp, from 'rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub':
2023-08-09 15:55:59.635790237    Metadata:
2023-08-09 15:55:59.635792627      title           : IP Camera Video
2023-08-09 15:55:59.635794774      comment         : videoSub
2023-08-09 15:55:59.635819221    Duration: N/A, start: 0.000000, bitrate: N/A
2023-08-09 15:55:59.635847072    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 5.17 fps, 5.08 tbr, 90k tbn
2023-08-09 15:55:59.635875680    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:55:59.662689426  17:55:59.662 DBG [exec] run launch=7.097329743s
2023-08-09 15:55:59.663108196  Output #0, rtsp, to 'rtsp://127.0.0.1:8554/ca08797ddc94be60ba6f158d7ad31927':
2023-08-09 15:55:59.663124788    Metadata:
2023-08-09 15:55:59.663130575      title           : IP Camera Video
2023-08-09 15:55:59.663169381      comment         : videoMain
2023-08-09 15:55:59.663174830      encoder         : Lavf59.27.100
2023-08-09 15:55:59.663219718    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 90k tbr, 90k tbn
2023-08-09 15:55:59.663281183    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:55:59.663312960  Stream mapping:
2023-08-09 15:55:59.663317990    Stream #0:0 -> #0:0 (copy)
2023-08-09 15:55:59.663347826    Stream #0:1 -> #0:1 (copy)
2023-08-09 15:55:59.663352227  Press [q] to stop, [?] for help
2023-08-09 15:55:59.682647504  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.21 bitrate=N/A speed=N/A    
17:55:59.682 DBG [exec] run launch=7.148500817s
2023-08-09 15:55:59.682967339  Output #0, rtsp, to 'rtsp://127.0.0.1:8554/15d453f65e5a76a85ded7ffb6e8e5b3b':
2023-08-09 15:55:59.682972318    Metadata:
2023-08-09 15:55:59.683000471      title           : IP Camera Video
2023-08-09 15:55:59.683005258      comment         : videoSub
2023-08-09 15:55:59.683036100      encoder         : Lavf59.27.100
2023-08-09 15:55:59.683091927    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 5.17 fps, 5.08 tbr, 90k tbn
2023-08-09 15:55:59.683151618    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:55:59.683157322  Stream mapping:
2023-08-09 15:55:59.683204017    Stream #0:0 -> #0:0 (copy)
2023-08-09 15:55:59.683208833    Stream #0:1 -> #0:1 (copy)
2023-08-09 15:55:59.683213715  Press [q] to stop, [?] for help
2023-08-09 15:56:00.447338141  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.05 bitrate=N/A speed=N/A    
frame=   21 fps=7.4 q=-1.0 size=N/A time=00:00:07.06 bitrate=N/A speed=2.48x    
frame=   13 fps=3.3 q=-1.0 size=N/A time=00:00:06.10 bitrate=N/A speed=1.57x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.76 bitrate=N/A speed=10.3x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.66 bitrate=N/A speed=10.5x    
av_interleaved_write_frame(): Broken pipe
2023-08-09 15:56:00.447447253  Error writing trailer of rtsp://127.0.0.1:8554/ca08797ddc94be60ba6f158d7ad31927: Broken pipe
2023-08-09 15:56:00.447462200  frame=    1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:05.96 bitrate=N/A speed=7.61x    
2023-08-09 15:56:00.447472086  video:491kB audio:6kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2023-08-09 15:56:00.447619517  Conversion failed!
2023-08-09 15:56:00.448618176  17:56:00.448 TRC [exec] close url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:00.460837916  av_interleaved_write_frame(): Broken pipe
2023-08-09 15:56:00.460918707  Error writing trailer of rtsp://127.0.0.1:8554/15d453f65e5a76a85ded7ffb6e8e5b3b: Broken pipe
2023-08-09 15:56:00.460931169  frame=    1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:05.83 bitrate=N/A speed=7.51x    
2023-08-09 15:56:00.460944361  video:229kB audio:7kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2023-08-09 15:56:00.461053632  Conversion failed!
2023-08-09 15:56:00.462148928  17:56:00.462 TRC [exec] close url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:01.217209494  frame=   26 fps=7.7 q=-1.0 size=N/A time=00:00:07.57 bitrate=N/A speed=2.25x    
frame=   24 fps=5.5 q=-1.0 size=N/A time=00:00:06.61 bitrate=N/A speed= 1.5x    
frame=   31 fps=7.9 q=-1.0 size=N/A time=00:00:08.08 bitrate=N/A speed=2.06x    
[INFO] Starting go2rtc healthcheck service...
2023-08-09 15:56:12.587961101  frame=   34 fps=6.9 q=-1.0 size=N/A time=00:00:07.12 bitrate=N/A speed=1.45x    
frame=   37 fps=8.3 q=-1.0 size=N/A time=00:00:08.66 bitrate=N/A speed=1.95x    
frame=   45 fps=8.3 q=-1.0 size=N/A time=00:00:07.70 bitrate=N/A speed=1.41x    
frame=   41 fps=8.3 q=-1.0 size=N/A time=00:00:09.10 bitrate=N/A speed=1.84x    
frame=   55 fps=9.2 q=-1.0 size=N/A time=00:00:08.21 bitrate=N/A speed=1.38x    
frame=   47 fps=8.6 q=-1.0 size=N/A time=00:00:09.74 bitrate=N/A speed=1.78x    
frame=   66 fps= 10 q=-1.0 size=N/A time=00:00:08.72 bitrate=N/A speed=1.34x    
frame=   53 fps=8.9 q=-1.0 size=N/A time=00:00:10.19 bitrate=N/A speed=1.71x    
frame=   77 fps= 11 q=-1.0 size=N/A time=00:00:09.30 bitrate=N/A speed=1.32x    
frame=   58 fps=8.9 q=-1.0 size=N/A time=00:00:10.70 bitrate=N/A speed=1.65x    
frame=   88 fps= 12 q=-1.0 size=N/A time=00:00:09.81 bitrate=N/A speed= 1.3x    
frame=   63 fps=9.0 q=-1.0 size=N/A time=00:00:11.22 bitrate=N/A speed= 1.6x    
frame=   97 fps= 12 q=-1.0 size=N/A time=00:00:10.32 bitrate=N/A speed=1.28x    
frame=   68 fps=9.0 q=-1.0 size=N/A time=00:00:11.73 bitrate=N/A speed=1.56x    
frame=  108 fps= 13 q=-1.0 size=N/A time=00:00:10.83 bitrate=N/A speed=1.26x    
frame=   73 fps=9.1 q=-1.0 size=N/A time=00:00:12.24 bitrate=N/A speed=1.52x    
frame=  119 fps= 13 q=-1.0 size=N/A time=00:00:11.35 bitrate=N/A speed=1.24x    
frame=   78 fps=9.1 q=-1.0 size=N/A time=00:00:12.82 bitrate=N/A speed= 1.5x    
frame=  129 fps= 13 q=-1.0 size=N/A time=00:00:11.86 bitrate=N/A speed=1.23x    
frame=   84 fps=9.2 q=-1.0 size=N/A time=00:00:13.33 bitrate=N/A speed=1.46x    
frame=  139 fps= 14 q=-1.0 size=N/A time=00:00:12.37 bitrate=N/A speed=1.22x    
frame=   89 fps=9.2 q=-1.0 size=N/A time=00:00:13.84 bitrate=N/A speed=1.43x    
frame=  150 fps= 14 q=-1.0 size=N/A time=00:00:12.95 bitrate=N/A speed=1.21x    
frame=   95 fps=9.3 q=-1.0 size=N/A time=00:00:14.42 bitrate=N/A speed=1.41x    
frame=  160 fps= 14 q=-1.0 size=N/A time=00:00:13.46 bitrate=N/A speed= 1.2x    
frame=  100 fps=9.3 q=-1.0 size=N/A time=00:00:14.93 bitrate=N/A speed=1.39x    
frame=  170 fps= 15 q=-1.0 size=N/A time=00:00:13.97 bitrate=N/A speed=1.19x    
frame=  181 fps= 15 q=-1.0 size=N/A time=00:00:14.48 bitrate=N/A speed=1.18x    
frame=  105 fps=9.3 q=-1.0 size=N/A time=00:00:15.50 bitrate=N/A speed=1.38x    
frame=  191 fps= 15 q=-1.0 size=N/A time=00:00:14.99 bitrate=N/A speed=1.18x    
frame=  111 fps=9.4 q=-1.0 size=N/A time=00:00:16.02 bitrate=N/A speed=1.36x    
frame=  202 fps= 15 q=-1.0 size=N/A time=00:00:15.51 bitrate=N/A speed=1.17x    
frame=  116 fps=9.4 q=-1.0 size=N/A time=00:00:16.53 bitrate=N/A speed=1.34x    
frame=  212 fps= 15 q=-1.0 size=N/A time=00:00:16.02 bitrate=N/A speed=1.16x    
frame=  121 fps=9.4 q=-1.0 size=N/A time=00:00:17.04 bitrate=N/A speed=1.33x    
frame=  223 fps= 16 q=-1.0 size=N/A time=00:00:16.53 bitrate=N/A speed=1.16x    
frame=  126 fps=9.4 q=-1.0 size=N/A time=00:00:17.62 bitrate=N/A speed=1.32x    
17:56:12.587 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:12.595740132  17:56:12.595 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:14.858548676  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65554
2023-08-09 15:56:14.867154454  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65556
2023-08-09 15:56:14.876046181  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65558
2023-08-09 15:56:14.897403310  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65560
2023-08-09 15:56:14.912331169  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65562
2023-08-09 15:56:14.949612769  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65564
2023-08-09 15:56:15.150774274  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65566
2023-08-09 15:56:15.349611185  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65568
2023-08-09 15:56:15.545872769  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65570
2023-08-09 15:56:15.714438899  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65572
2023-08-09 15:56:15.738682744  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65542
2023-08-09 15:56:15.912798258  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65544
2023-08-09 15:56:15.922425610  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65574
2023-08-09 15:56:16.117606962  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65576
2023-08-09 15:56:16.134302196  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65546
2023-08-09 15:56:16.314887529  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65578
2023-08-09 15:56:16.338085611  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65548
2023-08-09 15:56:16.518904587  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65580
2023-08-09 15:56:16.533990680  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65550
2023-08-09 15:56:16.682696567  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65582
2023-08-09 15:56:16.697027428  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65552
2023-08-09 15:56:16.880253351  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65584
2023-08-09 15:56:16.895564736  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65554
2023-08-09 15:56:17.083919657  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65586
2023-08-09 15:56:17.105041104  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65556
2023-08-09 15:56:17.279816243  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65558
2023-08-09 15:56:17.289652518  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65588
2023-08-09 15:56:17.482037793  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65590
2023-08-09 15:56:17.505014116  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65560
2023-08-09 15:56:17.663891663  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65592
2023-08-09 15:56:17.677872612  [h264 @ 0x55d6e32e81c0] Missing reference picture, default is 65562
2023-08-09 15:56:17.848111020  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65594
2023-08-09 15:56:18.045586531  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65596
2023-08-09 15:56:18.251006841  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65598
2023-08-09 15:56:18.451069386  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65600
2023-08-09 15:56:18.619057818  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65602
2023-08-09 15:56:18.816249873  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65604
2023-08-09 15:56:19.013503195  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65606
2023-08-09 15:56:19.216978963  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65608
2023-08-09 15:56:19.417620563  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65610
2023-08-09 15:56:19.580972044  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65612
2023-08-09 15:56:19.785691328  [h264 @ 0x55fe1d4b81c0] Missing reference picture, default is 65614
2023-08-09 15:56:19.914975707  Guessed Channel Layout for Input Stream #0.1 : mono
2023-08-09 15:56:19.914990603  Input #0, rtsp, from 'rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub':
2023-08-09 15:56:19.914999121    Metadata:
2023-08-09 15:56:19.915068139      title           : IP Camera Video
2023-08-09 15:56:19.915076997      comment         : videoSub
2023-08-09 15:56:19.915128307    Duration: N/A, start: 0.000000, bitrate: N/A
2023-08-09 15:56:19.915307921    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 5.17 fps, 5.50 tbr, 90k tbn
2023-08-09 15:56:19.915558958    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:56:19.917467772  Guessed Channel Layout for Input Stream #0.1 : mono
2023-08-09 15:56:19.917477275  Input #0, rtsp, from 'rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain':
2023-08-09 15:56:19.917482086    Metadata:
2023-08-09 15:56:19.917487037      title           : IP Camera Video
2023-08-09 15:56:19.917491464      comment         : videoMain
2023-08-09 15:56:19.917549499    Duration: N/A, start: 0.000000, bitrate: N/A
2023-08-09 15:56:19.917601605    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn
2023-08-09 15:56:19.917684199    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:56:19.968254752  17:56:19.968 DBG [exec] run launch=7.372388066s
2023-08-09 15:56:19.968499776  17:56:19.968 DBG [exec] run launch=7.38016631s
2023-08-09 15:56:19.968748516  Output #0, rtsp, to 'rtsp://127.0.0.1:8554/15d453f65e5a76a85ded7ffb6e8e5b3b':
2023-08-09 15:56:19.968762827  Output #0, rtsp, to 'rtsp://127.0.0.1:8554/ca08797ddc94be60ba6f158d7ad31927':
2023-08-09 15:56:19.968770442    Metadata:
2023-08-09 15:56:19.968859164      title           : IP Camera Video
2023-08-09 15:56:19.968866213      comment         : videoMain
2023-08-09 15:56:19.968873074      encoder         : Lavf59.27.100
2023-08-09 15:56:19.968925848    Metadata:
2023-08-09 15:56:19.968935114      title           : IP Camera Video  Stream #0:0
2023-08-09 15:56:19.968987243  : Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31    comment         : , videoSub
2023-08-09 15:56:19.968994086  90k tbr,     encoder         : 90k tbnLavf59.27.100
2023-08-09 15:56:19.968999787  
2023-08-09 15:56:19.969113180    Stream #0:1  Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:56:19.969124350  : Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, Stream mapping:
2023-08-09 15:56:19.969174498    Stream #0:0 -> #0:05.17 fps,  (copy)5.50 tbr, 
2023-08-09 15:56:19.969181544  90k tbn  Stream #0:1 -> #0:1
2023-08-09 15:56:19.969187052   (copy)
2023-08-09 15:56:19.969229832  Press [q] to stop, [?] for help
2023-08-09 15:56:19.969279252    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
2023-08-09 15:56:19.969328797  Stream mapping:
2023-08-09 15:56:19.969336434    Stream #0:0 -> #0:0 (copy)
2023-08-09 15:56:19.969386513    Stream #0:1 -> #0:1 (copy)
2023-08-09 15:56:19.969394286  Press [q] to stop, [?] for help
2023-08-09 15:56:20.766206065  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.21 bitrate=N/A speed=N/A    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.22 bitrate=N/A speed=N/A    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.83 bitrate=N/A speed=11.1x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:05.82 bitrate=N/A speed=11.1x    
av_interleaved_write_frame(): Broken pipe
2023-08-09 15:56:20.766419485  Error writing trailer of rtsp://127.0.0.1:8554/15d453f65e5a76a85ded7ffb6e8e5b3b: Broken pipe
2023-08-09 15:56:20.766463820  frame=    1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:06.00 bitrate=N/A speed=7.54x    
2023-08-09 15:56:20.766494058  video:224kB audio:7kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2023-08-09 15:56:20.766802500  Conversion failed!
2023-08-09 15:56:20.768566066  17:56:20.768 TRC [exec] close url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:22.575596567  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:06.35 bitrate=N/A speed=   6x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:06.89 bitrate=N/A speed=4.32x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:07.38 bitrate=N/A speed=3.45x    
17:56:22.575 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:22.622364777  17:56:22.622 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoSub -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:22.633020365  17:56:22.632 DBG [exec] run url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:23.654251995  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:07.92 bitrate=N/A speed=2.95x    
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:08.75 bitrate=N/A speed= 2.5x    
av_interleaved_write_frame(): Broken pipe
2023-08-09 15:56:23.654380102  Error writing trailer of rtsp://127.0.0.1:8554/ca08797ddc94be60ba6f158d7ad31927: Broken pipe
2023-08-09 15:56:23.654384517  frame=    1 fps=0.3 q=-1.0 Lsize=N/A time=00:00:08.92 bitrate=N/A speed=2.42x    
2023-08-09 15:56:23.654400546  video:481kB audio:25kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2023-08-09 15:56:23.654592857  Conversion failed!
2023-08-09 15:56:23.655533983  17:56:23.655 TRC [exec] close url="exec:ffmpeg -hide_banner -allowed_media_types video+audio -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://HomeAssistant:eL37FsBQbzJp@192.168.16.102:88/videoMain -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:24.414056824  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65542
2023-08-09 15:56:24.618519688  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65544
2023-08-09 15:56:24.840612137  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65546
2023-08-09 15:56:25.045879227  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65548
2023-08-09 15:56:25.245749589  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65550
2023-08-09 15:56:25.414210606  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65552
2023-08-09 15:56:25.596406071  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65554
2023-08-09 15:56:25.813311993  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65556
2023-08-09 15:56:26.018193568  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65558
2023-08-09 15:56:26.143981781  17:56:26.143 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 127.0.0.1:8554->127.0.0.1:52528: i/o timeout" url=ffmpeg:http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg
2023-08-09 15:56:26.144152859  17:56:26.144 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -i http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-08-09 15:56:26.205049225  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65560
2023-08-09 15:56:26.386464829  [h264 @ 0x56156aa2a1c0] Missing reference picture, default is 65562
2023-08-09 15:56:27.590375066  [tcp @ 0x557e898c44c0] Connection to tcp://192.168.16.103:80 failed: Connection timed out
2023-08-09 15:56:27.590448432  http://192.168.16.103/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=HomeAssistant&password=c2SRPa3H7kLaruRg: Connection timed out
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.