Hi,

Another (often overlooked) option is to just write a short script and
schedule it via CRON. Use command line tools to do the recording.

As an example a simple:

arecord -f cd -d 10 - | oggenc - -r -o filename.ogg 

will capture 10 seconds of audio from the default sound input and encode
it as an OGG file, change the -d 10 for different lengths of time. Or
just leave the -d option out and it'll record until it gets killed. If
you wanted mp3 files, just pipe it through lame instead of oggenc. Or if
you want uncompressed wave, just use the arecord output to a wave file
instead of stdout. 

It wouldn't be difficult to write a script which would 1) kill any
running arecord processes, and 2) start a new process with a new file
name which is time / date stamped. You could set this up to run hourly
with CRON and just let it run. Add in a quick age check - every time
the script starts have it kill off any old files of a specific age.

Essentially this does the same thing as rotter, however it uses straight
ALSA (so you're avoiding JACK) and if you want to get fancy you can
write it into a script which - if you wanted to - could potentially read
a daily schedule from a database and create audio files of different
lengths (so if you had a 30 minute show followed by a 2 hour show, you
could have 1 audio file for the 30 minute show and another file for the
2 hour long show). You'd also need to add the script into your
autostart to handle crash-recovery (if the machine ends up rebooting at
1:30, you'd want it to start recording a new file as soon as it started
up - not wait until 2:00). But that's not difficult to do.

Lorne Tyndale


_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to