From e094cec18c4c7f17396fe6a946c497b5048863c6 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 21 Feb 2021 03:32:50 +0530 Subject: [PATCH] [documentation] Document `all` in format selection (Closes #101) :ci skip all --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a792c26c1..6207a652e 100644 --- a/README.md +++ b/README.md @@ -923,6 +923,7 @@ # FORMAT SELECTION You can also use special names to select particular edge case formats: + - `all`: Select all formats - `b*`, `best*`: Select the best quality format irrespective of whether it contains video or audio. - `w*`, `worst*`: Select the worst quality format irrespective of whether it contains video or audio. - `b`, `best`: Select the best quality format that contains both video and audio. Equivalent to `best*[vcodec!=none][acodec!=none]` @@ -973,7 +974,7 @@ ## Filtering Formats Note that none of the aforementioned meta fields are guaranteed to be present since this solely depends on the metadata obtained by particular extractor, i.e. the metadata offered by the video hoster. Any other field made available by the extractor can also be used for filtering. -Formats for which the value is not known are excluded unless you put a question mark (`?`) after the operator. You can combine format filters, so `-f "[height <=? 720][tbr>500]"` selects up to 720p videos (or videos where the height is not known) with a bitrate of at least 500 KBit/s. +Formats for which the value is not known are excluded unless you put a question mark (`?`) after the operator. You can combine format filters, so `-f "[height<=?720][tbr>500]"` selects up to 720p videos (or videos where the height is not known) with a bitrate of at least 500 KBit/s. You can also use the filters with `all` to download all formats that satisfy the filter. For example, `-f "all[vcodec=none]"` selects all audio-only formats. Format selectors can also be grouped using parentheses, for example if you want to download the best mp4 and webm formats with a height lower than 480 you can use `-f '(mp4,webm)[height<480]'`.