summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnth0rx <anthorx@keemail.me>2018-03-19 22:40:57 +0100
committerPatrice Clement <monsieurp@gentoo.org>2018-03-25 23:59:07 +0200
commitfd9ba513cdfa290dbf3496594292434784670f88 (patch)
tree0ad13ef67323c7810725e89b066b82028d3a8a91 /media-video/obs-studio
parentapp-arch/lzop: stable 1.04 for ia64, bug #651510 (diff)
downloadgentoo-fd9ba513cdfa290dbf3496594292434784670f88.tar.gz
gentoo-fd9ba513cdfa290dbf3496594292434784670f88.tar.bz2
gentoo-fd9ba513cdfa290dbf3496594292434784670f88.zip
media-video/obs-studio: Support NVENC encoding.
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
Diffstat (limited to 'media-video/obs-studio')
-rw-r--r--media-video/obs-studio/metadata.xml1
-rw-r--r--media-video/obs-studio/obs-studio-21.0.2.ebuild3
2 files changed, 3 insertions, 1 deletions
diff --git a/media-video/obs-studio/metadata.xml b/media-video/obs-studio/metadata.xml
index adf3bcb68204..27ed2bccb4cb 100644
--- a/media-video/obs-studio/metadata.xml
+++ b/media-video/obs-studio/metadata.xml
@@ -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>
diff --git a/media-video/obs-studio/obs-studio-21.0.2.ebuild b/media-video/obs-studio/obs-studio-21.0.2.ebuild
index 5faf60232c12..db4647c07d16 100644
--- a/media-video/obs-studio/obs-studio-21.0.2.ebuild
+++ b/media-video/obs-studio/obs-studio-21.0.2.ebuild
@@ -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