An open source decoder or public domain?

Is there a library or a simple C or C ++ file for decoding MP3 1 in samples?

The license must be publicly available or one of the more permissive licenses. MIT, X11, etc.

Not GPL or LGPL. LGPL is good, but in some situations (on iOS) it's almost useless 2 . Even on more open platforms such as Win32, Linux, and OSX, you must provide credit in the documentation, etc., bring copies of LGPL and GPL inside your application, etc.


1 Yes, I know that the mp3 format is patented. The latest patent expires on December 30, 2017. 13 patents expired, 7 - .

2 Or works as intended . All about the prospects.

+6
source share
4 answers

Try minimp3 libray, which is LGPL. Very small, portable and easy to use. http://keyj.emphy.de/minimp3/

+3
source

You can use libmpg123 , which is available under LGPL 2.1 . You must be licensed if you use it as an external library.

Excerpt from LGPL 2.1 :

"5. A program that does not contain any derivative of any part of the Library, but is intended to work with the Library by compilation or related to it, is called a" work that uses the library. "Such work, in isolation, is not a derivative work of the Library and therefore, beyond the scope of this License. "

+3
source

If you don’t edit the library yourself (I know you said you want to change the code, but see if you can edit the changes outside of the function calls, and not inside the library calls) and just use the direct dll compiler you won’t need to distribute the code yourself, you can just point people to the original project.

As you can say about this, as you said in the comments of your OP, the LAME library works quite well, just resist the temptation to edit the dll and just edit your code that calls the DLL, and you can use it exactly as you want.


UPDATE:

As pointed out by Hasturkun LAME is an LGPL for encoding, but a GPL for decoding . Therefore, LAME is not a good tool to use in your case, but the original statements about making changes to your code instead of the LGPL library are still good.

+1
source

Fluendo MP3 decoder is a MIT license. (As a service to users, they also paid the Fraunhofer and Thomson patent fees, so you can get the Fluendo mp3 decoder binary from their Fluendo website, too.)

+1
source

Source: https://habr.com/ru/post/901440/


All Articles