mp3 bitrate

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: MikeCantrellyomahz@devnull.org
Date:  
Subject: mp3 bitrate
:)

Well, I keep meaning to learn python but everytime I remember about the
white space thing, I pound my fists on my desk and ask "Why, oh why do
they do that?!!!" and go back and grab my advanced perl programming book
[1] and stroke it until I calm down.

Regards,
Mike Cantrell


[1] - my woobie

Lucas Vogel wrote:
>
> cool...you've inspired me to try to build it in python, though. I want to
> continue my python momentum from yesterday :)
>
> Thanks
>
> -----Original Message-----
> From: Mike Cantrell [mailto:yomahz@devnull.org]
> Sent: Saturday, August 26, 2000 10:43 PM
> To:
> Subject: Re: mp3 bitrate
>
> OK, I couldn't help it.. I DL'd the module and gave it a try and I had
> to make a few changes... this works:
>
> #!/usr/local/bin/perl
> use MP3::Info;
>
> $mp3dir = shift || die "Usage $0 /path/to/mp3s";
>
> @files = glob("$mp3dir/*.mp3");
> foreach $file (@files) {
>           $info = get_mp3info($file);
>           print $file, ", ", $info->{BITRATE}, "\n";
> }

>
> just run:
>
> script_name /path/to/mp3s
>
> It doesn't do recursive dir's but it's pretty functional. Shouldn't take
> much to add in recursive dir's.
>
> Regards,
> Mike Cantrell
>
> Mike Cantrell wrote:
> >
> > Mike Cantrell wrote:
> > <snip>
> > > #!/usr/local/bin
> >
> > err... that should probably be #!/usr/local/bin/perl or #/usr/bin/perl
> > (obviously)
> >
> > <snip>
> >
> > > Lucas Vogel wrote:
> > > >
> > > > Does anyone know of a CLI command that will return the bitrate of an
> mp3? I
> > > > want to create a list of all of my mp3's with their bitrates appended
> at the
> > > > end of the names.
> > > >
> > > > Thanks
> > > >
> > > > -------------------------------------------
> > > > Lucas Vogel, Software Developer
> > > > Exponent Failure Analysis Associates, Inc.
> > > >
> > > > (623)587-6739
> > > >