{{define "hwaccel"}} {{template "head-common" .}} {{.Title}} {{template "accessibility-common" .}} {{template "main-layout-start" .}} {{template "hwaccel-content" .}} {{template "main-layout-end" .}} {{template "body-common-scripts" .}} {{end}} {{define "hwaccel-content"}}

Hardware Acceleration

Configure GPU-based video decoding

{{if gt (len .Platform.GPUInfo.Models) 1}}

Multiple GPUs Detected

Found {{len .Platform.GPUInfo.Models}} GPUs: {{range $i, $model := .Platform.GPUInfo.Models}}{{if $i}}, {{end}}{{$model}}{{end}}.

Laptops with both integrated and dedicated graphics may get poor playback performance when MPV runs on the power-saving GPU. Set MPV to the High performance GPU in your OS graphics settings (e.g. Windows Settings > Graphics), and consider a fallback-chain hwdec option (for example nvdec-copy,vulkan-copy,auto on Windows or nvdec,vaapi,auto on Linux) so MPV can fall back to the other GPU's decoder when needed.

{{end}}

GPU Information

GPU Model

{{range .Platform.GPUInfo.Models}}

{{.}}

{{end}} {{if not .Platform.GPUInfo.Models}}

Unknown GPU

{{end}}

GPU Vendor

{{if .Platform.GPUInfo.Brand}}{{getVendorDisplay .Platform.GPUInfo.Brand}}{{else}}Unknown{{end}}

Supported Codecs

Your GPU supports the following hardware decoding formats:

{{range .Platform.GPUInfo.SupportedCodecs}} {{formatCodecName .}} {{end}} {{if not .Platform.GPUInfo.SupportedCodecs}} No codec information available {{end}}

Hardware Acceleration Method

Select hardware acceleration method for MPV:

{{range .HWAOptions}} {{end}} {{/* Render a hand-edited mpv.conf value that matches no option above, so the current setting is visible and Apply is not a silent no-op. */}} {{$customHWA := and (ne .CurrentHWA "auto") (ne .CurrentHWA "no")}} {{range .HWAOptions}}{{if eq $.CurrentHWA .}}{{$customHWA = false}}{{end}}{{end}} {{if $customHWA}} {{end}}
{{end}}