Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Linux - split wav by cue sheet (Read 5063 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.