Split youtube playlist

Download and split a youtube playlist into playable files

Haiyesbye

Sep 11, 2015·1 min read

Requires: NodeJS, ffmpeg [& ffprobe, but it usually comes with ffmpeg]
Tested on //www.youtube.com/watch?v=5nhp6ULk7mE, on OSX, with node

youtube-dl -x $YOUTUBE_LINK # Get the audio file.
wget //gist.githubusercontent.com/wildeyes/4e3b70a1532aa90a570a/raw/9ab624b6f219c11cdef3752fb0a3afb704daeb92/split.vid.js -O split.vid.js # Get the script that does the splitting, using ffmpeg and ffprobe.
node split.vid.js $YOUTUBE_VID_NAME $PLAYLIST_FILE # see //www.regexr.com/3bp42 for example of $PLAYLIST_FILE
# e.g. split.vid.js Swing\ and\ Electro\ Swing\ Collection\ \[Revised_Extended\]-5nhp6ULk7mE.m4a playlist_description.txt

note: wget is a tool to download files. If you dont have it, you can install it for every platform or simply download the file yourself with a browser.

Any questions? ask away.
No questions? Enjoy.

Video liên quan

Chủ Đề