Skip to content

Instantly share code, notes, and snippets.

@taikedz
Last active August 25, 2026 11:52
Show Gist options
  • Select an option

  • Save taikedz/65a109b6cf6025a3a87abfb8bacd6cd8 to your computer and use it in GitHub Desktop.

Select an option

Save taikedz/65a109b6cf6025a3a87abfb8bacd6cd8 to your computer and use it in GitHub Desktop.
YT DLP for Windows
mkdir music-stash
cd music-stash
# Assumes you have python installed here
& 'C:\Program Files\Python314\python.exe' -m venv ytdl.venv
.\ytdl.venv\Scripts\activate.bat
& .\ytdl.venv\Scripts\python.exe -m pip install --upgrade pip
& .\ytdl.venv\Scripts\pip.exe install yt-dlp
# This requires admin access:
# assumes you use chocolatey ; you can also install it manually
# from the official location: https://ffmpeg.org/download.html
choco install -y ffmpeg
# Get a useful player
choco install -y vlc
# ----------------------
# Actual downloader script
# Actual install location of ffmpeg.exe to be adjusted
.\ytdl.venv\Scripts\yt-dlp.exe -t mp3 --ffmpeg-location 'C:\ProgramData\chocolatey\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe' $args[0]
# Call it like:
#.\yt-dlp.ps1 "https://www.youtube.com/watch?v=Aq5WXmQQooo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment