From: Alexis Ballier Date: Mon, 19 Aug 2019 14:51:19 +0000 (+0200) Subject: media-video/ffmpeg: add cuda useflag. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=655e4810e32870dbcc50b2e11f300fdc49ea5d30;p=gentoo.git media-video/ffmpeg: add cuda useflag. Based on a patch by Timo Rothenpieler. Closes: https://bugs.gentoo.org/595450 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Alexis Ballier --- diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild index 75bc08762ecb..ac797b13647f 100644 --- a/media-video/ffmpeg/ffmpeg-9999.ebuild +++ b/media-video/ffmpeg/ffmpeg-9999.ebuild @@ -80,7 +80,7 @@ FFMPEG_FLAG_MAP=( vorbis:libvorbis vpx:libvpx zvbi:libzvbi # libavfilter options appkit - bs2b:libbs2b chromaprint flite:libflite frei0r + bs2b:libbs2b chromaprint cuda:cuda-llvm flite:libflite frei0r fribidi:libfribidi fontconfig ladspa libass lv2 truetype:libfreetype vidstab:libvidstab rubberband:librubberband zeromq:libzmq zimg:libzimg # libswresample options @@ -278,9 +278,10 @@ DEPEND="${RDEPEND} " BDEPEND=" >=sys-devel/make-3.81 - doc? ( sys-apps/texinfo ) >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) + cuda? ( >=sys-devel/clang-7[llvm_targets_NVPTX] ) + doc? ( sys-apps/texinfo ) test? ( net-misc/wget sys-devel/bc ) " @@ -298,6 +299,7 @@ GPL_REQUIRED_USE=" ) " REQUIRED_USE=" + cuda? ( video_cards_nvidia ) libv4l? ( v4l ) fftools_cws2fws? ( zlib ) test? ( encode ) diff --git a/media-video/ffmpeg/metadata.xml b/media-video/ffmpeg/metadata.xml index 556156808d6f..fbc47af1d136 100644 --- a/media-video/ffmpeg/metadata.xml +++ b/media-video/ffmpeg/metadata.xml @@ -19,6 +19,7 @@ Builds libffmpeg.so to enable media playback in Chromium-based browsers like Opera and Vivaldi. Enables codec2 low bit rate speech codec support via media-libs/codec2. Enables runtime CPU detection (useful for bindist, compatibility on other CPUs) + Enables CUDA-based acceleration. Mostly used for specific filters. Enables AV1 decoding viamedia-libs/dav1d. Enables EBU R128 loudness normalization filter via media-libs/libebur128 Use external fdk-aac library for AAC encoding