I
Immich2y ago
Hunter

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
jrasm91
jrasm912y ago
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.
Hunter
HunterOP2y ago
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
jrasm91
jrasm912y ago
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 line
Hunter
HunterOP2y ago
Perfect, 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
jrasm91
jrasm912y ago
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).
Hunter
HunterOP2y ago
Perfect, that did it - Thanks for the help and love service!
meh
meh2y ago

Did you find this page helpful?