media-video/obs-studio: Support NVENC encoding.
authorAnth0rx <anthorx@keemail.me>
Mon, 19 Mar 2018 21:40:57 +0000 (22:40 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 25 Mar 2018 21:59:07 +0000 (23:59 +0200)
This commit adds support for the NVENC encoding for nVidia video cards
by compiling media-video/ffmpeg with the respective USE flag.

Closes: https://github.com/gentoo/gentoo/pull/7516

media-video/obs-studio/metadata.xml
media-video/obs-studio/obs-studio-21.0.2.ebuild

index adf3bcb68204f2cef1997f54cbee0320a6883137..27ed2bccb4cb61511844f70a952cbc0c0a6e6021 100644 (file)
@@ -14,6 +14,7 @@
   <use>
     <flag name="fdk">Enable libfdk support for AAC encoding.</flag>
     <flag name="imagemagick">Use ImageMagick for image loading instead of FFmpeg.</flag>
+    <flag name="nvenc">Enable NVENC encoding for nVidia video cards</flag>
   </use>
   <upstream>
     <remote-id type="github">jp9000/obs-studio</remote-id>
index 5faf60232c12e7acd2f0b63d54099561e779d24a..db4647c07d16654e5a01856e9823236b98d2b803 100644 (file)
@@ -21,7 +21,7 @@ HOMEPAGE="https://obsproject.com"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="+alsa fdk imagemagick jack pulseaudio truetype v4l"
+IUSE="+alsa fdk imagemagick jack nvenc pulseaudio truetype v4l"
 
 COMMON_DEPEND="
        >=dev-libs/jansson-2.5
@@ -36,6 +36,7 @@ COMMON_DEPEND="
        dev-qt/qtwidgets:5
        dev-qt/qtx11extras:5
        media-video/ffmpeg:=[x264]
+       nvenc? ( media-video/ffmpeg:=[nvenc] )
        net-misc/curl
        x11-libs/libXcomposite
        x11-libs/libXinerama