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 0f18161
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 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,55 @@ 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=";
};

# https://github.com/NixOS/nixpkgs/pull/354936#issuecomment-2466628369
# --enable-gmp # not supported by our ffmpeg drv
withGnutls = true;
withChromaprint = true;
withOpencl = true;
withDrm = true;
withXml2 = true;
withAss = true;
withFreetype = true;
withFribidi = true;
withFontconfig = true;
withHarfbuzz = true;
withBluray = true;
withMp3lame = true;
withOpus = true;
withTheora = true;
withVorbis = true;
withOpenmpt = true;
withDav1d = true;
withSvtav1 = true;
withWebp = true;
withVpx = true;
withX264 = true;
withX265 = true;
withZvbi = true;
withZimg = true;

withShaderc = true;
withPlacebo = true;
withVulkan = true;
withVaapi = true;
withAmf = true;
withVpl = true;
withMfx = false;
withNvcodec = true;
# --enable-cuda = true; # unfree
withCudaLLVM = true;
withCuvid = true;
withNvdec = true;
withNvenc = true;
}).overrideAttrs (old: {
pname = "jellyfin-ffmpeg";

Expand Down

0 comments on commit 0f18161

Please sign in to comment.