yt-dlp Video Download

yt-dlp Video Download #

This feature requires the yt-dlp command-line tool installed on your system.

Use the /ytdlp command to download videos and audio from supported video websites, including YouTube, Bilibili, Twitter, and 1000+ other sites.

/ytdlp <url1> [url2] [flags...]

Examples:

# Basic download
/ytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ

# Download multiple videos
/ytdlp https://www.youtube.com/watch?v=video1 https://www.youtube.com/watch?v=video2

# Use custom parameters
/ytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ -f best
/ytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ --extract-audio --audio-format mp3

Common parameters:

  • -f <format>: Specify download format (e.g., best, worst, bestvideo+bestaudio)
  • --extract-audio: Extract audio
  • --audio-format <format>: Audio format (e.g., mp3, m4a, wav)
  • --write-sub: Download subtitles
  • --write-thumbnail: Download thumbnail

For more parameters, see yt-dlp documentation.