For this to work you will need an NVIDIA GPU.
Get the mpv-build
scripts, tune the mpv and ffmpeg options and build:
#!/bin/sh
mkdir -p ~/git
cd ~/git
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
# write mpv_options file
cat << EOF > mpv_options
--enable-cuda-hwaccel
EOF
# write ffmpeg_options file …