Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Creating a CD from shorten files

created by Iconoplast

(idea) by Iconoplast (4 y) (print)   ?   (I like it!) Fri Aug 24 2001 at 0:49:38

shorten is a lossless, compressed music format. It's ideal for making high-quality copies of concerts and distributing them to your friends. For the following instructions, you're going to need to visit etree.org and download the shorten tools. These instructions were given to me by none other than Patrick Volkerding, who does a whole lot of this sort of thing. So I trust them. However, everything here is my own words. I've just made his instructions more interesting (hopefully).

So you've got a directory full of .shn files laying around from that concert you went to, and you really want to make a CD of it? Great! First, I am going to lay down some assumptions. Let's say you're on a UNIX-like operating system. Let's also say that the shorten utilities are in your path, and that your .shn files are in /tmp/concert.shnf. Also, let's assume that your wav files to burn will go into /tmp/wavs. Now how do we go about this?

The first step is to check the boundedness of the shorten files. See, the shorten files need to be cut at the sector boundaries of a CD. If they aren't, then they will get padded with blank space when you go to burn them. The result will be a popping sound in between tracks. This is not good. So first, check that they are not bound:

shntool -len *.shn

If any of the tracks are bound, there will be a B in one column of the shntool output. You will definately want to fix them before burning. The following command will fix the boundedness and convert them to wavs all in one step:

shntool -fix -wav -b -pad *.shn

You've now got a bunch of wav files in the directory with all your original shorten files. They've also got names indicating that they are fixed. You'll now want to skip down to the part where I tell you how to burn them. If you don't need to fix them, you can unshortenifiy the songs with the following shell command:

for file in *.shn ; do
   ls -l $file
   shorten -x $file /tmp/wavs/`basename $file .shn`.wav
done

And now you've got a directory full of big huge wav files eating up all available free space. Isn't free music great? Okay, there's one more step we need to do before we burn these things. In order to burn them at proper disc at once mode, you need to create a table of contents for the wav files. Change directories to where the wav files are and do this:

( echo "CD_DA"
  for file in *.wav; do
     echo
     echo "TRACK AUDIO"
     echo "FILE \$file\" 0"
  done
) > disc.toc

Now you've got a table of contents written and we're ready to burn as disc at once. The reason we burn in that mode is so there's no annoying two second pre-gap. If there was a pre-gap, you'd have two seconds of silence between songs. Again, not a good thing for live shows.

I'll assume you know what device your CD burner is. Mine is SCSI ID 5; yours may be different. If you've got an IDE burner, I feel sorry for you. Anyways, I burn using cdrdao like so:

cdrdao write --device 0,5,0 --eject disc.toc

Several minutes later, your cd drive should pop open with a fresh new CD of good live music. I would then remove all the wav files, burn a data cd of the shorten files for future trading purposes, then remove the shorten files as well.

etree.org is the main site for all your shorten-related information, including mailing lists, where to download live recordings, more comprehensive howto documents, and much more. Check them out!


printable version
chaos

The Anti-Mac User Interface Shorten Patrick Volkerding Things to consider when naming your child
Dirty Illegal Monkey Sex 2 wav SCSI The sky above the port was the color of television, tuned to a dead channel
Tidal CD-R win.ini Bin
TrueX apple-control-reset disc at once Lossless
cdrdao etree
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
After stirring Everything, these nodes rose to the top:
Birthday Poem
Getting the most out of public transportation
Sierpinski triangle
a conversation with this, that, or the other god
Spy satellites can't read your license plate
Halley's Comet
Freelance Contract
strip Tetris
How to create a bitmap in memory in Windows
Google
County Lines
Musikalisches Opfer
Binomial Theorem
New Writeups
Madara
One Winged Angel(fiction)
Tom Rook
Talk is cheap(poetry)
shaogo
Adelle Davis(person)
Aerobe
race car g sfjsgsd(poetry)
Binah
Dream Log: July 5, 2008(dream)
StrawberryFrog
Forgotten things in space(idea)
antigravpussy
velvet revolution fairy tale(idea)
Heitah
Nerve agent VX(thing)
Pavlovna
shite(idea)
wonton
Days and nights come together in a slow falling down(fiction)
Pavlovna
wee(idea)
katherine
root log: July 2008(log)
Madara
There’s nothing like a trail of blood to find your way back home(fiction)
Heitah
After sneeze(idea)
froggy7384
Why we smoke(personal)
E2 is a by-product of the existence of The Everything Development Company