From a6372d185e883341bec78bf5397b97de35b518f7 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Thu, 8 Nov 2018 10:40:48 +0100 Subject: [PATCH] Enable vmaf --- ffmpeg.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ffmpeg.spec b/ffmpeg.spec index 90999bf..ce5651d 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -22,6 +22,12 @@ %global _without_vpx 1 %endif +%if 0%{?fedora} +%ifarch x86_64 +%global _with_vmaf 1 +%endif +%endif + # flavor nonfree %if 0%{?_with_nonfree:1} %global flavor -nonfree @@ -162,6 +168,7 @@ BuildRequires: subversion #BuildRequires: texi2html BuildRequires: texinfo %{?_with_twolame:BuildRequires: twolame-devel} +%{?_with_vmaf:BuildRequires: libvmaf-devel} %{?_with_wavpack:BuildRequires: wavpack-devel} %{!?_without_vidstab:BuildRequires: vid.stab-devel} %{!?_without_x264:BuildRequires: x264-devel >= 0.0.0-0.31} @@ -281,6 +288,7 @@ This package contains development files for %{name} --enable-libvorbis \\\ --enable-libv4l2 \\\ %{!?_without_vidstab:--enable-libvidstab} \\\ + %{?_with_vmaf:--enable-libvmaf} \\\ %{!?_without_vpx:--enable-libvpx} \\\ %{?_with_webp:--enable-libwebp} \\\ %{!?_without_x264:--enable-libx264} \\\