Closed azagramac closed 2 years ago
Link to #274 issue: https://github.com/Hexxeh/rpi-firmware/issues/274#issuecomment-979348468
@AzagraMac It works for me on Bullseye using: go run cmd/hkcam/main.go -h264_encoder h264_v4l2m2m
@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. :)
@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
more info: https://www.raspberrypi.com/news/bullseye-camera-system/