Handbrake lack of GPU resources allocation

I’m doing some experimentation with emby and handbrake from both Truechart and TrueNAS charts. I tend to choose the app from TrueNAS for being more reliable in my experience.

That said, the Handbrake app from TrueNAS lack the options to allocate the GPU resources. And that make a huge difference in the transcoding time.

Is there any workaround like environment variables that we could use to manually assing gpu core to the container?

Welcome @fw_crocodile ! Having one of our folks look at this now. Does seem odd that this was not exposed to the app.

:joy: that was fast. Fix is getting ready to go in now:

3 Likes

Hello!

Bump an old thread, running TrueNAS Scale ElectricEel-24.10.0.2
Have Handbrake App Version: v24.12.1

I now have the ability to add GPU to the resources, and I see the right GPU visible device code — however no H.265 NVENC appears as an encoding option.

Inspecting the handbrake container shows no nvidia-smi, and no nvidia-smi in /usr/bin.

Possibly a problem installing the nvidia drivers when launching the container? Creating a new Handbrake container does not resolve the issue.

Plex and Immich both work with GPU passthrough, so I think it has to do with the Handbrake configuration on Electric Eel

1 Like

Has there been any progress with this?

I see the exact same situation here… I am able to add the GPU in the Handbrake installation window within Truenas, but no NVENC encoder is offered in the app.
The GPU does work as expected in PLEX. I have stopped the PLEX app to ensure there are no conflicts, but no luck.

ElectricEel-24.10.1
Handbrake-24.12.1

So it appears the Handbrake container it is pulling from has no NVENC encoders.
See: NVENC disabled/ not supported anymore? · Issue #351 · jlesage/docker-handbrake · GitHub

Here is a fork of the project with NVENC — but I will admit I don’t know how to install it or add it to the repository for TrueNAS