mpv is a free media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/mpv-player/mpv/archive/v0.40.0/mpv-0.40.0.tar.gz
Download SHA256 Sum: 10a0f4654f62140a6dd4d380dcf0bbdbdcf6e697556863dc499c296182f081a3
Download MD5 sum: 1c1823dedca2cf4cd0a44c94637fa31b
Download size: 10,400.9 KB
Estimated disk space required: 27,909.1 KB
Estimated build time: less than 0.2 SBU
alsa-lib-1.2.14, FFmpeg-8.0.1, libass-0.17.4, libplacebo-7.351.0, Mesa-25.2.7, and PulseAudio-17.0
libjpeg-turbo-3.0.1, libva-2.22.0, libvdpau-1.5, luajit-20250816, uchardet-0.0.8, and Vulkan-Loader-1.4.328.1
libdvdcss-1.5.0, libdvdread-7.0.1, libdvdnav-7.0.0, and libbluray
pipewire-1.4.9, sdl2-compat-2.32.60, JACK, and OpenAL
Add a fix to build with FFMpeg > 7.0+
sed -i 's/AV_OPT_TYPE_CHANNEL_LAYOUT/AV_OPT_TYPE_CHLAYOUT/' filters/f_lavfi.c
Add a fix to build with FFMpeg > 8.0
sed -i 's/FF_PROFILE_/AV_PROFILE_/' demux/demux_mkv.c
Prepare mpv by running the following commands:
meson setup build --prefix=/usr \
--buildtype=release \
-D x11=enabledNow Build the package, issue:
ninja -C build
This package does not come with a test suite.
Now Install the package, as the root user:
ninja -C build install
![[Note]](../images/note.png)
This package installs icon files into the /usr/share/icons/hicolor hierarchy and
desktop files into the /usr/share/applications hierarchy. You can
improve system performance and memory usage by updating
/usr/share/icons/hicolor/index.theme and
/usr/share/applications/mimeinfo.cache. To perform
the update you must have GTK-3.24.51 installed (for the icon
cache) and desktop-file-utils-0.28 (for the desktop cache)
and issue the following commands as the root user:
gtk-update-icon-cache -qtf /usr/share/icons/hicolor && update-desktop-database -q
-D x11=enabled: allows linking to the X11 libraries.
-D dvdnav=enabled: enables support for DVD playback.
-D cdda=enabled: enables support for CD Audio.
-D sdl2=enabled: enables the usage of SDL2 for
audio and video output.