LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: James Leone <linuxcpa@netscape.net>
  To  : Brandon Johnson <bjohns44@csc.com.au>
  Date: Thu, 30 Jan 2003 00:22:59 -0800

Re: Lossless Music format FLAC joins Xiph team

Brandon Johnson wrote:

>About a week ago some (xfesty?) was complaining about sound quality. 
>
I noticed this too.  However, there was another post I read that 
contained a script. I tried it out, and it seemed to have some better 
sound quality for me. The difference is that I changed lines 19 and 20 
to read 90 instead of 0, because all I would get was silence if I didn't 
change it.  Credit is due to HvR  of SVLUG.  I wish I knew his full name 
to give him more proper credit.

Here it is:

> #/bin/sh
> if [ "a$1" != "a" ]
> then
>     NOW="$1"
> else
>     NOW=`date '+%Y%m%d%H%M%S'`
> fi
>
> FILE=$HOME/recordings/$NOW
>
> TITLE="$FILE.mp3"
> ARTIST="`whoami`"
> ALBUM="`uname -n`"
> YEAR="`date +%Y`"
> COMMENT="created by $0 on `date`"
> killall esd # dont ask why
> # reset mixer
> aumix -L >/dev/null 2>/dev/null
> # volume=90 mike=max rec=max
> aumix -v 90 -m 100 -m r
> rm -fr /tmp/$$.wav
> rec   -r 44100 -c 1 -f U /tmp/$$.wav
> lame --tg 25 --tt "$TITLE" --ta "$ARTIST" --tl "$ALBUM" \
>      --ty "$YEAR" --tc "$COMMENT" --tn 1 \
>       -a -b 32  -h  /tmp/$$.wav ${FILE}.mp3 # -S >/dev/null 2>/dev/null
> rm -fr /tmp/$$.wav
>
> # all done reset mixer
> aumix -L >/dev/null 2>/dev/null
> mp3info -p "%S seconds recorded in ${FILE}.mp3\n" ${FILE}.mp3
> exit 0

James Leone

P.S. A related mystery is that I cannot record on my IBM Thinkpad 600X, 
even though it is producing sound.

-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page