HydrogenAudio

Lossy Audio Compression => MP3 => Topic started by: sreyan32 on 2020-03-17 08:03:17

Title: Writing your own mp3 decoder
Post by: sreyan32 on 2020-03-17 08:03:17
Not sure if this is the correct forum to ask about this.

How do you go about writing your own mp3 decoder ?

What are the resources that are out there for that ?

Can you please advise me on the starting points ?
Title: Re: Writing your own mp3 decoder
Post by: DVDdoug on 2020-03-17 08:26:41
LAME (https://lame.sourceforge.io/index.php) is both an encoder and decoder and the website says:
Quote
LAME is an educational tool to be used for learning about MP3 encoding.
Title: Re: Writing your own mp3 decoder
Post by: john33 on 2020-03-17 13:45:35
Not sure if this is the correct forum to ask about this.

How do you go about writing your own mp3 decoder ?

What are the resources that are out there for that ?

Can you please advise me on the starting points ?
The MAD decoder was always highly rated and is open source. You will find it and a lot of useful info and links here:

MAD Decoder (https://www.underbit.com/products/mad/)
Title: Re: Writing your own mp3 decoder
Post by: sreyan32 on 2020-03-17 14:24:35
Not sure if this is the correct forum to ask about this.

How do you go about writing your own mp3 decoder ?

What are the resources that are out there for that ?

Can you please advise me on the starting points ?
The MAD decoder was always highly rated and is open source. You will find it and a lot of useful info and links here:

MAD Decoder (https://www.underbit.com/products/mad/)

Where are you getting information about the encoding standard itself ?

I tried getting the actual standard from ISO, but its really expensive. Where do I get information about MP3 itself ?
Title: Re: Writing your own mp3 decoder
Post by: DVDdoug on 2020-03-17 15:19:55
This is beyond my programming abilities but I assume both LAME and MAD are well documented.   These kind of "bigger projects" are also usually team efforts. 

Inside The MP3 CODEC (http://www.mp3-converter.com/mp3codec/) has quite a bit of information, but probably not the nitty-gritty details you need.

MP3 Diags (http://mp3diags.sourceforge.net/) is another open source project that might be helpful.
Title: Re: Writing your own mp3 decoder
Post by: john33 on 2020-03-17 15:26:35
I can only echo the above.
Title: Re: Writing your own mp3 decoder
Post by: saratoga on 2020-03-17 17:27:43
Can you please advise me on the starting points ?

When I was starting out I went to a university library and borrowed a book on mpeg compression.  Once I was more comfortable with the basics, I started reading source code of existing decoders, which made a lot more sense once I understood what they were doing.   
Title: Re: Writing your own mp3 decoder
Post by: DVDdoug on 2020-03-17 20:11:19
I also had a link to The Theory Behind Mp3 (https://www.mp3-tech.org/programmer/docs/mp3_theory.pdf)
Title: Re: Writing your own mp3 decoder
Post by: sreyan32 on 2020-03-22 16:53:53
When I was starting out I went to a university library and borrowed a book on mpeg compression. 

Do you remember what book it was ? Can you please tell me the name ?
Title: Re: Writing your own mp3 decoder
Post by: sreyan32 on 2020-03-22 16:54:27
I also had a link to The Theory Behind Mp3 (https://www.mp3-tech.org/programmer/docs/mp3_theory.pdf)

This is really helpful as a starting point.
Title: Re: Writing your own mp3 decoder
Post by: sreyan32 on 2020-03-22 16:56:39
This is beyond my programming abilities but I assume both LAME and MAD are well documented.   These kind of "bigger projects" are also usually team efforts. 

Inside The MP3 CODEC (http://www.mp3-converter.com/mp3codec/) has quite a bit of information, but probably not the nitty-gritty details you need.

MP3 Diags (http://mp3diags.sourceforge.net/) is another open source project that might be helpful.

Good starting point. I wish I could have got my hands on the standard.
SimplePortal 1.0.0 RC1 © 2008-2021