From c4fe4811fef633980e03c7ccfbae9abc5351f2bc Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 21:25:09 +0200 Subject: [PATCH] ffmpeg: add withAribb24 options enables decoding of ARIB subtitles --- pkgs/development/libraries/ffmpeg/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 14cf65a5563a..a4ae49d404ad 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -37,6 +37,7 @@ , withAmf ? lib.meta.availableOn stdenv.hostPlatform amf # AMD Media Framework video encoding , withAom ? withHeadlessDeps # AV1 reference encoder , withAppKit ? withHeadlessDeps && stdenv.hostPlatform.isDarwin # Apple AppKit framework +, withAribb24 ? withFullDeps # ARIB text and caption decoding , withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer , withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering , withAudioToolbox ? withHeadlessDeps && stdenv.hostPlatform.isDarwin # Apple AudioToolbox @@ -226,6 +227,7 @@ , alsa-lib , amf , amf-headers +, aribb24 , avisynthplus , bzip2 , celt @@ -556,6 +558,7 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withAmf "amf") (enableFeature withAom "libaom") (enableFeature withAppKit "appkit") + (enableFeature withAribb24 "libaribb24") ] ++ optionals (versionAtLeast version "6.1") [ (enableFeature withAribcaption "libaribcaption") ] ++ [ @@ -729,6 +732,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withAmf [ amf-headers ] ++ optionals withAom [ libaom ] ++ optionals withAppKit [ AppKit ] + ++ optionals withAribb24 [ aribb24 ] ++ optionals withAribcaption [ libaribcaption ] ++ optionals withAss [ libass ] ++ optionals withAudioToolbox [ AudioToolbox ]