youtube-dl

Download videos from YouTube and other websites. See also: yt-dlp, ytfzf, you-get. More information: http://rg3.github.io/youtube-dl/.

youtube-dl 'https://www.youtube.com/watch?v=oHg5SJYRHA0'

youtube-dl --list-formats 'https://www.youtube.com/watch?v=Mwa0_nE9H7A'

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

youtube-dl -x --audio-format mp3 'url'

youtube-dl -f bestvideo+bestaudio 'url'

youtube-dl --format mp4 -o "%(playlist_index)s-%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s" 'url'

youtube-dl --sub-lang en --write-sub 'https://www.youtube.com/watch?v=Mwa0_nE9H7A'

youtube-dl -f "bestaudio" --continue --no-overwrites --ignore-errors --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" 'url_to_playlist'