Re: MP3 encoding of wav files from Olympus voice recorder



On Tue, 26 Sep 2006 19:57:53 +0200, Bernard staggered into the Black Sun
and said:
On Tue, 26 Sep 2006 18:12:55 +0200, Dances With Crows wrote:
Bernard wrote:
My Olympus Voice Recorder VN-960PC generates wav files, and I wonder
why I cannot mp3 encode them using LAME. If I try to do so, I get
clairissa:/usr/share/sounds$ file k3b_error1.wav k3b_error1.wav: RIFF
(little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 8000 Hz
file dw_c0106.wav
dw_c0106.wav: RIFF (little-endian) data, WAVE audio, mono 22050 Hz

Should be no problem.

Also give the exact lame command you're using.
below, one typical lame command that I use :
lame -r -s 16 --bitwidth 16 -m m -q 0 --noreplaygain dw_c0106.wav
trial3.mp3

Let's see now. Your .wav file is *not* raw PCM data, so forget the -r
option. You don't need -s either, since the sampling frequency is
stored in the .wav header, and running 16000 Hz on a 22050 Hz input file
would sound bad. -m m is OK since it's mono. -q 0 should be OK even
though the default is 2 and has probably been more widely tested.
--noreplaygain may or may not have an effect. I'd leave it off since
you reported volume problems on the final mp3s. You should probably use
this instead:

lame -m m file.wav file.mp3

....which allows lame to get the sampling rate directly from the header.
Generally, you don't want to specify the sampling rate unless you know
*exactly* what you're doing.

This one gives something that is maybe less weird than whatever else I
get using other parameters; I can hear that someone is kind of
talking, but much faster than normal.

Yeah, screwing up the sample rate can cause the Chipmunk Effect.

Finally, play one of these .wav files using play or whatever, and
make sure it plays properly.
it does play properly with anything

OK, then the problem is probably in the lame command you're using.

--
This is my rifle, this is my GNU
This is for fighting, this is for $FOO!
--AJS in ASR
There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: MP3 encoding of wav files from Olympus voice recorder
    ... why I cannot mp3 encode them using LAME. ... data, WAVE audio, Microsoft PCM, 8 bit, mono 8000 Hz ... I have tried many lame options. ... get are shorter in terms of playing time, about 4 times shorter that the ...
    (comp.os.linux.hardware)
  • Re: Downloading to a mobile phone
    ... > I've downgraded a couple of MP3s to 32kbs mono using lame and remembered ... > that there is a way to upload these to a website and grab them from there, ...
    (uk.comp.os.linux)
  • Re: C# Grammar issues
    ... Mono is and always will be lame. ... MS's DotNet stuff and have probably learned a lot about compilers and ... and I'm not so interested in it as to try to follow the Mono ... Dacon Software Consulting ...
    (microsoft.public.dotnet.languages.csharp)