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 | |
if %1.==. goto usage | |
@echo Downloading playlist, then converting all files from here to ../. | |
youtube-dl -i -f bestvideo+bestaudio --merge-output-format mp4 %1 | |
FOR /F "tokens=*" %G IN ('dir /b *.mp4') DO ffmpeg -i "%G" -b:v 1500k -vf scale=720:408 "..\%~nG.mp4" | |
:usage | |
@echo Usage: %0 playlistId |