Skip to content

Instantly share code, notes, and snippets.

@Mashpoe
Created July 31, 2022 01:56
Show Gist options
  • Save Mashpoe/406976ac1787006aec62d67adb4ff3b7 to your computer and use it in GitHub Desktop.
Save Mashpoe/406976ac1787006aec62d67adb4ff3b7 to your computer and use it in GitHub Desktop.
YouTube video downloader scripts for Windows (place these in a folder with youtube-dl.exe)
@echo off
set /p Input=Enter YouTube video URL:
@echo on
youtube-dl -f bestaudio -o "output-audio-only/%%(title)s-%%(id)s.%%(ext)s" %Input%
@echo off
set /p DUMMY=Press ENTER to continue...
@echo off
set /p Input=Enter YouTube video URL:
@echo on
youtube-dl -f bestvideo -o "output-video-only/%%(title)s-%%(id)s.%%(ext)s" %Input%
@echo off
set /p DUMMY=Press ENTER to continue...
@echo off
set /p Input=Enter YouTube video URL:
@echo on
youtube-dl -f best -o "output/%%(title)s-%%(id)s.%%(ext)s" %Input%
@echo off
set /p DUMMY=Press ENTER to continue...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment