Hardware Transcoding config using docker-compose.yml file - Nvidia
How can I modify the current docker-compose.yml file to accommodate hardware transcoding features as well? I tried the following (based on a similar discord discussion for Intel quicksync), but it seems to be using by CPU. If you need more information on something, let me know.

13 Replies
You can find more information in this post https://discord.com/channels/979116623879368755/1137893039197651055
Yeap. That was the discussion I was referring to in my question. The solution that worked for that OP was adding the config directly to the docker-compose.yml instead of using the hwaccel.yml. That post was related to Intel QuickSync, so I thought I might create a separate thread for Nvidia. Would you like me to continue my questions there?
pinging @sogan
Did you set the hardware transcoding setting to
NVENC
in the admin page? It will still use the CPU if not.Are you using UnRaid?
If so you might need to add
runtime=Nvidia as an environment variable
Yes, I did. Looking at the logs, it says - Provided device doesn't support required NVENC features - 10 bit encode not supported.
I guess that is my hardware is not capable (I have NVIDIA Quadro P600)?
lol that issue is actually an open pr at the moment https://github.com/immich-app/immich/pull/3577
GitHub
fix(server): convert to nv12 before using nvenc by mertalev · Pull ...
Description
This is a small fix for NVENC accel. It's missing format=nv12, so HDR content will fail and fallback to software transcoding. With this change, they'll be converted to the forma...
I have similar problem my nVidia P4 doesn't support B frames for HVEC
How do I turn those off?
https://en.wikipedia.org/wiki/Nvidia_NVENC - see GP104 column
Nvidia NVENC
Nvidia NVENC (short for Nvidia Encoder) is a feature in Nvidia graphics cards that performs video encoding, offloading this compute-intensive task from the CPU to a dedicated part of the GPU. It was introduced with the Kepler-based GeForce 600 series in March 2012.The encoder is supported in many livestreaming and recording programs, such as vMi...
this is a separate issue but for both, using vaapi should work.
but nvenc should also work for sdr content in @radh 's case
Just to clarify: The new PR should fix this for my case?
yep
Thanks a lot. This is beautiful work you guys are doing!