trackrename(1) renames files based on metadata

SYNOPSIS

trackrename [OPTIONS] <track 1> [track 2] ...

DESCRIPTION

trackrename takes a list of audio files and renames them based on external or internal metadata.

OPTIONS

-h, --help
show a list of options and exit
-I, --interactive
edit format string in interactive mode prior to renaming tracks
--format=STRING
The format string to use for new filenames. Template fields are replaced with metadata values when new tracks are created. All other text is left as-is. If this option is omitted, a default format string is used.
-V, --verbose=VERBOSITY
The level of output to display. Choose between 'normal', 'quiet' and 'debug'.

EXAMPLES

Rename all of the FLAC files in the current directory based on their FLAC tag metadata:

track2rename *.flac

Rename file.flac with a custom template:

trackrename "--format=%(track_number)2.2d - %(album_name)s - %(track_name)s.%(suffix)s" file.flac

FORMAT STRING FIELDS


Template Fields
KeyValue


%(track_number)2.2dthe track's number on the CD
%(track_total)dthe total number of tracks on the CD
%(album_number)dthe CD's album number
%(album_total)dthe total number of CDs in the set
%(album_track_number)scombination of album and track number
%(track_name)sthe track's name
%(album_name)sthe album's name
%(artist_name)sthe track's artist name
%(performer_name)sthe track's performer name
%(composer_name)sthe track's composer name
%(conductor_name)sthe track's conductor name
%(media)sthe track's source media
%(ISRC)sthe track's ISRC
%(catalog)sthe track's catalog number
%(copyright)sthe track's copyright information
%(publisher)sthe track's publisher
%(year)sthe track's publication year
%(date)sthe track's original recording date
%(suffix)sthe track's suffix
%(basename)sthe track's original name, without suffix

AUTHOR

Brian Langenberger