From a8a39963a9838d60a38d6d865261698fd02b50a6 Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Mon, 16 Jan 2017 14:47:21 +0300 Subject: media-video/mpv: support Nvidia CUDA HW acceleration in 9999 Requires ffmpeg with e6464a44, which will be available in ffmpeg-3.3 and is already available in ffmpeg-9999. Not available in libav. Many thanks to Alex (@fhlfibh) for testing. Gentoo-Bug: 603974 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- media-video/mpv/metadata.xml | 3 ++- media-video/mpv/mpv-9999.ebuild | 15 +++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'media-video') diff --git a/media-video/mpv/metadata.xml b/media-video/mpv/metadata.xml index e03b9736cefd..766481dfde9d 100644 --- a/media-video/mpv/metadata.xml +++ b/media-video/mpv/metadata.xml @@ -17,8 +17,9 @@ Enable support for various archive formats via app-arch/libarchive Enable playback of Blu-ray filesystems Enable Bauer stereophonic-to-binaural headphone filter - Build mpv CLI player Enable CDDA support via dev-libs/libcdio-paranoia + Build mpv CLI player + Enable hardware video decoding via Nvidia CUDA Build documentation in pdf format Enable Kernel Mode Setting / Direct Rendering Manager based video output Enable support for various EGL-based video outputs diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild index a2b8798d4259..d426d7131699 100644 --- a/media-video/mpv/mpv-9999.ebuild +++ b/media-video/mpv/mpv-9999.ebuild @@ -28,15 +28,16 @@ DOCS+=( README.md ) # See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. LICENSE="GPL-2+ BSD ISC" SLOT="0" -IUSE="+alsa aqua archive bluray cdda +cli coreaudio doc drm dvb dvd +egl encode - gbm +iconv jack jpeg lcms +libass libav libcaca libmpv +lua luajit openal - +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux test tools - +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv - zsh-completion" +IUSE="+alsa aqua archive bluray cdda +cli coreaudio cuda doc drm dvb dvd +egl + encode gbm +iconv jack jpeg lcms +libass libav libcaca libmpv +lua luajit + openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux + test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama + +xscreensaver +xv zsh-completion" REQUIRED_USE=" || ( cli libmpv ) aqua? ( opengl ) + cuda? ( !libav ) egl? ( || ( gbm X wayland ) ) gbm? ( drm egl ) lcms? ( || ( opengl egl ) ) @@ -62,6 +63,7 @@ COMMON_DEPEND=" archive? ( >=app-arch/libarchive-3.0.0:= ) bluray? ( >=media-libs/libbluray-0.3.0 ) cdda? ( dev-libs/libcdio-paranoia ) + cuda? ( >=media-video/ffmpeg-3.3:0 ) drm? ( x11-libs/libdrm ) dvd? ( >=media-libs/libdvdnav-4.2.0 @@ -122,6 +124,7 @@ DEPEND="${COMMON_DEPEND} zsh-completion? ( dev-lang/perl ) " RDEPEND="${COMMON_DEPEND} + cuda? ( x11-drivers/nvidia-drivers[X] ) selinux? ( sec-policy/selinux-mplayer ) tools? ( ${PYTHON_DEPS} ) " @@ -241,7 +244,7 @@ src_configure() { # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. $(use_enable vaapi vaapi-hwaccel) $(use_enable vdpau vdpau-hwaccel) - --disable-cuda-hwaccel # No support in ffmpeg. See Gentoo bug 595450. + $(use_enable cuda cuda-hwaccel) # TV features: $(use_enable v4l tv) -- cgit v1.2.3-65-gdbad