Jellyfin: Difference between revisions
imported>Makefu add remark for 22.05 |
imported>Mic92 |
||
Line 31: | Line 31: | ||
}; | }; | ||
# 2. | # 2. override default hardening measure from NixOS - this is default since 22.05 | ||
systemd.services.jellyfin.serviceConfig.PrivateDevices = lib.mkForce false; | systemd.services.jellyfin.serviceConfig.PrivateDevices = lib.mkForce false; | ||
# 3 | # 3. do not forget to enable jellyfin | ||
services.jellyfin.enable = true; | services.jellyfin.enable = true; | ||
} | } |
Revision as of 05:27, 19 June 2022
Jellyfin is the volunteer-built media solution that puts you in control of your media. Stream to any device from your own server, with no strings attached.
Usage
services.jellyfin.enable = true;
Hardware Transcoding
In most cases you want to make most of your hardware. Modern boards often come with Hardware Accelerators, all you need to do is enable it!
Source: https://jellyfin.org/docs/general/administration/hardware-acceleration.html
VAAPI
VAAPI is often available on intel boards (Intel HD).
{ pkgs, lib,config, ... }:
{
# 1. enable vaapi on OS-level
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
];
};
# 2. override default hardening measure from NixOS - this is default since 22.05
systemd.services.jellyfin.serviceConfig.PrivateDevices = lib.mkForce false;
# 3. do not forget to enable jellyfin
services.jellyfin.enable = true;
}
Related: Accelerated_Video_Playback