Created
May 27, 2020 21:17
-
-
Save escaleraalcielo/a64c4e8ede66a89cc44fa1c9cb29afd0 to your computer and use it in GitHub Desktop.
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 | |
:Inicio | |
@ECHO OFF | |
SET /P url=Please enter youtube URL: | |
IF "%url%"=="" GOTO Error | |
ECHO Downloading %uname% | |
GOTO Download | |
:Error | |
ECHO You did not enter video URL! Bye bye!! | |
pause | |
:End | |
pause | |
:Download | |
@echo on | |
youtube-dl -i --download-archive "archive.log" --add-metadata --embed-thumbnail -f "(bestvideo[vcodec^=av01][height>=1080][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][fps>30]/bestvideo[vcodec=vp9][height>=1080][fps>30]/bestvideo[vcodec^=av01][height>=1080]/bestvideo[vcodec=vp9.2][height>=1080]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[height>=1080]/bestvideo[vcodec^=av01][height>=720][fps>30]/bestvideo[vcodec=vp9.2][height>=720][fps>30]/bestvideo[vcodec=vp9][height>=720][fps>30]/bestvideo[vcodec^=av01][height>=720]/bestvideo[vcodec=vp9.2][height>=720]/bestvideo[vcodec=vp9][height>=720]/bestvideo[height>=720]/bestvideo)+(bestaudio[acodec=opus]/bestaudio)/best" --merge-output-format mkv "%url%" | |
IF ERRORLEVEL 0 ( | |
EXIT | |
) | |
GOTO End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment