Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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


Comment on Re^2: Help with reading MP3's
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-08 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls