Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Help with reading MP3's

by toolic (Bishop)
on Aug 25, 2011 at 00:16 UTC ( [id://922236]=note: print w/replies, xml ) Need Help??


in reply to Help with reading MP3's

What output do you get with this?
use MP3::Tag; use warnings; use strict; use Data::Dumper; my $file = shift; my $mp3 = MP3::Tag->new($file); $mp3->get_tags(); print Dumper($mp3);
Basic debugging checklist

Did you try mp3info2?

Replies are listed 'Best First'.
Re^2: Help with reading MP3's
by StarkRavingCalm (Sexton) on Aug 25, 2011 at 01:23 UTC

    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

      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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://922236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found