ffmpeg: add withVPL option for libvpl
Co-authored-by: Evan Richter <evanjrichter@gmail.com>
This commit is contained in:
parent
3c91e92068
commit
88add7e28e
|
@ -92,6 +92,7 @@
|
||||||
, withVmaf ? withFullDeps && !stdenv.isAarch64 && lib.versionAtLeast version "5" # Netflix's VMAF (Video Multi-Method Assessment Fusion)
|
, withVmaf ? withFullDeps && !stdenv.isAarch64 && lib.versionAtLeast version "5" # Netflix's VMAF (Video Multi-Method Assessment Fusion)
|
||||||
, withVoAmrwbenc ? withFullDeps && withVersion3 # AMR-WB encoder
|
, withVoAmrwbenc ? withFullDeps && withVersion3 # AMR-WB encoder
|
||||||
, withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists
|
, withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists
|
||||||
|
, withVpl ? false # Hardware acceleration via intel libvpl
|
||||||
, withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding
|
, withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding
|
||||||
, withVulkan ? withFullDeps && !stdenv.isDarwin
|
, withVulkan ? withFullDeps && !stdenv.isDarwin
|
||||||
, withWebp ? withFullDeps # WebP encoder
|
, withWebp ? withFullDeps # WebP encoder
|
||||||
|
@ -237,6 +238,7 @@
|
||||||
, libvdpau
|
, libvdpau
|
||||||
, libvmaf
|
, libvmaf
|
||||||
, libvorbis
|
, libvorbis
|
||||||
|
, libvpl
|
||||||
, libvpx
|
, libvpx
|
||||||
, libwebp
|
, libwebp
|
||||||
, libX11
|
, libX11
|
||||||
|
@ -319,6 +321,7 @@ assert withGPLv3 -> withGPL && withVersion3;
|
||||||
* Build dependencies
|
* Build dependencies
|
||||||
*/
|
*/
|
||||||
assert withPixelutils -> buildAvutil;
|
assert withPixelutils -> buildAvutil;
|
||||||
|
assert !(withMfx && withVpl); # incompatible features
|
||||||
/*
|
/*
|
||||||
* Program dependencies
|
* Program dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -529,6 +532,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
(enableFeature withV4l2M2m "v4l2-m2m")
|
(enableFeature withV4l2M2m "v4l2-m2m")
|
||||||
(enableFeature withVaapi "vaapi")
|
(enableFeature withVaapi "vaapi")
|
||||||
(enableFeature withVdpau "vdpau")
|
(enableFeature withVdpau "vdpau")
|
||||||
|
] ++ optionals (versionAtLeast version "6.0") [
|
||||||
|
(enableFeature withVpl "libvpl")
|
||||||
|
] ++ [
|
||||||
(enableFeature withVidStab "libvidstab") # Actual min. version 2.0
|
(enableFeature withVidStab "libvidstab") # Actual min. version 2.0
|
||||||
(enableFeature withVmaf "libvmaf")
|
(enableFeature withVmaf "libvmaf")
|
||||||
(enableFeature withVoAmrwbenc "libvo-amrwbenc")
|
(enableFeature withVoAmrwbenc "libvo-amrwbenc")
|
||||||
|
@ -643,6 +649,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
++ optionals withVmaf [ libvmaf ]
|
++ optionals withVmaf [ libvmaf ]
|
||||||
++ optionals withVoAmrwbenc [ vo-amrwbenc ]
|
++ optionals withVoAmrwbenc [ vo-amrwbenc ]
|
||||||
++ optionals withVorbis [ libvorbis ]
|
++ optionals withVorbis [ libvorbis ]
|
||||||
|
++ optionals withVpl [ libvpl ]
|
||||||
++ optionals withVpx [ libvpx ]
|
++ optionals withVpx [ libvpx ]
|
||||||
++ optionals withVulkan [ vulkan-headers vulkan-loader ]
|
++ optionals withVulkan [ vulkan-headers vulkan-loader ]
|
||||||
++ optionals withWebp [ libwebp ]
|
++ optionals withWebp [ libwebp ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user