I've built mpv on the raspberry pi 3b+ (stretch-2018-06-27) using the following procedure from:
- No OpenGL hardware rendering using
mpv - Quick & Easy: Hardware Accelerated MPV on Raspberry Pi 1/2/3 &
Zero
Run Updates
sudo apt-get update -y && sudo apt-get upgrade -y
sudo rpi-update
increase memory ( advanced options > Memory Split > 256 )
sudo raspic-config
Restart then run the following (I added a few new installations due to errors, libmp3lame-dev and libx264-dev)
sudo apt-get install -y gperf bison flex autoconf automake make texinfo help2man libtool libtool-bin ncurses-dev git yasm mercurial cmake cmake-curses-gui libfribidi-dev checkinstall libfontconfig1-dev libgl1-mesa-dev libgles2-mesa-dev gnutls-dev libsmbclient-dev libpulse-dev libbluray-dev libdvdread-dev libluajit-5.1-dev libjpeg-dev libv4l-dev libcdio-cdda-dev libcdio-paranoia-dev libmp3lame-dev libx264-dev
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
echo "--enable-libx264
--enable-libmp3lame
--enable-mmal
--enable-gpl
--disable-v4l2-m2m" > ffmpeg_options
export LIBRARY_PATH=/opt/vc/lib
export PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig/
./rebuild -j4
sudo scripts/mpv-install
Problem
Everything seems to compile, but when I run a video with the command
sudo mpv-build/mpv/build/mpv --hwdec=mmal --vo=rpi ElephantsDream.mp4
Then no application is opened. The command line continues to show the video playing
The mpv log file doesn't seem to have produced any errors