Installing MPV with Hardware Decoding on Raspberry Pi 1/2/3 & Zero

Outdated, see here for newer guide

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
  • sudo dpkg -i *.deb
  • echo "vo=rpi:background=yes" >> $HOME/.config/mpv/mpv.conf

Play a file (Big Buck Bunny 1080p 30fps)

  • mpv

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

DigitalOcean Referral Badge
Keep my site online & receive a $100 60-day credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Proudly published with Ghost | Header Image by GUWEIZ@DeviantArt Creative Commons Licence