1.8 KiB
libretro-mpv
mpv media player as a libretro core. A proof of concept release is now available.
Aims to use features already established in mpv that are not currently available in Retroarch movieplayer.
I want to be able to use Retroarch as my movie player on my embedded devices (Raspberry Pi) and desktop using hardware acceleration without having to use Kodi or mpv directly. Thus allowing for a more integrated experience, and smaller root filesystem.
Compiling
Overview
Retroarch must be compiled with --disable-ffmpeg
to stop the integrated
movieplayer from playing the input file.
FFmpeg (preferably master branch) must be compiled with --enable-shared
.
mpv must be compiled with --enable-libmpv-shared
.
Then run make
in the mpv-libretro folder.
Compiling with Mingw-w64 on Windows
RetroArch must be compiled with --disable-ffmpeg
and have OpenGL or
OpenGLES enabled. Compiling RetroArch is not described here.
- Open
Minwg-w64 64 bit
(not MSYS2 shell). - Install ffmpeg using
pacman -S mingw64/mingw-w64-x86_64-ffmpeg
. - Clone the ao_cb branch of https://github.com/deltabeard/mpv.git . This fork has the audio callback patches required for libretro-mpv.
- Follow the instructions at https://github.com/mpv-player/mpv/blob/master/DOCS/compile-windows.md#native-compilation-with-msys2 to compile mpv.
- Download libretro-mpv release 0.3.alpha by either checking out the
audio-cb-new
branch ofhttps://github.com/libretro/libretro-mpv.git
or by downloading https://github.com/libretro/libretro-mpv/archive/0.3.alpha.tar.gz . - Run
make
in the libretro-mpv folder. If using OpenGLES, runmake platform=gles
instead.
Overall, the dependencies required to build libretro-mpv are:
- ffmpeg 4.0 (provided by mingw64/mingw-w64-x86_64-ffmpeg)
- mpv from https://github.com/deltabeard/mpv.git fork.