Hardware Video Acceleration - Linux
Overview
This article talks about using hardware video acceleration so the video card encodes/decodes video offloading the CPU and saving power.
Install intel-media-driver
To install the Intel media driver
sudo pacman -S intel-media-driver
Enable acceleration MPV
For mpv, make sure that decoding and video acceleration is enabled. To do so:
Create or edit the user config file in ~/.config/mpv/mpv.conf with the following settings:
vo=gpu hwdec=auto
Reboot your PC.
Verification
Use intel_gpu_top
and make sure that when you play video using tools like VLC or MPV, the video bar is active.