Skip to content

Instantly share code, notes, and snippets.

@didiraja
Last active June 27, 2025 01:47
Show Gist options
  • Save didiraja/d05b5915f3b8c02cb5dcf63483a3ac8d to your computer and use it in GitHub Desktop.
Save didiraja/d05b5915f3b8c02cb5dcf63483a3ac8d to your computer and use it in GitHub Desktop.
youtube-dl

youtube-dl simple sheet

download best video and best audio quality

yt-dlp -ciw -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 -o "%(title)s.%(ext)s" <link>

download best audio quality - meta on tags and filename

yt-dlp -ciw -f "bestaudio/best" -o "%(artist)s - %(title)s.%(ext)s" -v --extract-audio --audio-format wav --add-metadata --metadata-from-title "%(artist)s - %(title)s" <link>

download best audio quality - meta on tags and filename (plus thumbnail)

yt-dlp -ciw -f "bestaudio/best" -o "%(artist)s - %(title)s.%(ext)s" -v --extract-audio --audio-format wav --embed-thumbnail --add-metadata --metadata-from-title "%(artist)s - %(title)s" <link>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment