#FFMPEG fails to set VAAPI device

1 messages · Page 1 of 1 (latest)

ancient coyote
#

Hi, i have an issue with my setup, i'm running Immich on Docker on a Windows 11 machine with i5-7500 and 16GB ram (no dedicated GPU, integrated GPU is the UHD 630). VAAPI is supported by my CPU but i cannot figure out how to make it work in Immich.

I attached .env, the compose file and also the logs i see in the immich_server container.

As you can see i used vaapi-wsl as the guide stated since i'm using Docker with WSL2, but otherwise i tried every options and every codec and it still shows the same error.

Thank you for your support immich

wide coveBOT
#

:wave: Hey @ancient coyote,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

tropic eagle
#

Can you do a "ls -la /dev/dri" on the machine running docker as well as in the container itself and post the output here? I would also like to see your hwtranscoding yml.

ancient coyote
# tropic eagle Can you do a "ls -la /dev/dri" on the machine running docker as well as in the c...

Hi, thank you for your answer. Just to clarify, to execute the command on the container I selected the container inside docker desktop, and run the command in the "exec" tab (correct me if that's not the right way). Anyway the output is:

total 0
drwxr-xr-x 2 root root 80 Oct 17 20:07 .
drwxr-xr-x 6 root root 360 Oct 17 20:07 ..
crw------- 1 root root 226, 0 Oct 17 20:07 card0
crw------- 1 root root 226, 128 Oct 17 20:07 renderD128

And about my machine, i'm running Windows 11 so i don't think i can run that command right away 😕

ancient coyote
ancient coyote
#

I've made some progress, if I change the permissions like this inside the container:
chmod 666 /dev/dri/*
immich encoded 1 video successfully with VAAPI, but the next one threw the same error...

haughty blaze
#

Your hwa file is a bit outdated. Remove the LD_LIBRARY_PATH line from the config

ancient coyote
ancient coyote
#

Any help on this?

haughty blaze
#

Could you share the output of ls /dev/dri in WSL2? You can try setting the “preferred hw device” setting in the transcoding settings. It’s trying to use card0 right now

ancient coyote
haughty blaze
#

Hmm, there was an earlier ticket where it turned out that wsl2 just doesn’t support vaapi for a certain processor. Normal Linux would probably work

ancient coyote
haughty blaze
#

You might still be able to use openvino for ml

#

But I don’t have any suggestions for transcoding besides using Linux