youtube-dl

  • Download video or playlist: youtube-dl ...
  • -F: list all formats.
    • -f 271 (where 271 is a format code in -F’s output) will download the video in a particular format.
    • -f best is probably the default.