@@ -3,7 +3,7 @@
33 * Licensing options (yes some are listed twice, filters and such are not listed)
44 */
55, gplLicensing ? true # GPL: fdkaac,openssl,frei0r,cdio,samba,utvideo,vidstab,x265,x265,xavs,avid,zvbi,x11grab
6−, version3Licensing ? true # (L)GPL3: opencore-amrnb,opencore-amrwb,samba,vo-aacenc,vo-amrwbenc
6+, version3Licensing ? true # (L)GPL3: libvmaf,opencore-amrnb,opencore-amrwb,samba,vo-aacenc,vo-amrwbenc
77, nonfreeLicensing ? false # NONFREE: openssl,fdkaac,blackmagic-design-desktop-video
88/*
99 * Build options
@@ -87,6 +87,7 @@
8787, libv4l ? null # Video 4 Linux support
8888, libva ? null # Vaapi hardware acceleration
8989, libvdpau ? null # Vdpau hardware acceleration
90+, libvmaf ? null # Netflix's VMAF (Video Multi-Method Assessment Fusion)
9091, libvorbis ? null # Vorbis de/encoding, native encoder exists
9192, libvpx ? null # VP8 & VP9 de/encoding
9293, libwebp ? null # WebP encoder
@@ -364,6 +365,7 @@ stdenv.mkDerivation rec {
364365 (enableFeature ((isLinux || isFreeBSD) && libva != null) "vaapi")
365366 (enableFeature (libvdpau != null) "vdpau")
366367 (enableFeature (libvorbis != null) "libvorbis")
368+ (enableFeature (!isAarch64 && libvmaf != null && version3Licensing) "libvmaf")
367369 (enableFeature (libvpx != null) "libvpx")
368370 (enableFeature (libwebp != null) "libwebp")
369371 (enableFeature (libX11 != null && libXv != null && libXext != null) "xlib")
@@ -425,6 +427,7 @@ stdenv.mkDerivation rec {
425427 ] ++ optional openglExtlib libGLU_combined
426428 ++ optionals nonfreeLicensing [ fdk_aac openssl ]
427429 ++ optional ((isLinux || isFreeBSD) && libva != null) libva
430+ ++ optional (!isAarch64 && libvmaf != null && version3Licensing) libvmaf
428431 ++ optionals isLinux [ alsaLib libraw1394 libv4l ]
429432 ++ optional (isLinux && !isAarch64 && libmfx != null) libmfx
430433 ++ optional nvenc nv-codec-headers