Not working in Bullseye
Closed this issue · 5 comments
azagramac commented
azagramac commented
Link to #274 issue: Hexxeh/rpi-firmware#274 (comment)
sighmon commented
@azagramac It works for me on Bullseye using: go run cmd/hkcam/main.go -h264_encoder h264_v4l2m2m
Loremwriter commented
@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
@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