From: Konrad Meyer Date: 2007-12-15T10:47:36+09:00 Subject: Re: Work with Audio Files --nextPart5187567.KIGW2EgmaC Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Petr Kout: > Konrad Meyer wrote: > > Quoth Petr Kout: > >> >=20 > >> Thanks. > >>=20 > >> Peter > >=20 > > There is a great library out in the wild called "metadata" that you can= =20 > > use to > > get information about mp3s (as well as many other filetypes) that I=20 > > think is > > available in gem form. You might take a look at that. > >=20 > > If you want to truncate a constant bitrate mp3, AFAIK they are=20 > > structured such > > that you *could* crudely lop off some bytes from the end (channels * > > time_to_clip * bitrate bytes). If not, you'll need to use some sort of > > external mp3 library. I don't know of any that exist with ruby bindings= =2E=20 > > You > > might look at LAME though I'm not sure how much that will do. > >=20 > > HTH, >=20 > Okay Konrad, thanks very much! That sounds interesting. I will=20 > definitely look into it. I was thinking that for cutting the mp3, I=20 > might look for some other technology, such as a command line tool for=20 > Linux and run it from inside Ruby on Rails. The metadata library sounds=20 > like exactly what I need. I also need a library to crop pictures, but I=20 > assume that that one should be much easier to find. >=20 > Thanks again. >=20 > Peter Yeah, I'd recommend using some sort of command-line tool for cutting the mp= 3. Regards, =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart5187567.KIGW2EgmaC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHYzI9CHB0oCiR2cwRAqvCAJ90U85R+0beFEGDLYf4tAPteDliNwCfXFkm nYc9TR0kpT5peZVqjnW2Ab0= =7EKl -----END PGP SIGNATURE----- --nextPart5187567.KIGW2EgmaC--