Accelerated Video Playback: Difference between revisions
Remove really old driver |
m Add an example for AMD iGPU. I'm adding it because I searched examples in the wiki and elsewhere and didn't find anything related to AMD. It was maybe too obvious but just one line of config is enough. |
||
Line 7: | Line 7: | ||
Intel users also can enable <code>intel-media-driver</code>. It can be used at runtime with <code>LIBVA_DRIVER_NAME=iHD mpv ...</code> for example, if you use Mic92's mpv settings below. | Intel users also can enable <code>intel-media-driver</code>. It can be used at runtime with <code>LIBVA_DRIVER_NAME=iHD mpv ...</code> for example, if you use Mic92's mpv settings below. | ||
Sample configuration: | Sample Intel configuration: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
{ | { | ||
Line 30: | Line 30: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ]; | hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ]; | ||
</syntaxhighlight> | |||
AMD configuration (at least for Ryzen 5 iGPUs) works out of the box:<syntaxhighlight lang="nix"> | |||
{ | |||
hardware.opengl.enable = true; | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||