From e9443119ec756486fcae11c2307b2582cc8456b3 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 19 Jan 2025 18:20:39 +0200 Subject: required ustreamer 6.24 at least --- PKGBUILD | 2 +- configs/janus/janus.plugin.ustreamer.jcfg | 2 +- kvmd.install | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 6a7942e3..69fc66f8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -94,7 +94,7 @@ depends=( certbot platform-io-access raspberrypi-utils - "ustreamer>=6.21-2" + "ustreamer>=6.24" # Systemd UDEV bug "systemd>=248.3-2" diff --git a/configs/janus/janus.plugin.ustreamer.jcfg b/configs/janus/janus.plugin.ustreamer.jcfg index aa297330..242477da 100644 --- a/configs/janus/janus.plugin.ustreamer.jcfg +++ b/configs/janus/janus.plugin.ustreamer.jcfg @@ -1,7 +1,7 @@ video: { sink = "kvmd::ustreamer::h264" } -audio: { +acap: { device = "hw:tc358743,0" tc358743 = "/dev/kvmd-video" } diff --git a/kvmd.install b/kvmd.install index 8a79b15d..e6efb8e8 100644 --- a/kvmd.install +++ b/kvmd.install @@ -108,6 +108,10 @@ EOF fi fi + if [[ "$(vercmp "$2" 4.45)" -lt 0 ]]; then + cp /usr/share/kvmd/configs.default/janus/janus.plugin.ustreamer.jcfg /etc/kvmd/janus || true + fi + # Some update deletes /etc/motd, WTF # shellcheck disable=SC2015,SC2166 [ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true -- cgit v1.2.3