TRACK2TRACK(1)
πΈ TRACK2TRACK β the audio track glow-up tool πΈ
okay bestie, so this is track2track(1), a manual page from the Audio File Converter lineup. sit down, grab a strawberry drink π, and let me tell you about the little command that takes your audio tracks and β¨ transforms β¨ them.
π NAME π
track2track β convert audio tracks. that's it. that's the whole vibe. it converts audio tracks. slay.
π SYNOPSIS π
track2track [OPTIONS] <track 1> [track 2] ...
π¦ DESCRIPTION π¦
track2track converts audio tracks from one format to another. like, you have a track, it's in this format, and you want it in that format instead. that's the entire plot of the movie. no notes. π
β¨ OPTIONS β¨
the general-purpose options, the ones that aren't about the conversion itself but about how you're talking to the program:
-h,--helpβ shows you a list of options and then exits. your little guide bestie π«Ά-I,--interactiveβ lets you edit metadata and encoding options in interactive mode before the tracks get converted. very hands-on, very main character.-V,--verbose=VERBOSITYβ how much output you wanna see. your choices are'normal','quiet'and'debug'. pick your energy level π«
π₯ CONVERSION OPTIONS π₯
this is where the actual converting happens. the good stuff.
-t,--type=TYPEβ the audio format you're converting the given tracks to. wanna see what's available? try-t help.-q,--quality=QUALITYβ the desired quality of the converted tracks. wanna know what quality modes a given format supports? try-q help-d,--dir=DIRECTORYβ where the converted tracks should land. if you don't give one, the current working directory is used. if the target directory doesn't exist, it gets created automatically β it's very self-sufficient like that. not compatible with-o, so pick a lane bestie.--format=STRINGβ the format string used for new filenames. template fields get replaced with metadata values when new tracks are created, and all other text is left exactly as-is. if you omit this option, a default format string is used.-o,--output=FILENAMEβ an explicit output filename for the converted track. with this one, only a single input track is allowed, periodt. it overrides the-doption and the default output filename.-j,--joint=PROCESSESβ the maximum number of tracks to convert at one time. if you've got multiple CPUs or CPU cores, lettingtrack2track(1)use all of them simultaneously can greatly increase encoding speed. multitasking icon behaviour π
π FORMAT OPTIONS π
these ones change what the output files actually look like on the inside:
--sample-rate=RATEβ convert all output files to the given sample rate, in Hz--channels=CHANNELSβ convert all output files to the given number of channels--bits-per-sample=BITSβ convert all output files to the given number of bits-per-sample
πΏ CD LOOKUP OPTIONS πΏ
for when you want the program to go out into the world and fetch metadata for you:
-M,--metadata-lookupβ perform metadata lookup for converted tracks--musicbrainz-server=HOSTNAMEβ the MusicBrainz server name to query for metadata--musicbrainz-port=PORTβ the MusicBrainz port to query for metadata--no-musicbrainzβ don't query MusicBrainz for metadata--freedb-server=HOSTNAMEβ the FreeDB server name to query for metadata--freedb-port=PORTβ the FreeDB port to query for metadata--no-freedbβ don't query FreeDB for metadata-D,--defaultβ when multiple metadata choices are available, select the first one automatically. heads up: this option has no effect when used with-I
π METADATA OPTIONS π
--replay-gainβ add ReplayGain metadata to newly created tracks--no-replay-gainβ do not add ReplayGain metadata to newly created tracks
π EXAMPLES π
here's the tea, in actual command form:
convert all the WAVE files in the current working directory to MP3s at the default quality:
track2track -t mp3 *.wav
convert all of the FLAC files in sourcedir to Ogg Vorbis files and place them in targetdir:
track2track -t ogg -d targetdir sourcedir/*.flac
convert all of the WAVE files in sourcedir to FLAC files, 2 at a time and at the highest possible compression (quality 8):
track2track -t flac -j 2 -q 8 sourcedir/*.wav
π§ FORMAT STRING FIELDS π§
Template Fields
these are the little magic words you can drop into your --format string and they get swapped for real metadata values. learn them, love them, use them π
%(track_number)2.2dβ the track's number on the CD%(track_total)dβ the total number of tracks on the CD%(album_number)dβ the CD's album number%(album_total)dβ the total number of CDs in the set%(album_track_number)sβ combination of album and track number%(track_name)sβ the track's name%(album_name)sβ the album's name%(artist_name)sβ the track's artist name%(performer_name)sβ the track's performer name%(composer_name)sβ the track's composer name%(conductor_name)sβ the track's conductor name%(media)sβ the track's source media%(ISRC)sβ the track's ISRC%(catalog)sβ the track's catalog number%(copyright)sβ the track's copyright information%(publisher)sβ the track's publisher%(year)sβ the track's publication year%(date)sβ the track's original recording date%(suffix)sβ the track's suffix%(basename)sβ the track's original name, without suffix
π SEE ALSO π
the whole friend group, go say hi:
audiotools-config(1), audiotools.cfg(5), cdda2track(1), cddainfo(1), cddaplay(1), coverdump(1), covertag(1), coverview(1), dvda2track(1), dvdainfo(1), track2cdda(1), trackcat(1), trackcmp(1), trackinfo(1), tracklength(1), tracklint(1), trackplay(1), trackrename(1), tracksplit(1), tracktag(1), trackverify(1)
π AUTHOR π
Brian Langenberger β thank you for your service, legend π«‘
okay that's the whole page, you're officially a track2track girlie now. go convert something and make it iconic. no cap. π
β¨
this masterpiece was brought to you by the Audio File Converter era, version dated 2025-03-10, filed under TRACK2TRACK(1). byeee π¦π
π¦ where this page comes from
- ubuntu questing: audiotools 3.1.1-1.1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms