Page 1 of 1

Solved: Use OBS Studio with NVENC

PostPosted: Dec 28th, '17, 21:59
by hman
Hi all,
i trying to use obs studio with nvenc on my laptop with 2 video adapter:
VGA = Intel
3D = NVIDIA GTX 850M

but i had always Error Cannot CUDA init.

I solved (after some strace use) simple to add:
Code: Select all
# ln -s /usr/lib64/nvidia-current/bin/nvidia-modprobe /usr/bin/nvidia-modprobe
# ln -s /usr/lib64/nvidia-current/bin/nvidia-smi /usr/bin/nvidia-smi


i think that symlink wasn't created directlly probably because main video adapter is INTEL and NVIDIA is active only with primusrun/optirun.

Re: Solved: Use OBS Studio with NVENC

PostPosted: Dec 30th, '17, 05:33
by jiml8
You might investigate the bumblebee project. It integrates the optimus video system on Linux.

Re: Solved: Use OBS Studio with NVENC

PostPosted: Jan 2nd, '18, 12:23
by wintpe
Hi Hman

would be interested in your use of nvenc with OBS.

I use OBS for my webcam, but i did not notice nvenc in any of the settings.

ive also tried to use handbrake, but same problem.

currently im using the latest version of ffmpeg which our maintainers recently added nvenc functionality to.

this is the best page with a description on how to use it.

https://trac.ffmpeg.org/wiki/HWAccelIntro

with handbrake i get a compression speed of 100 frames a second with handbrake, all 32 threads flat out (8 gig files, 1080p)

with my 1070TI and ffmpeg, that jumps to 2500 frames a second, and only 1 processor thread flat out. (8 gig files, 1080p)

the 850m, is not that fast, about the same as a 1030 , so im not sure how well it will perform, but it should be faster than the processor.
im guessing you will get between 300 and 600 frames a second

regards peter