1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 |
|
---|
7 | <!ENTITY mpv-download-http "https://github.com/mpv-player/mpv/archive/v&mpv-version;/mpv-&mpv-version;.tar.gz">
|
---|
8 | <!ENTITY mpv-download-ftp " ">
|
---|
9 | <!ENTITY mpv-md5sum "7c1a400867e8930f037efc86c1f90a14">
|
---|
10 | <!ENTITY mpv-size "3.3 MB">
|
---|
11 | <!ENTITY mpv-buildsize "28 MB">
|
---|
12 | <!ENTITY mpv-time "0.1 SBU (Using parallelism=4)">
|
---|
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>
|
---|
29 | <application>mpv</application> is a free media player for the
|
---|
30 | command line. It supports a wide variety of media file formats,
|
---|
31 | audio and video codecs, and subtitle types.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs121_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>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&mpv-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
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-lib"/>,
|
---|
75 | <xref linkend="ffmpeg"/>,
|
---|
76 | <xref linkend="libass"/>,
|
---|
77 | <xref linkend="libplacebo"/>,
|
---|
78 | <xref linkend="mesa"/>, and
|
---|
79 | <xref linkend="pulseaudio"/>
|
---|
80 | </para>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
83 | <para role="recommended">
|
---|
84 | <xref linkend="libjpeg"/>,
|
---|
85 | <xref linkend="libva"/>,
|
---|
86 | <xref linkend="libvdpau"/>,
|
---|
87 | <xref linkend="lua52"/>,
|
---|
88 | <xref linkend="uchardet"/>, and
|
---|
89 | <xref linkend="vulkan-loader"/>
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | <bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead>
|
---|
93 | <para role="optional">
|
---|
94 | <xref linkend="libdvdcss"/>,
|
---|
95 | <xref linkend="libdvdread"/>,
|
---|
96 | <xref linkend="libdvdnav"/>, and
|
---|
97 | <ulink url="https://www.videolan.org/developers/libbluray.html">libbluray</ulink>
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead>
|
---|
101 | <para role="optional">
|
---|
102 | <xref linkend="pipewire"/>,
|
---|
103 | <xref linkend="sdl2"/>,
|
---|
104 | <ulink url="https://jackaudio.org/">JACK</ulink>, and
|
---|
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">
|
---|
110 | <ulink url="https://github.com/cacalabs/libcaca">libcaca</ulink> and
|
---|
111 | <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <bridgehead renderas="sect4">Optional (for documentation)</bridgehead>
|
---|
115 | <para role="optional">
|
---|
116 | <xref linkend="docutils"/>
|
---|
117 | </para>
|
---|
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 &&
|
---|
129 | cd build &&
|
---|
130 |
|
---|
131 | meson setup --prefix=/usr \
|
---|
132 | --buildtype=release \
|
---|
133 | -Dx11=enabled \
|
---|
134 | .. &&
|
---|
135 | ninja</userinput></screen>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | This package does not come with a test suite.
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <para>
|
---|
142 | Now, as the &root; user:
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
146 |
|
---|
147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
148 | href="../../xincludes/update-icons-and-desktop.xml"/>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <sect2 role="commands">
|
---|
153 | <title>Command Explanations</title>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | <parameter>-Dx11=enabled</parameter>: allows linking to the X11 libraries.
|
---|
157 | </para>
|
---|
158 |
|
---|
159 | <para>
|
---|
160 | <option>-Ddvdnav=enabled</option>: enables support for DVD playback.
|
---|
161 | </para>
|
---|
162 |
|
---|
163 | <para>
|
---|
164 | <option>-Dcdda=enabled</option>: enables support for CD Audio.
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | <para>
|
---|
168 | <option>-Dsdl2=enabled</option>: enables the usage of SDL2 for
|
---|
169 | audio and video output.
|
---|
170 | </para>
|
---|
171 |
|
---|
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>
|
---|