Created
March 11, 2021 05:26
-
-
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
This file contains 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
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guide to install chocolatey here
Command to install youtube-dl and ffmpeg:
choco install ffmpeg youtube-dl
Thanks to Rin3105 for the help