Skip to content

Instantly share code, notes, and snippets.

@viper25
Created February 23, 2021 04:52
Show Gist options
  • Save viper25/6a725b3506a57a9d691775d2277ddc17 to your computer and use it in GitHub Desktop.
Save viper25/6a725b3506a57a9d691775d2277ddc17 to your computer and use it in GitHub Desktop.
Download MP3 from YouTube
@ECHO OFF
@ REM Download Audio from YouTube and encode to MP3
TITLE Download YouTube MP3
set /p url= "Enter Youtube URL:"
echo %url%
youtube-dl %url% --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output %%(title)s.^%%(ext)s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment