]> jfr.im git - yt-dlp.git/blobdiff - README.md
Added negative switches for many existing options
[yt-dlp.git] / README.md
index 485b5a15b09f79400a5258400243b001b51e9458..9667603c62fff61c6cff219a96e33fb5649bc268 100644 (file)
--- a/README.md
+++ b/README.md
@@ -97,14 +97,16 @@ # DESCRIPTION
 # OPTIONS
     -h, --help                       Print this help text and exit
     --version                        Print program version and exit
-    -U, --update                     Update this program to latest version. Make
+    -U, --update                     (Doesn't work since there is no release) 
+                                     Update this program to latest version. Make
                                      sure that you have sufficient permissions
                                      (run with sudo if needed)
+                                     
     -i, --ignore-errors              Continue on download errors, for example to
                                      skip unavailable videos in a playlist
-    --abort-on-error                 Abort downloading of further videos (in the
-                                     playlist or the command line) if an error
-                                     occurs
+                                     (Same as --no-abort-on-error)
+    --abort-on-error                 Abort downloading of further videos if an 
+                                     error occurs (Same as --no-ignore-errors)
     --dump-user-agent                Display the current browser identification
     --list-extractors                List all supported extractors
     --extractor-descriptions         Output descriptions of all supported
@@ -113,24 +115,26 @@ # OPTIONS
                                      extractor
     --default-search PREFIX          Use this prefix for unqualified URLs. For
                                      example "gvsearch2:" downloads two videos
-                                     from google videos for youtube-dlc "large
+                                     from google videos for youtube-dl "large
                                      apple". Use the value "auto" to let
-                                     youtube-dlc guess ("auto_warning" to emit a
+                                     youtube-dl guess ("auto_warning" to emit a
                                      warning when guessing). "error" just throws
                                      an error. The default value "fixup_error"
                                      repairs broken URLs, but emits an error if
                                      this is not possible instead of searching.
-    --ignore-config                  Do not read configuration files. When given
+    --ignore-config, --no-config     Do not read configuration files. When given
                                      in the global configuration file
-                                     /etc/youtube-dlc.conf: Do not read the user
+                                     /etc/youtube-dl.conf: Do not read the user
                                      configuration in ~/.config/youtube-
-                                     dlc/config (%APPDATA%/youtube-
-                                     dlc/config.txt on Windows)
+                                     dl/config (%APPDATA%/youtube-dl/config.txt
+                                     on Windows)
     --config-location PATH           Location of the configuration file; either
                                      the path to the config or its containing
                                      directory.
     --flat-playlist                  Do not extract the videos of a playlist,
                                      only list them.
+    --flat-videos                    Do not resolve the video urls
+    --no-flat-playlist               Extract the videos of a playlist
     --mark-watched                   Mark videos watched (YouTube only)
     --no-mark-watched                Do not mark videos watched (YouTube only)
     --no-color                       Do not emit color codes in output
@@ -183,11 +187,15 @@ ## Video Selection:
                                      SIZE (e.g. 50k or 44.6m)
     --max-filesize SIZE              Do not download any videos larger than SIZE
                                      (e.g. 50k or 44.6m)
-    --date DATE                      Download only videos uploaded in this date
+    --date DATE                      Download only videos uploaded in this date.
+                                     The date can be "YYYYMMDD" or in the format
+                                     "(now|today)[+-][0-9](day|week|month|year)(s)?"
     --datebefore DATE                Download only videos uploaded on or before
-                                     this date (i.e. inclusive)
+                                     this date (i.e. inclusive). The date formats  
+                                     accepted is the same as --date
     --dateafter DATE                 Download only videos uploaded on or after
-                                     this date (i.e. inclusive)
+                                     this date (i.e. inclusive). The date formats  
+                                     accepted is the same as --date
     --min-views COUNT                Do not download any videos with less than
                                      COUNT views
     --max-views COUNT                Do not download any videos with more than
@@ -211,6 +219,7 @@ ## Video Selection:
                                      service), but who also have a description,
                                      use --match-filter "like_count > 100 &
                                      dislike_count <? 50 & description" .
+    --no-match-filter FILTER         Do not use generic video filter (default)
     --no-playlist                    Download only the video, if the URL refers
                                      to a video and a playlist.
     --yes-playlist                   Download the playlist, if the URL refers to
@@ -220,10 +229,11 @@ ## Video Selection:
     --download-archive FILE          Download only videos not listed in the
                                      archive file. Record the IDs of all
                                      downloaded videos in it.
+    --no-download-archive            Do not use archive file (default)
     --break-on-existing              Stop the download process after attempting
                                      to download a file that's in the archive.
-    --include-ads                    Download advertisements as well
-                                     (experimental)
+    --include-ads                    Download advertisements as well (experimental)
+    --no-include-ads                 Do not download advertisements (default)
 
 ## Download Options:
     -r, --limit-rate RATE            Maximum download rate in bytes per second
@@ -233,25 +243,28 @@ ## Download Options:
     --fragment-retries RETRIES       Number of retries for a fragment (default
                                      is 10), or "infinite" (DASH, hlsnative and
                                      ISM)
-    --skip-unavailable-fragments     Skip unavailable fragments (DASH, hlsnative
-                                     and ISM)
-    --abort-on-unavailable-fragment  Abort downloading when some fragment is not
-                                     available
+    --skip-unavailable-fragments     Skip unavailable fragments for DASH,
+                                     hlsnative and ISM (default)
+                                     (Same as --no-abort-on-unavailable-fragment)
+    --abort-on-unavailable-fragment  Abort downloading if a fragment is unavailable
+                                     (Same as --no-skip-unavailable-fragments)
     --keep-fragments                 Keep downloaded fragments on disk after
-                                     downloading is finished; fragments are
-                                     erased by default
+                                     downloading is finished
+    --no-keep-fragments              Delete downloaded fragments after downloading
+                                     is finished (default)
     --buffer-size SIZE               Size of download buffer (e.g. 1024 or 16K)
                                      (default is 1024)
+    --resize-buffer                  The buffer size is automatically resized from 
+                                     an initial value of --buffer-size (default)
     --no-resize-buffer               Do not automatically adjust the buffer
-                                     size. By default, the buffer size is
-                                     automatically resized from an initial value
-                                     of SIZE.
+                                     size
     --http-chunk-size SIZE           Size of a chunk for chunk-based HTTP
                                      downloading (e.g. 10485760 or 10M) (default
                                      is disabled). May be useful for bypassing
                                      bandwidth throttling imposed by a webserver
                                      (experimental)
     --playlist-reverse               Download playlist videos in reverse order
+    --no-playlist-reverse            Download playlist videos in default order
     --playlist-random                Download playlist videos in random order
     --xattr-set-filesize             Set file xattribute ytdl.filesize with
                                      expected file size
@@ -274,7 +287,6 @@ ## Filesystem Options:
                                      stdin), one URL per line. Lines starting
                                      with '#', ';' or ']' are considered as
                                      comments and ignored.
-    --id                             Use only video ID in file name
     -o, --output TEMPLATE            Output filename template, see the "OUTPUT
                                      TEMPLATE" for all the info
     --autonumber-start NUMBER        Specify the start value for %(autonumber)s
@@ -282,31 +294,39 @@ ## Filesystem Options:
     --restrict-filenames             Restrict filenames to only ASCII
                                      characters, and avoid "&" and spaces in
                                      filenames
+    --no-restrict-filenames          Allow Unicode characters, "&" and spaces
+                                     in filenames (default)
     -w, --no-overwrites              Do not overwrite files
-    -c, --continue                   Force resume of partially downloaded files.
-                                     By default, youtube-dlc will resume
-                                     downloads if possible.
+    -c, --continue                   Resume partially downloaded files (default)
     --no-continue                    Do not resume partially downloaded files
                                      (restart from beginning)
+    --part                           Use .part files instead of writing directly 
+                                     into output file (default)
     --no-part                        Do not use .part files - write directly
                                      into output file
+    --mtime                          Use the Last-modified header to set the 
+                                     file modification time
     --no-mtime                       Do not use the Last-modified header to set
                                      the file modification time
     --write-description              Write video description to a .description
                                      file
+    --no-write-description           Do not write video description (default)
     --write-info-json                Write video metadata to a .info.json file
+    --no-write-info-json             Do not write video metadata (default)
     --write-annotations              Write video annotations to a
                                      .annotations.xml file
+    --no-write-annotations           Do not write video annotations (default)
     --load-info-json FILE            JSON file containing the video information
                                      (created with the "--write-info-json"
                                      option)
     --cookies FILE                   File to read cookies from and dump cookie
                                      jar in
-    --cache-dir DIR                  Location in the filesystem where youtube-
-                                     dlc can store some downloaded information
+    --no-cookies                     Do not read/dump cookies (default)
+    --cache-dir DIR                  Location in the filesystem where youtube-dl
+                                     can store some downloaded information
                                      permanently. By default
-                                     $XDG_CACHE_HOME/youtube-dlc or
-                                     ~/.cache/youtube-dlc . At the moment, only
+                                     $XDG_CACHE_HOME/youtube-dl or
+                                     ~/.cache/youtube-dl . At the moment, only
                                      YouTube player files (for videos with
                                      obfuscated signatures) are cached, but that
                                      may change.
@@ -317,10 +337,20 @@ ## Filesystem Options:
 
 ## Thumbnail images:
     --write-thumbnail                Write thumbnail image to disk
+    --no-write-thumbnail             Do not write thumbnail image to disk
     --write-all-thumbnails           Write all thumbnail image formats to disk
     --list-thumbnails                Simulate and list all available thumbnail
                                      formats
 
+## Internet Shortcut Options:
+    --write-link                     Write an internet shortcut file, depending on 
+                                     the current platform (.url/.webloc/.desktop). 
+                                     The URL may be cached by the OS.
+    --write-url-link                 Write a Windows .url internet shortcut file. 
+                                     (The OS caches the URL based on the file path)
+    --write-webloc-link              Write a .webloc macOS internet shortcut file
+    --write-desktop-link             Write a .desktop Linux internet shortcut file
+
 ## Verbosity / Simulation Options:
     -q, --quiet                      Activate quiet mode
     --no-warnings                    Ignore warnings
@@ -344,6 +374,10 @@ ## Verbosity / Simulation Options:
                                      playlist information in a single line.
     --print-json                     Be quiet and print the video information as
                                      JSON (video is still being downloaded).
+    --force-write-archive            Force download archive entries to be written 
+                                     as far as no errors occur, even if -s or 
+                                     another simulation switch is used.
+                                     (Same as --force-download-archive)
     --newline                        Output progress bar as new lines
     --no-progress                    Do not print progress bar
     --console-title                  Display progress in console titlebar
@@ -354,10 +388,9 @@ ## Verbosity / Simulation Options:
                                      files in the current directory to debug
                                      problems
     --print-traffic                  Display sent and read HTTP traffic
-    -C, --call-home                  Contact the youtube-dlc server for
-                                     debugging
-    --no-call-home                   Do NOT contact the youtube-dlc server for
-                                     debugging
+    -C, --call-home                  Contact the youtube-dlc server for debugging
+    --no-call-home                   Do not contact the youtube-dlc server for
+                                     debugging (default)
 
 ## Workarounds:
     --encoding ENCODING              Force the specified encoding (experimental)
@@ -398,15 +431,34 @@ ## Video Format Options:
     --no-format-sort-force           Some fields have precedence over the user
                                      specified sort order, see "Sorting Formats"
                                      for more details (default)
+    --video-multistreams             Allow multiple video streams to be merged into
+                                     a single file (default)
+    --no-video-multistreams          Only one video stream is downloaded for each
+                                     output file
+    --audio-multistreams             Allow multiple audio streams to be merged into
+                                     a single file (default)
+    --no-audio-multistreams          Only one audio stream is downloaded for each
+                                     output file
     --all-formats                    Download all available video formats
     --prefer-free-formats            Prefer free video formats unless a specific
                                      one is requested
     -F, --list-formats               List all available formats of requested
                                      videos
+    --list-formats-as-table          Present the output of -F in a more tabular form
+    --list-formats-old               Present the output of -F in older form (default)
+                                     (Same as --no-list-formats-as-table)
     --youtube-skip-dash-manifest     Do not download the DASH manifests and
                                      related data on YouTube videos
+                                     (Same as --no-youtube-include-dash-manifest)
+    --youtube-include-dash-manifest  Download the DASH manifests and related data 
+                                     on YouTube videos (default)
+                                     (Same as --no-youtube-skip-dash-manifest)
     --youtube-skip-hls-manifest      Do not download the HLS manifests and
                                      related data on YouTube videos
+                                     (Same as --no-youtube-include-hls-manifest)
+    --youtube-include-hls-manifest   Download the HLS manifests and related data 
+                                     on YouTube videos (default)
+                                     (Same as --no-youtube-skip-hls-manifest)
     --merge-output-format FORMAT     If a merge is required (e.g.
                                      bestvideo+bestaudio), output to given
                                      container format. One of mkv, mp4, ogg,
@@ -414,8 +466,11 @@ ## Video Format Options:
 
 ## Subtitle Options:
     --write-sub                      Write subtitle file
