Hardware acceleration

paulfcoleman

New Member
Hi,
I have been trying to get hardware acceleration working using nvidia GPU. The nvidia shows up in the linux settings and can use the nvidia-smi utility to display using the 535 version of driver with Cuda. I have tested using ffmpeg to encode an mp4 the nvidia-smi utility shows ffmpeg spawning a task and GPU activity when shaving. With OBS I can see a spawned task in nvivia-smi but no GPU activity and all indications is that it is still using the cpu.
I uploaded the log file (https://obsproject.com/logs/chd9N7LXVSSkBurV).


I did find a forum entry that stated that hardware acceleration is a future feature on the linux version, can someone confirm if hardware acceleration works on the linux version and any other ideas.

Just noticed that we are not running the latest version, will work on upgrading as well.
Thanks
Paul
 

Tuna

Member
15:15:17.186: Loading up OpenGL on adapter Mesa/X.org llvmpipe (LLVM 12.0.0, 256 bits)

You are not running on any GPU at all

15:15:16.363: Distribution: "Ubuntu" "20.04"
15:15:16.813: OBS 25.0.3+dfsg1-2 (linux)

Also may be worthwhile to update your stack..
 
Last edited:

paulfcoleman

New Member
Whew,
Did some more testing.

My existing setup was using the GPU, although the nvidia-smi shows a spanned task and 0 GPU, if you look at the CPU in OBS if you use the nvidia it drops from 19% to 15% when streaming (static 13%).

Updated to 29.1.3 - this is better at using the hardware, the % of CPU is about the same in obs but the nvidia-smi now shows 2% gpu. Interesting is you use the x284 encoder it still uses a little hardware (1% GPU).

So OBS was using the GPU but my testing was lacking. Upgrading OBS improves the GPU usage.
 
Top