Log in

View Full Version : Encode MP3 to MP3


David1105
10th November 2006, 03:11
To encode a MP3 file to another MP3 file (both files on local disk), for such purposes like changing bitrate and sampling rate, etc., the following graph is made:

File Source (Async.) --> MPEG-I Stream Splitter --> ffdshow Audio Decoder --> LAME Audio Encoder --> Dump

However, the encoding process is way slow, compared to use LAME.exe for the same purpose.

Any idea or suggestion?

Awatef
10th November 2006, 11:41
Don't know exactly what you intend to achieve with such a complicated way...
Better use something like BeLight or RazorLame to re-encode your MP3s.

tebasuna51
10th November 2006, 12:27
Or more easy without GUI's:
Lame.exe --vbr-new -V 5 input.mp3 output.mp3
for VBR and for CBR:
Lame.exe -c 128 input.mp3 output.mp3

But the answer to the graph question is yes, this graph may work if you have ffdshow enabled (the default is disabled) to decode mp3.

David1105
10th November 2006, 19:13
Thanks for your responses!

The reason of using Lame is 'cus it can encode other audio formats as well, besides MP3 and people have good comments on it. Not sure about BeLight or RazorLame though...I could be wrong on this.

I did use Lame.exe before. What I am thinking it's possible to use the Lame.ax as well. However the encoding procedure is 4 to 5 times slower than using Lame.exe.

Do you mean "Format/MP3" under "Codecs" by "ffdshow enabled (the default is disabled) to decode mp3"?

(It is not set to "Disabled" and switch between "libmad" and "mp3lib" doesn't help.)

Does you think that the setting in either "ffdshow Audio Decoder" or "LAME Encoder" is causing the slowness of the encoding process?

Is there a document somewhere talking about all the settings?

Thanks again!

tebasuna51
10th November 2006, 19:27
You need open ffdshow Audio Decoder Configuration -> Codecs -> Mp3 and select the decoder lib for mp3, if is disabled.
http://img155.imageshack.us/img155/4292/ffdshowconfyp3.png (http://imageshack.us)

David1105
10th November 2006, 22:02
It is NOT "Disabled" and switch between "libmad" and "mp3lib" doesn't help.

Awatef
10th November 2006, 23:10
Still I don't understand the wisdom behind this idea.
There are many freeware universal converters out there, like BeLight and dbpoweramp, I don't see why you would use such a weird method...

tebasuna51
11th November 2006, 00:50
However, the encoding process is way slow, compared to use LAME.exe for the same purpose.

Any idea or suggestion?
Of course, a dedicated soft is always fast than involve generic software like DirectShow filters.

David1105
11th November 2006, 00:54
Awatef wrote:

"Still I don't understand the wisdom behind this idea.
There are many freeware universal converters out there, like BeLight and dbpoweramp, I don't see why you would use such a weird method..."

Ok, I'd like to have something which can be integrated in my app, like Lame.ax. Of course it doesn' have to be Lame.ax if there's a better choice (another better .ax?). However, Lame.exe is not a good choice, given the requirement of integration.

Seems like BeLight and dbpoweramp has GUI (and standalone? Or am I missing something here?)

Any suggestion on this?


tebasuna51 wrote:
"Of course, a dedicated soft is always fast than involve generic software like DirectShow filters."

Why is " generic software like DirectShow filters" slow?
(Please note that it's more than 6 times slower.)

gameplaya15143
14th November 2006, 17:03
Of course it doesn' have to be Lame.ax if there's a better choice
Maybe you could use lame_enc.dll instead.