Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Remove MP3 album art

by zer (Deacon)
on Apr 06, 2007 at 06:45 UTC ( #608612=note: print w/ replies, xml ) Need Help??


in reply to Remove MP3 album art

MP3::Tag
MP3::Info
MP3::Album

This should help you out


Comment on Re: Remove MP3 album art
Re^2: Remove MP3 album art
by nega (Scribe) on Apr 06, 2007 at 15:40 UTC
    MP3::Tag supports arbitrary ID3v2 frames.

    MP3::Info and MP3::Album only support a small subset of frames, and not the Attached Picture (APIC) where album art is supposed to go.

    You want to do something like:

    use MP3::Tag; $mp3 = MP3::Tag->new($ARGV[0]); $mp3->get_tags(); $id3v2 = $mp3->{ID3v2} if exists $mp3->{ID3v2}; $id3v2->remove_frame("APIC"); $id3v2->write_tag(); $mp3->close();
    Just feed that script a filename, and it should remove the album art (assuming your ripper actually put the album art in the right tag).

    Of course this is just an example, and if it breaks something you get to keep all the pieces.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://608612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2014-08-27 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls