3

I'm looking for an open source library (BSD/MIT style license) that allows me to extract the bitrate and duration of a MP3 audio file in dot net.

Any takers?

My Other Me
  • 5,007
  • 6
  • 41
  • 48
  • 2
    duplicate of: http://stackoverflow.com/questions/1492507/parse-mp3-file-in-net-v4-0 – Matt Ellen Dec 21 '10 at 13:03
  • 1
    although one of the answers there, TagLib-Sharp, is GPL not BSD/MIT http://download.banshee.fm/taglib-sharp/ – Rup Dec 21 '10 at 13:08
  • Use NAudio, or just Mp3Frame class, and this code fragment: http://stackoverflow.com/questions/383164/how-to-retrieve-duration-of-mp3-in-net/13269914#13269914 – Daniel Mošmondor Nov 09 '12 at 16:57

3 Answers3

2

NAudio

MS-PL license

QrystaL
  • 4,886
  • 2
  • 24
  • 28
1

There is a wrapper for mpg123 on sourceforge. I have never used it but from the description it looks like what you are looking for. Or the source can help you out.

Larry Hipp
  • 6,205
  • 3
  • 26
  • 31
1

You can try the C# ID3 library. It has a demo client which extracts a whole lot of information from the MP3 file besides the ID3 itself (including bitrate and length): http://sourceforge.net/projects/csid3lib/support

Christian Waidner
  • 1,324
  • 1
  • 13
  • 22