Skip to content

youtube-dl, yt-dlp

youtube-dl is a nice little tool to download videos and audio from youtube and millions of other sites.

download playlist with correct numbering

like 01, 02, 03 and so on.

youtube-dl -o "%(autonumber)s-%(title)s.%(ext)s" <URL-HERE>

download mp4 format

youtube-dl -f mp4

download best video format with mp4 extension

yt-dlp -f "best[ext=mp4]" LpDqomAHSlQ

download embedded videos

e.G. vimeo videos embedded as an iframe, send a referer with the request:

youtube-dl "https://player.vimeo.com/video/1234" --referer "https://example.com/where-you-found-that-page/"

extract audio

... and remove ads

yt-dlp --sponsorblock-remove all -x --audio-format mp3 https://example.com/