Skip to content

Instantly share code, notes, and snippets.

@Lauloque
Created January 26, 2023 16:54
Show Gist options
  • Select an option

  • Save Lauloque/bdb769ca2a1f0c36d228aeeca545bd4c to your computer and use it in GitHub Desktop.

Select an option

Save Lauloque/bdb769ca2a1f0c36d228aeeca545bd4c to your computer and use it in GitHub Desktop.
example of how to download an album that has been compiled into a single Youtube video wich chapters
yt-dlp -f bestaudio --extract-audio --audio-format mp3 --audio-quality 320k --split-chapters -o "chapter:%userprofile%/Downloads/YT-DLP/Gjallarhorn/Rimfaxe (2006)/1- %(section_title)s.%(ext)s" https://www.youtube.com/watch?v=ncZ-NtsVQNU
The result file names will be "1-01 - Chapter Name.mp3"
I add a "1" in front as the volume number, but you do you.
section_title (string): Title of the chapter
section_number (numeric): Number of the chapter within the file
section_start (numeric): Start time of the chapter in seconds
section_end (numeric): End time of the chapter in seconds
Learn More:
https://github.com/yt-dlp/yt-dlp/#output-template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment