hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.46k stars 93 forks source link

Enabling HKSV and after an event is triggered the motion sensors are left in an on state #661

Closed marcusboon closed 2 years ago

marcusboon commented 2 years ago

Describe The Problem: I have enabled HKSV on both a G4 Bullet and G4 Doorbell, they're set to "Stream & Record" both at home and away. If a motion event is triggered, the motion sensors get "triggered" and don't cancel the trigger even after the motion event has ceased.

To Reproduce:

  1. Setup HKSV on camera (Stream & Record)
  1. Trigger motion event by walking in front of camera

Expected: Motion sensor is triggered, recording is captured, motion sensor reverts back to normal state after

Actual: Motion sensor is triggered, recording is captured, motion sensor remains in triggered state

Logs:

[2/15/2022, 10:09:00 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: FFmpeg failed with error: null: undefined
[HDS ::ffff:10.10.10.131] Delegate finished streaming for 1 without setting RecordingPacket.isLast.         Can't notify Controller about endOfStream!
[2/15/2022, 10:09:05 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 566 second motion event.
[2/15/2022, 10:09:05 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.
[2/15/2022, 10:10:35 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Streaming request from 10.10.10.131: 1920x1080@30fps, 802 kbps. Using RTSP stream profile: 1600x1200@30fps (High), 2000 kbps.
[2/15/2022, 10:11:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 35 second motion event.
[2/15/2022, 10:11:10 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Stopped video streaming session.
[2/15/2022, 10:13:27 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 154 second motion event.
[2/15/2022, 10:13:27 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.
[2/15/2022, 10:13:32 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: FFmpeg failed with error: null: undefined
[HDS ::ffff:10.10.10.131] Delegate finished streaming for 1 without setting RecordingPacket.isLast.         Can't notify Controller about endOfStream!
[HDS ::ffff:10.10.10.131] Delegate finished recording stream 1 without sending anything out.       Controller will CANCEL.
[2/15/2022, 10:13:40 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 11 second motion event.
[2/15/2022, 10:13:40 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.
[2/15/2022, 10:22:37 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: FFmpeg failed with error: null: undefined
[HDS ::ffff:10.10.10.131] Delegate finished streaming for 1 without setting RecordingPacket.isLast.         Can't notify Controller about endOfStream!
[2/15/2022, 10:22:41 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 428 second motion event.
[2/15/2022, 10:22:41 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.
[2/15/2022, 10:31:44 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: FFmpeg failed with error: null: undefined
[HDS ::ffff:10.10.10.131] Delegate finished streaming for 1 without setting RecordingPacket.isLast.         Can't notify Controller about endOfStream!
[2/15/2022, 10:31:49 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 426 second motion event.
[2/15/2022, 10:31:49 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.
[2/15/2022, 10:32:30 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: FFmpeg failed with error: null: undefined
[HDS ::ffff:10.10.10.131] Delegate finished streaming for 1 without setting RecordingPacket.isLast.         Can't notify Controller about endOfStream!
[HDS ::ffff:10.10.10.131] Delegate finished recording stream 1 without sending anything out.       Controller will CANCEL.
[2/15/2022, 10:32:38 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 11 second motion event.
[2/15/2022, 10:32:38 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.
[2/15/2022, 10:33:42 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: Streaming request from 10.10.10.68: 1280x720@30fps, 299 kbps. Using RTSP stream profile: 1280x720@24fps (Medium), 2000 kbps.
[2/15/2022, 10:33:46 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: Stopped video streaming session.

Homebridge Configuration:

{
    "controllers": [
        {
            "address": "10.10.10.1",
            "password": "supersecretpassrow",
            "username": "supersecretuser"
        }
    ],
    "options": [
        "Enable.Doorbell.Trigger"
    ],
    "platform": "UniFi Protect"
}

Screenshots:

Environment:

marcusboon commented 2 years ago

To address the inevitable RTFM comment, yes I did have a look at it and I've now set the Enable.Video.HKSV.Recording.MaxDuration.Number setting which seems to help. However looking at the logs, it says HKSV has recorded e.g 566 second motion event for the doorbell, but it's literally staring at a blank wall so I'm not sure what motion its detecting. Also I don't see a 566 second video in homekit. Would that be a homekit thing or a protect thing?

hjdhjd commented 2 years ago

Are you 100% certain those logs are from v5.3.2? The log messages are subtly, but definitely, different in v5.3.2...and that doesn't appear to be the case in what you posted. Please ensure you are running the latest version of the plugin and verify that's the case. Less RTFM, and more are you sure you're running the latest release? 😄

marcusboon commented 2 years ago

Hmm you're right, I did just update to v5.3.2 while writing this. These are logs since restart

[2/15/2022, 11:01:55 AM] [Homebridge UI] Homebridge restart request received
[2/15/2022, 11:01:55 AM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[2/15/2022, 11:01:55 AM] [Homebridge UI] Sending SIGTERM to Homebridge
[2/15/2022, 11:01:55 AM] Got SIGTERM, shutting down Homebridge...
[2/15/2022, 11:02:00 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[2/15/2022, 11:02:05 AM] [HB Supervisor] Restarting Homebridge...
[2/15/2022, 11:02:05 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules
[2/15/2022, 11:02:05 AM] [HB Supervisor] Started Homebridge v1.4.0 with PID: 28360
[2/15/2022, 11:02:05 AM] Loaded config.json with 0 accessories and 2 platforms.
[2/15/2022, 11:02:05 AM] Loaded 2 cached accessories from cachedAccessories.
[2/15/2022, 11:02:05 AM] ---
[2/15/2022, 11:02:05 AM] Loaded plugin: homebridge-dummy@0.6.0
[2/15/2022, 11:02:05 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[2/15/2022, 11:02:05 AM] ---
[2/15/2022, 11:02:06 AM] Loaded plugin: homebridge-unifi-protect@5.3.2
[2/15/2022, 11:02:06 AM] Registering platform 'homebridge-unifi-protect.UniFi Protect'
[2/15/2022, 11:02:06 AM] ---
[2/15/2022, 11:02:06 AM] Loaded plugin: homebridge-config-ui-x@4.42.0
[2/15/2022, 11:02:06 AM] Registering platform 'homebridge-config-ui-x.config'
[2/15/2022, 11:02:06 AM] ---
[2/15/2022, 11:02:06 AM] Loading 2 platforms...
[2/15/2022, 11:02:06 AM] [Config] Initializing config platform...
[2/15/2022, 11:02:06 AM] [Config] Running in Service Mode
[2/15/2022, 11:02:06 AM] [UniFi Protect] Initializing UniFi Protect platform...
Setup Payload:
X-HM://xxxxxxxxxxxxxx
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │xxx-xx-xx │     
    └────────────┘     

[2/15/2022, 11:02:06 AM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge Malachor) is running on port xxxxxxx.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO]: Connected to the UniFi Protect controller API (address: 10.10.10.1 mac: 68D79A591D95).
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO]: Connected to the UniFi Protect realtime update events API.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO]: Discovered camera: G4 Driveway [UVC G4 Bullet] (address: 10.10.99.152 mac: 74ACB90BBA75).
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO]: Discovered camera: G4 Doorbell [UVC G4 Doorbell] (address: 10.10.99.40 mac: 74ACB90B06F5).
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO]: Controller refresh interval set to 10 seconds.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video support enabled.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video support enabled.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: Enabling doorbell automation trigger.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Enabling doorbell automation trigger.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Discovered doorbell message switch: LEAVE PACKAGE AT DOOR.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Discovered doorbell message switch: DO NOT DISTURB.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Discovered doorbell message switch: LEAVE PACKAGE ROUND THE BACK.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Discovered doorbell message switch: PLEASE RING THE BELL.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: Enabling HomeKit Secure Video event recording: 1920x1080@30fps, 2000 kbps with a 4 second timeshift buffer.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video recordings will be no longer than ~60 seconds.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Enabling HomeKit Secure Video event recording: 1920x1080@30fps, 2000 kbps with a 4 second timeshift buffer.
[2/15/2022, 11:02:06 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video recordings will be no longer than ~60 seconds.
[2/15/2022, 11:04:38 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Streaming request from 10.10.10.68: 1280x720@30fps, 299 kbps. Using RTSP stream profile: 1600x1200@30fps (High), 2000 kbps.
[2/15/2022, 11:04:40 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Stopped video streaming session.
[2/15/2022, 11:04:50 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Streaming request from 10.10.10.68: 1280x720@30fps, 299 kbps. Using RTSP stream profile: 1600x1200@30fps (High), 2000 kbps.
[2/15/2022, 11:05:10 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: FFmpeg process ended unexpectedly with an exit code of 0.
[2/15/2022, 11:05:10 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Stopped video streaming session.
[2/15/2022, 11:05:10 AM] [UniFi Protect] FFmpeg exited unexpectedly. Increasing logging output of FFmpeg for the next 5 minutes to provide additional detail for future attempts to stream video.
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Streaming request from 10.10.10.68: 1280x720@30fps, 299 kbps. Using RTSP stream profile: 1600x1200@30fps (High), 2000 kbps.
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: ffmpeg command: /homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -rtsp_transport tcp -i rtsps://10.10.10.1:7441/KMVo125uLIGWM3HZ?enableSrtp -map 0:v -vcodec copy -payload_type 99 -ssrc 10078725 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 1KvUdqGXDYCBaD9lYMDzyTIr/DbUq0rbEDMcN6L7 srtp://10.10.10.68:52505?rtcpport=52505&localrtcpport=52505&pkt_size=564 -map 0:a -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 48k -ac 1 -payload_type 110 -ssrc 5035126 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params fps/kDtublyG+HUH44tNXyo/15vRKNpiCoTxFam/ srtp://10.10.10.68:62945?rtcpport=62945&localrtcpport=62945&pkt_size=188 -loglevel level+verbose
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: ffmpeg command: /homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -protocol_whitelist pipe,udp,rtp,file,crypto -f sdp -acodec libfdk_aac -ac 1 -i pipe:0 -acodec aac -flags +global_header -ar 22050 -b:a 64k -f adts pipe:1 -loglevel level+verbose
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [tcp @ 0x7fa4fd3e0a00] [verbose] Starting connection attempt to 10.10.10.1 port 7441
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [tcp @ 0x7fa4fd3e0a00] [verbose] Successfully connected to 10.10.10.1 port 7441
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [sdp @ 0x7fdb63cfb080] [verbose] setting jitter buffer size to 500
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [rtsp @ 0x7fa4fd3e0080] [verbose] SDP:
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: v=0
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: o=- 1437 0 IN IP4 10.10.10.1
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: s=74ACB90B06F5_0
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: u=www.evostream.com
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: e=contact@evostream.com
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: c=IN IP4 10.10.10.1
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: t=0 0
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=recvonly
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=control:*
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=range:npt=now-
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: m=audio 0 RTP/AVP 96
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=recvonly
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=rtpmap:96 mpeg4-generic/48000/1
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=control:trackID=0
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13; IndexLength=3; IndexDeltaLength=3;
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:pboBBk/0pz1KFG42oiCcOHFvTSvd98ZbIWyoZA93
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: m=video 0 RTP/AVP 97
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=recvonly
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=control:trackID=1
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=rtpmap:97 H264/90000
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=fmtp:97 profile-level-id=4d4028; packetization-mode=1; sprop-parameter-sets=Z01AKI2NQDIBL/4C3AQEBQAAAwPoAADqYJ2giEag,aO44gA==
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:yS3mbJROkGbBQlpy+SS+QgSwFFwF5XZvDAbaCktp
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [rtsp @ 0x7fa4fd3e0080] [verbose] setting jitter buffer size to 0
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [rtsp @ 0x7fa4fd3e0080] [verbose] setting jitter buffer size to 0
[2/15/2022, 11:05:12 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [h264 @ 0x55b0c9a26340] [verbose] Reinit context to 1600x1200, pix_fmt: yuvj420p
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Input #0, rtsp, from 'rtsps://10.10.10.1:7441/KMVo125uLIGWM3HZ?enableSrtp':
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Metadata:
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     title           : 74ACB90B06F5_0
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Duration: N/A, start: 0.000000, bitrate: N/A
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Stream #0:1: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1600x1200 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn, 60 tbc
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Output #0, rtp, to 'srtp://10.10.10.68:52505?rtcpport=52505&localrtcpport=52505&pkt_size=564':
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Metadata:
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     title           : 74ACB90B06F5_0
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     encoder         : 
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Lavf58.45.100
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Stream #0:0: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1600x1200 (0x0) [SAR 1:1 DAR 4:3], q=2-31, 30 fps, 30 tbr, 90k tbn, 30 tbc
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Stream mapping:
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Stream #0:1 -> #0:0 (copy)
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Stream #0:0 -> #1:0 (aac (native) -> aac (libfdk_aac))
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Press [q] to stop, [?] for help
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [graph_0_in_0_0 @ 0x55b0c9b56980] [verbose] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x4
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [format_out_1_0 @ 0x55b0c9b57040] [verbose] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_1_0'
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [auto_resampler_0 @ 0x55b0c9a45b80] [verbose] ch:1 chl:mono fmt:fltp r:48000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Output #1, rtp, to 'srtp://10.10.10.68:62945?rtcpport=62945&localrtcpport=62945&pkt_size=188':
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Metadata:
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     title           : 74ACB90B06F5_0
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     encoder         : Lavf58.45.100
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, delay 288, 24 kb/s
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Metadata:
[2/15/2022, 11:05:13 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]       encoder         : Lavc58.91.100 libfdk_aac
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: Stopped video streaming session.
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [warning] Guessed Channel Layout for Input Stream #0.0 : mono
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Input #0, sdp, from 'pipe:0':
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Metadata:
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     title           : Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell] Audio Talkback
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Duration: N/A, bitrate: N/A
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Stream #0:0: Audio: aac, 16000 Hz, mono, s16
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Stream mapping:
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Stream #0:0 -> #0:0 (aac (libfdk_aac) -> aac (native))
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [warning] Finishing stream 0:0 without any data written to it.
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [graph_0_in_0_0 @ 0x556efcaba800] [verbose] tb:1/16000 samplefmt:s16 samplerate:16000 chlayout:0x4
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [format_out_0_0 @ 0x556efcabae80] [verbose] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [auto_resampler_0 @ 0x556efcadcb40] [verbose] ch:1 chl:mono fmt:s16 r:16000Hz -> ch:1 chl:mono fmt:fltp r:22050Hz
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Output #0, adts, to 'pipe:1':
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]   Metadata:
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     title           : Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell] Audio Talkback
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     encoder         : Lavf58.45.100
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Stream #0:0: Audio: aac (LC), 22050 Hz, mono, fltp, delay 1024, 64 kb/s
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]     Metadata:
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info]       encoder         : Lavc58.91.100 aac
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose] Input file #0 (pipe:0):
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Total: 0 packets (0 bytes) demuxed
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose] Output file #0 (pipe:1):
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Total: 0 packets (0 bytes) muxed
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [AVIOContext @ 0x556efcad2140] [verbose] Statistics: 0 seeks, 0 writeouts
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [aac @ 0x556efcad13c0] [info] Qavg: -nan
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [AVIOContext @ 0x7fdb63cfb6c0] [verbose] Statistics: 386 bytes read, 0 seeks
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Exiting normally, received signal 15.
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] video:355kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose] Input file #0 (rtsps://10.10.10.1:7441/KMVo125uLIGWM3HZ?enableSrtp):
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Input stream #0:0 (audio): 152 packets read (24875 bytes); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: 152 frames decoded (155648 samples); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Input stream #0:1 (video): 96 packets read (367432 bytes); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Total: 248 packets (392307 bytes) demuxed
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose] Output file #0 (srtp://10.10.10.68:52505?rtcpport=52505&localrtcpport=52505&pkt_size=564):
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Output stream #0:0 (video): 94 packets muxed (363604 bytes); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Total: 94 packets (363604 bytes) muxed
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose] Output file #1 (srtp://10.10.10.68:62945?rtcpport=62945&localrtcpport=62945&pkt_size=188):
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Output stream #1:0 (audio): 101 frames encoded (51712 samples); 102 packets muxed (9936 bytes); 
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [verbose]   Total: 102 packets (9936 bytes) muxed
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [AVIOContext @ 0x55b0c9bb52c0] [verbose] Statistics: 0 seeks, 727 writeouts
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [AVIOContext @ 0x55b0c9a27e40] [verbose] Statistics: 0 seeks, 103 writeouts
[2/15/2022, 11:05:15 AM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: [info] Exiting normally, received signal 15.
[2/15/2022, 11:10:10 AM] [UniFi Protect] Returning FFmpeg logging output to normal levels.
[2/15/2022, 12:40:34 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 47 second motion event.
[2/15/2022, 12:42:02 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 29 second motion event.
[2/15/2022, 12:42:30 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: FFmpeg process ended unexpectedly with an exit code of 1.
[2/15/2022, 12:42:31 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 5 second motion event.
[2/15/2022, 12:42:41 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: FFmpeg process ended unexpectedly with an exit code of 1.
[2/15/2022, 12:42:42 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 5 second motion event.
[2/15/2022, 12:44:14 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 36 second motion event.
[2/15/2022, 12:44:34 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 16 second motion event.
[2/15/2022, 12:44:46 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: FFmpeg process ended unexpectedly with an exit code of 1.
[2/15/2022, 12:44:47 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 5 second motion event.
[2/15/2022, 12:45:14 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: FFmpeg process ended unexpectedly with an exit code of 1.
[2/15/2022, 12:45:15 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 5 second motion event.
[2/15/2022, 12:45:26 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: FFmpeg process ended unexpectedly with an exit code of 1.
[2/15/2022, 12:45:27 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 5 second motion event.
[2/15/2022, 12:47:02 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 62 second motion event.
[2/15/2022, 12:47:13 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: FFmpeg process ended unexpectedly with an exit code of 1.
[2/15/2022, 12:47:13 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 4 second motion event.
[2/15/2022, 12:47:56 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 27 second motion event.
[HDS ::ffff:10.10.10.131] Delegate yielded fragment after stream 1 was already closed!
[2/15/2022, 12:48:15 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 19 second motion event.
[2/15/2022, 12:48:59 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 43 second motion event.
[2/15/2022, 12:50:03 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Doorbell [UVC G4 Doorbell]: HomeKit Secure Video has recorded a 20 second motion event.
[2/15/2022, 1:17:04 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: HomeKit Secure Video has recorded a 16 second motion event.
[2/15/2022, 1:17:13 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: Streaming request from 10.10.10.68: 1280x720@30fps, 299 kbps. Using RTSP stream profile: 1280x720@24fps (Medium), 2000 kbps.
[2/15/2022, 1:17:20 PM] [UniFi Protect] Alderaan [UDM-PRO] G4 Driveway [UVC G4 Bullet]: Stopped video streaming session.

I'll disable the Enable.Video.HKSV.Recording.MaxDuration.Number and see if I can reproduce

hjdhjd commented 2 years ago

Known issue. I don't need more testing thanks. An update will be forthcoming. Apologies...this wasn't a dupe after all. 😄

Please update to v5.3.3...should fix another pesky little bug. Open a new issue if you're having a problem or please hop on the Discord. Thanks, and sorry I conflated two different issues!

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.