All Projects → crisbal → Album Splitter

crisbal / Album Splitter

Split a single-file mp3 album into its tracks. Supports downloading from YouTube.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Album Splitter

Youtube Music
YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
Stars: ✭ 376 (+135%)
Mutual labels:  music, youtube-dl, youtube
Ytmdl
A simple app to get songs from YouTube in mp3 format with artist name, album name etc from sources like iTunes, Spotify, LastFM, Deezer, Gaana etc.
Stars: ✭ 2,070 (+1193.75%)
Mutual labels:  music, youtube-dl, youtube
Smd
Spotify Music Downloader
Stars: ✭ 822 (+413.75%)
Mutual labels:  music, youtube-dl, youtube
Youtube Mp3 Downloader
Extract music from YouTube videos
Stars: ✭ 187 (+16.88%)
Mutual labels:  music, youtube-dl, youtube
Youtub.ly Android
An android app to download 📹 videos and songs from youtube to phone internal storage
Stars: ✭ 17 (-89.37%)
Mutual labels:  music, youtube-dl, youtube
Podify
Create podcasts from anything youtube-dl can handle
Stars: ✭ 111 (-30.62%)
Mutual labels:  youtube-dl, youtube
Youtube Local
browser-based client for watching Youtube anonymously and with greater page performance
Stars: ✭ 112 (-30%)
Mutual labels:  youtube-dl, youtube
Mmusiccast
Chromecast emulator that works on any platform. Stream videos from youtube to raspberry pi or any computer with the chromecast protocol.
Stars: ✭ 113 (-29.37%)
Mutual labels:  music, youtube
Alltomp3
Node module to download and convert in MP3 with tags an online video
Stars: ✭ 120 (-25%)
Mutual labels:  youtube, album
Av Converter
[av-converter.com] Audio and Video Converter, and YouTube downloader. Convert to MP3, MP4, AAC, FLAC, AC3, WAV, etc.
Stars: ✭ 97 (-39.37%)
Mutual labels:  music, youtube
Sonos Web
Web interface for Sonos audio systems
Stars: ✭ 114 (-28.75%)
Mutual labels:  music, youtube
Alltube
Web GUI for youtube-dl
Stars: ✭ 1,925 (+1103.13%)
Mutual labels:  youtube-dl, youtube
Discord.js Musicbot Addon
This DOES NOT WORK any more. This repo only serves as an archive for is anyone wants to pickup my work. You may still join the discord however.
Stars: ✭ 109 (-31.87%)
Mutual labels:  music, youtube
Webnowplaying
A NowPlaying like plugin for rainmeter built for getting music info from websites
Stars: ✭ 106 (-33.75%)
Mutual labels:  music, youtube
Web
Angular6 music player to search and play YouTube, SoundCloud and Mixcloud tracks
Stars: ✭ 156 (-2.5%)
Mutual labels:  music, youtube
Getsong
Download any song mp3 with no dependencies except ffmpeg
Stars: ✭ 102 (-36.25%)
Mutual labels:  music, youtube
Shuffle
Shuffle every song in existence from YouTube
Stars: ✭ 131 (-18.12%)
Mutual labels:  music, youtube
Deezer Downloader
Download music from Deezer with a nice front end
Stars: ✭ 127 (-20.62%)
Mutual labels:  music, youtube-dl
Yt Audio
A simple, configurable youtube-dl wrapper to download and manage youtube audio
Stars: ✭ 132 (-17.5%)
Mutual labels:  music, youtube-dl
Downline
Free cross-platform desktop app to download videos and music from YouTube and many other sites
Stars: ✭ 146 (-8.75%)
Mutual labels:  youtube-dl, youtube

album-splitter

Do you have a music album as a single file (locally or on YouTube), with all its tracks joined together? Do you want to split that album in its single tracks? Do you want to tag these tracks so your music player can get all the required info from them?

This script is for you!

How to install

  1. Install ffmpeg
  2. Install Python 3
  3. Install pip3
  4. Install virtualenv (optional)
  5. Fork/Clone/Download this repository
  6. virtualenv -p /usr/bin/python3 venv (optional)
    • source venv/bin/activate
  7. Install the required packages via pip
    • pip install -r requirements/prod.txt

