[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[34bc77db] | 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 |
|
---|
[a80c832] | 7 | <!ENTITY mpv-download-http "https://github.com/mpv-player/mpv/archive/v&mpv-version;/mpv-&mpv-version;.tar.gz">
|
---|
[7591576] | 8 | <!ENTITY mpv-download-ftp " ">
|
---|
[026f189] | 9 | <!ENTITY mpv-md5sum "a004bb1532bdaba8f19a488a27f41253">
|
---|
[e21d933d] | 10 | <!ENTITY mpv-size "3.3 MB">
|
---|
[026f189] | 11 | <!ENTITY mpv-buildsize "26 MB">
|
---|
[e21d933d] | 12 | <!ENTITY mpv-time "0.1 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 |
|
---|
[c36ca685] | 34 | &lfs122_checked;
|
---|
[34bc77db] | 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">
|
---|
[0c848d7] | 74 | <xref linkend="alsa-lib"/>,
|
---|
[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"/>,
|
---|
[f65e42d] | 87 | <xref linkend="luajit"/>,
|
---|
[5f8ade3] | 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 |
|
---|
[8ef533a] | 123 | <para>
|
---|
| 124 | Add a fix to build with FFMpeg > 7.0
|
---|
| 125 | </para>
|
---|
[7ef2fd34] | 126 | <screen><userinput>sed -i 's/AV_OPT_TYPE_CHANNEL_LAYOUT/AV_OPT_TYPE_CHLAYOUT/' filters/f_lavfi.c</userinput></screen>
|
---|
[8ef533a] | 127 |
|
---|
[34bc77db] | 128 | <para>
|
---|
| 129 | Install <application>mpv</application> by running the following
|
---|
| 130 | commands:
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <screen><userinput>mkdir build &&
|
---|
[7591576] | 134 | cd build &&
|
---|
[34bc77db] | 135 |
|
---|
[7591576] | 136 | meson setup --prefix=/usr \
|
---|
| 137 | --buildtype=release \
|
---|
[7ef2fd34] | 138 | -D x11=enabled \
|
---|
[7591576] | 139 | .. &&
|
---|
[34bc77db] | 140 | ninja</userinput></screen>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
| 143 | This package does not come with a test suite.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <para>
|
---|
[7591576] | 147 | Now, as the &root; user:
|
---|
[34bc77db] | 148 | </para>
|
---|
| 149 |
|
---|
| 150 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
| 151 |
|
---|
[7591576] | 152 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 153 | href="../../xincludes/update-icons-and-desktop.xml"/>
|
---|
[34bc77db] | 154 |
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
[3da547ca] | 161 | <parameter>-D x11=enabled</parameter>: allows linking to the X11 libraries.
|
---|
[f7f5c13] | 162 | </para>
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
[3da547ca] | 165 | <option>-D dvdnav=enabled</option>: enables support for DVD playback.
|
---|
[34bc77db] | 166 | </para>
|
---|
| 167 |
|
---|
[ea4d812] | 168 | <para>
|
---|
[3da547ca] | 169 | <option>-D cdda=enabled</option>: enables support for CD Audio.
|
---|
[ea4d812] | 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <para>
|
---|
[3da547ca] | 173 | <option>-D sdl2=enabled</option>: enables the usage of SDL2 for
|
---|
[babbe4db] | 174 | audio and video output.
|
---|
[ea4d812] | 175 | </para>
|
---|
| 176 |
|
---|
[34bc77db] | 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2 role="configuration">
|
---|
| 180 | <title>Configuring mpv</title>
|
---|
| 181 |
|
---|
| 182 | <sect3 id="mpv-config">
|
---|
| 183 | <title>Config Files</title>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | <filename>/etc/mpv/*</filename> and
|
---|
| 187 | <filename>~/.config/mpv/*</filename>
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
| 190 | </sect3>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
| 193 |
|
---|
| 194 | <sect2 role="content">
|
---|
| 195 | <title>Contents</title>
|
---|
| 196 |
|
---|
| 197 | <segmentedlist>
|
---|
| 198 | <segtitle>Installed Programs</segtitle>
|
---|
| 199 | <segtitle>Installed Libraries</segtitle>
|
---|
| 200 | <segtitle>Installed Directories</segtitle>
|
---|
| 201 |
|
---|
| 202 | <seglistitem>
|
---|
| 203 | <seg>
|
---|
| 204 | mpv
|
---|
| 205 | </seg>
|
---|
| 206 | <seg>
|
---|
| 207 | None
|
---|
| 208 | </seg>
|
---|
| 209 | <seg>
|
---|
| 210 | /etc/mpv and
|
---|
| 211 | /usr/share/doc/mpv
|
---|
| 212 | </seg>
|
---|
| 213 | </seglistitem>
|
---|
| 214 | </segmentedlist>
|
---|
| 215 |
|
---|
| 216 | <variablelist>
|
---|
| 217 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 218 | <?dbfo list-presentation="list"?>
|
---|
| 219 | <?dbhtml list-presentation="table"?>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="mpv-prog">
|
---|
| 222 | <term><command>mpv</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
| 225 | is the mpv video player
|
---|
| 226 | </para>
|
---|
| 227 | <indexterm zone="mpv mpv-prog">
|
---|
| 228 | <primary sortas="b-mpv">mpv</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | </variablelist>
|
---|
| 234 |
|
---|
| 235 | </sect2>
|
---|
| 236 |
|
---|
| 237 | </sect1>
|
---|