[34bc77db] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b0a9733] | 7 | <!ENTITY mpv-download-http "https://github.com/mpv-player/mpv/archive/refs/tags/v&mpv-version;/mpv-&mpv-version;.tar.gz">
|
---|
[7591576] | 8 | <!ENTITY mpv-download-ftp " ">
|
---|
[5f8ade3] | 9 | <!ENTITY mpv-md5sum "54bd6864cc831f1fee6dee693a0421eb">
|
---|
| 10 | <!ENTITY mpv-size "3.2 MB">
|
---|
| 11 | <!ENTITY mpv-buildsize "25 MB">
|
---|
| 12 | <!ENTITY mpv-time "0.2 SBU (Using parallelism=4)">
|
---|
[34bc77db] | 13 |
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="mpv" xreflabel="mpv-&mpv-version;">
|
---|
| 17 | <?dbhtml filename="mpv.html"?>
|
---|
| 18 |
|
---|
| 19 | <title>mpv-&mpv-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="mpv">
|
---|
| 22 | <primary sortas="a-mpv">mpv</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to mpv</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
[05420d9] | 29 | <application>mpv</application> is a free media player for the
|
---|
[34bc77db] | 30 | command line. It supports a wide variety of media file formats,
|
---|
| 31 | audio and video codecs, and subtitle types.
|
---|
| 32 | </para>
|
---|
| 33 |
|
---|
| 34 | &lfs120_checked;
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&mpv-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
[b0a9733] | 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&mpv-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
[34bc77db] | 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &mpv-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &mpv-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &mpv-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &mpv-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">mpv Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="alsa"/>,
|
---|
[5f8ade3] | 75 | <xref linkend="ffmpeg"/>,
|
---|
| 76 | <xref linkend="libass"/>,
|
---|
| 77 | <xref linkend="libplacebo"/>,
|
---|
| 78 | <xref linkend="mesa"/>, and
|
---|
| 79 | <xref linkend="pulseaudio"/>
|
---|
[34bc77db] | 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 83 | <para role="recommended">
|
---|
| 84 | <xref linkend="libjpeg"/>,
|
---|
[5f8ade3] | 85 | <xref linkend="libva"/>,
|
---|
| 86 | <xref linkend="libvdpau"/>,
|
---|
| 87 | <xref linkend="lua52"/>,
|
---|
| 88 | <xref linkend="uchardet"/>, and
|
---|
| 89 | <xref linkend="vulkan-loader"/>
|
---|
[34bc77db] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead>
|
---|
| 93 | <para role="optional">
|
---|
| 94 | <xref linkend="libdvdcss"/>,
|
---|
[5f8ade3] | 95 | <xref linkend="libdvdread"/>,
|
---|
| 96 | <xref linkend="libdvdnav"/>, and
|
---|
| 97 | <ulink url="https://www.videolan.org/developers/libbluray.html">libbluray</ulink>
|
---|
[34bc77db] | 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead>
|
---|
| 101 | <para role="optional">
|
---|
[5f8ade3] | 102 | <xref linkend="pipewire"/>,
|
---|
[34bc77db] | 103 | <xref linkend="sdl2"/>,
|
---|
[5f8ade3] | 104 | <ulink url="https://jackaudio.org/">JACK</ulink>, and
|
---|
[34bc77db] | 105 | <ulink url="https://openal.org/">OpenAL</ulink>
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <bridgehead renderas="sect4">Optional Video Output Drivers and Libraries</bridgehead>
|
---|
| 109 | <para role="optional">
|
---|
[5f8ade3] | 110 | <ulink url="https://github.com/cacalabs/libcaca">libcaca</ulink> and
|
---|
[34bc77db] | 111 | <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[5f8ade3] | 114 | <bridgehead renderas="sect4">Optional (for documentation)</bridgehead>
|
---|
| 115 | <para role="optional">
|
---|
| 116 | <xref linkend="docutils"/>
|
---|
| 117 | </para>
|
---|
[34bc77db] | 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2 role="installation">
|
---|
| 121 | <title>Installation of mpv</title>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | Install <application>mpv</application> by running the following
|
---|
| 125 | commands:
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <screen><userinput>mkdir build &&
|
---|
[7591576] | 129 | cd build &&
|
---|
[34bc77db] | 130 |
|
---|
[7591576] | 131 | meson setup --prefix=/usr \
|
---|
| 132 | --buildtype=release \
|
---|
[f7f5c13] | 133 | -Dx11=enabled \
|
---|
[7591576] | 134 | .. &&
|
---|
[34bc77db] | 135 | ninja</userinput></screen>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | This package does not come with a test suite.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
[7591576] | 142 | Now, as the &root; user:
|
---|
[34bc77db] | 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
| 146 |
|
---|
[7591576] | 147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 148 | href="../../xincludes/update-icons-and-desktop.xml"/>
|
---|
[34bc77db] | 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2 role="commands">
|
---|
| 153 | <title>Command Explanations</title>
|
---|
| 154 |
|
---|
| 155 | <para>
|
---|
[5f8ade3] | 156 | <parameter>-Dx11=enabled</parameter>: allows linking to the X11 libraries.
|
---|
[f7f5c13] | 157 | </para>
|
---|
| 158 |
|
---|
| 159 | <para>
|
---|
[5f8ade3] | 160 | <parameter>-Ddvdnav=enabled</parameter>: enables support for DVD playback.
|
---|
[34bc77db] | 161 | </para>
|
---|
| 162 |
|
---|
[ea4d812] | 163 | <para>
|
---|
[5f8ade3] | 164 | <parameter>-Dcdda=enabled</parameter>: enables support for CD Audio.
|
---|
[ea4d812] | 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
[5f8ade3] | 168 | <parameter>-Dsdl2=enabled</parameter>: enables the usage of SDL2 for
|
---|
[babbe4db] | 169 | audio and video output.
|
---|
[ea4d812] | 170 | </para>
|
---|
| 171 |
|
---|
[34bc77db] | 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | <sect2 role="configuration">
|
---|
| 175 | <title>Configuring mpv</title>
|
---|
| 176 |
|
---|
| 177 | <sect3 id="mpv-config">
|
---|
| 178 | <title>Config Files</title>
|
---|
| 179 |
|
---|
| 180 | <para>
|
---|
| 181 | <filename>/etc/mpv/*</filename> and
|
---|
| 182 | <filename>~/.config/mpv/*</filename>
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | </sect3>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="content">
|
---|
| 190 | <title>Contents</title>
|
---|
| 191 |
|
---|
| 192 | <segmentedlist>
|
---|
| 193 | <segtitle>Installed Programs</segtitle>
|
---|
| 194 | <segtitle>Installed Libraries</segtitle>
|
---|
| 195 | <segtitle>Installed Directories</segtitle>
|
---|
| 196 |
|
---|
| 197 | <seglistitem>
|
---|
| 198 | <seg>
|
---|
| 199 | mpv
|
---|
| 200 | </seg>
|
---|
| 201 | <seg>
|
---|
| 202 | None
|
---|
| 203 | </seg>
|
---|
| 204 | <seg>
|
---|
| 205 | /etc/mpv and
|
---|
| 206 | /usr/share/doc/mpv
|
---|
| 207 | </seg>
|
---|
| 208 | </seglistitem>
|
---|
| 209 | </segmentedlist>
|
---|
| 210 |
|
---|
| 211 | <variablelist>
|
---|
| 212 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 213 | <?dbfo list-presentation="list"?>
|
---|
| 214 | <?dbhtml list-presentation="table"?>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="mpv-prog">
|
---|
| 217 | <term><command>mpv</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>
|
---|
| 220 | is the mpv video player
|
---|
| 221 | </para>
|
---|
| 222 | <indexterm zone="mpv mpv-prog">
|
---|
| 223 | <primary sortas="b-mpv">mpv</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | </variablelist>
|
---|
| 229 |
|
---|
| 230 | </sect2>
|
---|
| 231 |
|
---|
| 232 | </sect1>
|
---|