:: Ok, My goal is to setup an fm tuner card and record some late night radio.
:: The signal and production quality of the broadcast are top notch, so I'd
:: like
:: to preserve as much as possible. Also, I'd ideally like to encode realtime..
:: I'm given to understand that lower bitrates encode faster ?
:: What would be the processor power required for realtime encoding at:
:: lame -V 1 -b 128 -h -m j -q2 ?
:: lame with a CBR of 160 ?
::
:: Note: my guess at a VBR encoding spec is sort of a guess at what might
:: produce
:: a file with an average of 150bkps, which I think would be perfect.. if this
:: is overkill
:: for a high quality fm signal, what would be a more reasonable alternative ?
::
Works on a K6-2-315 and Lame 3.87 alpha 3. Average CPU load is around 90%
----------------------------------------------------------------------------------
#! /bin/bash
time=3600
output=/home/pfk/1.mp3
lame=/usr/local/bin/lame
lameopt='-b 112 -V1 -q5 -mj --lowpass 15.0'
fs=32000
( nice -n -20 wavrec -t $time -s $fs -b 16 -S /proc/self/fd/1 ) | \
( nice -n -20 buffer -p 0 -s 36k -m 32760k ) | \
( nice -n -20 $lame $lameopt /proc/self/fd/0 /proc/self/fd/1 ) | \
( nice -n -20 buffer -p 34 -s 256k -m 768k ) > $output
-------------------------------------------------------------------------------
For faster machine I would change 'lameopt' to one of the following:
lameopt='-b112 -V1 -q1 -mj --lowpass 15.0'
lameopt='-b128 -V0 -q1 -mj --lowpass 15.0'
lameopt='-b128 -V1 -q1 -mj --lowpass 15.0'
lameopt='-b160 -V0 -q1 -mj --lowpass 15.0'
If you are recording for CDs change fs to 44100.
May be someone can add this to lame (rlame.sh = recorder lame)?
--
Mit freundlichen Grüßen
Frank Klemm
eMail | [EMAIL PROTECTED] home: [EMAIL PROTECTED]
phone | +49 (3641) 64-2721 home: +49 (3641) 390545
sMail | R.-Breitscheid-Str. 43, 07747 Jena, Germany
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )