<- Back to Guides

Zero-Copy Hardware Acceleration

Software decoding forces the CPU to decode the frame, copy it to system RAM, and then push it over the PCIe bus to VRAM for display. Hardware decoding (specifically zero-copy) decodes the frame directly into VRAM, drastically reducing CPU load and bus bandwidth.

Configuration

In your mpv.conf (located in ~/.config/mpv/ on Linux/macOS or %APPDATA%\mpv\ on Windows), add:

hwdec=auto-safe
vo=gpu-next
gpu-api=vulkan

Platform Specific Overrides

  • Windows: hwdec=d3d11va is often preferred if Vulkan/D3D11 interop fails.
  • Linux (Wayland): hwdec=vaapi for AMD/Intel, nvdec for proprietary Nvidia drivers.
  • macOS: hwdec=videotoolbox is the only path.

Verification

Press Shift + I during playback. Look for the "HW" line. If it says Active, the GPU ASIC is handling the decode.