IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Linux - split wav by cue sheet
AliceWonder
post Mar 18 2014, 03:41
Post #1





Group: Members
Posts: 119
Joined: 13-July 12
From: California
Member No.: 101393



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.
Go to the top of the page
+Quote Post
KozmoNaut
post Mar 18 2014, 09:04
Post #2





Group: Members
Posts: 100
Joined: 25-January 07
Member No.: 39990



I use the following command:

CODE
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".

This post has been edited by KozmoNaut: Mar 18 2014, 09:06
Go to the top of the page
+Quote Post
AliceWonder
post Mar 18 2014, 09:34
Post #3





Group: Members
Posts: 119
Joined: 13-July 12
From: California
Member No.: 101393



QUOTE (KozmoNaut @ Mar 18 2014, 01:04) *
I use the following command:

CODE
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!
Go to the top of the page
+Quote Post
AliceWonder
post Mar 18 2014, 10:00
Post #4





Group: Members
Posts: 119
Joined: 13-July 12
From: California
Member No.: 101393



QUOTE (AliceWonder @ Mar 18 2014, 01:34) *
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!
Go to the top of the page
+Quote Post
KozmoNaut
post Mar 18 2014, 10:47
Post #5





Group: Members
Posts: 100
Joined: 25-January 07
Member No.: 39990



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.

This post has been edited by KozmoNaut: Mar 18 2014, 11:02
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2014 - 08:30