Quick guide (from a local album)

  1. Create a copy of the tracks.txt.example, rename it as tracks.txt and delete the lines starting with #.
  2. Open tracks.txt
  3. Add tracks info in this format:
    • <start-time> - <title>
    • A track on each line
    • See Examples section, many other formats supported
  4. Run the script
    • Basic usage: python split.py -mp3 <path/to/your/album.mp3>
    • More in the Examples section
  5. Wait for the splitting process to complete
  6. You will find your tracks in the splits folder

Quick guide (from a YouTube video)

  1. Copy the YouTube URL of the album you want to download and split
  2. Find in the YouTube comments the tracklist with start-time and title
  3. Create a copy of the tracks.txt.example, rename it as tracks.txt and delete the lines starting with #.
  4. Open tracks.txt
  5. Copy the tracklist in the file, adjusting for the supported formats
    • <start-time> - <title>
    • A track on each line
  6. Run the script
    • Basic usage: python split.py -yt <youtube_url>
    • More in the Examples section
  7. Wait for the Download and for the conversion
  8. Wait for the splitting process to complete
  9. You will find your tracks in the splits folder

Examples

Downloading and splitting an album from YouTube

  1. This is the album I want to download and split: https://www.youtube.com/watch?v=p_uqD4ng9hw
  2. I find the tracklist in the comments and I copy that in tracks.txt, eventually adjusting it to a supported format for the tracklist
00:06 - When I Was Young
...
14:48 - Pretty Little Girl
<start-time> - <title> <--- remove this, just as a reminder of the format
  1. I execute python split.py -yt "https://www.youtube.com/watch?v=p_uqD4ng9hw" and wait
  2. Once the process is complete I open splits and I find all my songs:
    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

  1. I somehow got the file DogsEatingDogsAlbum.mp3 that I want to split
  2. I set the tracklist in tracks.txt (same tracks as before)
  3. I execute python split.py -mp3 DogsEatingDogsAlbum.mp3 --album "Dogs Eating Gods" --artist "blink-182" --folder "2012 - Dogs Eating Dogs"
  4. The program will execute, it will split the album, and mp3-tag each track with the author and the album name I passed as a parameter (as well as track number and name). It will also put the files in the folder passed as an argument (instead of putting them in the default splits folder)

Downloading and splitting an album from YouTube using a tracklist pulled from Wikipedia or Amazon

  1. This is the album I want to download and split: https://www.youtube.com/watch?v=p_uqD4ng9hw
  2. This is the Wikipedia page that has the album tracklist: https://en.wikipedia.org/wiki/Dogs\_Eating\_Dogs
  3. I execute python split.py -yt "https://www.youtube.com/watch?v=p_uqD4ng9hw" --metadata "https://en.wikipedia.org/wiki/Dogs_Eating_Dogs" and wait
  4. Once the process is complete I open splits and I find all my songs:
    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 (specify them using the --author and --album flags).

The same thing works if you provide a link to the Amazon page for that album.

Show an help page for the script

python split.py -h

Supported formats for the track list (tracks.txt)

These are just some examples.

  • [hh:]mm:ss - Title
  • Title - [hh:]mm:ss
  • Title [hh:]mm:ss
  • TrackNumber. Title [hh:]mm:ss
  • TrackNumber - Title [hh:]mm:ss

To see which data would be extracted from the tracklist use the option --dry-run. It also works if you pass any external --metadata url.

Example:

python split.py
    --dry-run
    -yt https://www.youtube.com/watch?v=T44T8JdMOak
    --metadata https://www.amazon.com/Enema-State-Blink-182/dp/B00000IPAX

will output

**** DRY RUN ****
Matched with a metadata provider...
Parsing tracks.txt
Dumpweed [Explicit] *** 00:00:00
...
Anthem *** 00:31:40

TODO

Check the Issues page

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.

Want to help?

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

Licence

GPL v3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].