Maybe it isn't such a good idea to use an encoder and decoder for this. MP3 is a lossy format, and encoding it again will have bad effects on quality. I only need a lib to read/write MP3's container format. I'll leave the individual frames intact, so no quality is lost.

I've been looking into the FFmpeg library. I think it has what I need, but there aren't any good tutorials on it.