FM Recording script (Was: Re: Just some stuff...)

Travis Roy travis at scootz.net
Sun Sep 7 12:43:55 EDT 2003


>
> Hi Travis. This sounds like something I'd like to try myself. Can you
> recommend a good FM tuner card to get?
>

I have just a old TV card with FM tuner. Be sure to invest in a good FM 
antenna. Here's my FM script, I use cron to tell it when to go off.

(this is for cartalk obviously)
scootz root # more cartalk.sh
#! /bin/bash

# Stop anybody from using the dsp device.. Recording shows is much more 
important
/sbin/fuser -k /dev/dsp

# Use fmio to control the FM tuner, set it to the correct station and 
volume
/usr/local/bin/fmio -d v4l -f 89.1 -v 7

# Using an smixer preset, set the audio levels
/usr/local/bin/smixer -s /root/mixersettings/recordshow.mix

DATE=`date +%Y-%m-%d`

# Using mpegrec at bitrate 32kbps record for 3600 seconds (or one hour)
/usr/local/bin/mpegrec -b 32 -l 3600 -x "-b 32 --resample 32 -m m" -o 
/tmp/Car_Talk_-_$DATE.mp3

# Set the mixer settings back
/usr/local/bin/smixer -s /root/mixersettings/default.mix




More information about the gnhlug-discuss mailing list