Jump to content

Nvidia NVENC not working


Recommended Posts

NattyMan0007
Posted

Hi all,

 

I've recently upgraded my media server/personal PC's hardware, specifically to a GTX 1080 Ti and a Ryzen 7 1700X.

When enabling nvidia nvenc decoding in emby settings there isn't a change to the system at all. My CPU is the only active device during transcoding while my GPU just sits at 1% usage. This is while using the web player also.

 

I have uploaded my ffmpeg log here: https://pastebin.com/bxR4xM4X

 

Any help would be greatly appreciated

 

Thanks :)

 

Nathaniel

Posted

Hi, according to the above log it appears to be working just fine.

NattyMan0007
Posted

Hi, according to the above log it appears to be working just fine.

 

 

Does FFMPEG exclusively use the GPU for decoding? That would be my ideal scenario where the GPU is used for all the decoding work.

 

Or does it use the CPU and when it can't get any more power it switched to the GPU? That would explain why there's no GPU usage.

 

Is there any way to force it to use the GPU exclusively?

Posted

Actually I was wrong, i took another look. It looks like it tried to use the gpu, which then failed without an error message unfortunately. Then, in order to ensure that it just works, we automatically switched to cpu.

 

To help narrow down the issue, what you could do is go back to the server transcoding settings, and disable either hardware decoding or hardware encoding. Try one or the other, see if one of them works by themselves. And of course i would make sure that windows updates are up to date as well as graphics drivers.

NattyMan0007
Posted

Actually I was wrong, i took another look. It looks like it tried to use the gpu, which then failed without an error message unfortunately. Then, in order to ensure that it just works, we automatically switched to cpu.

 

To help narrow down the issue, what you could do is go back to the server transcoding settings, and disable either hardware decoding or hardware encoding. Try one or the other, see if one of them works by themselves. And of course i would make sure that windows updates are up to date as well as graphics drivers.

Okay I finally had time to tinker. I disabled the HEVC checkbox under hardware decoding and left the "Enable hadrware encoding" checkbox checked and my Video Engine usage went straight up to 94% when I opened a HEVC file.

Do I need hardware decoding turned on? I'm not aware of the difference between encoding and decoding.

Posted

You don't need it. Just having one of them on can help. Decoding is the stage where the source file is read. Encoding is where it is converted.

NattyMan0007
Posted

You don't need it. Just having one of them on can help. Decoding is the stage where the source file is read. Encoding is where it is converted.

That makes sense. I don't need hardware acceleration for that. My CPU can handle it. The main reason I want to leave it to the GPU is so that while I'm working in Visual Studio I don't have to deal with CPU hangs while someone requests a file.

 

Thanks for your help :)

  • 2 weeks later...
Posted

The next release of Emby Server for Linux x64 will include NVENC support out of the box so all you need to do is enable it. 

 

Nvidia Cuda and OpenCL drivers will need to be installed first. These cannot be freely distributed by us so you will need to refer to your respective distro to learn how to install them.

 

Thanks !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...