The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Real Time MP3 Encoding


  • To: ukha_d <ukha_d@xxxxxxx>
  • Subject: Re: Real Time MP3 Encoding
  • From: Keith Doxey <keith.doxey@xxxxxxx>
  • Date: Mon, 31 Jan 2000 09:27:10 -0000
  • Delivered-to: rich@xxxxxxx
  • Delivered-to: listsaver-egroups-ukha_d@xxxxxxx
  • Mailing-list: contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

Hi James,

Thanks for the reply.
I want to record at a minimum of 32kHz (Broadcast Quality) possibly even
44.1kHz (CD quality). What I was trying to avoid was needing 600+ Mb per
hour for the temp.wav file.

The reason I want to keep a high sampling rate is that many of the programs
will contain music as well as speech and I dont want it to sound like an AM
station. Many radio stations are using quite low sampling rates for news
items and although my hearing isnt perfect by any means (too much time
working in nightclubs), I can hear a horrible high pitched whine from the
quantisation noise on the recordings.

I am not an audiophile by any means, just an engineer who cant stand noises
that shouldnt be there :-))

Encoding time isnt a problem as I will just let it run by itself overnight.


Having said that....any encoding that might have been running last night
would have been doomed to failure. Whilst sound asleep waiting for the
Homevision wake-up sequence that starts at 05:40 I was rudely awoked at
05:30 by the dishwasher blowing up !  :-(((

Not only did it burn out the wiring harness in the dishwasher door....it
also took the main 30Amp ring main fuse out with it. ;-((

Sometimes I really hate appliances. About 6 months ago the washing machine
died and we spent the whole of December without a grill waiting for a new
element to arrive !!

Keith Doxey
http://www.btinternet.com/~krazy.keith
Krazy Keith's World of DIY Home Automation


-----Original Message-----
From: James Derrick [mailto:james@xxxxxxx]
Sent: 30 January 2000 23:51
To: ukha_d@xxxxxxx
Subject: [ukha_d] Re: Real Time MP3 Encoding


On Fri, 21 Jan 2000 15:32:36 -0000, you wrote:

>Hi All,
>
>Whilst we are on the subject of MP3 Jukebox functionality a quick
question.
<snip>

>if I want to "tape" a 60
>minute radio program it would take over 600Mb of disk space. By
encoding it
>on the fly direct from the soundcard without an intermediate wav file
it
>will only take about 60Mb
Well, Keith, I've been doing just that for quite some time on my Linux
server to record Radio 4's "Science at 9:00" programs.

I have a script that records the audio as a WAV and then encodes it to
MP3 for serving to a client machine via NFS or Samba. This gives me a
'library' of science programs to listen to when I catch up with the
paperwork.

This approach gives give a couple of minor problems. All the MP3
encoders I've seen need a high bitrate (44k1- 32k samples/s) WAV file
to encode. You can't encode at 'radio-quality' and convert to MP3.
This means you need a bit of temp space. The encoding process then
takes a few hours so you can't really listen to a program that has
just finished using MP3 (although you could kill the encoder and hear
the WAV).

I did try a few experiments before adopting this approach and found
MP3 to be the best tradeoff of space and sound. I tried gzip'ed WAV
files which turn out to be actually a bit smaller than MP3 (6.8Mb for
30mins 8kHz mono PCM verses 7.8Mb 32kbps MP3), however these need to
be uncompressed on the client PC to be heard. WAV also sounds worse at
low bitrates with constant hiss, although music suffers from bad
frequency distortion under MP3.

I don't have stats for the MP3 encoding time as this just runs as a
batch job and isn't really noticeable. I use a PI-233 and BladeEnc-
the encode time is probably about 4x the length of the recording.

James
---
James Derrick    james@xxxxxxx, Cramlington, Near Newcastle,
England
Forwarding Service: jderrick@xxxxxxx
Beyond the Horizon of the place we lived when we were
young,
In a World of Magnets and Miracles. Pink Floyd.

------------------------------------------------------------------------
Want to send money instantly to anyone, anywhere, anytime? You can today at
X.com - and we'll give you $20 to try it!  Sign  up today at X.com.  It's
quick, free, & there's no obligation!
http://click.egroups.com/1/332/3/_/2065/_/949276209/

-- 20 megs of disk space in your group's Document Vault
-- http://www.egroups.com/docvault/ukha_d/?m=1




------------------------------------------------------------------------
Want to send money instantly to anyone, anywhere, anytime?

You can today at X.com - and we'll give you $20 to try it!  Sign

up today at X.com.  It's quick, free, & there's no obligation!
http://click.egroups.com/1/332/3/_/2065/_/949310918/

-- Talk to your group with your own voice!
-- http://www.egroups.com/VoiceChatPage?listName=ukha_d&m=1




Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.