blakeblackshear / frigate

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

[Support]: #3967

Closed ViktuK359 closed 2 years ago

ViktuK359 commented 2 years ago

Describe the problem you are having

Hello. The addon not running, everything worked fine in the previous version. Rpi4

Version

0.11.0

Frigate config file

mqtt:
  host: xxx
  user: mqtt
  password: mqtt
  topic_prefix: frigate

cameras:
  lift:
    ffmpeg:
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
      input_args:
        - '-avoid_negative_ts'
        - make_zero
        - '-fflags'
        - nobuffer
        - '-flags'
        - low_delay
        - '-strict'
        - experimental
        - '-fflags'
        - +genpts+discardcorrupt
        - '-use_wallclock_as_timestamps'
        - '1' 

      inputs:
        - path: rtsp://xxx:554/user=admin_password=k112399_channel=1_stream=0.sdp
          roles:
            - detect

    snapshots:        
      enabled: True
#      crop: True
#      height: 500
      retain:
        default: 5

    record:
      enabled: True
      retain:
        days: 0
      events:
        max_seconds: 300
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - cat
          - bicycle
        retain:
          default: 5
          mode: active_objects

    detect:
      width: 1280
      height: 720

    objects:
      track:
        - person
        - bicycle
        - cat

  black:
    ffmpeg:
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
      input_args:
        - '-avoid_negative_ts'
        - make_zero
        - '-fflags'
        - nobuffer
        - '-flags'
        - low_delay
        - '-strict'
        - experimental
        - '-fflags'
        - +genpts+discardcorrupt
        - '-use_wallclock_as_timestamps'
        - '1' 

      inputs:
        - path: rtsp://xxx/user=admin_password=k112399_channel=2_stream=0.sdp
          roles:
            - detect

    snapshots:        
      enabled: True
      retain:
        default: 5

    record:
      enabled: True
      retain:
        days: 0
      events:
        max_seconds: 300
        pre_capture: 5
        post_capture: 5
        objects:
          - person
          - cat
          - bicycle
        retain:
          default: 5
          mode: active_objects

    detect:
      width: 1280
      height: 720

    objects:
      track:
        - person
        - bicycle
        - cat

Relevant log output

[2022-09-28 10:44:41] ffmpeg.lift.detect             ERROR   : [flv @ 0x558eb45c50] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-09-28 10:44:41] ffmpeg.lift.detect             ERROR   : [flv @ 0x558eb45c50] Packet is missing PTS
[2022-09-28 10:44:41] ffmpeg.lift.detect             ERROR   : av_interleaved_write_frame(): Invalid argument
[2022-09-28 10:44:41] ffmpeg.lift.detect             ERROR   : Finishing stream 1:0 without any data written to it.
[2022-09-28 10:44:41] ffmpeg.lift.detect             ERROR   : [flv @ 0x558eb45c50] Failed to update header with correct duration.
[2022-09-28 10:44:41] ffmpeg.lift.detect             ERROR   : [flv @ 0x558eb45c50] Failed to update header with correct filesize.
[2022-09-28 10:44:43] frigate.video                  ERROR   : lift: Unable to read frames from ffmpeg process.
[2022-09-28 10:44:43] frigate.video                  ERROR   : lift: ffmpeg process is not running. exiting capture thread...
[2022-09-28 10:44:51] watchdog.lift                  ERROR   : Ffmpeg process crashed unexpectedly for lift.
[2022-09-28 10:44:51] watchdog.lift                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-28 10:44:51] ffmpeg.lift.detect             ERROR   : [flv @ 0x55b4f34c50] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-09-28 10:44:51] ffmpeg.lift.detect             ERROR   : [flv @ 0x55b4f34c50] Packet is missing PTS
[2022-09-28 10:44:51] ffmpeg.lift.detect             ERROR   : av_interleaved_write_frame(): Invalid argument
[2022-09-28 10:44:51] ffmpeg.lift.detect             ERROR   : Finishing stream 1:0 without any data written to it.
[2022-09-28 10:44:51] ffmpeg.lift.detect             ERROR   : [flv @ 0x55b4f34c50] Failed to update header with correct duration.
[2022-09-28 10:44:51] ffmpeg.lift.detect             ERROR   : [flv @ 0x55b4f34c50] Failed to update header with correct filesize.
[2022-09-28 10:44:53] frigate.video                  ERROR   : lift: Unable to read frames from ffmpeg process.
[2022-09-28 10:44:53] frigate.video                  ERROR   : lift: ffmpeg process is not running. exiting capture thread...

FFprobe output from your camera

Not

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

NVR RSTP

Any other information that may be helpful

No response

ViktuK359 commented 2 years ago
[2022-09-28 10:59:31] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Starting migrations
Migrate "001_create_events_table"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "001_create_events_table"
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)',)
[2022-09-28 10:59:31] peewee_migrate                 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)',)
sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_label" ON "event" ("label")',)
sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "event_camera" ON "event" ("camera")',)
Done 001_create_events_table
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 001_create_events_table
Migrate "002_add_clip_snapshot"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "002_add_clip_snapshot"
add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'has_clip', <BooleanField: Event.has_clip>)
add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'has_snapshot', <BooleanField: Event.has_snapshot>)
Done 002_add_clip_snapshot
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 002_add_clip_snapshot
Migrate "003_create_recordings_table"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "003_create_recordings_table"
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)',)
[2022-09-28 10:59:31] peewee_migrate                 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)',)
sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_camera" ON "recordings" ("camera")',)
sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "recordings_path" ON "recordings" ("path")',)
sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : sql ('CREATE INDEX IF NOT EXISTS "recordings_start_time_end_time" ON "recordings" (start_time, end_time)',)
Done 003_create_recordings_table
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 003_create_recordings_table
Migrate "004_add_bbox_region_area"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "004_add_bbox_region_area"
add_column ('event', 'region', <JSONField: Event.region>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'region', <JSONField: Event.region>)
add_column ('event', 'box', <JSONField: Event.box>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'box', <JSONField: Event.box>)
add_column ('event', 'area', <IntegerField: Event.area>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'area', <IntegerField: Event.area>)
Done 004_add_bbox_region_area
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 004_add_bbox_region_area
Migrate "005_make_end_time_nullable"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "005_make_end_time_nullable"
drop_not_null ('event', 'end_time')
[2022-09-28 10:59:31] peewee_migrate                 INFO    : drop_not_null ('event', 'end_time')
Done 005_make_end_time_nullable
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 005_make_end_time_nullable
Migrate "006_add_motion_active_objects"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "006_add_motion_active_objects"
add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('recordings', 'objects', <IntegerField: Recordings.objects>)
add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('recordings', 'motion', <IntegerField: Recordings.motion>)
Done 006_add_motion_active_objects
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 006_add_motion_active_objects
Migrate "007_add_retain_indefinitely"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "007_add_retain_indefinitely"
add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'retain_indefinitely', <BooleanField: Event.retain_indefinitely>)
Done 007_add_retain_indefinitely
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 007_add_retain_indefinitely
Migrate "008_add_sub_label"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "008_add_sub_label"
add_column ('event', 'sub_label', <CharField: Event.sub_label>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'sub_label', <CharField: Event.sub_label>)
Done 008_add_sub_label
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 008_add_sub_label
Migrate "009_add_object_filter_ratio"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "009_add_object_filter_ratio"
add_column ('event', 'ratio', <FloatField: Event.ratio>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'ratio', <FloatField: Event.ratio>)
Done 009_add_object_filter_ratio
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 009_add_object_filter_ratio
Migrate "010_add_plus_image_id"
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Migrate "010_add_plus_image_id"
add_column ('event', 'plus_id', <CharField: Event.plus_id>)
[2022-09-28 10:59:31] peewee_migrate                 INFO    : add_column ('event', 'plus_id', <CharField: Event.plus_id>)
Done 010_add_plus_image_id
[2022-09-28 10:59:31] peewee_migrate                 INFO    : Done 010_add_plus_image_id
Migrate "011_update_indexes"
[2022-09-28 10:59:32] peewee_migrate                 INFO    : Migrate "011_update_indexes"
sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
[2022-09-28 10:59:32] peewee_migrate                 INFO    : sql ('CREATE INDEX "event_start_time_end_time" ON "event" ("start_time" DESC, "end_time" DESC)',)
sql ('DROP INDEX recordings_start_time_end_time',)
[2022-09-28 10:59:32] peewee_migrate                 INFO    : sql ('DROP INDEX recordings_start_time_end_time',)
sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
[2022-09-28 10:59:32] peewee_migrate                 INFO    : sql ('CREATE INDEX "recordings_end_time_start_time" ON "recordings" ("end_time" DESC, "start_time" DESC)',)
Done 011_update_indexes
[2022-09-28 10:59:32] peewee_migrate                 INFO    : Done 011_update_indexes
[2022-09-28 10:59:32] frigate.app                    INFO    : Output process started: 217
[2022-09-28 10:59:32] detector.cpu                   INFO    : Starting detection process: 216
[2022-09-28 10:59:32] frigate.app                    INFO    : Camera processor started for lift: 220
[2022-09-28 10:59:32] frigate.app                    INFO    : Camera processor started for back: 221
[2022-09-28 10:59:32] frigate.app                    INFO    : Capture process started for lift: 222
[2022-09-28 10:59:32] frigate.app                    INFO    : Capture process started for back: 223
[2022-09-28 10:59:32] ws4py                          INFO    : Using epoll
[2022-09-28 10:59:32] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2022-09-28 10:59:33] ws4py                          INFO    : Using epoll
NickM-27 commented 2 years ago

Try disabling RTMP and see if that helps:

rtsp:
  enabled: false
github-actions[bot] commented 2 years 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.