If chapters are available for the video, yt-dlp has a command line argument that will split the video into different files, one for each chapter. Quoting a reddit comment:
you need ffmpeg.
how to convert to mp3: wiki
split chapters: --split-chapters
example naming files after chapters: -o "chapter:%(section_number)s %(section_title)s.%(ext)s"
available chapter variables:
section_title (string): Title of the chapter
section_number (numeric): Number of the chapter within the file
section_start (numeric): Starttimeof the chapter in seconds
section_end (numeric): Endtimeof the chapter in seconds
as i recall, i don’t use this myself, it will also keep the original file, which naming depends on the regular -o (use in addition to the -o line with chapter:)
--split-chapters will also work with the timestamps mentioned in the description
If chapters are available for the video, yt-dlp has a command line argument that will split the video into different files, one for each chapter. Quoting a reddit comment:
--split-chapters
will also work with the timestamps mentioned in the description