Help - Search - Members - Calendar
Full Version: Difficult WAV to MP3 Conversion
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
JonW
I've been trying to convert the following file (http://www.vmtechprojects.com/1041-1294--1594965977.wav)
to into an MP3 without much success.

I've been using:
lame -r -s 8 -bitwidth 8 -m m
but the results sound terrible, like the recording was made int the middle of a hurricane (http://www.vmtechprojects.com/1041-1294--1594965977.mp3)

Is it even possible to get LAME to produce an MP3 from this file that sounds reasonable, or do I need to use something else instead/as well?
greynol
At 8 kbits, what do you expect?
Mark7
The file plays in foobar, so you probably can also use foobar to convert it.
robert
QUOTE (JonW @ Oct 5 2007, 00:31) *
I've been trying to convert the following file (http://www.vmtechprojects.com/1041-1294--1594965977.wav)
to into an MP3 without much success.

I've been using:
lame -r -s 8 -bitwidth 8 -m m
but the results sound terrible, like the recording was made int the middle of a hurricane (http://www.vmtechprojects.com/1041-1294--1594965977.mp3)

Is it even possible to get LAME to produce an MP3 from this file that sounds reasonable, or do I need to use something else instead/as well?

It is possible, if you have LAME which uses LibSndfile for reading input files.
CODE
C:\cvs\lame\lame\output>lame "C:\Dokumente und Einstellungen\robert\Eigene Datei
en\Eigene Musik\1041-1294--1594965977.wav" 1041-1294--1594965977.mp3
LAME 3.98 (beta 5, Oct  5 2007) 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band:  3000 Hz -  3097 Hz
Encoding C:\Dokumente und Einstellungen\robert\Eigene Dateien\Eigene Musik\1041-
1294--1594965977.wav
      to 1041-1294--1594965977.mp3
Encoding as 8 kHz   8 kbps single-ch MPEG-2.5 Layer III (16x) qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
   204/204   (100%)|    0:00/    0:00|    0:00/    0:00|   134.75x|    0:00
-------------------------------------------------------------------------------
   kbps       mono %     long switch short %
    8.0      100.0        77.0  13.7   9.3
ReplayGain: -5.4dB

Here is your file encoded as 8 kbps MPEG-2.5 Layer3 file.
greynol
That's a significant improvement. Please pay no attention to what I said earlier.
gamache
lame
NeoRenegade
Was the noise due to the input file being CCITT u-Law rather than PCM, then?
robert
Yes, CCITT u-Law is a problem. LAME itself has only limited abilities for reading wave files, some PCM cases. But that's easy to fix, just compile LAME against the LibSndfile library(*) and you can feed it with several more input formats (like FLAC or CCITT u-Law).

Maybe John33 will add a LAME version using LibSndfile to the bunch of LAME binaries at rarewares?

* Every Linux distribution should have LibSndfile onboard, it's available as precompiled binary for Windows too.
john33
QUOTE (robert @ Oct 5 2007, 09:58) *
Yes, CCITT u-Law is a problem. LAME itself has only limited abilities for reading wave files, some PCM cases. But that's easy to fix, just compile LAME against the LibSndfile library(*) and you can feed it with several more input formats (like FLAC or CCITT u-Law).

Maybe John33 will add a LAME version using LibSndfile to the bunch of LAME binaries at rarewares?

* Every Linux distribution should have LibSndfile onboard, it's available as precompiled binary for Windows too.

I've just posted a b5 .exe at Rarewares - Lame Bundles page - compiled against libsndfile v1.0.17. I've included the necessary libsndfile dll in the d/l. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.