youtube-dl

youtube-dl

TLDR

Download a video or playlist

>_ youtube-dl [https://www.youtube.com/watch?v=oHg5SJYRHA0]
copy

List all formats that a video or playlist is available in

>_ youtube-dl --list-formats [https://www.youtube.com/watch?v=Mwa0_nE9H7A]
copy

Download a video or playlist at a specific quality

>_ youtube-dl --format ["best[height<=480]"] [https://www.youtube.com/watch?v=oHg5SJYRHA0]
copy

Download the audio from a video and convert it to an MP3

>_ youtube-dl -x --audio-format [mp3] [url]
copy

Download the best quality audio and video and merge them

>_ youtube-dl -f bestvideo+bestaudio [url]
copy

Download video(s) as MP4 files with custom filenames

>_ youtube-dl --format [mp4] -o ["%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s"] [url]
copy

List available subtitles

>_ youtube-dl --list-subs [https://www.youtube.com/watch?v=Mwa0_nE9H7A]
copy

Download a particular language's subtitles along with the video

>_ youtube-dl --sub-lang [en] --write-sub [https://www.youtube.com/watch?v=Mwa0_nE9H7A]
copy

Copied to clipboard
free 100$ digital ocean credit