Most used commands
Command Usage
yt-dlp -F [Youtube URL] Display the available formats (audio and vedio
yt-dlp -f bestvideo+bestaudio --merge- Download the best video file and the best audio file then
output-format mp4 [Youtube URL] merge them in a new mp4 file
yt-dlp -f 137+140 -o "D:\Videos\%(title)s.% Download the 137 format video file (1080 p mp4) and
(ext)s" [Youtube URL] the 140 audio file (m4a) then merge them in one file
saved with the video title & its extension in the folder
D:\Videos\
yt-dlp -f bestaudio --extract-audio -- Download the best audio file then convert
audio-format mp3 [Youtube URL] it into mp3 file
yt-dlp --write-auto-sub --sub-lang en [Youtube URL] Downloads videos with English subtitles
yt-dlp --flat-playlist [playlist] Display the files in the playlist
yt-dlp -F --yes-playlist [playlist] Display the available formats of each videos in the
playlist
yt-dlp -f "137+140/bestvideo+bestaudio" - Tries to download 137+140 (1080p + best audio) first.
[playlist] - If 137 is unavailable, it will fall back to the best
available video + best audio.
-
yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.% Creates a folder named with the playlist title.
(ext)s" [playlist] the name of each downloaded file will be the video
index with the video title.
Use "%(playlist_index)02d to add a leading 0 when
necessary