Skip to main content
Topic: Linux - split wav by cue sheet (Read 3095 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Linux - split wav by cue sheet

Oriiginal source is concert DVD.

Extracted dolby digital as single file.

Converted to 16/48 stereo wav with ffmpeg

Created cue sheet based on chapters (multiplied fractions of second by 75 to get two digit frame)

compressed wav with flac importing the cue sheet primarily as a test of the cue sheet.

But now I want to split the wav according the cue sheet. How do I do that in Linux?
Oddly I did not see an option in sox for that. Search of the man page for cue only brought up earwax.

There has to be some CLI utility that will split a wav file according to a cue sheet. There's gotta be something.

I looked at the http://wiki.hydrogenaudio.org/index.php?ti...sheet#Splitting page but every app I looked at seems to be Windows.

Thanks.

Linux - split wav by cue sheet

Reply #1
I use the following command:

Code: [Select]
cuebreakpoints sample.cue | shnsplit -o wav sample.wav


You need to have cuetools and shntool installed. Shntool also handles flac input files natively and can output to flac using "-o flac".

Linux - split wav by cue sheet

Reply #2
I use the following command:

Code: [Select]
cuebreakpoints sample.cue | shnsplit -o wav sample.wav


You need to have cuetools and shntool installed. Shntool also handles flac input files natively and can output to flac using "-o flac".


Thanks!

``shnsplit: error: m:ss.ff format can only be used with CD-quality files''

I guess it doesn't like 48000 but I'm guessing I can use m:ss:nnn - I think though I'm on the right track now. Thanks!

Linux - split wav by cue sheet

Reply #3
I'm guessing I can use m:ss:nnn - I think though I'm on the right track now. Thanks!


Indeed, that worked. Simple text file with mm:ss.nnn - one for each split point - cat that and pipe the output to shnsplit worked.
Thanks!

 

Linux - split wav by cue sheet

Reply #4
Odd that m:ss.ff only works with CD-quality audio, but I'm glad you made it work! :-)

E: Or maybe it isn't so odd after all. the .fff must refer to frame number, which signifies 6 samples in Red Book audio. So it wouldn't make a lot of sense in a 48000hz context.

 
SimplePortal 1.0.0 RC1 © 2008-2018