From: Yen Chi Hsuan Date: Sun, 21 Aug 2016 12:00:48 +0000 (+0800) Subject: [README.md] Add a format selection example using comma X-Git-Tag: 2021.01.07~4671 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/d164a0d41bdc95caa2b1458b9f51381de7d6a5a7 [README.md] Add a format selection example using comma Ref: #10399 --- diff --git a/README.md b/README.md index 952db7abb..a10aaf35c 100644 --- a/README.md +++ b/README.md @@ -645,7 +645,11 @@ # Download best video only format but no bigger that 50 MB # Download best format available via direct link over HTTP/HTTPS protocol $ youtube-dl -f '(bestvideo+bestaudio/best)[protocol^=http]' + +# Download the best video format and the best audio format without merging them +$ youtube-dl -f 'bestvideo,bestaudio' -o '%(title)s.f%(format_id)s.%(ext)s' ``` +Note that in the last example, an output template is recommended as bestvideo and bestaudio may have the same file name. # VIDEO SELECTION