Open MartinBarker opened 2 years ago
yt-dl isn't meant to be a general-purpose AV processor. That's what ffmpeg (eg) is for.
You probably need something like this that turned up high in my search for "split audio by chapters -audiobook".
Having said that, there is yt-dlp --split-chapters
which shows that it is possible (see class FFmpegSplitChaptersPP
in yt_dlp/postprocessor/ffmpeg.py
), that it might be back-ported, and that some other maintainer didn't agree with me regarding the scope of the program.
I can see why this could be considered out of scope. Here are a few reasons why this was added to yt-dlp:
--recode-video
/--extract-audio
These are all good reasons. What is out of scope one day might be considered in scope the next given compelling user demand and a working PR or back-portable code.
But as the user demand can be satisfied by using yt-dlp I won't personally progress a change for this.
Checklist
Description
Hello, I was wondering if there was support for splitting a youtube video's audio into separate audio files based on the video's chapters.
For example, this video:
https://www.youtube.com/watch?v=hrxTh9m-xQw
Is 31 minutes long, and you can see the video's chapters when you scroll your mouse through the video, also included in the video description are timestamps
What I'm trying to accomplish is instead of downloading the entire 31 minute video as a single audio file:
The 31 minute video gets split up into the three chapters named/tagged accordingly:
I was wondering if this feature was possible currently using the youtube-dl pip package, if not then Its something I can work on adding and submitting in a PR