linux cue splitting |
![]() ![]() |
linux cue splitting |
Jul 19 2004, 02:56
Post
#1
|
|
![]() Group: Members Posts: 23 Joined: 13-July 04 From: Austria (Linz) Member No.: 15390 |
i am trying to split a flac (or wav ...) file according to a .cue sheet under linux.
anyone know a tool that can master this task automatically ? ps // anyone manage to input cue time information (eg 03:38:55) to "wavsplit" (a bash script should be simple to write then ..) pps // what windoze program is there ? can eac do this ? (might have to fiddle around with eac under wine then ..) This post has been edited by filR: Jul 19 2004, 03:39 -------------------- The question is, who cares?
|
|
|
|
Jul 19 2004, 03:23
Post
#2
|
|
![]() Group: Members Posts: 371 Joined: 29-September 01 Member No.: 45 |
Cuetools and Shnsplit IIRC.
Do some googling on cuetools. |
|
|
|
Jul 19 2004, 03:36
Post
#3
|
|
![]() Group: Members Posts: 23 Joined: 13-July 04 From: Austria (Linz) Member No.: 15390 |
QUOTE (YinYang @ Jul 18 2004, 06:23 PM) "cuebreakpoints -f SEXSEXSEX.cue | shnsplit SEXSEXSEX.flac" did the trick. thx! ps // yeah baby yeah @ gentoo -------------------- The question is, who cares?
|
|
|
|
Dec 2 2004, 01:23
Post
#4
|
|
|
Group: Members Posts: 14 Joined: 4-May 03 Member No.: 6376 |
QUOTE (YinYang @ Jul 18 2004, 10:23 PM) Cuetools and Shnsplit IIRC. Do some googling on cuetools. Thank you YinYang and filR, this thread was very helpful. QUOTE ("filR") "cuebreakpoints -f SEXSEXSEX.cue | shnsplit SEXSEXSEX.flac" It seems that now the -f parameter isn't needed for cuebreakpoints |
|
|
|
Dec 3 2004, 11:53
Post
#5
|
|
![]() Musepack Developer Group: Members Posts: 359 Joined: 17-October 01 Member No.: 309 |
Hm, cuebreakpoints seems to be abandoned from cuetools, as 'shnsplit < foo.cue' suppose to do the same (never did for me though).
In most cases plain sed can do the same, e.g > sed '/INDEX 01/!d; s/.*01 //g' foo.cue A very basic setup, I use (stored in ~/.bashrc) CODE splitcue() { [ -z "$1" -o -z "$2" ] && echo "Need at least 2 params" || sed -n '/TRACK 02/,$p' "$1" | sed '/INDEX 01/!d; s/.*01 //g' | shnsplit -o cust ext=mpc \ { mppenc `[ -n "$4" ] && echo "--quality $4"` - %f } \ `[ -n "$3" ] && echo -d "$3"` "$2" } then > splitcue foo.cue bar.flac [output dir] [quality for mppenc] |
|
|
|
Dec 4 2004, 02:38
Post
#6
|
|
|
Group: Members Posts: 7 Joined: 19-November 03 Member No.: 9928 |
QUOTE (ak @ Dec 3 2004, 02:53 AM) Hm, cuebreakpoints seems to be abandoned from cuetools, as 'shnsplit < foo.cue' suppose to do the same (never did for me though). When I found out that shnplit had cue file support, I removed cuebreakpoints (cuetools-0.6). shnplit's cue support is very picky (the very first word in the cuesheet must be FILE), so I put it back in the following versions. The latest version is cuetools-1.2 and it is hosted on BerliOS. |
|
|
|
Dec 4 2004, 11:42
Post
#7
|
|
![]() Musepack Developer Group: Members Posts: 359 Joined: 17-October 01 Member No.: 309 |
Oh boy, I never noticed announcement about migration to berlios at sf.net
|
|
|
|
Dec 29 2004, 20:19
Post
#8
|
|
|
FLAC Developer Group: Developer Posts: 1487 Joined: 27-February 02 Member No.: 1408 |
BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file:
http://flac.sourceforge.net/documentation....lac_options_cue Josh |
|
|
|
Dec 29 2004, 22:08
Post
#9
|
|
![]() Group: Members Posts: 509 Joined: 26-February 04 From: S.F., Utah Member No.: 12282 |
QUOTE (jcoalson @ Dec 29 2004, 11:19 AM) BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file: http://flac.sourceforge.net/documentation....lac_options_cue Josh Have you thought about making this so that you could use an external cue sheet? |
|
|
|
Dec 29 2004, 22:15
Post
#10
|
|
|
FLAC Developer Group: Developer Posts: 1487 Joined: 27-February 02 Member No.: 1408 |
QUOTE (ponchorage @ Dec 29 2004, 04:08 PM) QUOTE (jcoalson @ Dec 29 2004, 11:19 AM) BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file: http://flac.sourceforge.net/documentation....lac_options_cue Have you thought about making this so that you could use an external cue sheet? hadn't occurred to me... why not just import the cuesheet into the FLAC file? Josh |
|
|
|
Jan 5 2005, 01:30
Post
#11
|
|
|
Group: Members Posts: 10 Joined: 15-January 04 Member No.: 11241 |
QUOTE (jcoalson @ Dec 29 2004, 11:19 AM) BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file: http://flac.sourceforge.net/documentation....lac_options_cue That's handy. much nicer than having to use --skip --until pairs. Thanks Josh! What about for splitting though? If I want 10 single song flacs out of my one cd image flac, this new feature would require decoding and reencoding. The cuebreakpoints/shnsplit combo mentioned earlier in this thread works well, but requires renaming and retagging the results. Anyone know an easy way to split tracks out of a multi-song image without having to rename/retag the resulting files by hand? (I imagine the lack of a standard form of tagging multi-song flacs is an impediment here, but it doesn't hurt to ask.) |
|
|
|
Jan 5 2005, 01:53
Post
#12
|
|
![]() Group: Members Posts: 509 Joined: 26-February 04 From: S.F., Utah Member No.: 12282 |
QUOTE (iconoclast @ Jan 4 2005, 04:30 PM) QUOTE (jcoalson @ Dec 29 2004, 11:19 AM) BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file: http://flac.sourceforge.net/documentation....lac_options_cue That's handy. much nicer than having to use --skip --until pairs. Thanks Josh! What about for splitting though? If I want 10 single song flacs out of my one cd image flac, this new feature would require decoding and reencoding. The cuebreakpoints/shnsplit combo mentioned earlier in this thread works well, but requires renaming and retagging the results. Anyone know an easy way to split tracks out of a multi-song image without having to rename/retag the resulting files by hand? (I imagine the lack of a standard form of tagging multi-song flacs is an impediment here, but it doesn't hurt to ask.) You can use foobar to do this. Just load up the cue sheet for the image or the image itself if you've embedded it. Select all the songs (or just the ones you want individual files of) then right-click and choose "Convert" and make sure you have FLAC selected as the output format. |
|
|
|
Jan 5 2005, 19:17
Post
#13
|
|
|
FLAC Developer Group: Developer Posts: 1487 Joined: 27-February 02 Member No.: 1408 |
QUOTE (iconoclast @ Jan 4 2005, 07:30 PM) QUOTE (jcoalson @ Dec 29 2004, 11:19 AM) BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file: http://flac.sourceforge.net/documentation....lac_options_cue That's handy. much nicer than having to use --skip --until pairs. Thanks Josh! What about for splitting though? If I want 10 single song flacs out of my one cd image flac, this new feature would require decoding and reencoding. yes, currently no tool that I know of can split FLAC without re-encoding. but it is possible. Josh |
|
|
|
Apr 20 2006, 02:05
Post
#14
|
|
|
Group: Members Posts: 15 Joined: 31-March 06 Member No.: 29027 |
BTW there is a new --cue option in flac 1.1.1 that will work if the cue sheet is stored in the FLAC file: http://flac.sourceforge.net/documentation....lac_options_cue Josh Ok, from what I understand this allows you to encode flac files using the cue sheet to define points within that flac file that can mark the beginnging and ending of tracks. Is there any third party software support for this feature? Perhaps a player that can skip to the next track using this data? Or software tools to burn discs with seperate tracks using this metadata? Am I misunderstanding this completely? |
|
|
|
Apr 20 2006, 02:18
Post
#15
|
|
|
Group: Members Posts: 15 Joined: 31-March 06 Member No.: 29027 |
To answer my own post:
I think that the linux player kaffeine makes use of this metadata. I just opened the file using kaffeine, and then clicked a button that said "encode audio cd" and wala, it had that file seperated into tracks. I'll try out some other programs. EDIT: Nevermind! this wasn't what I thought it was. I haven't found any software that supports this other than flac itself... so far. This post has been edited by scooley: Apr 20 2006, 02:30 |
|
|
|
Apr 25 2006, 13:22
Post
#16
|
|
|
Group: Members Posts: 10 Joined: 21-March 03 Member No.: 5607 |
It is also possible to split a wav file accordung to a cue sheet using bchunk.
But it has the same problem as the solution here: How do I automatically rename the split files to the track titles provided by the cue sheet? Or better: Automatic renaming to a format string like <track number>-<track title>. |
|
|
|
May 8 2006, 23:01
Post
#17
|
|
|
Group: Members Posts: 15 Joined: 31-March 06 Member No.: 29027 |
It is also possible to split a wav file accordung to a cue sheet using bchunk. But it has the same problem as the solution here: How do I automatically rename the split files to the track titles provided by the cue sheet? Or better: Automatic renaming to a format string like <track number>-<track title>. Not a solution to your problem, but I wanted to advise you that if you are using bchunk to listen very carefully to the very beginning of the first track on each cd you split. I was using bchunk and made the strange discovery that bchunk introduced a chirping sound to the first part of the first song on a split cd. View this thread: http://www.hydrogenaudio.org/forums/index....showtopic=43801 I'd like to know if you experience the same problem. The way that I was reapplying tag info to the resulting files was with easytag. It wasn't very efficient, and there is probably a better way, but I would open the directory where the newly split/encoded files were within easytag, highlight all of the tracks, misc/cddatabasesearch click "manual search" tab, search cddb for the appropriate cd, then apply the information to all tracks highlighted. It will then retag and rename all of the songs for you. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd November 2009 - 03:53 |