Ripping CD to mp3 in C # - third-party component or api there?

We are working on a project that requires ripping audio tracks from CDs to MP3s (ideally also for getting track information from CDDB or similar).

Additional reference information. Various music labels send us music CDs, which we then deliver to people through the online delivery system. We look at automating the process of converting these CDs to MP3 files with full track information where possible. We want to create a simple desktop application that allows a member of the team to customize the information about the new music that we receive. To optimize the process, we would like to turn on the audio spread and search for track information.

+6
c # mp3 id3
source share
4 answers

You can do all this by accessing the Windows Media Player Control Library through COM communication (the IWMPCdromRip interface covers, for example, CD breaks). It is not very beautiful and does not look very manageable (you give it a list of tracks to copy, talk about it, copy them and put them into the WMP library, which you can then automate and pull tracks out of), but it will work from end to end, including request for track data and album art. Take a look at http://msdn.microsoft.com/en-us/library/bb262437(VS.85).aspx to get started.

Fast Google also found a link to a CodeProject article in which the authors created a library for copying CDs by switching to the low-level IOCTL APIs and interacting directly with the CD drive. This can be a good starting point for creating your own - find it at http://www.codeproject.com/KB/cs/csharpripper.aspx .

The same author put together a C # encoder using LAME, although you can just connect to LAME.EXE, which could be simpler. See http://www.codeproject.com/KB/audio-video/MP3Compressor.aspx .

The CDDB request (or, most likely, FREEDB) is not rocket science, it is a simple ist-HTTP interface (although curiously there is no web service I could find). Easy to do with WebRequest .

You would think that someone would put together a simple C # library for this, but this seems like an unusual request. Maybe time for a side project ...

+8
source share

I do not know how to rip a CD.

After you have deleted the audio data, you can encode it with LAME

0
source share

To learn how to access freedb Find a CD , it also shows how to get to TOC and create a fingerprint for the drive. As for the best way to work with CDs directly - who knows! Microsoft made so many false starts to create a kind of multimedia API in a mess - you can go through the IOCTL driver, DirectX, MCI or the new API for burning DVDs. Personally, I use MCI - its old, but it works with almost everything and does what I want to do. I also use LAME as a compressor, and it also works great.

0
source share

Perhaps few people know that the author of the world-used www.exactaudiocopy.de is licensing its software for developers. He claims that his software is capable of always creating the same copy, while other libraries are less accurate. There are developer licenses and redistribution licenses. They are not cheap, but when you want to have the best, this is an absolute choice.

0
source share

All Articles