PDA

View Full Version : Linux Recording


DankTank
Nov 30th, 2004, 08:23 PM
I have a bit of a weird setup as far as my podcast recording goes. I used to, and still do an occasional shoutcast broadcast from the studio where there's not enough room for a monitor and keyboard -- there's a few 6U racks of audio equipment (compressors, eq's, aural exciter, etc) and it's just not going to fit.

The mic, decks, and DJ mixer sit on the desk, and the linux box (headless, just ethernet) is under the desk to keep the fan noise away from the setup.

So how does one record with no pretty gui, no monitor and no keyboard?!?

I can ssh in and type:

sleep 15 & sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -b 64 -m s - -o podcast.mp3

I'll disect that a bit (yea, that's one line, and important that it's one line)

sleep 15 && <-- wait 15 seconds before kicking off the following command

sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - <-- record the input as a standard format. Use the correct input subsystem, stereo, CD quality. Raw output to STDOUT. (If you don't know what STDOUT is, don't worry)

| lame -x -b 64 -m s - -o podcast.mp3 <-- the | feeds the STDOUT from the previous command into this command (so does the -). -x is important, it makes the raw output of sox compatible with lame (the mp3 converter). -b 64 sets the bitrate at 64kbit, change as you like, this works well enough for me with a music/talk mix. -m s is stereo, I wouldn't advise playing with this, it doesn't play well with quicktime. -o is for your output file, podcast.mp3.

You'll still need to edit your ID3 tags, but that's a good start.

While this all seems sort of cryptic, there IS an dvantage to recording this way -- it's VERY flexable. If your machine has enough horsepower, you can simultaneously record to MP3 and AAC at the same time, and pretty much anything you can think of with unix pipes.