Split audio files with CUE

Here are some tips to split a long audio file, usually ripped from CD using some tools into a big FLAC/APE/OGG/MP3 file.

For mp3 file, just use a tool mp3splt.

For other formats, we can get the WAV file by playing back with mplayer.

Usage:

$ mp3splt -c audio.cue audio.mp3 $ mp3splt -c Grammy.Nominees.2009.cue Grammy.Nominees.2009.mp3 mp3splt 2.4.2 (13/05/12) - using libmp3splt 0.7.2 Matteo Trotta <mtrotta AT users.sourceforge.net> Alexandru Munteanu <io_fx AT yahoo.fr> THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! Processing file 'Grammy.Nominees.2009.mp3' ... reading information from CUE file Grammy.Nominees.2009.cue ... Artist: Various Artists Album: 2009 Grammy Nominees Tracks: 20 cue file processed info: file matches the plugin 'mp3 (libmad)' info: MPEG 2 Layer 3 - 22050 Hz - Joint Stereo - 48 Kb/s - Total time: 79m.21s info: starting normal split File "Coldplay - 01 - Viva La Vida.mp3" created File "Estelle Featuring Kanye West - 02 - American Boy.mp3" created File "Sara Bareilles - 03 - Lover Song.mp3" created File "Ne-Yo - 04 - Closer.mp3" created File "Lil Wayne Featuring T-Pain - 05 - Got Money.mp3" created File "Robert Plant&Alison Krauss - 06 - Please Read The Letter.mp3" created File "Radiohead - 07 - House Of Cards.mp3" created File "Lady Antebellum - 08 - Love Don'T Live Here.mp3" created File "Jonas Brother - 09 - Burnin' Up.mp3" created File "Jazmine Sullivan - 10 - Need U Bad.mp3" created File "Duffy - 11 - Mercy.mp3" created File "M.I.A - 12 - Paper Planes.mp3" created File "Adele - 13 - Chasing Pavements.mp3" created File "Katy Perry - 14 - I Kissed A Girl.mp3" created File "Leona Lewis - 15 - Bleeding Love.mp3" created File "P!Nk - 16 - So What.mp3" created File "Gnarls Barkley - 17 - Going On.mp3" created File "One Republic - 18 - Apologize.mp3" created File "Maroon 5 - 19 - Won'T Go Home Without You.mp3" created File "Eagles - 20 - Waiting In The Weeds.mp3" created file split +-----------------------------------------------------------------------------+ |NOTE: When you use cddb/cue, split files might be not very precise due to:| |1) Who extracts CD tracks might use "Remove silence" option. This means that | | the large mp3 file is shorter than CD Total time. Never use this option. | |2) Who burns CD might add extra pause seconds between tracks. Never do it. | |3) Encoders might add some padding frames so that file is longer than CD. | |4) There are several entries of the same cd on CDDB, find the best for yours.| | Usually you can find the correct splitpoints, so good luck! | +-----------------------------------------------------------------------------+ | TRY TO ADJUST SPLITS POINT WITH -a OPTION. Read man page for more details! | +-----------------------------------------------------------------------------+
$ cd Kaze.Tachinu.久石譲.風立ちぬ.起风了 $ mp3splt TKCA_73920.mp3 -c TKCA_73920.cue $ file PSCD-2458.cue PSCD-2458.cue: Non-ISO extended-ASCII text, with CRLF line terminators $ more PSCD-2458.cue REM GENRE Anime REM DATE 2013-07-17 REM DISCID 13015A02 REM COMMENT "MGRT encoded by Act_yego" CATALOG 2901090024588 PERFORMER "��ʯ�j" TITLE "���L�����̡��ص�CD" FILE "PSCD-2458.flac" WAVE TRACK 01 AUDIO TITLE "��·(�����w��)��MONO��" PERFORMER "��ʯ�j" ISRC JPKT01306930 INDEX 01 00:00:00 TRACK 02 AUDIO TITLE "�˷[��(�ᤰ�ꤢ��)��MONO��" PERFORMER "��ʯ�j" ISRC JPKT01306940 INDEX 00 02:54:52 INDEX 01 02:57:02

Actually, they should be like this after correctly read in UTF-8.

REM GENRE Anime REM DATE 2013-07-17 REM DISCID 13015A02 REM COMMENT "MGRT encoded by Act_yego" CATALOG 2901090024588 PERFORMER "久石譲" TITLE "「風立ちぬ」特典CD" FILE "PSCD-2458.flac" WAVE TRACK 01 AUDIO TITLE "旅路(夢中飛行)《MONO》" PERFORMER "久石譲" ISRC JPKT01306930 INDEX 01 00:00:00 TRACK 02 AUDIO TITLE "菜穂子(めぐりあい)《MONO》" PERFORMER "久石譲" ISRC JPKT01306940 INDEX 00 02:54:52 INDEX 01 02:57:02

To correct the file names:

$ convmv -f gbk -t utf-8 -r --notest .

OK now.

久石譲 - 1 - 旅路(夢中飛行)《MONO》.mp3 久石譲 - 2 - 菜穂子(めぐりあい)《MONO》.mp3

Originally published at aaronshang.tumblr.com.