-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for custom runtime, like nvidia-runtime for HWA video encoding #712
Comments
@marsweed - can you provide the docker command of running your app with GPU supported? |
while am not sound enough in this stuff and if i can understand what you are asking, docker app use two types on commands to have access to GPU (came to know of second one recently) and CasaOS support none of them. i am linking the two methods used by two different apps in the pictures below. please neglect if am not doing it right and let me know how can i assist more Unmanic uses "--runtime=nvidia" i am yet to find apps that use jellfin's method but i have seen few which use "--runtime=nvidia" when they need to use GPU |
We are actively moving current app management to Docker Compose based, to leverage the full parameters of compose format. Technically you should be able to specify GPU related parameters by then. e.g. https://www.howtogeek.com/devops/how-to-run-docker-compose-containers-with-gpu-access/ |
official source: https://docs.docker.com/compose/gpu-support/ |
fIndeed, HWA with nvidia gpu works. I've two plex and one emby docker running without an issue, running ubuntu server 22.04, GTX 1050 TI as a VM on a ESX 8 host. Just follow this guide and just ad "“default-runtime”: “nvidia” to your docker daemon.json file, example here Hope this helps :-) btw all other containers shouldn't be affected by the nvdidia runtime! edit: and don't forget to add following env vars:
|
this capability is indirectly provided by switching CasaOS Apps over to docker compose files in v0.4.4 check the doc above. |
how do I switch an app over to docker compose? |
by the way, the Jellyfin app through CasaOS recognizes the GPU by default, both Plex and Emby do not |
I believe I’ve followed your instructions but hw transcoding isn’t working for me. The two relevant errors from Plex are [ffmpeg] - cannot load libcuda.so.1 |
CasaOS doesn't allow apps to access GPU probably bcz it doesn't support custom runtime. but when you install the same docker app outside of casaos, it works fine.
I was having problem with Unmanic not working and giving error when using NVENC for encoding. but i guess the feature might also help with HWA in apps just as Jellyfin and Plex
The text was updated successfully, but these errors were encountered: