UNPKG

homebridge-plugin-utils

Version:

Opinionated utilities to provide common capabilities and create rich configuration webUI experiences for Homebridge plugins.

17 lines 1.08 kB
/* Copyright(C) 2022-2025, HJD (https://github.com/hjdhjd). All rights reserved. * * ffmpeg/settings.ts: Settings and constants for HomeKit FFmpeg utilities. */ // HomeKit prefers an I-frame interval of 5 seconds when livestreaming. export const HOMEKIT_IDR_INTERVAL = 5; // Additional headroom for bitrates beyond what HomeKit is requesting when streaming to improve quality with a minor additional bandwidth cost. export const HOMEKIT_STREAMING_HEADROOM = 64; // HomeKit Secure Video fragment length, in milliseconds. HomeKit only supports this value currently. export const HKSV_FRAGMENT_LENGTH = 4000; // HomeKit prefers a default I-frame interval of 4 seconds for HKSV event recordings. export const HKSV_IDR_INTERVAL = 4; // HomeKit Secure Video communication timeout threshold, in milliseconds. HKSV has a strict 5 second threshold for communication, so we set this a little below that. export const HKSV_TIMEOUT = 4500; // Minimum required GPU memory on a Raspberry Pi to enable hardware acceleration. export const RPI_GPU_MINIMUM = 128; //# sourceMappingURL=settings.js.map