server: minor fixes for jitsi

This commit is contained in:
Kabbone 2023-03-06 21:29:57 +01:00
parent 9b6ad842dc
commit 7c75ef0562
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -1,5 +1,5 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
services.jitsi-meet = { services.jitsi-meet = {
enable = true; enable = true;
@ -14,15 +14,17 @@
SHOW_WATERMARK_FOR_GUESTS = false; SHOW_WATERMARK_FOR_GUESTS = false;
}; };
}; };
services.jibri.config = { services.jibri = {
enable = true; enable = true;
recording = { config = {
recordings-directory = "/var/lib/jitsi-meet-recordings"; recording = {
}; recordings-directory = "/var/lib/jitsi-meet-recordings";
ffmpeg = { };
#framerate = 30; ffmpeg = {
#video-encode-preset = "veryfast"; # https://trac.ffmpeg.org/wiki/Encode/H.264#a2.Chooseapresetandtune #framerate = 30;
h264-constant-rate-factor = 21; # https://trac.ffmpeg.org/wiki/Encode/H.264#a1.ChooseaCRFvalue #video-encode-preset = "veryfast"; # https://trac.ffmpeg.org/wiki/Encode/H.264#a2.Chooseapresetandtune
h264-constant-rate-factor = 21; # https://trac.ffmpeg.org/wiki/Encode/H.264#a1.ChooseaCRFvalue
};
}; };
}; };
services.jitsi-videobridge = { services.jitsi-videobridge = {
@ -35,8 +37,6 @@
''; '';
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d /var/log/prosody - prosody prosody" "d /var/log/prosody - prosody prosody"
];
systemd.tmpfiles.rules = [
"d ${config.services.jibri.config.recording.recordings-directory} 0750 jibri jibri -" "d ${config.services.jibri.config.recording.recordings-directory} 0750 jibri jibri -"
]; ];