tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

Ability to split (audio) mixes into their constituent tracks separately

Open csjoh opened this issue 3 years ago • 1 comments

When adding an audio source, it would be great to have an extra option become visible when selecting "Audio only" that says "Split mix into separate tracks" to do just that.

This would enable the user to download, say, an hour-long mix and have it automatically split into separate files. This would of course require that the mix had chapter markers. yt-dlp already has the functionality built-in to do this, via the --split-chapters command line switch:

--split-chapters            Split video into multiple files based on internal chapters. The "chapter:" prefix
                            can be used with "--paths" and "--output" to set the output filename for the
                            split files. See "OUTPUT TEMPLATE" for details

As the snippet from the yt-dlp online help (yt-dlp --help) states, there are already provisions for naming the split files.

csjoh avatar Mar 01 '22 17:03 csjoh

Thanks for the suggestion. There doesn't appear to be splitting chapter support over the embedded API yet:

https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L191

Also currently TubeSync links one media item to one file, supporting multiple files per media item would likely require quite a bit of internal reshuffling. Possible, but quite a bit of work.

I'll pop it onto the future wish list for now and will re-evaluate it if and when the yt-dlp API supports splitting by chapters.

meeb avatar Mar 02 '22 04:03 meeb