+    --no-write-sub                   Do not write subtitle file (default)
     --write-auto-sub                 Write automatically generated subtitle file
                                      (YouTube only)
+    --no-write-auto-sub              Do not write automatically generated
+                                     subtitle file (default)
     --all-subs                       Download all the available subtitles of the
                                      video
     --list-subs                      List all available subtitles for the video
@@ -436,8 +491,8 @@ ## Authentication Options:
 
 ## Adobe Pass Options:
     --ap-mso MSO                     Adobe Pass multiple-system operator (TV
-                                     provider) identifier, use --ap-list-mso
-                                     for a list of available MSOs
+                                     provider) identifier, use --ap-list-mso for
+                                     a list of available MSOs
     --ap-username USERNAME           Multiple-system operator account login
     --ap-password PASSWORD           Multiple-system operator account password.
                                      If this option is left out, youtube-dlc
@@ -465,15 +520,19 @@ ## Post-processing Options:
                                      necessary (currently supported:
                                      mp4|flv|ogg|webm|mkv|avi)
     --postprocessor-args ARGS        Give these arguments to the postprocessor
-    -k, --keep-video                 Keep the video file on disk after the post-
-                                     processing; the video is erased by default
-    --no-post-overwrites             Do not overwrite post-processed files; the
-                                     post-processed files are overwritten by
-                                     default
+    -k, --keep-video                 Keep the intermediate video file on disk 
+                                     after post-processing
+    --no-keep-video                  Delete the intermediate video file after 
+                                     post-processing (default)
+    --post-overwrites                Overwrite post-processed files (default)
+    --no-post-overwrites             Do not overwrite post-processed files
     --embed-subs                     Embed subtitles in the video (only for mp4,
                                      webm and mkv videos)
+    --no-embed-subs                  Do not embed subtitles in the video (default)
     --embed-thumbnail                Embed thumbnail in the audio as cover art
+    --no-embed-thumbnail             Do not embed thumbnail (default)
     --add-metadata                   Write metadata to the video file
+    --no-add-metadata                Do not write metadata (default)
     --metadata-from-title FORMAT     Parse additional metadata like song title /
                                      artist from the video title. The format
                                      syntax is the same as --output. Regular
@@ -492,9 +551,10 @@ ## Post-processing Options:
                                      default; fix file if we can, warn
                                      otherwise)
     --prefer-avconv                  Prefer avconv over ffmpeg for running the
-                                     postprocessors
+                                     postprocessors (Same as --no-prefer-ffmpeg)
     --prefer-ffmpeg                  Prefer ffmpeg over avconv for running the
                                      postprocessors (default)
+                                     (Same as --no-prefer-avconv)
     --ffmpeg-location PATH           Location of the ffmpeg/avconv binary;
                                      either the path to the binary or its
                                      containing directory.
@@ -505,8 +565,29 @@ ## Post-processing Options:
     --convert-subs FORMAT            Convert the subtitles to other format
                                      (currently supported: srt|ass|vtt|lrc)
 
+## SponSkrub Options (SponsorBlock)
+    --sponskrub                      Use sponskrub to mark sponsored sections with
+                                     the data available in SponsorBlock API. This
+                                     is enabled by default if the sponskrub binary
+                                     exists (Youtube only)
+    --sponskrub-cut                  Cut out the sponsor sections instead of
+                                     simply marking them
+    --no-sponskrub-cut               Simply mark the sponsor sections, not cut
+                                     them out (default)
+    --sponskrub-force                Allow cutting out the sponsor sections even
+                                     if the video was already downloaded.
+    --no-sponskrub-force             Do not cut out the sponsor sections if the
+                                     video was already downloaded (default)
+    --sponskrub-location             Location of the sponskrub binary;
+                                     either the path to the binary or its
+                                     containing directory
+    --sponskrub-args                 Give these arguments to sponskrub
+
 ## Extractor Options:
     --ignore-dynamic-mpd             Do not process dynamic DASH manifests
+                                     (Same as --no-allow-dynamic-mpd)
+    --allow-dynamic-mpd              Process dynamic DASH manifests (default)
+                                     (Same as --no-ignore-dynamic-mpd)
 
 # CONFIGURATION
 
@@ -711,12 +792,23 @@ # FORMAT SELECTION
 
 You can also use special names to select particular edge case formats:
 
