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: Bladeenc and Lame question about converting WAV to MP3 (Read 3351 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Bladeenc and Lame question about converting WAV to MP3

Ok I am building a system that takes a wav attachment out of an email, then it is supposed to convert it to mp3 so that it can be played with a Flash based MP3 player. The average length of the WAV files is between 15 seconds, and 60 seconds. So far the getting the wav files out of the emails is working fine, and they can be played with any player I have. However when trying to use either blade encoder, or LAME, the created mp3 file is nothing more than an 1/8 of a second of static. I have tried every setting I could find on both, to get them to convert it correctly. I am wondering if anyone has heard of this before, and could provide suggestions to getting it to work, or just point me in the right direction.
for reference here is the output from BladeEnc
Quote
BladeEnc 0.94.1 © Tord Jansson Homepage: http://bladeenc.mp3.no
===============================================================================
BladeEnc is free software, distributed under the Lesser General Public License.
See the file COPYING, BladeEnc's homepage or www.fsf.org for more details.

Files to encode: 1

Encoding: inaudio/20061011050219_2.wav
Input: 44.1 kHz, 16 bit, stereo.
Output: 128 kBit, stereo.

Encoded runlength (current file): 00:00:00 Encoded runlength (current file): 00:00:00 Completed. Encoding time: 00:00:00 (infX)

All operations completed. Total encoding time: 00:00:00


Thanks
Mike

Bladeenc and Lame question about converting WAV to MP3

Reply #1
Can you post a small sample wave file to look at/play with? Otherwise it's a little difficult to help, unless someone's seen something similar before.

Bladeenc and Lame question about converting WAV to MP3

Reply #2
I might be blind but I dont see a way to attach a file, so here is a link to one, please excuse the content, one of the other guys was playing around with the system, but is a perfect example of the file sizes and the output of the system already in place. http://www.visualvue.com/20061011050219_2.wav

Just a heads up if anyone has another idea for the conversion I am full yopen to suggestions, however the method must be Linux command line based as the entire system is run by PHP and Perl.

Thanks
Mike

Bladeenc and Lame question about converting WAV to MP3

Reply #3
What format is it in? It doesn't seem to be the usual 8bit/16bit LPCM.

Yikes, it's already MP3. Rename it to .mp3.

File Name : aaa.mp3
File Path : C:\Documents and Settings\foo\바탕 화면\aaa.mp3
Subsong Index : 0
File Size : 20 376 bytes
Last Modified : 2006-10-11 17:32:00
Duration : 0:06.702 (53615 samples)
Sample Rate : 8000 Hz
Channels : 1
Bitrate : 24 kbps
Codec : MP3
Codec Profile : MP3 CBR
Encoding : lossy
<MP3_STEREO_MODE> : mono

Bladeenc and Lame question about converting WAV to MP3

Reply #4
Like the man said:

bitrate = 24
codec = MP3
channels = 1
samplerate = 8000
mp3_stereo_mode = mono
----------
53615 samples @ 8000Hz
File size: 20 376 bytes

That's the foobar detail when the file is simply renamed to xxx.mp3.

Bladeenc and Lame question about converting WAV to MP3

Reply #5
Whatever happens you should avoid Blade if possible. It is one of the worst mp3 encoders and particularly offensive at low bitrates.

SSRC and Gui will solve most sample rate and bit depth problems for you  and is a free solution as well.