Skip to main content

How to download from YouTube

I would like to download a YouTube video or just the audio track.

First, install yt-dlp.

Download a Youtube video #

yt-dlp -S vcodec:h264,res,acodec:m4a URL

References:

Download just the audio track of a Youtube video #

yt-dlp -S ext:m4a -x --add-metadata --embed-thumbnail URL
  • Downloads a m4a file.
  • Embeds video preview image as cover image.
  • Embeds metadata such as date and URL (in “comment” tag).