brutella / hkcam

Open-Source HomeKit Surveillance Camera
https://hochgatterer.me/hkcam/
Apache License 2.0
932 stars 141 forks source link

Not working in Bullseye #122

Closed azagramac closed 2 years ago

azagramac commented 2 years ago

more info: https://www.raspberrypi.com/news/bullseye-camera-system/

azagramac commented 2 years ago

Link to #274 issue: https://github.com/Hexxeh/rpi-firmware/issues/274#issuecomment-979348468

sighmon commented 2 years ago

@AzagraMac It works for me on Bullseye using: go run cmd/hkcam/main.go -h264_encoder h264_v4l2m2m

Loremwriter commented 2 years ago

@AzagraMac It works for me on Bullseye using: go run cmd/hkcam/main.go -h264_encoder h264_v4l2m2m

Where do I have to use it? Sorry for my stupid question. :)

sighmon commented 2 years ago

@Loremwriter It depends on how you're starting it... but assuming you've used the Ansible playbook to install it you could edit the file /etc/sv/hkcam/run following these instructions: https://github.com/brutella/hkcam#advanced-configuration

So the file might look like:

#!/bin/sh -e
exec 2>&1
v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=YU12
exec hkcam --data_dir=/var/lib/hkcam/data --verbose=true --h264_encoder=h264_v4l2m2m
brutella commented 2 years ago

Hi, sorry for not responding sooner. I've just released version 0.1.0, which is easy to install on a Raspberry Pi running Raspberry Pi OS (Bullseye). See the instructions in the readme.