←back to thread

1113 points Bluestein | 1 comments | | HN request time: 0s | source
Show context
Venn1 ◴[] No.41278065[source]
If you're on Linux, don't forget to enable hardware acceleration by adding hwdec=auto to mpv.conf. Works with AMD/Intel/NVIDIA.

https://interfacinglinux.com/2024/01/10/hardware-acceleratio...

replies(6): >>41278523 #>>41279207 #>>41279536 #>>41281393 #>>41282346 #>>41294660 #
shmerl ◴[] No.41279536[source]
I do it like this:

    vo=gpu-next
    gpu-api=vulkan
    hwdec=vulkan
    gpu-context=waylandvk
You can replace hwdec=vulkan with hwdec=vaapi if Vulkan video doesn't work.
replies(1): >>41280937 #
vladvasiliu ◴[] No.41280937[source]
Is there a reason why one would prefer vulkan over vaapi, or the other way round?
replies(1): >>41281280 #
1. shmerl ◴[] No.41281280[source]
Vulkan in theory should be more flexible, but in practice VAAPI still has some advantages when it comes to power efficiency due to Vulkan path lacking some needed features (I think something to do with color space conversions which in Vulkan now have to happen using regular GPU compute units which is inefficient). In the longer term, Vulkan should be preferable in all scenarios.

See also some details here: https://github.com/mpv-player/mpv/discussions/13909