Jump to content

ffmpeg running with Nvidia HW Acceleration?


lightsout
Go to solution Solved by softworkz,

Recommended Posts

lightsout

Sorry for all the threads lately just trying to get things dialed in.

 

I am doing some testing with my desktop to see what the most worthwhile upgrade to my server will be.

Desktop is running an AMD 2600x and GTX 1060 6GB.

 

I have all the HW acceleration checked, so it uses the GPU as much as possible. I notice when I play a TV recording,

a 1080i MPEG2 in a .TS, that ffmpeg is running and there is about a 25% load on the CPU.

 

I was expecting a greater offload to the gpu without much going on with the CPU. Is that just the way it is with MPEG2?

Is it normal for ffmpeg to need to run in software while the nvidia decoder does its thing?

 

I guess if this is the best it gets I may need to consider re-encoding the stuff I plan to keep.

 

post-4065-0-59250700-1550676182_thumb.png

Link to comment
Share on other sites

lightsout

My apologies.

Sometimes yes. We'd have to look at an example in order to provide more information. Thanks.

I will PM the main log.

Edited by lightsout
Link to comment
Share on other sites

  • Solution

I have all the HW acceleration checked, so it uses the GPU as much as possible. I notice when I play a TV recording,

a 1080i MPEG2 in a .TS, that ffmpeg is running and there is about a 25% load on the CPU.

 

I was expecting a greater offload to the gpu without much going on with the CPU. Is that just the way it is with MPEG2?

Is it normal for ffmpeg to need to run in software while the nvidia decoder does its thing?

 

In your case it is required to deinterlace the video, and deinterlacing is done by the CPU. That's the load you are seeing.

 

But transcoding is still running 10x times faster than realtime.

You have throttling enabled, so after an initial amount is encoded, you will only see that CPU load in small intervals.

That looks all good to me.

 

BTW: We're working on getting the deinterlacing done by the GPU as well in the near future!

  • Like 2
Link to comment
Share on other sites

lightsout

In your case it is required to deinterlace the video, and deinterlacing is done by the CPU. That's the load you are seeing.

 

But transcoding is still running 10x times faster than realtime.

You have throttling enabled, so after an initial amount is encoded, you will only see that CPU load in small intervals.

That looks all good to me.

 

BTW: We're working on getting the deinterlacing done by the GPU as well in the near future!

Ah that makes sense, great to know things are working correctly, and that is exciting to hear that this may be offloaded to the GPU soon, another reason for me to add a GPU to my server.

 

A quick question since I have you here, any idea if you can use an nvidia gpu and quicksync? Was wondering if the gpu was loaded and it fell back on the cpu, would it be able to also use HW acceleration or would it have to be software?

 

This question will largely determine my choice of adding a 4770 to my server or going amd with an exisiting motherboard with a 1700. The AMD has 4 more cores but not HW acceleration. But if that is a moot point with an Nvidia GPU inthe mix then I will just go AMD.

Link to comment
Share on other sites

lightsout

I think you should be pretty fine with your Nvidia GPU!

Do you know if HW transcoding with a GPU and Intel quicksync is an option?

Link to comment
Share on other sites

lightsout

We do support quicksync, if that's what you're asking. Thanks.

What I meant was can NVENC and Quicksync be used together? Say the GPU is fully loaded will it offload to quicksync or just to the cpu in general?

  • Like 1
Link to comment
Share on other sites

That is possible but Emby does not support that yet. It's coming though. Right now it will just auto-switch to CPU when the GPU is full.

  • Like 1
Link to comment
Share on other sites

lightsout

That is possible but Emby does not support that yet. It's coming though. Right now it will just auto-switch to CPU when the GPU is full.

Perfect, thanks for the quick response.

Link to comment
Share on other sites

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...