Skip to content

Instantly share code, notes, and snippets.

@dimapaloskin
Last active July 30, 2018 18:41
Show Gist options
  • Save dimapaloskin/e978754544ac37bcde440b15c3996a8f to your computer and use it in GitHub Desktop.
Save dimapaloskin/e978754544ac37bcde440b15c3996a8f to your computer and use it in GitHub Desktop.
mpv, rapsberry pi 3 and pieman with hardware acceleration

There is just few notes Actually it's working fine outside x11. Let's continue

MPV

PIEMAN BUILD

docker run -e "ALLOW_UNAUTHENTICATED=true" -e "INCLUDES=vim,openssh-server,wget,git,unzip,rpi-update,raspi-config,locales" -e "PROJECT_NAME=candy" --privileged --rm -v $(pwd):/result -v /dev:/dev pie-new

Fix gpg

wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key apt-key add raspberrypi.gpg.key

locales

choose locales settings in raspi-config

Default

gpg

apt-get update raspi-config (locale) rpi-update

libs

openssh-server unzip vim git wget rpi-update raspi-config build-essential locales autopoint pkg-config libtool autoconf python

xinit x11-xserver-utils

libdrm-dev libgbm-dev libass-dev libgegl-dev libvdpau-dev libxss-dev libgtk2.0-dev libgconf2-dev libnss3-dev libxv-dev freeglut3-devc libasound2-dev liblcms2-dev libva-dev libva-drm1 libva-egl1 libva-glx1 libva-x11-1 libuchardet-dev libarchive-dev libpulse-dev libcaca-dev libwayland-dev wayland-protocols libwayland-client0 libgegl-dev libegl1-mesa-dev libjack-dev

??? FOR REMVOE PROBABLY libvulkan-dev libdlm-dev libglfw3

libevdev-dev libwacom-dev libxkbcommon-dev

libav

git clone https://github.com/libav/libav cd libav ./configure make make install

Mpv

NEED TO ADD TO .BASHRC!!!

export PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig
export LIBRARY_PATH=/opt/vc/lib
export LD_LIBRARY_PATH=/opt/vc/lib
export CPATH=/opt/vc/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment