Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Help with reading MP3's

by StarkRavingCalm (Sexton)
on Aug 25, 2011 at 01:23 UTC ( #922242=note: print w/replies, xml ) Need Help??


in reply to Re: Help with reading MP3's
in thread Help with reading MP3's

Output:

"Can't call method "get_tags" on an undefined value"

I haven't tried mp3info2 as all the script I have found use MP3Tag

Replies are listed 'Best First'.
Re^3: Help with reading MP3's
by toolic (Bishop) on Aug 25, 2011 at 03:11 UTC
    Let's assume you have an mp3 file named "file.mp3".
    use MP3::Tag; use warnings; use strict; use Data::Dumper; my $file = 'file.mp3'; my $mp3 = MP3::Tag->new($file); $mp3->get_tags(); print Dumper($mp3);
    Substitute "file.mp3" with whatever your mp3 file name is.

    perlintro

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://922242]
help
Chatterbox?
choroba mornings back
[Corion]: Hi choroba!
[Corion]: And Discipulus!
Corion arrived back from London. Always nice to meet people again, even if it's just once per year.
[Corion]: Also, dk contributed some cool stuff to App::ShaderToy, like menu settings and real fullscreen, eliminating many of my #TO-DO comments ;)
[Corion]: I hope you spent the four days well without me online ;-D
[Discipulus]: more or less Corion: the monastery was so calm, maybe too much! i feared you'v lost in VR
[Discipulus]: choroba can i ask why you used *DATA{IO}?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2016-12-06 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.