Question / Help Starting the Output Failed NVENC on Fedora Linux 25 and My Solution

SirLinuxWorld

New Member
Greetings friends.

On Fedora 25 I was previously able to use NVENC encoding and then it stopped working, instead giving the classic “Starting the output failed” error message. I tried all sorts of things. I reinstalled the nVidia drivers, both from the RPM Fusion repository and manually from the nVidia website. I even downloaded and installed the huge CUDA dev library from nVidia, all with the same results.

I tried searching for information on the Internet but nothing really matched my particular situation.

Then I tried running OBS from the command line to see if it offered any more information. There, on the command line, I saw a new error message.

Code:
Failed to create nvenc instance: invalid version (15)

This sent me searching on the Internet again, still with no useful information. Then I had an idea. What if the issue wasn’t OBS itself but was in fact FFMPEG? I tried manually encoding a file using FFMPEG from the command line.

Code:
ffmpeg -i vid.flv -c:v h264_nvenc vid.mp4

And there was that lovely little error message again.

Code:
Failed to create nvenc instance: invalid version (15)

So even though the error was manifesting in OBS, it was in fact being caused by FFMPEG.

I opened Yum Extender, which is a graphical package manager in Fedora, and found that I had FFMPEG version 3.1.8 installed, from the RPM Fusion repository. I also saw there was an option to downgrade FFMPEG to version 3.1.5, so I gave that a try.

It worked.

For whatever reason, at least on Fedora with the RPM Fusion repository, FFMPEG version 3.1.8 doesn’t work with NVENC encoding, but FFMPEG version 3.1.5 does. So if you’re using Linux and you’re seeing this error when trying to use NVENC, you might need to try using a different version of FFMPEG.
 
Top