Question / Help NVENC Support For Linux

OliveTodd

New Member
Hey, there.

I was trying to get NVENC support up and running for Linux, but wasn't able to do it, when I saw that some of the commits for OBS Studio included NVENC support (or the ability to select NVENC as the encoder). However, on updating to the latest version of OBS Studio, it doesn't seem like it's there; can anyone help me out with this?

For information, I'm running Ubuntu Gnome 16.04, and OBS Studio 0.14.1. I did compile a version of FFMPEG with NVENC support. When I run "ffmpeg" in a terminal, I get "configuration: --enable-non-free --enable-nvenc"; do I need to enable other things, as well? Or is OBS Studio maybe looking at a different version of FFMPEG?
 

Vuurdraak

New Member
Try the script i made in this thread:
https://obsproject.com/forum/thread...pt-for-building-obs-nvenc-ubuntu-14-04.96080/

I think I forgot to put the nvenc header building for ffmpeg in to the script so run those commands from any directory first:
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
make sudo
make install

Then unzip the https://obsproject.com/forum/attachments/ffmpeg-nvenc-master-zip.40039/ in a new directory like $home/obs-studio for instance

And then copy the NVENC-FFMPEG-OBSbuild.sh.txt in to that directory, rename it to NVENC-FFMPEG-OBSbuild.sh and run the script, with:
sudo ./NVENC-FFMPEG-OBSbuild.sh -o
If all goes well you should now have a working OBS-studio 22.02 with NVENC support
 
Last edited:

DGxInfinitY

New Member
I am able to build OBS and FFMPEG using your script however it fails to make the script. It fails when trying to copy the icon to a directory. Could use some assistance. I'll edit with more details as I am running again.

It errors out here:
Code:
======================== Installation successful ==========================

Some of the files created by the installation are inside the build
directory: /mnt/1T_Linux/OBS-Studio/source/obs-studio/build

You probably don't want them to be included in the package,
especially if they are inside your home directory.
Do you want me to list them?  [n]: n
Should I exclude them from the package? (Saying yes is a good idea)  [y]:

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

Installing Debian package...OK

Erasing temporary files...OK

Deleting doc-pak directory...OK

Deleting temp dir...OK


**********************************************************************

 Done. The new package has been installed and saved to

 /mnt/1T_Linux/OBS-Studio/source/obs-studio/build/obs-studio_20181021-git-1_amd64.deb

 You can remove it from your system anytime using:

      dpkg -r obs-studio

**********************************************************************

cp: cannot stat '/mnt/1T_Linux/OBS-Studio/media/obs.png': No such file or directory
 
Last edited:
Top