Jump to content


Are there any open source library for mp3 decoding?


12 replies to this topic

#1 Cherish_He

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 17 March 2006 - 09:03 AM

I have read some source code for mp3 decoding, but such code is very hard to understand. Are there any open source libraries for mp3 decoding? Thank a lot. ^_^

#2 zdax

    New Member

  • Validating
  • PipPip
  • 10 posts

Posted 17 March 2006 - 09:10 AM

fmod is a popular choice. www.fmod.org.

#3 SigKILL

    Valued Member

  • Members
  • PipPipPip
  • 200 posts

Posted 17 March 2006 - 05:12 PM

For opensource the only one I know is SMPEG, but my guess is that there is alot more of them...

-si

#4 SamuraiCrow

    Senior Member

  • Members
  • PipPipPipPip
  • 459 posts

Posted 17 March 2006 - 05:46 PM

zdax said:

fmod is a popular choice. www.fmod.org.

FMod source is only supplied with a commercial licence. It isn't totally open source.

#5 Reedbeta

    DevMaster Staff

  • Administrators
  • 5307 posts
  • LocationBellevue, WA

Posted 17 March 2006 - 06:34 PM

http://www.zinf.org/
reedbeta.com - developer blog, OpenGL demos, and other projects

#6 Cherish_He

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 19 March 2006 - 08:30 AM

I just want to decode the mp3 to be PCM format in Windows XP, are there any open source libraries can do this? Thanks a lot. ^_^

#7 Nils Pipenbrinck

    Senior Member

  • Members
  • PipPipPipPip
  • 597 posts

Posted 19 March 2006 - 09:21 AM

mpg123 fits the bill. The lib is under LGPL.

A bit smaller is AMP1.1 from Niklas Beisert (can be found here: http://www.cubic.org/sources.html)

#8 Cherish_He

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 19 March 2006 - 02:20 PM

Nils Pipenbrinck said:

mpg123 fits the bill. The lib is under LGPL.

A bit smaller is AMP1.1 from Niklas Beisert (can be found here: http://www.cubic.org/sources.html)

How can I get the lib mpg123? I want a Windows version. I went to the site of mpg123, and can only find a dll for windows, and I can not download this dll because the url link to a page which reports a 404 error.....

Are there any tutorial for the AMP1.1? I've download the souce code, but the sample is too complex to read.... Thanks a lot.

#9 Nils Pipenbrinck

    Senior Member

  • Members
  • PipPipPipPip
  • 597 posts

Posted 19 March 2006 - 05:32 PM

Cherish_He said:

How can I get the lib mpg123? I want a Windows version. I went to the site of mpg123, and can only find a dll for windows, and I can not download this dll because the url link to a page which reports a 404 error.....

Are there any tutorial for the AMP1.1? I've download the souce code, but the sample is too complex to read.... Thanks a lot.

I'm sure you'll find a mirror somewhere.. I even think mpg123 has a sourceforge site. It's a well known and widely used mp3 player on linux systems, so I'm sure there are hundrets of mirrors.

About AMP, it's not supported and there is little interest in that lib, but I like it just because of the fact, that it does mp3 decoding, nothing else.

It's really easy to use. Have you had a look at the README file? There's a really simple usage example in it. Btw, I'd suggest once you got it running you remove the binfile stuff and implement your own.

#10 Cherish_He

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 20 March 2006 - 02:17 PM

Nils Pipenbrinck said:

About AMP, it's not supported and there is little interest in that lib, but I like it just because of the fact, that it does mp3 decoding, nothing else.

It's really easy to use. Have you had a look at the README file? There's a really simple usage example in it. Btw, I'd suggest once you got it running you remove the binfile stuff and implement your own.

But can AMP be complied in Windows? I've download it from the site you gave me, but it does not tell me how to complied in Windows. And when I try to complied it, it said that some code could not be complied in Windows. Is there a Windows version for Windows?

#11 Reedbeta

    DevMaster Staff

  • Administrators
  • 5307 posts
  • LocationBellevue, WA

Posted 20 March 2006 - 07:33 PM

Cherish_He said:

Is there a Windows version for Windows?

No, but there's a Windows version for Linux.

Sorry, couldn't resist. ;)
reedbeta.com - developer blog, OpenGL demos, and other projects

#12 Cherish_He

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 22 March 2006 - 09:37 AM

I've downloaded libmad and complied it to a lib successfully using VC++, but I don't know how to use the lib. There is an example in the package, but this example is for UNIX. Do somebody know how to use libmad to decode mp3 with VC++? Thanks a lot! ^_^

#13 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 939 posts

Posted 26 March 2006 - 08:51 AM

Cherish_He said:

but this example is for UNIX.

So?

If it works for UNIX it should work for windows. Actually playing the sound is a different matter, however. I am sure you could easily find some tutorials on how to play sounds in windows.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users