I have an mp3 file that appears to have multiple picture tags (cover art) in the file. When I run exiftool –a filename.mp3, I get the following:
xifTool Version Number : 8.95
File Name : filename.mp3
Directory : <Removed>
File Size : 13 MB
File Modification Date/Time : 2009:07:24 13:53:49-04:00
File Permissions : rwxr-xr-x
File Type : MP3
MIME Type : audio/mpeg
MPEG Audio Version : 1
Audio Layer : 3
Audio Bitrate : 256 kbps
Sample Rate : 48000
Channel Mode : Stereo
MS Stereo : Off
Intensity Stereo : Off
Copyright Flag : False
Original Media : False
Emphasis : None
ID3 Size : 5068736
Title : Lay All Your Love On Me
Artist : ABBA
Composer : B. Andersson, B. Ulvaeus
Album : Gold
Track : 5/19
Part Of Set : 1/1
Year : 1980
Genre : Pop
Compilation : Yes
Comment : (iTunPGAP) 0
Encoded By : iTunes 8.2.0.23
Comment : (iTunNORM) 00000350 0000035F 0000218A 0000266C 0003E598 0003E598 00007BA7 00007FFD 00024DC8 0001AB98
Comment : (iTunSMPB) 00000000 00000210 000008F0 0000000000C8ED80 00000000 0085E300 00000000 00000000 00000000 00000000 00000000 00000000
Comment : (iTunes_CDDB_IDs) 19+8B32424F1CB7AE32B02B00EB06DD0D55+7145073
Picture Format : JPG
Picture Type : Other
Picture Description :
Picture : (Binary data 22222 bytes, use -b option to extract)
Picture Format : JPG
Picture Type : Other
Picture Description :
Picture : (Binary data 42225 bytes, use -b option to extract)
Picture Format : JPG
Picture Type : Other
Picture Description :
Picture : (Binary data 21076 bytes, use -b option to extract)
Date/Time Original : 1980
Duration : 0:04:34 (approx)
I was able to extra one of the images by doing the following:
exiftool -b -ID3v2_2:Picture /mnt/drobo/QNXCollection/MultipleTagImages/250.mp3 > image.jpeg
I was wondering what the syntax would be to get the other 2 images?
OK, found I can do the following to get all of the data:
exiftool -b -X -ID3v2_2:Picture filename.mp3
Try this:
exiftool -b -picture > pic1.jpg
exiftool -b -copy1:picture > pic2.jpg
exiftool -b -copy2:picture > pic3.jpg
(the -G4 option may be used when extracting information to see these copy numbers for the different pictures)
- Phil
Or better yet, with a new feature of ExifTool 9.23, you can extract all of these in a single command:
exiftool -a -b -picture -W pic%c.%s FILE
(capital -W)
- Phil