yt-dlp Command Examples

A youtube-dl fork with additional features and fixes. Download videos from YouTube and other websites. See also: yt-dlp, ytfzf. More information: https://github.com/yt-dlp/yt-dlp.

yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"

yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"

yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"

yt-dlp --extract-audio "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"

yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"

yt-dlp --playlist-items 2,4:6,-1 "{{https://youtube.com/playlist?list=PLbzoR-pLrL6pTJfLQ3UwtB-3V4fimdqnA}}"

yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"

yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"