Bot releases are hidden (Show)
This release is about the web interface, which is available at the specified port (see -port
option). The web interface shows the recent snapshot and lets you install updates from Github. This fixes the long standing issue #16
Running hkcam
locally is now done with the command task hkcam
. (task
=> https://taskfile.dev/#/)
This command sets the port of the web ui to 8080
. You can specify a different port like this: PORT=8081 task hkcam
.
I've also change the format of the tags from v#.#.#
to #.#.#
. That's because the Go library to install updates doesn't support the old format.
Published by brutella over 2 years ago
By switching from hc to hap, I was able to clean up some code.
This version was tested on macOS Big Sur 11.3.1 (20E241) and on a Raspberry Pi running Raspberry Pi OS 32-bit (Kernel version: 5.10, Debian version: 11 (bullseye)). On macOS I've used the built-in iSight camera. On the Raspberry Pi I was able to get it to work with a USB camera (ELP 1080P) and a standard camera module. (The camera module requires Legacy Camera Support though.)
There is currently no pre-configured Raspberry Pi image available because installing v4l2loopback and ffmpeg is easy to install via apt-get
(see Readme).
This release improves the video stream quality by setting the video resolution to 720p and providing an option to set the minimum video bit rate.
The pre-configured Raspbian image sets the video resolution via v4l2-ctl
in the /etc/sv/hkcam/run
script.
The minimum bit rate is not specified but you can set it with the --min_video_bitrate
argument.
A run script with a minimum bit rate of 500kbps might look like this
#!/bin/sh -e
exec 2>&1
v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=YU12
exec hkcam --min_video_bitrate=500 --data_dir=/var/lib/hkcam/data --verbose=true
Note: Setting a minimum video bitrate might break streaming to Apple Watch.
Published by brutella over 5 years ago
Published by brutella almost 6 years ago