summaryrefslogtreecommitdiff
path: root/ffmpeg_my.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg_my.nix')
-rw-r--r--ffmpeg_my.nix70
1 files changed, 70 insertions, 0 deletions
diff --git a/ffmpeg_my.nix b/ffmpeg_my.nix
new file mode 100644
index 0000000..0d1d2f3
--- /dev/null
+++ b/ffmpeg_my.nix
@@ -0,0 +1,70 @@
+{ inputs }:
+self: super: {
+ ffmpeg_my =
+ with super;
+ with builtins;
+ (ffmpeg_6-full.override {
+ libaom = self.libaom_my;
+ dav1d = self.dav1d_my;
+ libva = self.libva_my;
+ libplacebo = self.libplacebo_my;
+ # vulkan-headers = nixpkgsmaster.vulkan-headers;
+ # vulkan-loader = nixpkgsmaster.vulkan-loader;
+ # stdenv = llvmPackages_15.stdenv;
+ # withLTO = true;
+ withUnfree = true;
+ withCuda = false;
+ withCudaLLVM = false;
+ withNvdec = false;
+ withNvenc = false;
+ withVdpau = false;
+ nv-codec-headers = false;
+ withMfx = false;
+ withBluray = true;
+ withFribidi = true;
+ # withLibplacebo = false;
+ withFreetype = true;
+ withFontconfig = true;
+ withSvg = true;
+ withFullDeps = true;
+ withShaderc = false;
+ withAmf = false;
+ withOpencl = false;
+
+ # withVulkan = false;
+ # opencl-headers = nixpkgsmaster.opencl-headers;
+ # vid-stab = vid-stab.override{stdenv = llvmPackages_15.stdenv;};
+
+ # stdenv = super.ccacheStdenv;
+ }).overrideAttrs
+ (oldAttrs: rec {
+ version = "vpl-git";
+ src = fetchGit {
+ url = "https://git.ffmpeg.org/ffmpeg.git";
+ ref = "master";
+# rev = "5fea5e3e11d6ff425db48f44489916399822aece";
+ rev = "9ad6dca28ccbe989f615fb10626b22236b06df59";
+ allRefs = true;
+ };
+ configureFlags =
+ (lib.lists.remove "--enable-postproc" (
+ lib.lists.remove "--enable-avresample" (
+ lib.lists.remove "--disable-avresample" oldAttrs.configureFlags
+ )
+ ))
+ ++ [
+ "--enable-libvpl"
+ "--disable-hardcoded-tables"
+ "--enable-lto=thin"
+ ];
+ nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ nasm ];
+ buildInputs = oldAttrs.buildInputs ++ [
+ self.libvpl
+ shaderc
+ lcevcdec
+ ];
+ patches = [ ];
+ postPatch = "";
+ doCheck = false;
+ });
+}