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:
sudo apt install unzip
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
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:
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: