To download a Spotify album: https://spotdl.com/
To download from YouTube:
$ youtube-dl -x --audio-format mp3 <url>
$ youtube-dl -o "%(playlist_index)d %(title)s.%(ext)s" -x --audio-format mp3 <url>
To transcode files to MP3:
$ ffmpeg -i in.m4a out.mp3
$ for file in *.m4a; do ffmpeg -i $file ${file/m4a/mp3}; done
To split a concatenated audio file into individual tracks:
$ mp3splt -p nt=<num tracks> -s in.mp3
If the automatic silence detection isn't good enough, splitpoints can
be provided and then automatically adjusted (timestamp H:MM:SS
should be expressed as MM.SS):
$ mp3splt -a -p gap=3 in.mp3 0.00 ... EOF
To crop an image:
$ display <image>
Tags:
- Basic track information
song: name of the tracksong_sort: alternate track name that's more friendly for sorting (usually same assong)
album: name of the albumalbum_sort: alternate album name that's more friendly for sorting (usually same asalbum)
album_artist: the person or group responsible for the album, optimized for grouping albumsalbum_artist_sort: alternate album artist name that's more friendly for sorting (usually same asalbum_artist)
artist: the artist for the specific track, usually same as album artistartist_sort: alternate track artist name that's more friendly for sorting (usually same asartist)
composer: the composer of the specific track, or omittedcomposer_sort: alternate composer name that's more friendly for sorting (usually same ascomposer)
track: sequential number of the track (should be positive integer or omitted)disc: sequential number of the disk (should be positive integer, use 1 if no discs)year: four-digit year of publication of the music
- µTunes data
id: eight-digit hex string used as unique identifier for song, assigned by µTunes automatically and used as primary keyfilename: path on disk (used for import, then managed automatically)artwork: path of the album artwork (not actually used by µTunes, but I think of it that way; relative toartworkdirectory)last_play: timestamp of last time song was played, in ISO8601 format (e.g.2019-05-15T19:40:29)play_count: number of times the song has been played, non-negative integer
- Source information
acquired_legally:yesorno, was part of the album purchased or downloaded for free from an official distributoracquired_illegally:yesorno, was part of the album obtained without the permission of an official distributor (if the album is pirated from a different source after being purchased, this doesn't count)as_bundle:yesorno, was obtained as part of a larger non-music purchaseas_gift:yesorno, was given as a gift (should still include pricing information; gift cards count)group: used to separate a single album into multiple groups whose source information should be considered as separate, or to join parts of different albums together (either omitted to assume default album grouping, or a random unique eight-digit hex string)paid: amount of money that was paid for the song in USD, inXX.YYformat (0.00if pirated)min_price: minimum purchase requirement (for Bandcamp etc.), if different from price
date: when the album was added to my library (or downloaded, if there was a delay), inYYYY-MM-DDformatsource: URL of website that the download or purchase came fromtracklist: URL of website with canonical tracklist, if I had to rename all the tracksrefined_source: if I purchased the album and then needed to pirate a better-tagged version of it from somewhere else, a URL for the secondary source
Currently nullable fields:
composercomposer_sortgroupimport_uuidlast_playmin_pricepaidplay_countrefined_sourcetracktracklist