From: ptkwt@... (Phil Tomson) Date: 2003-11-23T06:22:16+09:00 Subject: Re: Ruby classes for MP3 de-/encoding In article <20031122191549.GB3071@tachyon.bsdgeek.net>, Dennis Oelkers wrote: >On Sun, Nov 23, 2003 at 04:03:55AM +0900, Matthew Berg wrote: >> You can do metadata extraction with GStreamer as well, though the >> bundled bindings for libgstmediainfo can be slow in certain >> circumstances. I have the extraction code I've been working on up here >> though: >> >> http://www.gothpoodle.com/~galt/info.rb >> >> This should allow you to read id3 or ogg tags at minimum, and i think >> wav riff headers though I haven't tested it on that yet. > >Thanks for all your help, but it seems as if you misunderstood my question >a bit. I'm not looking for classes to extract metadata information, I want >to encode/decode MP3 data. > I would think this would be very compute intensive (all those dicrete cosine transforms, which as I recall, are performed would take a lot of time in Ruby). If you want to do this from Ruby, wouldn't it be best to find an already existing C library and wrap it to create an extension? Phil