I'm searching for a library / module that can transcode an MP3 (other formats are a plus) to OGG, on the fly.
What I need this for: I'm writing a relatively small web app, for personal use, that will allow people to listen their music via a browser. For the listening part, I intend to use the new and mighty <audio>
tag. However, few browsers support MP3 in there. Live transcoding seems like the best option because it doesn't waste disk space (like if I were to convert the entire music library) and I will not have performance issues since there will be at most 2-3 listeners at the same time.
Basically, I need to feed it an MP3 (or whatever else) and then get a file-like object back that I can pass back to my framework (flask
, by the way) to feed to the client.
Stuff I've looked at:
gstreamer
-- seems overkill, although has good support for a lot of formats; documentation lacks horriblytimeside
-- looks nice and simple to use, but again it has a lot of stuff I don't need (graphing, analyzing, UI...)- PyMedia -- last updated: 01 Feb 2006...
Suggestions?