Home

Awesome

album-splitter

Use album-splitter to automatically split any audio file (youtube videos, albums, podcasts, audiobooks, tapes, vinyls) into separate tracks starting from timestamps. album-splitter will also take care of tagging each part with the correct metadata. If your file is on YouTube, you can download it automatically.

<p align="center"> <img src='.github/readme/hero.png' width='500px'> </p>

Common use cases covered:

All you need is:

How to install

First time only:

After the first time:

Quick guide (from a local album)

Quick guide (from a YouTube video)

Output Format

The format of the output tracks is the same as the format of the input (same extension, same codec, same bitrate, ...), it simply does a copy of the codec. If you want to convert the output tracks to a different format, you can do this using additional tools.

For example to convert from .wav to .mp3 you can use FFmpeg. Here is how you can do it on Linux/macOS. This or this might help for Windows instead. You can adopt such snippets to do other processing, such as changing the bitrate.

Examples

Downloading and splitting an album from YouTube

00:06 - When I Was Young
...
14:48 - Pretty Little Girl
    When I Was Young.mp3
    ...
    Pretty Little Girl.mp3

These songs are already mp3-tagged with their track name and track number, but not their author or their album, since we have not specified it.

Splitting and tagging with Author and Album a local file

Supported formats for the track list (tracks.txt)

These are just some examples, find more in tracks.txt.example.

To just see which data would be extracted from the tracklist use the option --dry-run.

Available Options

To get the full help and all the available options run python -m album_splitter --help

Need help?

If you need any help just create an Issue or send me an email at the address you can find on my profile.

Updating

To update to use the latest version of album-splitter you can use python3 -m pip install --upgrade album-splitter

Want to help?

If you want to improve the code and submit a pull request, please feel free to do so.

License

GPL v3

Star History

Star History Chart