Skip to content

Instantly share code, notes, and snippets.

@OlafSzmidt
Created July 4, 2020 16:51
Show Gist options
  • Save OlafSzmidt/26220ad70627d2567a4b748591535477 to your computer and use it in GitHub Desktop.
Save OlafSzmidt/26220ad70627d2567a4b748591535477 to your computer and use it in GitHub Desktop.
@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
exit /B 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment