Skip to content

Commit 13c7cdc

Browse files
authored
av1an: vapoursynth support (#330994)
2 parents 233f326 + 09850cd commit 13c7cdc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

pkgs/by-name/av/av1an/package.nix

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@
44
makeBinaryWrapper,
55
av1an-unwrapped,
66
ffmpeg,
7-
python3Packages,
7+
python3,
88
libaom,
99
svt-av1,
1010
rav1e,
1111
libvpx,
1212
x264,
1313
x265,
1414
libvmaf,
15+
vapoursynth,
16+
mkvtoolnix-cli,
1517
withAom ? true, # AV1 reference encoder
1618
withSvtav1 ? false, # AV1 encoder/decoder (focused on speed and correctness)
1719
withRav1e ? false, # AV1 encoder (focused on speed and safety)
1820
withVpx ? true, # VP8 & VP9 de/encoding
1921
withX264 ? true, # H.264/AVC encoder
2022
withX265 ? true, # H.265/HEVC encoder
2123
withVmaf ? false, # Perceptual video quality assessment algorithm
24+
withMkvtoolnix ? true, # mkv editor, recommended concatenation method
2225
}:
2326

2427
# av1an requires at least one encoder
@@ -41,19 +44,24 @@ symlinkJoin {
4144
postBuild =
4245
let
4346
runtimePrograms =
44-
[ (ffmpeg.override { inherit withVmaf; }) ]
47+
[
48+
vapoursynth
49+
(ffmpeg.override { inherit withVmaf; })
50+
]
4551
++ lib.optional withAom libaom
4652
++ lib.optional withSvtav1 svt-av1
4753
++ lib.optional withRav1e rav1e
4854
++ lib.optional withVpx libvpx
4955
++ lib.optional withX264 x264
5056
++ lib.optional withX265 x265
51-
++ lib.optional withVmaf libvmaf;
57+
++ lib.optional withVmaf libvmaf
58+
++ lib.optional withMkvtoolnix mkvtoolnix-cli;
5259
in
5360
''
5461
wrapProgram $out/bin/av1an \
62+
--prefix LD_LIBRARY_PATH : ${vapoursynth}/lib \
5563
--prefix PATH : ${lib.makeBinPath runtimePrograms} \
56-
--prefix PYTHONPATH : ${python3Packages.makePythonPath [ python3Packages.vapoursynth ]}
64+
--prefix PYTHONPATH : ${vapoursynth}/${python3.sitePackages}
5765
'';
5866

5967
passthru = {

0 commit comments

Comments
 (0)