From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: inferno (was Re: [9fans] fortune-worthy) In-Reply-To: Your message of "Thu, 18 Dec 2003 14:19:53 EST." <32cce86b0f8d84bfd47eaad807fb1014@9srv.net> From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <53040.1071769113.1@t40.swtch.com> Message-Id: Date: Thu, 18 Dec 2003 12:38:33 -0500 Topicbox-Message-UUID: aaac55a6-eacc-11e9-9e20-41e7f4b1d025 > // > ... i tried with LAME, but got bad results. > > // QED :) > > heh. maybe i should specify "...got valid mp3 files with > nothing but static in them, regardless of input content.". > > i make no comment about LAME itself. ah. you weren't using -x to swap bytes properly. cat /bin/cdenc #!/bin/rc fn enc { if(! test -f $dir/$b.mp3){ rm /tmp/a cp $1 /tmp/a lame -v -rx -S --preset cd /tmp/a $dir/$b.mp3 } } fn raw { if(! test -f $dir/$b.raw) cp $1 $dir/$b.raw } rfork n conv=enc if(~ $1 -r){ shift conv=raw } if(! ~ $#* 1 || ! test -d $1) { echo 'usage: cdenc base' >[1=2] exit usage } dir=$1 if(! test -f $dir/toc) cdplay -f /dev/sdD0 toc >$dir/toc cat $dir/toc cdfs -d /dev/sdD0 && @{ for (i in /mnt/cd/[au]*) { b=`{basename $i} # games/pacenc -s44100 -b190000 $i $dir/$b.pac $conv $i } }