Skip to content

Instantly share code, notes, and snippets.

@bagusnl
Created March 11, 2021 05:26
Show Gist options
  • Save bagusnl/f361b582085fd9f23cd376b9846d3d50 to your computer and use it in GitHub Desktop.
Save bagusnl/f361b582085fd9f23cd376b9846d3d50 to your computer and use it in GitHub Desktop.
youtube-dl Batch Wrapper Auto Download Best Quality + Subs (if available) and Remux
@echo off
title youtube-dl Autodownload Script
echo Automatically downloading best video and audio quality of given YouTube url
echo Also embed subtitles/closed captions if available
echo Require youtube-dl and ffmpeg to be installed and on PATH (Chocolatey install recommended)
echo.
set /p url="Enter Youtube URL: \\" \\""
youtube-dl -f bestvideo+bestaudio --write-sub --merge-output-format mkv -v --console-title --embed-subs %url%
echo.
title Download Complete
echo Download completed
echo You may now exit this console
pause /s
@bagusnl
Copy link
Author

bagusnl commented Mar 11, 2021

Guide to install chocolatey here
Command to install youtube-dl and ffmpeg:
choco install ffmpeg youtube-dl

Thanks to Rin3105 for the help

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