Skip to content

Instantly share code, notes, and snippets.

@nicolascrab
Last active September 19, 2025 20:20
Show Gist options
  • Select an option

  • Save nicolascrab/1fadf680a5d4bb9a8a21474f1ecf5983 to your computer and use it in GitHub Desktop.

Select an option

Save nicolascrab/1fadf680a5d4bb9a8a21474f1ecf5983 to your computer and use it in GitHub Desktop.
yt-dlp commands

Downloading a yt playlist in mp3 format

yt-dlp -o "Music/%(playlist)s/mp3/%(title)s.%(ext)s" -f bestaudio -x --audio-format mp3 --audio-quality 0 --ignore-errors 'https://www.youtube.com/playlist?list=PLMtjL_dNNnOZiK4sSQ8dXR8PoMH_8fuP9' 2> audio_error_log.txt

Downloading a yt playlist with 720p video and best available audio. ignoring errors and logging them into a txt.

yt-dlp -o "Music/%(playlist)s/mp4/%(title)s.%(ext)s" -f "bestvideo[height<=720]+bestaudio/best" --merge-output-format mp4 --ignore-errors 'https://www.youtube.com/playlist?list=PLMtjL_dNNnOZiK4sSQ8dXR8PoMH_8fuP9' 2> error_log.txt

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