Downloads and splits audio tracks from a YouTube video according to the chapters/tracks. Useful for compilations or full album uploads.
This fork uses yt-dlp instead of youtube-dl and also gives mp3 with better quality (256kbps; VBR).
yt-dlp
and ffmpeg
installed and in your PATH
.
- Download the binary for your system from https://github.com/nicolaasjan/yt-splitter/releases
- Rename it to
yt-splitter
- Place it in a directory which is in your
PATH
- Make it executable (
chmod +x yt-splitter
on Linux)
cd
into the directory you want to save the tracks in.yt-splitter
will automatically create a subdirectory with the title of the video and save the tracks in it.- Execute
yt-splitter VIDEOID
(VIDEOID
can be a YouTube video id or a URL to a YouTube video)