Installing MPV with Hardware Decoding on Raspberry Pi 1/2/3 & Zero
Outdated, see here for newer guide
GHOST_URL/quick-easy-compiling-mpv-for-raspberry-pi/
no sound on the first mpv 0.20 build, so uploaded a new one with blu-ray, dvd, cd, pulse/alsa and lua support
Install dependencies
sudo apt-get install libxv1 libxcb-xfixes0 libsdl1.2debian libenca0 libxcb-render0 libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa libxkbcommon0 libxinerama1 libxrandr2 libxss1 libgl1-mesa-glx fontconfig-config fonts-dejavu-core libaacs0 libass5 libbluray1 libbs2b0 libcdio-cdda1 libcdio-paranoia1
Install ffmpeg and mpv
mkdir mpvdeb && cd mpvdeb
wget https://awesome.nwgat.ninja/deb/mpv_0.20.0-1_armhf.deb https://awesome.nwgat.ninja/deb/ffmpeg_3.0.3-1_armhf.deb https://awesome.nwgat.ninja/deb/libass_0.13.3-1_armhf.deb
sudo dpkg -i *.deb
echo "vo=rpi:background=yes" >> $HOME/.config/mpv/mpv.conf
Play a file (Big Buck Bunny 1080p 30fps)
mpv http://ow.ly/10tB0C
mmal error
try setting video ram to 192
sudo su
echo "gpu_mem=128" >> /boot/config.txt
echo "gpu_mem=256" >> /boot/config.txt
(rpi2/rpi3)
note: it will default to fullscreen and borderless window, this is a limitation of raspberry pi