Created
September 1, 2023 15:07
-
-
Save getchoo/bdb1645025c2da09491fa3095413a336 to your computer and use it in GitHub Desktop.
ffmpeg av1 funni
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{system ? "x86_64-linux", ...}: let | |
nixpkgs = builtins.getFlake "nixpkgs/3e52e76b70d5508f3cec70b882a29199f4d1ee85"; | |
pkgs = nixpkgs.legacyPackages.${system}; | |
in | |
pkgs.callPackage ({ | |
ffmpeg_6-full, | |
fetchFromGitHub, | |
}: | |
ffmpeg_6-full.overrideAttrs (prev: { | |
pname = "ffmpeg-cartwheel"; | |
version = "unstable-2023-09-01"; | |
src = fetchFromGitHub { | |
owner = "intel"; | |
repo = "cartwheel-ffmpeg"; | |
rev = "0c41617fb498fdc64a903c6a13976d9d302c429c"; | |
hash = "sha256-6FIgL3BgGaM2CLy3QKIaYEjGsL70s/CaEYXU/5Aj/Vs="; | |
fetchSubmodules = true; | |
}; | |
sourceRoot = "source/ffmpeg"; | |
patches = builtins.filter (v: v ? name && v.name != "fix_aacps_tablegen") prev.patches; | |
postPatch = | |
prev.postPatch | |
+ '' | |
# workaround current patch | |
substituteInPlace libavutil/hwcontext_vulkan.c \ | |
--replace VK_KHR_VIDEO_DECODE VK_EXT_VIDEO_DECODE | |
for patch in ../patches/*.patch; do patch -p1 < "$patch"; done | |
''; | |
})) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment