Skip to content

Instantly share code, notes, and snippets.

@pramitbiswas
Last active October 5, 2018 08:11
Show Gist options
  • Save pramitbiswas/bc04cf4c1c35aff0a4ae44661fe70e3d to your computer and use it in GitHub Desktop.
Save pramitbiswas/bc04cf4c1c35aff0a4ae44661fe70e3d to your computer and use it in GitHub Desktop.
Download YouTube playlist into a folder (using youtube-dl), merge/concatenate all videos in to one (using ffmpeg), remove all files except final full video
ren *.mp4 ???????.*
powershell -noexit "& "".\rmSpaceScript.ps1"""
(for %i in (*.mp4) do @echo file '%i') > fileList.txt
ffmpeg -f concat -i fileList.txt -c copy Full.mp4
for /f %F in ('dir /b /a-d ^| findstr /vile "op.mp4"') do del "%F"
Dir | Rename-Item -NewName { $_.Name -replace " ","" }
youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re
#check File names order properly
#cd <folder>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment