Last active
August 25, 2026 11:52
-
-
Save taikedz/65a109b6cf6025a3a87abfb8bacd6cd8 to your computer and use it in GitHub Desktop.
YT DLP for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| # ---------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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