Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758239 - media-video/obs-studio-25.0.8-r1: missing NVENC when recording
Summary: media-video/obs-studio-25.0.8-r1: missing NVENC when recording
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 12:55 UTC by Markus Giese
Modified: 2020-12-08 14:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Giese 2020-12-03 12:55:55 UTC
dos not record due to : "Failed to open NVENC codec: Unknown error occured"

Reproducible: Always

Steps to Reproduce:
1.start OBS Studio
2.start recording
3.
Actual Results:  
dos not record due to : "Failed to open NVENC codec: Unknown error occured"
Comment 1 Markus Giese 2020-12-03 12:56:36 UTC
 # emerge --info
Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-10.2.0, glibc-2.32-r2, 5.9.0-gentoo x86_64)
=================================================================
System uname: Linux-5.9.0-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-gentoo-2.7
KiB Mem:    16406084 total,   4430776 free
KiB Swap:   17292556 total,  17292556 free
Timestamp of repository gentoo: Thu, 03 Dec 2020 11:00:01 +0000
Head commit of repository gentoo: c52f3cd65e3ed80bd0bca705c29c78984687e1eb
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.12 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          3.7.12::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            7.5.0-r1::gentoo, 9.3.0-r2::gentoo, 10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=znver2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://ftp.halifax.rwth-aachen.de/gentoo/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avi berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cuda cups dbus dri dts dvd dvdr elogind emboss encode exif flac flv fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg jpg lcms libglvnd libnotify libtirpc lm_sensors mad mkv mng mp2 mp3 mp4 mpeg mplayer mtp multilib ncurses nls nptl ogg opengl openmp pam pango pcm pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp speech spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_5 python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Markus Giese 2020-12-03 12:58:30 UTC
was working before, i guess it is a problem related to profile switch some weeks ago, also tried to compile media-video/nvidia-video-codec to no avail
Comment 3 Ionen Wolkens gentoo-dev 2020-12-03 17:45:50 UTC
> Linux-5.9.0
As far as I'm aware nvenc requires uvm module to be loaded which is broken with kernel 5.9.x and current in-tree nvidia-drivers.

See bug #753629 and bug #755722
Comment 4 Ionen Wolkens gentoo-dev 2020-12-07 21:28:51 UTC
(In reply to Ionen Wolkens from comment #3)
> See bug #753629 and bug #755722
Given the latter is resolved, can you upgrade drivers to 455.45.01 with USE=uvm, and see if you still have problems with obs?

Gave ffmpeg's nvenc a quick try (which autoloads the nvidia_uvm module) and it works again, so I believe it should be fine with obs too (didn't try).
Comment 5 Markus Giese 2020-12-08 13:30:13 UTC
tried going back to 5.8.18, and obs-studio runs again (records). i will try the suggested solution with 455.45.01 with USE=uvm later

cheers
Comment 6 Markus Giese 2020-12-08 13:36:50 UTC
i already ran nvidia-drivers-455.28-r1 with uvm usefkag enabled. recompiled it nonetheless but obs-studio still does not run with 5.9.0. you think it would be worth a try to update to never 5.9 kernel ?
Comment 7 Markus Giese 2020-12-08 14:00:45 UTC
kernel 5.9.9 leads to the same problem (obs-studio not recording). so for now i just use kernel 5.8.18

thanks a lot !
Comment 8 Ionen Wolkens gentoo-dev 2020-12-08 14:02:03 UTC
(In reply to Markus Giese from comment #5)
> tried going back to 5.8.18, and obs-studio runs again (records).
Doesn't sound like a problem with obs then, I guess this could be closed.

> i already ran nvidia-drivers-455.28-r1 with uvm useflag enabled. recompiled
> it nonetheless but obs-studio still does not run with 5.9.0.
The kernel 5.9.x fix from nvidia is in 455.45.01, so 455.28 won't work with any 5.9.x kernel.
Comment 9 Markus Giese 2020-12-08 14:03:48 UTC
(In reply to Ionen Wolkens from comment #4)
> (In reply to Ionen Wolkens from comment #3)
> > See bug #753629 and bug #755722
> Given the latter is resolved, can you upgrade drivers to 455.45.01 with
> USE=uvm, and see if you still have problems with obs?
> 
> Gave ffmpeg's nvenc a quick try (which autoloads the nvidia_uvm module) and
> it works again, so I believe it should be fine with obs too (didn't try).

can you please be a bit more precise about what you did with ffmpeg ? i find no useflag nvenc... thanks
Comment 10 Markus Giese 2020-12-08 14:14:14 UTC
sorry for mixing things up. obs-studio runs again with kernel 5.9.9 and nvidia-drivers-455.45.01

thanks a lot