From d7de123110411ae02df5bb61dd960441d9a8ab90 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 29 Feb 2016 20:57:31 +0100 Subject: command: export list of all decoders Was only available via --vd=help and --ad=help (i.e. not at all via client API). Not bothering with separating audio and video codecs, since this list isn't all that useful anyway in general. If someone complains, a type field could be added. --- DOCS/man/input.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'DOCS/man/input.rst') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 9918f7384f..726354eafa 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1988,6 +1988,38 @@ Property list In some cases, the protocol will not actually be supported (consider ``https`` if ffmpeg is not compiled with TLS support). +``decoder-list`` + List of decoders supported. This lists decoders which can be passed to + ``--vd`` and ``--ad``. + + ``family`` + Decoder driver. Usually ``lavc`` for libavcodec. + + ``codec`` + Canonical codec name, which identifies the format the decoder can + handle. + + ``decoder`` + The name of the decoder itself. Often, this is the same as ``codec``. + Sometimes it can be different. It is used to distinguish multiple + decoders for the same codec. + + ``description`` + Human readable description of the decoder and codec. + + When querying the property with the client API using ``MPV_FORMAT_NODE``, + or with Lua ``mp.get_property_native``, this will return a mpv_node with + the following contents: + + :: + + MPV_FORMAT_NODE_ARRAY + MPV_FORMAT_NODE_MAP (for each decoder entry) + "family" MPV_FORMAT_STRING + "codec" MPV_FORMAT_STRING + "decoder" MPV_FORMAT_STRING + "description" MPV_FORMAT_STRING + ``mpv-version`` Return the mpv version/copyright string. Depending on how the binary was built, it might contain either a release version, or just a git hash. -- cgit v1.2.3