|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] EMU10K1 and recording audio
|
>
> Also, what
> programs are people using to record audio from the Mic or Line
> input to disk?
>
I've forgotten the device names but for recording, but
anyway this is the one I have (I have an AM tuner connected to
LINE-IN)....the programs I use are mpegrec & lame (to stream
line-in to mp3)..(the second invocation of Lame just
resamples the mp3):
(According to my old notes I got the technique from
http://www.linuxfocus.org/English/March2001/article178.shtml).
----------shell script----------------------
#! /bin/tcsh -f
#
# amrecord - record AM signal coming from soundcard
#
# JondZ Mon Feb 4 04:50:14 EST 2002 started
set DESTINATIONDIR = /misc/radiomp3
set MPEGREC = /usr/local/bin/mpegrec
set LAME = /usr/local/bin/lame
set TMPFILE = $DESTINATIONDIR/tmp.mp3
set OUTFILE = $DESTINATIONDIR/`date +radio-%Y%m%d%H%M.mp3`
# set OUTFILE = $DESTINATIONDIR/`date +radio-%Y%m%d.mp3`
set NEW_OWNER = winuser
set NEW_GROUP = winuser
set RETENTION_HOURS = 720
if ( $# == 0 ) then
echo syntax: $0 length_in_seconds
exit 1;
endif
$MPEGREC -b 128 -o $TMPFILE -l $1 -x "-k "
$LAME -k -m m -b 32 $TMPFILE $OUTFILE
chown ${NEW_OWNER}:${NEW_GROUP} $OUTFILE
/bin/rm $TMPFILE
/usr/sbin/tmpwatch -m -d -v $RETENTION_HOURS $DESTINATIONDIR
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|