How to use NVENC encoding with OBS on Linux - recording smooth videos at 60fps

Subscribers:
390,000
Published on ● Video Link: https://www.youtube.com/watch?v=CD9t2bszg_Y



Category:
Guide
Duration: 8:01
19,825 views
332


So, you want to record smooth videos, at 60 frames per second, but OBS is gobbling up half your CPU power ? You need NVENC ! This specific encoding software only works on Nvidia graphics cards, but enables less than 10% CPU usage while recording or streaming, since it uses the GPU instead of the CPU !

Enabling it on Linux is not simple, even though it's not that hard. All we need to do is:

1 - Download the Nvidia SDK:
wget https://developer.nvidia.com/video-sdk-601
sudo apt install unzip
unzip video-sdk-601
sudo cp nvidia_video_sdk_6.0.1/Samples/common/inc/*.h /usr/local/include/

2 - Getting ready to compile FFMPEG
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo nano /etc/apt/sources.list
sudo apt update
sudo apt build-dep ffmpeg
sudo apt install libfdk-aac-dev

3 - Compiling ffmpeg
apt-get source ffmpeg
cd ffmpeg-VERSION NUMBER
ffmpeg buildconf

This will give us a long line of parameters. You need to copy this, and paste it in a text editor, such as Scratch on elementary OS.
We need to add the required paramters at the end of this text to make sure FFMPEG will take NVENC into account.
At the end of the line, add these lines:
--enable-nonfree --enable-nvenc --enable-libfdk-aac
Don't forget to leave a space between the last parameter and the ones we just added !

Copy everything you have in your text file.
In your terminal, type: ./configure
then paste everything you copied.
You should have something that looks like that

Now, we build FFMPEG, by typing:

make
sudo make install

Follow me on Twitter : http://twitter.com/thelinuxEXP
Follow me on Mastodon: https://mastodon.social/web/accounts/368853

Music courtesy of Kevin MacLeod

-~-~~-~~~-~~-~-
Also Watch my Experience with Manjaro Budgie on a Full AMD Linux Build:
https://www.youtube.com/watch?v=rZdj4Q08fBg
-~-~~-~~~-~~-~-




Other Videos By The Linux Experiment


2018-08-10The channel is growing : 1000 subscribers, and updates
2018-08-08Pleasant Peasantry - The Witcher on Linux - Part 17
2018-08-07Albert Launcher - replace Mac OS X Spotlight or Cortana Search on Linux
2018-08-04Where we meet DOG, the friendly robot - Half Life 2 on Linux - Part 3
2018-08-03elementary OS AppCenter reaches 100 specific apps !
2018-08-01Fishpeople and naked ladies - The Witcher on Linux - Part 16
2018-07-31elementary OS AppCenter Spotlight -- TOOTLE by bleak_grey
2018-07-28Hovercraft and Helicopters - Half Life 2 on Linux - Part 2
2018-07-27elementary OS is NOT a mac OS clone, here's why !
2018-07-25Teaching the professor a lesson (haha) - The Witcher on Linux - Part 15
2018-07-24How to use NVENC encoding with OBS on Linux - recording smooth videos at 60fps
2018-07-21Half Life 2 on LINUX - Part 1 - Gordon Freeman is Back
2018-07-20Epiphany (Gnome Web) new features and performance on Juno - elementary OS 5.0
2018-07-18Super Werewolf - The Witcher on Linux - Part 14
2018-07-17A few tips and tricks to improve performance on elementary OS
2018-07-14We finish off the Necrons - Campaign Finale - Dawn Of War Soulstorm on Linux
2018-07-11We hunt down Salamandra - The Witcher on elementary OS - Part 13
2018-07-10Installing elementary OS 5.0 JUNO BETA on my machine
2018-07-07The ELDAR STRONGHOLD - Dawn Of War Soulstorm on Linux - part 20
2018-07-06Taking notes on elementary OS - Switcher's guide to elementary OS - part 15
2018-07-04Switching girlfriends and making friends - The Witcher on Linux - part 12



Tags:
linux
elementary OS
gaming on linux
games
recording at 60fps on linux
streaming on linux
using obs on linux
nvenc on linux
nvenc encoding with obs
how to encode using nvenc on linux
streaming at 60fps on linux
how to record gameplay on linux
recording smooth gameplay on linux
improve recording performance
improve streaming performance
best OBS settings
setting up OBS for nvenc
using nvenc in OBS