- - `best`: Select the best quality format represented by a single file with video and audio.
- - `worst`: Select the worst quality format represented by a single file with video and audio.
- - `bestvideo`: Select the best quality video-only format (e.g. DASH video). May not be available.
- - `worstvideo`: Select the worst quality video-only format. May not be available.
- - `bestaudio`: Select the best quality audio only-format. May not be available.
- - `worstaudio`: Select the worst quality audio only-format. May not be available.
+ - `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]`
+ - `w`, `worst`: Select the worst quality format that contains both video and audio. Equivalent to `worst*[vcodec!=none][acodec!=none]`
+
+ - `bv`, `bestvideo`: Select the best quality video-only format. Equivalent to `best*[acodec=none]`
+ - `wv`, `worstvideo`: Select the worst quality video-only format. Equivalent to `worst*[acodec=none]`
+
+ - `bv*`, `bestvideo*`: Select the best quality format that contains video. It may also contain audio. Equivalent to `best*[vcodec!=none]`
+ - `wv*`, `worstvideo*`: Select the worst quality format that contains video. It may also contain audio. Equivalent to `worst*[vcodec!=none]`
+
+ - `ba`, `bestaudio`: Select the best quality audio-only format. Equivalent to `best*[vcodec=none]`
+ - `wa`, `worstaudio`: Select the worst quality audio-only format. Equivalent to `worst*[vcodec=none]`
+
+ - `ba*`, `bestaudio*`: Select the best quality format that contains audio. It may also contain video. Equivalent to `best*[acodec!=none]`
+ - `wa*`, `worstaudio*`: Select the worst quality format that contains audio. It may also contain video. Equivalent to `worst*[acodec!=none]`
 
 For example, to download the worst quality video-only format you can use `-f worstvideo`. It is however recomended to never actually use `worst` and related options. See [sorting formats](#sorting-formats) for more details.
 
@@ -724,8 +816,7 @@ # FORMAT SELECTION
 
 If you want to download several formats of the same video use a comma as a separator, e.g. `-f 22,17,18` will download all these three formats, of course if they are available. Or a more sophisticated example combined with the precedence feature: `-f 136/137/mp4/bestvideo,140/m4a/bestaudio`.
 
-You can merge the video and audio of multiple formats into a single file using `-f <format-1>+<format-2>` (requires ffmpeg or avconv installed), for example `-f bestvideo+bestaudio` will download the best video-only format, the best audio-only format and mux them together with ffmpeg/avconv.
-
+You can merge the video and audio of multiple formats into a single file using `-f <format1>+<format2>+...` (requires ffmpeg or avconv installed), for example `-f bestvideo+bestaudio` will download the best video-only format, the best audio-only format and mux them together with ffmpeg/avconv. If `--no-video-multistreams` is used, all formats with a video stream except the first one are ignored. Similarly, if `--no-audio-multistreams` is used, all formats with an audio stream except the first one are ignored. For example, `-f bestvideo+best+bestaudio` will download and merge all 3 given formats. The resulting file will have 2 video streams and 2 audio streams. But `-f bestvideo+best+bestaudio --no-video-multistreams` will download and merge only `bestvideo` and `bestaudio`. `best` is ignored since another format containing a video stream (`bestvideo`) has already been selected. The order of the formats is therefore important. `-f best+bestaudio --no-audio-multistreams` will download and merge both formats while `-f bestaudio+best --no-audio-multistreams` will ignore `best` and download only `bestaudio`.
 
 ## Filtering Formats
 
@@ -753,7 +844,7 @@ ## Filtering Formats
 
 Any string comparison may be prefixed with negation `!` in order to produce an opposite comparison, e.g. `!*=` (does not contain).
 
-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.
+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.
 
@@ -791,7 +882,7 @@ ## Sorting Formats
 
 All fields, unless specified otherwise, are sorted in decending order. To reverse this, prefix the field with a `+`. Eg: `+res` prefers the smallest resolution format. Additionally, you can suffix a prefered value for the fields, seperated by a `:`. Eg: `res:720` prefers larger videos, but no larger than 720p and the smallest video if there are no videos less than 720p. For `codec` and `ext`, you can provide two prefered values, the first for video and the second for audio. Eg: `+codec:avc:m4a` (equivalent to `+vcodec:avc,+acodec:m4a`) sets the video codec preference to `h264` > `h265` > `vp9` > `av01` > `vp8` > `h263` > `theora` and audio codec preference to `mp4a` > `aac` > `vorbis` > `opus` > `mp3` > `ac3` > `dts`. You can also make the sorting prefer the nearest values to the provided by using `~` as the delimiter. Eg: `filesize~1G` prefers the format with filesize closest to 1 GiB.
 
-The fields `has_video`, `has_audio`, `extractor_preference`, `language_preference`, `quality` are always given highest priority in sorting, irrespective of the user-defined order. This behaviour can be changed by using `--force-format-sort`. Apart from these, the default order used by youtube-dlc is: `tbr,filesize,vbr,height,width,protocol,vext,abr,aext,fps,filesize_approx,source_preference,format_id`. Note that the extractors may override this default order (currently no extractor does this), but not the user-provided order.
+The fields `has_video`, `extractor_preference`, `language_preference`, `quality` are always given highest priority in sorting, irrespective of the user-defined order. This behaviour can be changed by using `--force-format-sort`. Apart from these, the default order used by youtube-dlc is: `tbr,filesize,vbr,height,width,protocol,vext,abr,aext,fps,filesize_approx,source_preference,format_id`. Note that the extractors may override this default order (currently no extractor does this), but not the user-provided order.
 
 If your format selector is `worst`, the last item is selected after sorting. This means it will select the format that is worst in all repects. Most of the time, what you actually want is the video with the smallest filesize instead. So it is generally better to use `-f best -S +size,+br,+res,+fps`.
 
@@ -808,6 +899,19 @@ ## Format Selection examples
 Note that on Windows you may need to use double quotes instead of single.
 
 ```bash
+# Download and merge the best best video-only format and the best audio-only format,
+# or download the best combined format if video-only format is not available
+$ youtube-dlc
+
+# Same as above
+$ youtube-dlc -f 'bestvideo+bestaudio/best'
+
+# Download best format that contains video,
+# and if it doesn't already have an audio stream, merge it with best audio-only format
+$ youtube-dlc -f 'bestvideo*+bestaudio/best' --no-audio-multistreams
+
+
+
 # Download the worst video available
 $ youtube-dlc -f 'worstvideo+worstaudio/worst'
 
@@ -818,6 +922,7 @@ # Download the smallest video available
 $ youtube-dlc -S '+size,+bitrate'
 
 
+
 # Download the best mp4 video available, or the best video if no mp4 available
 $ youtube-dlc -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/bestvideo+bestaudio / best'
 
@@ -826,6 +931,7 @@ # (For video, mp4 > webm > flv. For audio, m4a > aac > mp3 ...)
 $ youtube-dlc -S 'ext'
 
 
+
 # Download the best video available but no better than 480p,
 # or the worst video if there is no video under 480p
 $ youtube-dlc -f 'bestvideo[height<=480]+bestaudio/best[height<=480] / worstvideo+bestaudio/worst'
@@ -841,6 +947,7 @@ # So this works correctly for vertical videos as well
 $ youtube-dlc -S 'res:480'
 
 
+
 # Download the best video (that also has audio) but no bigger than 50 MB,
 # or the worst video (that also has audio) if there is no video under 50 MB
 $ youtube-dlc -f 'best[filesize<50M] / worst'
@@ -853,6 +960,7 @@ # Download best video (that also has audio) that is closest in size to 50 MB
 $ youtube-dlc -f 'best' -S 'filesize~50M'
 
 
+
 # Download best video available via direct link over HTTP/HTTPS protocol,
 # or the best video available via any protocol if there is no such video
 $ youtube-dlc -f '(bestvideo+bestaudio/best)[protocol^=http][protocol!*=dash] / bestvideo+bestaudio/best'
@@ -862,12 +970,14 @@ # (https/ftps > http/ftp > m3u8_native > m3u8 > http_dash_segments ...)
 $ youtube-dlc -S 'protocol'
 
 
+
 # Download the best video-only format and the best audio-only format without merging them
 # For this case, an output template should be used since
 # by default, bestvideo and bestaudio will have the same file name.
 $ youtube-dlc -f 'bestvideo,bestaudio' -o '%(title)s.f%(format_id)s.%(ext)s'
 
 
+
 # Download the best video with h264 codec, or the best video if there is no such video
 $ youtube-dlc -f '(bestvideo+bestaudio/best)[vcodec^=avc1] / bestvideo+bestaudio/best'
 
@@ -893,6 +1003,7 @@ # prefering larger framerate for formats with the same resolution
 $ youtube-dlc -S 'res:720,fps'
 
 
+
 # Download the video with smallest resolution no worse than 480p,
 # or the video with the largest resolution available if there is no such video,
 # prefering better codec and then larger total bitrate for the same resolution