Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Difficult WAV to MP3 Conversion (Read 4570 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Difficult WAV to MP3 Conversion

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?


Difficult WAV to MP3 Conversion

Reply #2
The file plays in foobar, so you probably can also use foobar to convert it.

Difficult WAV to MP3 Conversion

Reply #3
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: [Select]
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.


Difficult WAV to MP3 Conversion

Reply #5
lame

Difficult WAV to MP3 Conversion

Reply #6
Was the noise due to the input file being CCITT u-Law rather than PCM, then?

Difficult WAV to MP3 Conversion

Reply #7
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.

 

Difficult WAV to MP3 Conversion

Reply #8
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.

 
SimplePortal 1.0.0 RC1 © 2008-2021