Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f1a6fa1

Browse files
author
nadeko
committed
CI autodeploy
1 parent d645193 commit f1a6fa1

File tree

1 file changed

+47
-16
lines changed

1 file changed

+47
-16
lines changed

‎manual/master/index.html

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ <h2>Keyboard Control</h2>
292292
<tt class="docutils literal">PATH</tt>, or in the same folder as mpv on Windows.</dd>
293293
<dt>g-d</dt>
294294
<dd>Select an audio device.</dd>
295+
<dt>g-w</dt>
296+
<dd>Select a file from watch later config files (see <a class="reference internal" href="#resuming-playback">RESUMING PLAYBACK</a>) to
297+
resume playing. Requires <tt class="docutils literal"><span class="pre">--write-filename-in-watch-later-config</span></tt>. This
298+
doesn't work with <tt class="docutils literal"><span class="pre">--ignore-path-in-watch-later-config</span></tt>.</dd>
295299
<dt>g-b</dt>
296300
<dd>Select a defined input binding.</dd>
297301
<dt>g-r</dt>
@@ -12394,20 +12398,36 @@ <h3>Screenshot Commands</h3>
1239412398
<p class="last">Like all input command parameters, the filename is subject to property
1239512399
expansion as described in <a class="reference internal" href="#property-expansion">Property Expansion</a>.</p>
1239612400
</dd>
12397-
<dt><tt class="docutils literal"><span class="pre">screenshot-raw</span> [&lt;flags&gt;]</tt></dt>
12401+
<dt><tt class="docutils literal"><span class="pre">screenshot-raw</span> [&lt;flags&gt; <span class="pre">[&lt;format&gt;]]</span></tt></dt>
1239812402
<dd><p class="first">Return a screenshot in memory. This can be used only through the client
1239912403
API. The MPV_FORMAT_NODE_MAP returned by this command has the <tt class="docutils literal">w</tt>, <tt class="docutils literal">h</tt>,
12400-
<tt class="docutils literal">stride</tt> fields set to obvious contents. The <tt class="docutils literal">format</tt> field is set to
12401-
<tt class="docutils literal">bgr0</tt> by default. This format is organized as <tt class="docutils literal">B8G8R8X8</tt> (where <tt class="docutils literal">B</tt>
12402-
is the LSB). The contents of the padding <tt class="docutils literal">X</tt> are undefined. The <tt class="docutils literal">data</tt>
12403-
field is of type MPV_FORMAT_BYTE_ARRAY with the actual image data. The image
12404-
is freed as soon as the result mpv_node is freed. As usual with client API
12405-
semantics, you are not allowed to write to the image data.</p>
12404+
<tt class="docutils literal">stride</tt> fields set to obvious contents.</p>
12405+
<p>The <tt class="docutils literal">format</tt> field is set to the format of the screenshot image data.
12406+
This can be controlled by the <tt class="docutils literal">format</tt> argument. The format can be one of
12407+
the following:</p>
12408+
<dl class="docutils">
12409+
<dt>bgr0 (default)</dt>
12410+
<dd>This format is organized as <tt class="docutils literal">B8G8R8X8</tt> (where <tt class="docutils literal">B</tt> is the LSB).
12411+
The contents of the padding <tt class="docutils literal">X</tt> are undefined.</dd>
12412+
<dt>bgra</dt>
12413+
<dd>This format is organized as <tt class="docutils literal">B8G8R8A8</tt> (where <tt class="docutils literal">B</tt> is the LSB).</dd>
12414+
<dt>rgba</dt>
12415+
<dd>This format is organized as <tt class="docutils literal">R8G8B8A8</tt> (where <tt class="docutils literal">R</tt> is the LSB).</dd>
12416+
<dt>rgba64</dt>
12417+
<dd>This format is organized as <tt class="docutils literal">R16G16B16A16</tt> (where <tt class="docutils literal">R</tt> is the LSB).
12418+
Each component occupies 2 bytes per pixel.
12419+
When this format is used, the image data will be high bit depth, and
12420+
<tt class="docutils literal"><span class="pre">--screenshot-high-bit-depth</span></tt> is ignored.</dd>
12421+
</dl>
12422+
<p>The <tt class="docutils literal">data</tt> field is of type MPV_FORMAT_BYTE_ARRAY with the actual image
12423+
data. The image is freed as soon as the result mpv_node is freed. As usual
12424+
with client API semantics, you are not allowed to write to the image data.</p>
1240612425
<p>The <tt class="docutils literal">stride</tt> is the number of bytes from a pixel at <tt class="docutils literal">(x0, y0)</tt> to the
12407-
pixel at <tt class="docutils literal">(x0, y0 + 1)</tt>. This can be larger than <tt class="docutils literal">w * 4</tt> if the image
12426+
pixel at <tt class="docutils literal">(x0, y0 + 1)</tt>. This can be larger than <tt class="docutils literal">w * bpp</tt> if the image
1240812427
was cropped, or if there is padding. This number can be negative as well.
12409-
You access a pixel with <tt class="docutils literal">byte_index = y * stride + x * 4</tt> (assuming the
12410-
<tt class="docutils literal">bgr0</tt> format).</p>
12428+
You access a pixel with <tt class="docutils literal">byte_index = y * stride + x * bpp</tt>.
12429+
Here, <tt class="docutils literal">bpp</tt> is the number of bytes per pixel, which is 8 for <tt class="docutils literal">rgba64</tt>
12430+
format and 4 for other formats.</p>
1241112431
<p class="last">The <tt class="docutils literal">flags</tt> argument is like the first argument to <tt class="docutils literal">screenshot</tt> and
1241212432
supports <tt class="docutils literal">subtitles</tt>, <tt class="docutils literal">video</tt>, <tt class="docutils literal">window</tt>.</p>
1241312433
</dd>
@@ -14390,6 +14410,10 @@ <h2>Property list</h2>
1439014410
<dt><tt class="docutils literal"><span class="pre">working-directory</span></tt></dt>
1439114411
<dd>The working directory of the mpv process. Can be useful for JSON IPC users,
1439214412
because the command line player usually works with relative paths.</dd>
14413+
<dt><tt class="docutils literal"><span class="pre">current-watch-later-dir</span></tt></dt>
14414+
<dd>The directory in which watch later config files are stored. This returns
14415+
<tt class="docutils literal"><span class="pre">--watch-later-dir</span></tt>, or the default directory if <tt class="docutils literal"><span class="pre">--watch-later-dir</span></tt> has
14416+
not been modified, with tilde placeholders expanded.</dd>
1439314417
<dt><tt class="docutils literal"><span class="pre">protocol-list</span></tt></dt>
1439414418
<dd>List of protocol prefixes potentially recognized by the player. They are
1439514419
returned without trailing <tt class="docutils literal">://</tt> suffix (which is still always required).
@@ -15032,7 +15056,8 @@ <h3>Configurable Options</h3>
1503215056
<dt><tt class="docutils literal">layout</tt></dt>
1503315057
<dd><p class="first">Default: bottombar</p>
1503415058
<p class="last">The layout for the OSC. Currently available are: box, slimbox,
15035-
bottombar and topbar. Default pre-0.21.0 was 'box'.</p>
15059+
bottombar, topbar, slimbottombar and slimtopbar. Default pre-0.21.0 was
15060+
'box'.</p>
1503615061
</dd>
1503715062
<dt><tt class="docutils literal">seekbarstyle</tt></dt>
1503815063
<dd><p class="first">Default: bar</p>
@@ -15130,7 +15155,8 @@ <h3>Configurable Options</h3>
1513015155
</dd>
1513115156
<dt><tt class="docutils literal">barmargin</tt></dt>
1513215157
<dd><p class="first">Default: 0</p>
15133-
<p class="last">Margin from bottom (bottombar) or top (topbar), in pixels</p>
15158+
<p class="last">Margin from bottom (bottombar, slimbottombar) or top (topbar, slimtopbar),
15159+
in pixels.</p>
1513415160
</dd>
1513515161
<dt><tt class="docutils literal">boxalpha</tt></dt>
1513615162
<dd><p class="first">Default: 80</p>
@@ -15199,10 +15225,10 @@ <h3>Configurable Options</h3>
1519915225
user has set them. (It will not overwrite them if all of them are set to
1520015226
default values.) Additionally, <tt class="docutils literal">visibility</tt> must be set to <tt class="docutils literal">always</tt>.
1520115227
Otherwise, this option does nothing.</p>
15202-
<p>Currently, this is supported for the <tt class="docutils literal">bottombar</tt> and <tt class="docutils literal">topbar</tt> layout
15203-
only. The other layouts do not change if this option is set. Separately,
15204-
if window controls are present (see below), they will be affected
15205-
regardless of which osc layout is in use.</p>
15228+
<p>Currently, this is supported for the <tt class="docutils literal">bottombar</tt>, <tt class="docutils literal">slimbottombar</tt>,
15229+
<tt class="docutils literal">topbar</tt> and <tt class="docutils literal">slimtopbar</tt> layouts only. The other layouts do not change
15230+
if this option is set. Separately, if window controls are present (see
15231+
below), they will be affected regardless of which osc layout is in use.</p>
1520615232
<p>The border is static and appears even if the OSC is configured to appear
1520715233
only on mouse interaction. If the OSC is invisible, the border is simply
1520815234
filled with the background color (black by default).</p>
@@ -15856,6 +15882,11 @@ <h3>Configurable Options</h3>
1585615882
Adjusts table width of completion suggestions.
1585715883
Values in the range 1.8..2.5 make sense for common monospace fonts.</p>
1585815884
</dd>
15885+
<dt><tt class="docutils literal">pause_on_open</tt></dt>
15886+
<dd><p class="first">Default: no</p>
15887+
<p class="last">Whether to pause playback when the console opens, and resume it when the
15888+
console is closed, if playback was not already paused.</p>
15889+
</dd>
1585915890
</dl>
1586015891
</div>
1586115892
</div>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /