Adding Hardware Transcoding to single file docker-compose
I use Unraid with the docker compose plugin, and I don't believe it offers any sort of support for multiple .yml files as the hardware transcoding documentation recommends. I was hoping to just put it all into one file by appending the new service to the existing compose file, but without an image to go alongside it, I don't believe it will work. Is there any sort of support for using the hardware acceleration service in a single compos file?
7 Replies
You can copy/paste the relevant section directly into the microservices service section.
eg.
devices
, volumes
, environment
, deploy
can be merged into immich-microservices
. You will add the volume to immich-microservices#volumes
, etc.So instead of using the Extends, it would just be adding the Devices section? Im using Quicksync, so I think thats the only one I need
Yup, just add a new top level item under
immich-mi croservices
called devices
and paste in the
- /dev/dri:/dev/dri # If using Intel QuickSync or VAAPI
linePerfect, Just did that and its pulling now. Is there a way to test that its working, or will enabling the setting let me know if no device is available
Someone else did the implementation and I haven't tested/used it yet. I believe you will have to go to the admin > settings page and turn on hardware acceleration, then try to upload a video that will be transcoded. You can check the logs to see if it worked or not (
immich-microservice
logs).Perfect, that did it - Thanks for the help and love service!
If using Intel igpu, i was able to confirm this way
https://discord.com/channels/979116623879368755/1137893039197651055/1137946871193682040