blakeblackshear / frigate

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

[Support]: orangepi 5B run ghcr.io/blakeblackshear/frigate:0.13.0-beta6-rk fail #8799

Closed zjd1988 closed 11 months ago

zjd1988 commented 11 months ago

Describe the problem you are having

cannot get rtsp stream in web ui

Version

Frigate/0.13.0-614a36a

Frigate config file

mqtt:
  enabled: false

go2rtc:
  streams:
    rtsp_cam: # <- for RTSP streams
      - rtsp://10.0.79.32:8554/mystream # <- stream which supports video & aac audio
      # - "ffmpeg:rtsp_cam#audio=opus" # <- copy of the stream which transcodes audio to the missing codec (usually will be opus)

detectors:                            # required
  rknn:                               # required
    type: rknn                        # required
    # core mask for npu
    core_mask: 0

model:                                # required
  # name of yolov8 model or path to your own .rknn model file
  # possible values are:
  # - default-yolov8n
  # - default-yolov8s
  # - default-yolov8m
  # - default-yolov8l
  # - default-yolov8x
  # - /config/model_cache/rknn/your_custom_model.rknn
  path: default-yolov8n
  # width and height of detection frames
  width: 320
  height: 320
  # pixel format of detection frame
  # default value is rgb but yolov models usually use bgr format
  input_pixel_format: bgr             # required
  # shape of detection frame
  input_tensor: nhwc

ffmpeg:
  hwaccel_args: preset-rk-h264

detect:
  enabled: true
  width: 1920
  height: 1080
  fps: 5

record:
  enabled: true
  events:
    retain:
      default: 10
      mode: motion

cameras:
  test:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/rtsp_cam
          input_args: "preset-rtsp-generic" #-re -stream_loop -1 -fflags +genpts
          roles:
            - detect
            - record

Relevant log output

2023-11-30 17:55:33.750481157  [INFO] Preparing Frigate...
2023-11-30 17:55:33.768306242  [INFO] Starting Frigate...
2023-11-30 17:55:35.618685519  [2023-11-30 17:55:35] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-11-30 17:55:35.618864890  [2023-11-30 17:55:35] frigate.app                    INFO    : Creating directory: /config/model_cache
2023-11-30 17:55:35.641243077  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Starting migrations
2023-11-30 17:55:35.755312921  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "001_create_events_table"
2023-11-30 17:55:35.756182359  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE TABLE IF NOT EXISTS "event" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "label" VARCHAR(20) NOT NULL, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "top_score" REAL NOT NULL, "false_positive" INTEGER NOT NULL, "zones" JSON NOT NULL, "thumbnail" TEXT NOT NULL)',)
2023-11-30 17:55:35.756873884  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
2023-11-30 17:55:35.757506203  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
2023-11-30 17:55:35.758699092  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 001_create_events_table
2023-11-30 17:55:35.779202323  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "002_add_clip_snapshot"
2023-11-30 17:55:35.779563106  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
2023-11-30 17:55:35.787594544  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
2023-11-30 17:55:35.794152224  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 002_add_clip_snapshot
2023-11-30 17:55:35.812054016  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "003_create_recordings_table"
2023-11-30 17:55:35.812418591  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE TABLE IF NOT EXISTS "recordings" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
2023-11-30 17:55:35.812939203  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
2023-11-30 17:55:35.813546731  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
2023-11-30 17:55:35.814129467  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
2023-11-30 17:55:35.815480144  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 003_create_recordings_table
2023-11-30 17:55:35.836295034  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "004_add_bbox_region_area"
2023-11-30 17:55:35.836619944  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'region', <JSONField: Event.region>)
2023-11-30 17:55:35.843361370  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'box', <JSONField: Event.box>)
2023-11-30 17:55:35.849454728  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'area', <IntegerField: Event.area>)
2023-11-30 17:55:35.856196154  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 004_add_bbox_region_area
2023-11-30 17:55:35.874951926  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "005_make_end_time_nullable"
2023-11-30 17:55:35.875273627  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : drop_not_null ('event', 'end_time')
2023-11-30 17:55:35.882227381  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 005_make_end_time_nullable
2023-11-30 17:55:35.897819810  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "006_add_motion_active_objects"
2023-11-30 17:55:35.898148511  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
2023-11-30 17:55:35.899432106  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
2023-11-30 17:55:35.901281229  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 006_add_motion_active_objects
2023-11-30 17:55:35.913527152  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "007_add_retain_indefinitely"
2023-11-30 17:55:35.913824354  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
2023-11-30 17:55:35.921217057  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 007_add_retain_indefinitely
2023-11-30 17:55:35.936467660  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "008_add_sub_label"
2023-11-30 17:55:35.936791694  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
2023-11-30 17:55:35.938247077  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 008_add_sub_label
2023-11-30 17:55:35.950467917  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "009_add_object_filter_ratio"
2023-11-30 17:55:35.950764827  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'ratio', <FloatField: Event.ratio>)
2023-11-30 17:55:35.958109989  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 009_add_object_filter_ratio
2023-11-30 17:55:35.972697066  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "010_add_plus_image_id"
2023-11-30 17:55:35.973018183  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
2023-11-30 17:55:35.974581189  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 010_add_plus_image_id
2023-11-30 17:55:35.985624306  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Migrate "011_update_indexes"
2023-11-30 17:55:35.985917716  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
2023-11-30 17:55:35.986607200  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('DROP INDEX recordings_start_time_end_time',)
2023-11-30 17:55:35.987217936  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
2023-11-30 17:55:35.988386909  [2023-11-30 17:55:35] peewee_migrate.logs            INFO    : Done 011_update_indexes
2023-11-30 17:55:36.001695640  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "012_add_segment_size"
2023-11-30 17:55:36.001999842  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('recordings', 'segment_size', <FloatField: Recordings.segment_size>)
2023-11-30 17:55:36.010202192  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 012_add_segment_size
2023-11-30 17:55:36.029176417  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "013_create_timeline_table"
2023-11-30 17:55:36.029711905  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE TABLE IF NOT EXISTS "timeline" ("timestamp" DATETIME NOT NULL, "camera" VARCHAR(20) NOT NULL, "source" VARCHAR(20) NOT NULL, "source_id" VARCHAR(30), "class_type" VARCHAR(50) NOT NULL, "data" JSON)',)
2023-11-30 17:55:36.030137436  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "timeline_camera" ON "timeline" ("camera")',)
2023-11-30 17:55:36.030736214  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "timeline_source" ON "timeline" ("source")',)
2023-11-30 17:55:36.031312242  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX IF NOT EXISTS "timeline_source_id" ON "timeline" ("source_id")',)
2023-11-30 17:55:36.032655336  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 013_create_timeline_table
2023-11-30 17:55:36.052452042  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "014_event_updates_for_fp"
2023-11-30 17:55:36.052792700  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('event', 'score', <FloatField: Event.score>)
2023-11-30 17:55:36.053817593  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('event', 'model_hash', <CharField: Event.model_hash>)
2023-11-30 17:55:36.054887402  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('event', 'detector_type', <CharField: Event.detector_type>)
2023-11-30 17:55:36.055875837  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('event', 'model_type', <CharField: Event.model_type>)
2023-11-30 17:55:36.056698318  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'area')
2023-11-30 17:55:36.063660822  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'false_positive')
2023-11-30 17:55:36.070913237  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : apply_default ('event', 'false_positive', <BooleanField: Event.false_positive>)
2023-11-30 17:55:36.071230271  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 014_event_updates_for_fp
2023-11-30 17:55:36.092760311  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "015_event_refactor"
2023-11-30 17:55:36.093072387  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'top_score')
2023-11-30 17:55:36.099867771  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'score')
2023-11-30 17:55:36.105866923  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'region')
2023-11-30 17:55:36.111837784  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'box')
2023-11-30 17:55:36.117813311  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'area')
2023-11-30 17:55:36.127510418  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : drop_not_null ('event', 'ratio')
2023-11-30 17:55:36.135727060  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('event', 'data', <JSONField: Event.data>)
2023-11-30 17:55:36.138479455  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 015_event_refactor
2023-11-30 17:55:36.155377936  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "016_sublabel_increase"
2023-11-30 17:55:36.155701387  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : change_column ('event', 'sub_label', <CharField: Event.sub_label>)
2023-11-30 17:55:36.169873140  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 016_sublabel_increase
2023-11-30 17:55:36.187391524  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "017_update_indexes"
2023-11-30 17:55:36.187859638  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX "recordings_camera_segment_size" ON "recordings" ("camera", "segment_size")',)
2023-11-30 17:55:36.189980297  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 017_update_indexes
2023-11-30 17:55:36.204477334  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "018_add_dbfs"
2023-11-30 17:55:36.204782702  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : add_column ('recordings', 'dBFS', <IntegerField: Recordings.dBFS>)
2023-11-30 17:55:36.206538203  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 018_add_dbfs
2023-11-30 17:55:36.218592505  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "019_create_regions_table"
2023-11-30 17:55:36.218894373  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE TABLE IF NOT EXISTS "regions" ("camera" VARCHAR(20) NOT NULL PRIMARY KEY, "last_update" DATETIME NOT NULL, "grid" JSON)',)
2023-11-30 17:55:36.220163094  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 019_create_regions_table
2023-11-30 17:55:36.236267677  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Migrate "020_update_index_recordings"
2023-11-30 17:55:36.236570128  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('DROP INDEX recordings_end_time_start_time',)
2023-11-30 17:55:36.237017535  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)',)
2023-11-30 17:55:36.237634687  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")',)
2023-11-30 17:55:36.238314254  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : sql ('CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")',)
2023-11-30 17:55:36.239701680  [2023-11-30 17:55:36] peewee_migrate.logs            INFO    : Done 020_update_index_recordings
2023-11-30 17:55:36.302452302  [2023-11-30 17:55:36] frigate.app                    INFO    : Recording process started: 455
2023-11-30 17:55:36.312103036  [2023-11-30 17:55:36] frigate.app                    INFO    : go2rtc process pid: 89
2023-11-30 17:55:36.349870365  [2023-11-30 17:55:36] detector.rknn                  INFO    : Starting detection process: 464
2023-11-30 17:55:36.352461763  [2023-11-30 17:55:36] frigate.app                    INFO    : Output process started: 465
2023-11-30 17:55:36.368025608  [2023-11-30 17:55:36] frigate.app                    INFO    : Camera processor started for test: 470
2023-11-30 17:55:36.369296662  [2023-11-30 17:55:36] frigate.app                    INFO    : Capture process started for test: 471
2023-11-30 17:55:36.421636776  [2023-11-30 17:55:36] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-11-30 17:55:36.422099641  [2023-11-30 17:55:36] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-11-30 17:55:36.825661533  I RKNN: [17:55:36.825] RKNN Runtime Information: librknnrt version: 1.5.2 (c6b7b351a@2023-08-23T15:28:22)
2023-11-30 17:55:36.825741739  I RKNN: [17:55:36.825] RKNN Driver Information: version: 0.8.2
2023-11-30 17:55:36.825768280  W RKNN: [17:55:36.825] Current driver version: 0.8.2, recommend to upgrade the driver to the new version: >= 0.8.8
2023-11-30 17:55:36.826164355  I RKNN: [17:55:36.826] RKNN Model Information: version: 6, toolkit version: 1.5.2+b642f30c(compiler version: 1.5.2 (c6b7b351a@2023-08-23T07:39:01)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
2023-11-30 17:55:56.461664401  [2023-11-30 17:55:56] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-11-30 17:55:56.463561065  [2023-11-30 17:55:56] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-30 17:55:56.465272817  [2023-11-30 17:55:56] ffmpeg.test.detect             ERROR   : [rtsp @ 0x55a8f67f30] method DESCRIBE failed: 404 Not Found
2023-11-30 17:55:56.466934695  [2023-11-30 17:55:56] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found

FFprobe output from your camera

root@orangepi5b:/opt/frigate# ffprobe rtsp://10.0.79.32:8554/mystream
ffprobe version e243e8d001-20231113 Copyright (c) 2007-2023 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=aarch64-ffbuild-linux-gnu- --arch=aarch64 --target-os=linux --enable-nonfree --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-openssl --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-chromaprint --enable-libdav1d --disable-libdavs2 --enable-libdrm --enable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --disable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --disable-libvpx --enable-libwebp --enable-lv2 --enable-rkmpp --disable-libvpl --enable-openal --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 --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --disable-libplacebo --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lstdc++ -lgomp' --extra-version=20231113
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[rtsp @ 0x55d5007010] method SETUP failed: 461 Unsupported Transport
Input #0, rtsp, from 'rtsp://10.0.79.32:8554/mystream':
  Metadata:
    title           : No Name
  Duration: N/A, start: 0.138435, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
[h264_rkmpp_decoder @ 0x55d5055a00] Picture format is yuv420p.

Frigate stats

{
    "cameras": {
        "test": {
            "audio_dBFS": 0,
            "audio_rms": 0,
            "camera_fps": 0,
            "capture_pid": 471,
            "detection_enabled": 1,
            "detection_fps": 0,
            "ffmpeg_pid": 678,
            "pid": 470,
            "process_fps": 0,
            "skipped_fps": 0
        }
    },
    "cpu_usages": {
        "1": {
            "cmdline": "/package/admin/s6/command/s6-svscan -d4 -- /run/service",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "15": {
            "cmdline": "s6-supervise s6-linux-init-shutdownd",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "17": {
            "cmdline": "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "24": {
            "cmdline": "s6-supervise go2rtc-healthcheck",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "25": {
            "cmdline": "s6-supervise frigate",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "26": {
            "cmdline": "s6-supervise nginx-log",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "27": {
            "cmdline": "s6-supervise nginx",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "28": {
            "cmdline": "s6-supervise frigate-log",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "29": {
            "cmdline": "s6-supervise s6rc-oneshot-runner",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "30": {
            "cmdline": "s6-supervise s6rc-fdholder",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "31": {
            "cmdline": "s6-supervise go2rtc",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "32": {
            "cmdline": "s6-supervise go2rtc-log",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "41": {
            "cmdline": "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "42": {
            "cmdline": "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "77": {
            "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "80": {
            "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "84": {
            "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "89": {
            "cmdline": "/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml",
            "cpu": "2.6",
            "cpu_average": "2",
            "mem": "0.2"
        },
        "110": {
            "cmdline": "bash ./run.user go2rtc-healthcheck",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "113": {
            "cmdline": "python3 -u -m frigate",
            "cpu": "0.6",
            "cpu_average": "2",
            "mem": "1.3"
        },
        "119": {
            "cmdline": "nginx: master process nginx",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.1"
        },
        "145": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "146": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "147": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "150": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "167": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "220": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "286": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "310": {
            "cmdline": "nginx: worker process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "327": {
            "cmdline": "nginx: cache manager process",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "453": {
            "cmdline": "frigate.logger       ",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.7"
        },
        "455": {
            "cmdline": "frigate.recording_manager",
            "cpu": "0.9",
            "cpu_average": "0",
            "mem": "0.8"
        },
        "463": {
            "cmdline": "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(38)",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.1"
        },
        "464": {
            "cmdline": "frigate.detector.rknn",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.9"
        },
        "465": {
            "cmdline": "frigate.output       ",
            "cpu": "0.2",
            "cpu_average": "0",
            "mem": "0.7"
        },
        "470": {
            "cmdline": "frigate.process:test ",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.7"
        },
        "471": {
            "cmdline": "frigate.capture:test ",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.7"
        },
        "473": {
            "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.1"
        },
        "476": {
            "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.1"
        },
        "649": {
            "cmdline": "/bin/bash",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        },
        "678": {
            "cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -c:v h264_rkmpp_decoder -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://127.0.0.1:8554/rtsp_cam -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/test@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale=1920:1080 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.1"
        },
        "693": {
            "cmdline": "sleep 30s",
            "cpu": "0.0",
            "cpu_average": "0",
            "mem": "0.0"
        }
    },
    "detection_fps": 0,
    "detectors": {
        "rknn": {
            "detection_start": 0,
            "inference_speed": 10,
            "pid": 464
        }
    },
    "processes": {
        "go2rtc": {
            "pid": 89
        },
        "logger": {
            "pid": 453
        },
        "recording": {
            "pid": 455
        }
    },
    "service": {
        "last_updated": 1701338325,
        "latest_version": "0.12.1",
        "storage": {
            "/dev/shm": {
                "free": 63.5,
                "mount_type": "tmpfs",
                "total": 64,
                "used": 0.5
            },
            "/media/frigate/clips": {
                "free": 208527.6,
                "mount_type": "ext4",
                "total": 233791.6,
                "used": 13320
            },
            "/media/frigate/recordings": {
                "free": 208527.6,
                "mount_type": "ext4",
                "total": 233791.6,
                "used": 13320
            },
            "/tmp/cache": {
                "free": 939.6,
                "mount_type": "tmpfs",
                "total": 953.7,
                "used": 14
            }
        },
        "temperatures": {},
        "uptime": 189,
        "version": "0.13.0-614a36a"
    }
}

Operating system

Debian

Install method

Docker Compose

Coral version

Other

Network connection

Wired

Camera make and model

rtsp stream

Any other information that may be helpful

No response

MarcA711 commented 11 months ago

Could you post the content of your docker_compose.yml file and the output of uname -a and cat /proc/device-tree/compatible

NickM-27 commented 11 months ago

It will be good to provide go2rtc logs as the go2rtc restream is reporting 404. Also the wrong input_args are being used.

zjd1988 commented 11 months ago

Hi @MarcA711 @NickM-27 thanks you guys reply. docker_compose.yml

version: "3.3"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: ghcr.io/blakeblackshear/frigate:0.13.0-beta6-rk
    network_mode: host
    group_add:
      - "106" # render
      - "44"  # video
      - "46"  # plugdev
    shm_size: "64mb" # update for your cameras based on calculation above
    devices:
      - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
      - /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
      - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
      - /dev/dri/card0:/dev/dri/card0
      - /dev/rga
      - /dev/video-dec0:/dev/video-dec0
      - /dev/video-enc0:/dev/video-enc0
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /data/github_codes/frigate_test/config/config.yml:/config/config.yml
      - /data/github_codes/frigate_test/videos:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp
      - "1883:1883" # mqtt
    environment:
      FRIGATE_RTSP_PASSWORD: "password"
uname -a 
Linux orangepi5b 5.10.110-rockchip-rk3588 #1.0.4 SMP Fri Apr 21 10:36:45 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

cat /proc/device-tree/compatible
rockchip,rk3588s-orangepi-5rockchip,rk3588

how to export go2rtc logs? what's the correct input_args?

NickM-27 commented 11 months ago

Go2rtc logs are visible in the webUI

NickM-27 commented 11 months ago

Input args should be preset-rtsp-restream

zjd1988 commented 11 months ago

@NickM-27 I change config.yaml wih preset-rtsp-restream and rerun frigate docker, nothing changed. a84090eb-cfd0-4881-a72f-b7823a5e117f

I checked the webUi log, and not found anything about go2rtc log

2023-12-01 08:56:41.252127235  [INFO] Preparing Frigate...
2023-12-01 08:56:41.272080243  [INFO] Starting Frigate...
2023-12-01 08:56:42.867685641  [2023-12-01 08:56:42] frigate.app                    INFO    : Starting Frigate (0.13.0-614a36a)
2023-12-01 08:56:42.889341649  [2023-12-01 08:56:42] peewee_migrate.logs            INFO    : Starting migrations
2023-12-01 08:56:42.894730642  [2023-12-01 08:56:42] peewee_migrate.logs            INFO    : There is nothing to migrate
2023-12-01 08:56:42.900090760  [2023-12-01 08:56:42] frigate.app                    INFO    : Recording process started: 452
2023-12-01 08:56:42.902559657  [2023-12-01 08:56:42] frigate.app                    INFO    : go2rtc process pid: 90
2023-12-01 08:56:42.928063529  [2023-12-01 08:56:42] frigate.app                    INFO    : Output process started: 462
2023-12-01 08:56:42.929399912  [2023-12-01 08:56:42] detector.rknn                  INFO    : Starting detection process: 460
2023-12-01 08:56:42.939798740  [2023-12-01 08:56:42] frigate.app                    INFO    : Camera processor started for test: 467
2023-12-01 08:56:42.946998646  [2023-12-01 08:56:42] frigate.app                    INFO    : Capture process started for test: 469
2023-12-01 08:56:43.237140414  I RKNN: [08:56:43.237] RKNN Runtime Information: librknnrt version: 1.5.2 (c6b7b351a@2023-08-23T15:28:22)
2023-12-01 08:56:43.237272244  I RKNN: [08:56:43.237] RKNN Driver Information: version: 0.8.2
2023-12-01 08:56:43.237357700  W RKNN: [08:56:43.237] Current driver version: 0.8.2, recommend to upgrade the driver to the new version: >= 0.8.8
2023-12-01 08:56:43.238006351  I RKNN: [08:56:43.237] RKNN Model Information: version: 6, toolkit version: 1.5.2+b642f30c(compiler version: 1.5.2 (c6b7b351a@2023-08-23T07:39:01)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
2023-12-01 08:57:02.983773506  [2023-12-01 08:57:02] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 08:57:02.989222871  [2023-12-01 08:57:02] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 08:57:33.014697393  [2023-12-01 08:57:33] watchdog.test                  INFO    : FFmpeg did not exit. Force killing...
2023-12-01 08:57:33.027505910  [2023-12-01 08:57:33] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:57:33.033577094  [2023-12-01 08:57:33] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:57:37.971740350  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c00ad80] moov atom not found
2023-12-01 08:57:37.995511766  [ERROR:0@55.980] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 08:57:37.995530140  
2023-12-01 08:57:37.995544431  OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 08:57:37.995550265  
2023-12-01 08:57:37.995559014  
2023-12-01 08:57:38.449351441  [2023-12-01 08:57:38] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201085644+0800.mp4
2023-12-01 08:57:38.450857863  [2023-12-01 08:57:38] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201085644+0800.mp4
2023-12-01 08:57:43.064113987  [2023-12-01 08:57:43] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:57:43.067515028  [2023-12-01 08:57:43] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:57:48.286335264  [2023-12-01 08:57:48] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:57:48.287370947  [2023-12-01 08:57:48] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:57:53.116196396  [2023-12-01 08:57:53] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:57:53.116703592  [2023-12-01 08:57:53] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:57:53.118054267  [2023-12-01 08:57:53] ffmpeg.test.detect             ERROR   : [rtsp @ 0x55a1001d70] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2023-12-01 08:57:53.118060392  [2023-12-01 08:57:53] ffmpeg.test.detect             ERROR   : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2023-12-01 08:57:53.118064767  [2023-12-01 08:57:53] ffmpeg.test.detect             ERROR   : [out#0/segment @ 0x55a100de70] Output file does not contain any stream
2023-12-01 08:57:53.171726906  [2023-12-01 08:57:53] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:57:53.173506029  [2023-12-01 08:57:53] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:03.145326412  [2023-12-01 08:58:03] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:03.146598339  [2023-12-01 08:58:03] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:03.147399819  [2023-12-01 08:58:03] ffmpeg.test.detect             ERROR   : [rtsp @ 0x55bdbadd70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:03.148117885  [2023-12-01 08:58:03] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:03.194781654  [2023-12-01 08:58:03] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:03.195866627  [2023-12-01 08:58:03] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:13.175155826  [2023-12-01 08:58:13] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:13.176412587  [2023-12-01 08:58:13] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:13.177263650  [2023-12-01 08:58:13] ffmpeg.test.detect             ERROR   : [rtsp @ 0x559d398d70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:13.178040047  [2023-12-01 08:58:13] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:13.225382800  [2023-12-01 08:58:13] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:13.226630811  [2023-12-01 08:58:13] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:23.206685616  [2023-12-01 08:58:23] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:23.206699324  [2023-12-01 08:58:23] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:23.206703407  [2023-12-01 08:58:23] ffmpeg.test.detect             ERROR   : [rtsp @ 0x556ec6bd70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:23.206707491  [2023-12-01 08:58:23] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:23.261456645  [2023-12-01 08:58:23] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:23.262680156  [2023-12-01 08:58:23] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:33.235089941  [2023-12-01 08:58:33] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:33.236163540  [2023-12-01 08:58:33] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:33.237071184  [2023-12-01 08:58:33] ffmpeg.test.detect             ERROR   : [rtsp @ 0x5586d06d70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:33.237825416  [2023-12-01 08:58:33] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:33.287059872  [2023-12-01 08:58:33] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:33.287922017  [2023-12-01 08:58:33] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:43.254329866  [2023-12-01 08:58:43] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:43.254342991  [2023-12-01 08:58:43] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:43.254347074  [2023-12-01 08:58:43] ffmpeg.test.detect             ERROR   : [rtsp @ 0x55b6dead70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:43.254351158  [2023-12-01 08:58:43] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:59:03.283607360  [2023-12-01 08:59:03] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 08:59:03.283619318  [2023-12-01 08:59:03] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 08:59:03.304899378  [2023-12-01 08:59:03] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:59:03.305607819  [2023-12-01 08:59:03] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:59:13.310693717  [2023-12-01 08:59:13] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:59:13.351320135  [2023-12-01 08:59:13] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:59:13.355183165  [2023-12-01 08:59:13] ffmpeg.test.detect             ERROR   : [vost#1:0/rawvideo @ 0x55857da9b0] Finishing stream without any data written to it.
2023-12-01 08:59:33.397738540  [2023-12-01 08:59:33] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 08:59:33.400742342  [2023-12-01 08:59:33] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 08:59:33.462592238  [2023-12-01 08:59:33] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 08:59:33.466746344  [2023-12-01 08:59:33] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:59:43.465646728  [2023-12-01 08:59:43] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:59:43.465660144  [2023-12-01 08:59:43] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:59:43.465664810  [2023-12-01 08:59:43] ffmpeg.test.detect             ERROR   : [vost#1:0/rawvideo @ 0x558b49daf0] Finishing stream without any data written to it.
2023-12-01 09:00:03.497671242  [2023-12-01 09:00:03] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:00:03.497696325  [2023-12-01 09:00:03] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:00:03.529196432  [2023-12-01 09:00:03] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:00:03.531250882  [2023-12-01 09:00:03] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:00:13.531849390  [2023-12-01 09:00:13] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:00:13.532220381  [2023-12-01 09:00:13] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:00:13.532866115  [2023-12-01 09:00:13] ffmpeg.test.detect             ERROR   : [vost#1:0/rawvideo @ 0x5580c16820] Finishing stream without any data written to it.
2023-12-01 09:00:33.561437006  [2023-12-01 09:00:33] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:00:33.561450131  [2023-12-01 09:00:33] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:01:03.591728753  [2023-12-01 09:01:03] watchdog.test                  INFO    : FFmpeg did not exit. Force killing...
2023-12-01 09:01:03.599829306  [2023-12-01 09:01:03] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:03.600542413  [2023-12-01 09:01:03] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:03.601471641  [2023-12-01 09:01:03] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:01:07.994202857  [2023-12-01 09:01:07] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:01:08.021880473  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c2d2bd0] moov atom not found
2023-12-01 09:01:08.024063253  [ERROR:0@266.009] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 09:01:08.024079878  
2023-12-01 09:01:08.024100586  OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 09:01:08.024109044  
2023-12-01 09:01:08.024117210  
2023-12-01 09:01:08.127721684  [2023-12-01 09:01:08] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201090016+0800.mp4
2023-12-01 09:01:08.129294604  [2023-12-01 09:01:08] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201090016+0800.mp4
2023-12-01 09:01:13.603249704  [2023-12-01 09:01:13] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:01:13.603262537  [2023-12-01 09:01:13] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:01:33.636307360  [2023-12-01 09:01:33] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:01:33.636333027  [2023-12-01 09:01:33] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:01:33.686905335  [2023-12-01 09:01:33] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:33.686931293  [2023-12-01 09:01:33] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:01:37.952850934  [2023-12-01 09:01:37] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:01:43.686173459  [2023-12-01 09:01:43] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:01:43.697732219  [2023-12-01 09:01:43] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:01:43.698268581  [2023-12-01 09:01:43] ffmpeg.test.detect             ERROR   : [vost#1:0/rawvideo @ 0x559362ce80] Finishing stream without any data written to it.
2023-12-01 09:01:48.872378201  [2023-12-01 09:01:48] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:48.873188140  [2023-12-01 09:01:48] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:01:53.716592907  [2023-12-01 09:01:53] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:01:53.728002921  [2023-12-01 09:01:53] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:01:53.729180934  [2023-12-01 09:01:53] ffmpeg.test.detect             ERROR   : [rtsp @ 0x55a3bebd70] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2023-12-01 09:01:53.730018871  [2023-12-01 09:01:53] ffmpeg.test.detect             ERROR   : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2023-12-01 09:01:53.730638065  [2023-12-01 09:01:53] ffmpeg.test.detect             ERROR   : [out#0/segment @ 0x55a3bf7e70] Output file does not contain any stream
2023-12-01 09:01:53.781380994  [2023-12-01 09:01:53] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:53.782170516  [2023-12-01 09:01:53] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:02:03.757660512  [2023-12-01 09:02:03] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:02:03.758609864  [2023-12-01 09:02:03] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:02:03.759173059  [2023-12-01 09:02:03] ffmpeg.test.detect             ERROR   : [rtsp @ 0x55a28a0d70] method DESCRIBE failed: 404 Not Found
2023-12-01 09:02:03.759986789  [2023-12-01 09:02:03] ffmpeg.test.detect             ERROR   : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 09:02:17.990608731  [2023-12-01 09:02:17] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:02:23.777323662  [2023-12-01 09:02:23] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:02:23.777336203  [2023-12-01 09:02:23] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:02:23.794558700  [2023-12-01 09:02:23] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:02:23.795732921  [2023-12-01 09:02:23] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:02:28.001144622  [2023-12-01 09:02:27] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:02:33.836512908  [2023-12-01 09:02:33] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:02:33.838358530  [2023-12-01 09:02:33] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:02:33.839626958  [2023-12-01 09:02:33] ffmpeg.test.detect             ERROR   : [vost#1:0/rawvideo @ 0x559ccc53f0] Finishing stream without any data written to it.
2023-12-01 09:02:53.878168689  [2023-12-01 09:02:53] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:02:53.878181522  [2023-12-01 09:02:53] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:03:23.897535036  [2023-12-01 09:03:23] watchdog.test                  INFO    : FFmpeg did not exit. Force killing...
2023-12-01 09:03:23.903473807  [2023-12-01 09:03:23] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:23.904951063  [2023-12-01 09:03:23] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:23.906388361  [2023-12-01 09:03:23] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:23.906396236  [2023-12-01 09:03:23] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:03:28.007245361  [2023-12-01 09:03:28] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:03:28.037558705  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c114320] moov atom not found
2023-12-01 09:03:28.040560757  [ERROR:0@406.025] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 09:03:28.040579715  
2023-12-01 09:03:28.040600714  OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 09:03:28.040609173  
2023-12-01 09:03:28.040617339  
2023-12-01 09:03:28.138214501  [2023-12-01 09:03:28] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201090236+0800.mp4
2023-12-01 09:03:28.139830878  [2023-12-01 09:03:28] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201090236+0800.mp4
2023-12-01 09:03:33.906150598  [2023-12-01 09:03:33] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:03:33.906909205  [2023-12-01 09:03:33] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:03:53.952480432  [2023-12-01 09:03:53] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:03:53.952505223  [2023-12-01 09:03:53] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:03:54.041477720  [2023-12-01 09:03:54] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:54.043988825  [2023-12-01 09:03:54] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:03:58.011027296  [2023-12-01 09:03:58] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:04:04.090977369  [2023-12-01 09:04:04] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:04:04.091013826  [2023-12-01 09:04:04] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:04:04.091034534  [2023-12-01 09:04:04] ffmpeg.test.detect             ERROR   : [vost#1:0/rawvideo @ 0x5580c9c500] Finishing stream without any data written to it.
2023-12-01 09:04:24.151281570  [2023-12-01 09:04:24] watchdog.test                  INFO    : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:04:24.151294694  [2023-12-01 09:04:24] watchdog.test                  INFO    : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:04:54.183357106  [2023-12-01 09:04:54] watchdog.test                  INFO    : FFmpeg did not exit. Force killing...
2023-12-01 09:04:54.188144406  [2023-12-01 09:04:54] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:04:54.189581705  [2023-12-01 09:04:54] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2023-12-01 09:04:54.190472725  [2023-12-01 09:04:54] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:04:58.015117627  [2023-12-01 09:04:58] frigate.record.maintainer      WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:04:58.041903348  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c2ee4c0] moov atom not found
2023-12-01 09:04:58.043807302  [ERROR:0@496.029] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 09:04:58.043824218  
2023-12-01 09:04:58.043844926  OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 09:04:58.043853384  
2023-12-01 09:04:58.043861259  
2023-12-01 09:04:58.166561267  [2023-12-01 09:04:58] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201090406+0800.mp4
2023-12-01 09:04:58.168208268  [2023-12-01 09:04:58] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201090406+0800.mp4
2023-12-01 09:05:04.203241270  [2023-12-01 09:05:04] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:05:04.204251870  [2023-12-01 09:05:04] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:05:04.205052475  [2023-12-01 09:05:04] ffmpeg.test.detect             ERROR   : [h264 @ 0x55a12da180] Missing reference picture, default is 0
NickM-27 commented 11 months ago

WebUI has a selector in the top right where you can choose go2rtc

zjd1988 commented 11 months ago

@NickM-27

2023-12-01 09:27:11.898970855  [INFO] Preparing new go2rtc config...
2023-12-01 09:27:12.342265996  [INFO] Starting go2rtc...
2023-12-01 09:27:12.461811132  09:27:12.461 INF go2rtc version 1.8.4 linux/arm64
2023-12-01 09:27:12.462346619  09:27:12.462 INF [rtsp] listen addr=:8554
2023-12-01 09:27:12.462382201  09:27:12.462 INF [api] listen addr=:1984
2023-12-01 09:27:12.462512865  09:27:12.462 INF [webrtc] listen addr=:8555
2023-12-01 09:27:13.675296552  09:27:13.675 WRN [rtsp] error="streams: wrong response on DESCRIBE" stream=rtsp_cam
2023-12-01 09:27:21.901340141  [INFO] Starting go2rtc healthcheck service...
NickM-27 commented 11 months ago

Looks like go2rtc is getting unexpected response

zjd1988 commented 11 months ago

Hi @NickM-27 @MarcA711 I changed a new rtsp stream, works well. how to confirm ffmpeg use hw accl, ffmpeg used 50% cpu, is that normal 企业微信截图_17013981624091

NickM-27 commented 11 months ago

With hwaccel args it will be, 1920x1080 is somewhat high detect resolution, does the camera not have a sub stream

NickM-27 commented 11 months ago

A screenshot of the system page would be better to see

zjd1988 commented 11 months ago

@NickM-27 企业微信截图_17013987135595 the camera have no sub stream. In my opinion, hard decoder should not cost so much cpu percent, can I set cpu decoder for comparison?

MarcA711 commented 11 months ago

Yes, just remove the ffmpeg: hwaccel_args: lines to use the CPU detector.

zjd1988 commented 11 months ago

@MarcA711 Comment out these line,ffmpeg CPU utilization remains unchanged.

hardtosay123 commented 11 months ago

@zjd1988 My Orange Pi 5B run 0.13.0-beta6-rk without problems.

Can you try change the go2rtc like below to see if this can solve your issue?

go2rtc:
  streams:
    rtsp_cam: # <- for RTSP streams
      - "ffmpeg:rtsp://10.0.79.32:8554/mystream"

Because my go2rtc can not work before in 0.12.1, and then figure out that I have to add ffmpeg: in the front of my rtsp url.

Below I provide my config.yml as an example for your reference.

My both rtsp streams are H265 camera.

mqtt:
  enabled: True
  host: 192.168.0.220
  port: 1883
  user: xxxxx
  password: xxxxxx

detectors:
  rknn1:
    type: rknn
    core_mask: 0
  rknn2:
    type: rknn
    core_mask: 0

database:
  path: /db/frigate.db

model:
  path: default-yolov8m
  input_pixel_format: bgr

birdseye:
  enabled: True
  width: 1280
  height: 720
  quality: 16
  mode: continuous

ffmpeg:
  hwaccel_args: preset-rk-h265
  output_args:
    record: preset-record-generic-audio-aac

detect:
  width: 1280
  height: 720
  fps: 5
  enabled: True
  max_disappeared: 25
  stationary:
    interval: 10
    threshold: 50

objects:
  track:
    - person

record:
  enabled: True
  retain:
    days: 10
    mode: all
  events:
    pre_capture: 5
    post_capture: 5
    objects:
      - person
    retain:
      default: 10
      mode: motion
      objects:
        person: 10

snapshots:
  enabled: True
  retain:
    default: 10
    objects:
      person: 10

rtmp:
  enabled: False

go2rtc:
  streams:
    Garage:
      - "ffmpeg:rtsp://xxx:xxx@192.168.0.102:554"
    Home:
      - "ffmpeg:rtsp://xxx:xxx@192.168.0.104:554"
    # Garage_H264_webrtc:
    #   - "ffmpeg:rtsp://xxx:xxx@192.168.0.102:554#video=h264/rk#audio=opus"
    # Home_H264_webrtc:
    #   - "ffmpeg:rtsp://xxx:xxx@192.168.0.104:554#video=h264/rk#audio=opus"
  # webrtc:
  #   candidates:
  #     - 192.168.0.220:8555
  #     - stun:8555

timestamp_style:
  position: "bl"
  format: "%Y-%m-%d %H:%M:%S"

cameras:
  Garage:
    enabled: True
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Garage
          input_args: preset-rtsp-restream
          roles:
            - record
            - detect
    objects:
      track:
        - person
        - car
        - motorcycle
        - bicycle
        - cat
        - dog
        - bus
    record:
      enabled: True
      events:
        objects:
          - person
          - car
          - motorcycle
          - bicycle
          - cat
          - dog
          - bus
        retain:
          default: 10
          mode: motion
          objects:
            person: 10
            car: 10
            motorcycle: 10
            bicycle: 10
            cat: 10
            dog: 10
            bus: 10
    snapshots:
      enabled: True
      retain:
        default: 10
        objects:
          person: 10
          car: 10
          motorcycle: 10
          bicycle: 10
          cat: 10
          dog: 10
          bus: 10
    ui:
      order: 0
      dashboard: True
    live:
      stream_name: Garage
  Home:
    enabled: True
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Home
          input_args: preset-rtsp-restream
          roles:
            - record
            - detect
    ui:
      order: 1
      dashboard: True
    live:
      stream_name: Home

ui:
  live_mode: mse
  timezone: Asia/Kuala_Lumpur
  time_format: 24hour
  date_style: full
  time_style: full
  # DateTime Format
  # Year-Month-Date Hour(12hour):Minute:Second AM/PM Timezone  = "%Y-%m-%d %I:%M:%S %p %z"
  # Year-Month-Date Hour(24hour):Minute:Second Timezone  = "%Y-%m-%d %H:%M:%S %z"
  strftime_fmt: "%Y-%m-%d %H:%M:%S %z"

telemetry:
  version_check: True

#logger:
#  default: info
#  logs:
#    frigate.record: debug
zjd1988 commented 11 months ago

Hi @hardtosay123,thanks for your reply, I changed a rtsp stream and it worked normal.I wonder how much cpu percent cost when hard decode, can you share you top result.

hardtosay123 commented 11 months ago

Hi @hardtosay123,thanks for your reply, I changed a rtsp stream and it worked normal.I wonder how much cpu percent cost when hard decode, can you share you top result.

@zjd1988 My top process here: image

zjd1988 commented 11 months ago

@hardtosay123 Is that normal, ffmpeg process use 50+% cpu. It remained unchange, when i commented

ffmpeg:
  hwaccel_args: preset-rk-h264

can you have a try?

hardtosay123 commented 11 months ago

@hardtosay123 Is that normal, ffmpeg process use 50+% cpu. It remained unchange, when i commented

ffmpeg:
  hwaccel_args: preset-rk-h264

can you have a try?

hmm... I have try commented out the hardware acceleration, the cpu use the same 50+%, remained unchange.

zjd1988 commented 11 months ago

@hardtosay123 I'm confused whether ffmpeg use hw for accelerating video decodeing.I will download a ffmpeg-cpu docker image, and pull a rtsp stream to verify the cpu usage.

zjd1988 commented 11 months ago

@hardtosay123 @MarcA711 I pull mwader/static-ffmpeg:latest cpu use only 7%

企业微信截图_17015075423388

MarcA711 commented 11 months ago

Could you try to change your go2rtc stream to:

go2rtc:
  streams:
    rtsp_cam: # <- for RTSP streams
      - ffmpeg:rtsp://10.0.79.32:8554/mystream#video=copy#audio=copy # <- stream which supports video & aac audio
zjd1988 commented 11 months ago

Hi @MarcA711, this rtsp://10.0.79.32:8554/mystream is not work in frigate, but I can pull it from simple ffmpeg cmd

ffmpeg -i rtsp://10.0.79.32:8554/mystream -c copy -f mp4 output.mp4

frigate ffmpeg cmd

ffmpeg -hide_banner -loglevel warning -threads 2 -c:v hevc_rkmpp_decoder -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://*:*@10.2.230.20:554/Streaming/Channels/101?transportmode=unicast -r 5 -vf fps=5,scale=1920:1080 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:

Is frigate ffmpeg cmd cost much more cpu than simple ffmpeg cmd?

MarcA711 commented 11 months ago

Your kernel seems to be rather old. Could you try to install this ubuntu and see if it works? https://github.com/Joshua-Riek/ubuntu-rockchip

zjd1988 commented 11 months ago

@MarcA711 Ok, I will install latest ubuntu and have a try, I close this issue for now and reopen this when run into problems.