Hello, please help me with the nvenc plant on the obs!
My characteristics
GPU - Nvidia GTX 1650 Overclocked Low Profile
OS - FreeBSD 14.4
GPU driver - nvidia-driver 595.58.03
Window Manager - bspwm
I tried changing the module's paths through the AI, but it was no use.
The AI also suggested running the recording in advanced mode and checking, but the program returned the error "Operation not permitted."
I spent more than 2-3 hours on this but nothing helped, please help!
My configs:
/etc/rc.conf
/etc/sysctl.conf
/boot/loader.conf
Issue files:
/usr/local/bin/with-glibc-shim
When launching through the console, a module loading error appears.
Using nv-sglrun
I looked at this before, there was another problem with with-glibc-shim, and the error in the condition had been fixed long ago.
My characteristics
GPU - Nvidia GTX 1650 Overclocked Low Profile
OS - FreeBSD 14.4
GPU driver - nvidia-driver 595.58.03
Window Manager - bspwm
I tried changing the module's paths through the AI, but it was no use.
The AI also suggested running the recording in advanced mode and checking, but the program returned the error "Operation not permitted."
I spent more than 2-3 hours on this but nothing helped, please help!
My configs:
/etc/rc.conf
Code:
hostname="freebsd"
ifconfig_re0="inet 192.168.0.101 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
sshd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
kld_list="nvidia-drm nullfs fusefs"
snd_driver_load="YES"
linux_enable="YES"
/etc/sysctl.conf
Code:
security.bsd.unprivileged_chroot=1
vfs.usermount=1
hw.snd.vpc_0db=45
hw.snd.vpc_mixer_bypass=1
hw.snd.default_unit=5
hw.snd.latency=2
hw.snd.feeder_rate_quality=1
/boot/loader.conf
Code:
hw.nvidiadrm.modeset=1
Issue files:
/usr/local/bin/with-glibc-shim
Code:
#!/usr/bin/env ruby
# encoding: UTF-8
if ARGV.length == 0
STDERR.puts "Run application with libc6-shim:\n\s\s[env SHIM_DEBUG=1] #{File.basename($PROGRAM_NAME)} <application> [application args]"
exit(0)
end
SHIM_LIB64_DIR = File.join(__dir__, '../lib/libc6-shim')
SHIM_LIB32_DIR = File.join(__dir__, '../lib32/libc6-shim')
def libmap(target_dir, libdir_suffix)
shim_path = File.expand_path(ENV['SHIM_DEBUG'] == '1' ? 'libc6-debug.so' : 'libc6.so', target_dir)
lmap = {
'ld-linux.so.2' => shim_path,
'ld-linux-x86-64.so.2' => shim_path,
'libanl.so.1' => shim_path,
'libc.so.6' => shim_path,
'libdl.so.2' => shim_path,
'libm.so.6 ' => shim_path,
'libpthread.so.0' => shim_path,
'libresolv.so.2' => shim_path,
'librt.so.1' => shim_path,
'libcxxrt.so.1' => (File.expand_path('fakecxxrt.so', target_dir) if ENV['SHIM_FAKECXXRT'] == '1')
}
if libdir_suffix == '' && File.exist?("/lib/librt.so.1")
lmap['bsd-librt.so.1'] = "/lib/librt.so.1"
else
lmap['bsd-librt.so.1'] = "/usr/lib#{libdir_suffix}/librt.so.1"
end
lmap.compact.map{|k, v| '%-40s %s' % [k, v]}.join("\n")
end
ENV['LD_LIBMAP'] = [libmap(SHIM_LIB64_DIR, ''), ENV['LD_LIBMAP'] ].compact.join("\n")
ENV['LD_32_LIBMAP'] = [libmap(SHIM_LIB32_DIR, '32'), ENV['LD_32_LIBMAP']].compact.join("\n")
exec([ARGV[0]] * 2, *ARGV[1..-1])
When launching through the console, a module loading error appears.
Code:
debug: Loading module: obs-nvenc.so
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): Shared object "libnvidia-encode.so.1" not found, required by "obs"
info: NVENC not supported
warning: Failed to initialize module 'obs-nvenc.so'
Using nv-sglrun
Code:
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 595.58.03, shading language 3.30 NVIDIA via Cg compiler
shim_fcntl_impl(45, 1030, ...) is not implemented
0x860cfb195 <shim_fcntl+0x3f5> at /usr/local/lib/libc6-shim/libc6.so
0x860cfae1b <shim_fcntl+0x7b> at /usr/local/lib/libc6-shim/libc6.so
0x89e0077b0 <NvGlEglGetFunctions+0x5f00> at /compat/linux/usr/lib64/libnvidia-eglcore.so.595.58.03
0x89e087476 <NvGlEglGetFunctions+0x85bc6> at /compat/linux/usr/lib64/libnvidia-eglcore.so.595.58.03
0x89e020066 <NvGlEglGetFunctions+0x1e7b6> at /compat/linux/usr/lib64/libnvidia-eglcore.so.595.58.03
0x89dfd41bd <_glDeterministicTPCModeDistParams+0xb63cd> at /compat/linux/usr/lib64/libnvidia-eglcore.so.595.58.03
0x89dff8de2 <NvGlEglApiInit+0xa52> at /compat/linux/usr/lib64/libnvidia-eglcore.so.595.58.03
0x89b68be38 <NvEglApiGetAccess+0x5498> at /compat/linux/usr/lib64/libEGL_nvidia.so.0
0x89b68c798 <NvEglApiGetAccess+0x5df8> at /compat/linux/usr/lib64/libEGL_nvidia.so.0
0x89b699995 <NvEglwlaf47906in+0x9885> at /compat/linux/usr/lib64/libEGL_nvidia.so.0
0x85657b3f1 <eglMakeCurrent+0x311> at /usr/local/lib/libEGL.so.1
0x89afcee66 <device_create+0x246> at /usr/local/lib/libobs-opengl.so.30
0x8283f7afe <gs_create+0x9e> at /usr/local/lib/libobs.so.30
0x8283b1370 <obs_reset_video+0x380> at /usr/local/lib/libobs.so.30
0x5aeedc <???> at /usr/local/bin/obs
0x5ab0dd <???> at /usr/local/bin/obs
0x65f717 <???> at /usr/local/bin/obs
0x830ab12f0 <__libc_start1+0x150> at /lib/libc.so.7
Abort trap nv-sglrun obs
I looked at this before, there was another problem with with-glibc-shim, and the error in the condition had been fixed long ago.
I'm trying to get obs studio working with nvenc encoding on my dell xps 15 2019 using nv-sglrun,
which should be possible according to this post on bugs.freebsd.org
"At the moment there are no native FreeBSD versions of libcuda.so/libnvidia-encode.so/libnvcuvid.so, so to actually use NVENC we need to load the Linux binaries for those libs with the help of emulators/libc6-shim and the `nv-sglrun` script from that port. Something like this:"
run nv-sglrun and obs
but I keep getting...
which should be possible according to this post on bugs.freebsd.org
"At the moment there are no native FreeBSD versions of libcuda.so/libnvidia-encode.so/libnvcuvid.so, so to actually use NVENC we need to load the Linux binaries for those libs with the help of emulators/libc6-shim and the `nv-sglrun` script from that port. Something like this:"
sudo pkg install nvidia-driver linux-nvidia-libs libc6-shim obs-studiorun nv-sglrun and obs
nv-sglrun obsbut I keep getting...
- NapoleonWils0n
- nv-sglrun nvenc nvidia obs obs studio
- Replies: 7
- Forum: Multimedia/Gaming