@@ -4115,9 +4115,12 @@ <h2>Subtitles</h2>
4115
4115
<dd><p class="first">Applies filter removing subtitle additions for the deaf or hard-of-hearing (SDH).
4116
4116
This is intended for English, but may in part work for other languages too.
4117
4117
The intention is that it can be always enabled so may not remove
4118
- all parts added.
4119
- It removes speaker labels (like MAN:), upper case text in parentheses and
4120
- any text in brackets.</p>
4118
+ all parts added.</p>
4119
+ <p>It removes speaker labels (like MAN:) and any text enclosed within symbols like
4120
+ parentheses or brackets as specified by the <tt class="docutils literal"><span class="pre">--sub-filter-sdh-enclosures</span></tt> option.
4121
+ Note that parenthesis (full width parenthesis and the normal variant) are a special
4122
+ case and only upper case text is removed. For more filtering, you can use the
4123
+ <tt class="docutils literal"><span class="pre">--sub-filter-sdh-harder</span></tt> option.</p>
4121
4124
<p class="last">Default: <tt class="docutils literal">no</tt>.</p>
4122
4125
</dd>
4123
4126
<dt><tt class="docutils literal"><span class="pre">--sub-filter-sdh-harder=<yes|no></span></tt></dt>
@@ -4126,6 +4129,14 @@ <h2>Subtitles</h2>
4126
4129
lower and upper case letters.</p>
4127
4130
<p class="last">Default: <tt class="docutils literal">no</tt>.</p>
4128
4131
</dd>
4132
+ <dt><tt class="docutils literal"><span class="pre">--sub-filter-sdh-enclosures=<string></span></tt></dt>
4133
+ <dd><p class="first">Specify a string of characters that <tt class="docutils literal"><span class="pre">--sub-filter-sdh</span></tt> will use to potentially
4134
+ remove text. Text that is enclosed within characters specified by this string will
4135
+ be removed. Note that bracket characters with known pairs (such as <tt class="docutils literal">(</tt> or <tt class="docutils literal">[</tt>)
4136
+ will be mapped internally to their matching right hand character, so you only need
4137
+ to specify left hand characters.</p>
4138
+ <p class="last">Default: <tt class="docutils literal">([(</tt>.</p>
4139
+ </dd>
4129
4140
<dt><tt class="docutils literal"><span class="pre">--sub-filter-regex-...=...</span></tt></dt>
4130
4141
<dd><p class="first">Set a list of regular expressions to match on text subtitles, and remove any
4131
4142
lines that match (default: empty). This is a string list option. See
@@ -11327,7 +11338,7 @@ <h2>Input Commands that are Possibly Subject to Change</h2>
11327
11338
information about the key state. The special key name <tt class="docutils literal">unmapped</tt> can be
11328
11339
used to match any unmapped key.</p>
11329
11340
</dd>
11330
- <dt><tt class="docutils literal"><span class="pre">overlay-add</span> <id> <x> <y> <file> <offset> <fmt> <w> <h> <stride></tt></dt>
11341
+ <dt><tt class="docutils literal"><span class="pre">overlay-add</span> <id> <x> <y> <file> <offset> <fmt> <w> <h> <stride> <dw> <dh> </tt></dt>
11331
11342
<dd><p class="first">Add an OSD overlay sourced from raw data. This might be useful for scripts
11332
11343
and applications controlling mpv, and which want to display things on top
11333
11344
of the video window.</p>
@@ -11375,6 +11386,10 @@ <h2>Input Commands that are Possibly Subject to Change</h2>
11375
11386
In general, the total amount of memory accessed is <tt class="docutils literal">stride * h</tt>.
11376
11387
(Technically, the minimum size would be <tt class="docutils literal">stride * (h - 1) + w * 4</tt>, but
11377
11388
for simplicity, the player will access all <tt class="docutils literal">stride * h</tt> bytes.)</p>
11389
+ <p><tt class="docutils literal">dw</tt> and <tt class="docutils literal">dh</tt> specify the (optional) display size of the overlay.
11390
+ The overlay visible portion of the overlay (<tt class="docutils literal">w</tt> and <tt class="docutils literal">h</tt>) is scaled to
11391
+ in display to <tt class="docutils literal">dw</tt> and <tt class="docutils literal">dh</tt>. If parameters are not present, the
11392
+ values for <tt class="docutils literal">w</tt> and <tt class="docutils literal">h</tt> are used.</p>
11378
11393
<div class="admonition note last">
11379
11394
<p class="first admonition-title">Note</p>
11380
11395
<p class="last">Before mpv 0.18.1, you had to do manual "double buffering" when updating
0 commit comments