summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorCarlos Fernandez Sanz <carlos@standard.ai>2019-10-08 14:58:44 -0700
committerCarlos Fernandez Sanz <carlos@standard.ai>2019-10-08 14:58:44 -0700
commit1566b1e2f30cec4af5101b49d88ee5be1e727b16 (patch)
tree57aa3bf6fdf832a83cf22e6dafc1faee42c8d7c8 /pkgs/development/libraries
parent1c2400c7d849f264e960a83a3c6a61521782c75e (diff)
downloadnixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.tar
nixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.tar.gz
nixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.tar.bz2
nixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.tar.lz
nixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.tar.xz
nixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.tar.zst
nixpkgs-1566b1e2f30cec4af5101b49d88ee5be1e727b16.zip
ffmpeg-full: Add lbvmaf support
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/ffmpeg-full/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ffmpeg-full/default.nix b/pkgs/development/libraries/ffmpeg-full/default.nix
index 78d291e86fa..ca97a98a16c 100644
--- a/pkgs/development/libraries/ffmpeg-full/default.nix
+++ b/pkgs/development/libraries/ffmpeg-full/default.nix
@@ -3,7 +3,7 @@
  *  Licensing options (yes some are listed twice, filters and such are not listed)
  */
 , gplLicensing ? true # GPL: fdkaac,openssl,frei0r,cdio,samba,utvideo,vidstab,x265,x265,xavs,avid,zvbi,x11grab
-, version3Licensing ? true # (L)GPL3: opencore-amrnb,opencore-amrwb,samba,vo-aacenc,vo-amrwbenc
+, version3Licensing ? true # (L)GPL3: libvmaf,opencore-amrnb,opencore-amrwb,samba,vo-aacenc,vo-amrwbenc
 , nonfreeLicensing ? false # NONFREE: openssl,fdkaac,blackmagic-design-desktop-video
 /*
  *  Build options
@@ -87,6 +87,7 @@
 , libv4l ? null # Video 4 Linux support
 , libva ? null # Vaapi hardware acceleration
 , libvdpau ? null # Vdpau hardware acceleration
+, libvmaf ? null # Netflix's VMAF (Video Multi-Method Assessment Fusion)
 , libvorbis ? null # Vorbis de/encoding, native encoder exists
 , libvpx ? null # VP8 & VP9 de/encoding
 , libwebp ? null # WebP encoder
@@ -364,6 +365,7 @@ stdenv.mkDerivation rec {
     (enableFeature ((isLinux || isFreeBSD) && libva != null) "vaapi")
     (enableFeature (libvdpau != null) "vdpau")
     (enableFeature (libvorbis != null) "libvorbis")
+    (enableFeature (libvmaf != null && version3Licensing) "libvmaf")
     (enableFeature (libvpx != null) "libvpx")
     (enableFeature (libwebp != null) "libwebp")
     (enableFeature (libX11 != null && libXv != null && libXext != null) "xlib")
@@ -425,6 +427,7 @@ stdenv.mkDerivation rec {
   ] ++ optional openglExtlib libGLU_combined
     ++ optionals nonfreeLicensing [ fdk_aac openssl ]
     ++ optional ((isLinux || isFreeBSD) && libva != null) libva
+    ++ optional (libvmaf != null  && version3Licensing ) libvmaf
     ++ optionals isLinux [ alsaLib libraw1394 libv4l ]
     ++ optional (isLinux && !isAarch64 && libmfx != null) libmfx
     ++ optional nvenc nv-codec-headers