12708618d4
- docs/integrations/frigate.md — полный production-tested guide: Dockerfile, docker-compose, config.yml, troubleshooting (s6+pid, scale_cuda, hwaccel issues), build steps - docs/integrations/cctv-cpp.md — C++ pattern: IFrameSource interface + CuframesSource skeleton + CMake setup + runtime requirements - examples/frigate-compose/ — reference compose stack (cuframes-pub + Frigate) с config.yml stub, .env.example, README - examples/python-consumer/ — ctypes-based skeleton для AI/ML pipeline'ов (до v0.3 native pybind11 bindings) - docs/integration.md — превратился в index-страницу, ссылается на specific guides Reorganization упрощает onboarding: пользователь выбирает guide по типу integration'а (Frigate/C++/Python/FFmpeg) и сразу видит реальный code. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
# Minimal Frigate config с cuframes integration.
|
||
# Полный guide: docs/integrations/frigate.md
|
||
|
||
mqtt:
|
||
enabled: false
|
||
|
||
detectors:
|
||
# Замени на свой detector (tensorrt / onnx / cpu). Здесь — placeholder.
|
||
cpu:
|
||
type: cpu
|
||
|
||
# CRITICAL: hwaccel cuda отключён — наш patched ffmpeg без --enable-cuda-llvm
|
||
# (не работает на glibc < 2.38 что у Debian 12, на котором Frigate runtime).
|
||
# Без cuda-llvm нет scale_cuda filter. Detect-path использует CPU scale, но
|
||
# decode уже сделан у publisher'а — net выигрыш всё равно.
|
||
ffmpeg:
|
||
hwaccel_args: []
|
||
output_args:
|
||
record: preset-record-generic-audio-aac
|
||
|
||
cameras:
|
||
parking_overview:
|
||
enabled: true
|
||
friendly_name: Парковка
|
||
ffmpeg:
|
||
inputs:
|
||
# main (full-res) — только запись в архив через прямой RTSP (`-c:v copy`, no decode у Frigate)
|
||
# После cuframes v0.2 этот path тоже может через cuframes_packets:// (encoded share)
|
||
- path: rtsp://admin:${FRIGATE_RTSP_PASSWORD}@parking-cam-ip:554/cam/realmonitor?channel=1&subtype=0
|
||
roles: [record]
|
||
|
||
# sub-stream → через cuframes (decoded у publisher'а, без второго NVDEC)
|
||
- path: cuframes://cam-parking
|
||
input_args: -f cuframes
|
||
roles: [detect]
|
||
detect:
|
||
width: 640
|
||
height: 480
|
||
fps: 5
|
||
|
||
record:
|
||
enabled: true
|
||
retain:
|
||
days: 7
|
||
|
||
snapshots:
|
||
enabled: true
|
||
retain:
|
||
default: 7
|