Skip to content

Commit

Permalink
jellyfin-ffmpeg: use regular ffmpeg
Browse files Browse the repository at this point in the history
NixOS#271863

jellyfin-ffmpeg is a rebuild anyways, so we can simply cherry-pick the features
that we actually need rather than smashing ffmpeg-full into it.

These should be all the "special" features jellyfin expects of it.

nvcodec and amf support are already enabled by default in regular ffmpeg.
  • Loading branch information
Atemu committed Nov 10, 2024
1 parent 343b0a2 commit 2ae0bbf
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pkgs/by-name/je/jellyfin-ffmpeg/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ ffmpeg_7-full
{ ffmpeg_7-headless
, fetchFromGitHub
, fetchpatch
, lib
Expand All @@ -8,14 +8,23 @@ let
version = "7.0.2-5";
in

(ffmpeg_7-full.override {
(ffmpeg_7-headless.override {
inherit version; # Important! This sets the ABI.
source = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-ffmpeg";
rev = "v${version}";
hash = "sha256-cqyXQNx65eLEumOoSCucNpAqShMhiPqzsKc/GjKKQOA=";
};

# jellyfin-ffmpeg needs OpenCL or CUDA (depending on the GPU) for fully
# HW-accelerated video transcoding
# https://github.com/NixOS/nixpkgs/issues/271863#issuecomment-1837900239
withOpencl = true;
withCudaLLVM = true;

# This provides Intel Quicksync
withMfx = true;
}).overrideAttrs (old: {
pname = "jellyfin-ffmpeg";

Expand Down

0 comments on commit 2ae0bbf

Please sign in to comment.