Log in

View Full Version : re-encoding mp3 files


David1105
18th May 2007, 19:47
Using the following graph,

Source (.mp3, E436EBB5-524F-11CE-9F53-0020AF0BA770) -> MPEG-I Stream Splitter -> ffdshow Audio Decoder -> File Writer (.mp3)

On "Codecs" page of ffdshow Audio Decoder is there an item of "MP3" which has three options: disabled, mp3lib, and libmad.

What're the effects of selecting any of the three options?

Also, the graph has no problem for most input mp3 files. However it did hang with one mp3 file until I switched the setting from "mp3lib" to "libmad." Does anyone know the cause of the problem?

Thanks!

gameplaya15143
18th May 2007, 21:26
Source (.mp3, E436EBB5-524F-11CE-9F53-0020AF0BA770) -> MPEG-I Stream Splitter -> ffdshow Audio Decoder -> File Writer (.mp3)That will decode the mp3 to a headerless PCM stream, not another mp3 file.

Also, the graph has no problem for most input mp3 files. However it did hang with one mp3 file until I switched the setting from "mp3lib" to "libmad." Does anyone know the cause of the problem?Those are different mp3 decoding libraries. My guess is that this one mp3 file of yours is corrupt in a way that makes mp3lib choke and die, and libmad handles the error and moves on.

setarip_old
19th May 2007, 05:02
It's my guess that you didn't create the file and that it contains 24-bit PCM audio:MAD has the following special features:

24-bit PCM output
100% fixed-point (integer) computation
completely new implementation based on the ISO/IEC standards
available under the terms of the GNU General Public License (GPL)

"MAD" is what is supported by the "libmad" codec

DarkZell666
21st May 2007, 14:11
May I dare ask why you're trying to do something so complicated for such an "easy" task ? Is it for testing a software you might be writting ? Or is this the "only" way you found to reencode some of your mp3's ?

What's wrong with besweet or bepipe+lame ? or even ffmpeg ?

Hmm sorry for being curious but I've never seen anyone (not even me :o) do such a wierd thing for reencoding mp3's ... =)