1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

manpage: minor fixes

In particular, all_formats description split away the example section of
an unrelated option, so move that to its proper place.
This commit is contained in:
wm4 2020-02-19 23:11:02 +01:00
parent e2ab6b7f35
commit 3db8715f70
2 changed files with 11 additions and 11 deletions

View File

@ -315,7 +315,7 @@ When executed, a socket (the IPC connection) is passed to them through file
descriptor inheritance. The file descriptor is indicated as the special command
line argument ``--mpv-ipc-fd=N``, where ``N`` is the numeric file descriptor.
Currently, this is hardcoded as ``--mpv-ipc-fd=3``, and the intention is that
it will always be ``3``. (This was a promise between keeping it as simple as
it will always be ``3``. (This was a compromise between keeping it as simple as
possible, and not doing too much implicitly. Also, since there is a chance that
this will change anyway, you should at least validate that you got the expected
argument.)

View File

@ -823,6 +823,16 @@ Program Behavior
should use ``%`` before any of the characters ``^$()%|,.[]*+-?`` to match
that character.
.. admonition:: Examples
- ``--script-opts=ytdl_hook-exclude='^youtube%.com'``
will exclude any URL that starts with ``http://youtube.com`` or
``https://youtube.com``.
- ``--script-opts=ytdl_hook-exclude='%.mkv$|%.mp4$'``
will exclude any URL that ends with ``.mkv`` or ``.mp4``.
See more lua patterns here: https://www.lua.org/manual/5.1/manual.html#5.4.1
The ``all_formats`` script option accepts a boolean 'yes' or 'no',
and if 'yes' will attempt to add all formats found reported by youtube-dl
(default: no). Each format is added as a separate track. In addition, they
@ -836,16 +846,6 @@ Program Behavior
purpose for various technical reasons. In general, this option is not
useful, and was only added to show that it's possible.
.. admonition:: Examples
- ``--script-opts=ytdl_hook-exclude='^youtube%.com'``
will exclude any URL that starts with ``http://youtube.com`` or
``https://youtube.com``.
- ``--script-opts=ytdl_hook-exclude='%.mkv$|%.mp4$'``
will exclude any URL that ends with ``.mkv`` or ``.mp4``.
See more lua patterns here: https://www.lua.org/manual/5.1/manual.html#5.4.1
The ``use_manifests`` script option makes mpv use the master manifest URL for
formats like HLS and DASH, if available, allowing for video/audio selection
in runtime. It's disabled ("no") by default for performance reasons.