ExifTool Forum

General => Metadata => Topic started by: frankerooney on September 05, 2012, 02:29:36 PM

Title: Metadata in an m4a/b file
Post by: frankerooney on September 05, 2012, 02:29:36 PM
Hi all,
  Just a quick question relating to pictures/cover art in an m4a/b file. For example a sample m4b file I have contains an image:
ExifTool Version Number         : 8.60
File Name                       : MAKE_2005-07-18.m4b
Directory                       : .
File Size                       : 1682 kB
File Modification Date/Time     : 2012:09:04 22:24:06+01:00
File Permissions                : rw-rw-r--
File Type                       : M4B
MIME Type                       : audio/mp4
Major Brand                     : Apple iTunes AAC-LC (.M4B) Audio Book
Minor Version                   : 0.0.0
Compatible Brands               : M4B , mp42, isom
Movie Header Version            : 0
Create Date                     : 2005:07:17 23:34:30
Modify Date                     : 2005:07:17 16:46:34
Time Scale                      : 600
Duration                        : 0:02:44
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 5
Track Header Version            : 0
Track Create Date               : 2005:07:17 23:34:30
Track Modify Date               : 2005:07:17 16:46:34
Track ID                        : 1
Track Duration                  : 0:02:44
Track Layer                     : 0
Track Volume                    : 100.00%
Chapter List                    : 2 3 4
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 22050
Image Width                     : 160
Image Height                    : 160
Graphics Mode                   : ditherCopy
Op Color                        : 32768 32768 32768
Compressor ID                   : jpeg
Vendor ID                       : Apple
Source Image Width              : 300
Source Image Height             : 225
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : Photo - JPEG
Bit Depth                       : 24
Video Frame Rate                : 0.128
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2005:07:17 23:34:30
Media Modify Date               : 2005:07:17 23:34:30
Media Time Scale                : 22050
Media Duration                  : 0:02:44
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Handler Class                   : Data Handler
Handler Description             : Apple Alias Data Handler
Other Format                    : tx3g
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : MAKE_2005-07-18
Artist                          : MAKE Magazine
Composer                        : MAKE Magazine - Phillip Torrone
Album                           : HOW TO make a USB PSP charger
Grouping                        : MAKE Magazine enhanced podcast
Genre                           : Podcast
Year                            : 2005
Comment                         : Here's HOW TO make a USB PSP charger, this is an enhanced podcast and plays best in iTunes 4.9+ and color iPods.
Cover Art                       : (Binary data 53301 bytes, use -b option to extract)
Movie Data Size                 : 1638464
Avg Bitrate                     : 79.9 kbps
Image Size                      : 160x160
Rotation                        : 0


I presume the binary filetype is a jpeg as listed. I tried:
exiftool -b -picture <file> >export.jpg

- no good - zero file size.
Instead I did:
exiftool -b <file> >export
then:
exiftool export it gives this:

ExifTool Version Number         : 8.60
File Name                       : export
Directory                       : .
File Size                       : 53 kB
File Modification Date/Time     : 2012:09:05 19:17:34+01:00
File Permissions                : rw-rw-r--
Warning                         : Skipped unknown 694 byte header
File Type                       : JPEG
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                 : None
X Resolution                    : 1
Y Resolution                    : 1
Current IPTC Digest             : d41d8cd98f00b204e9800998ecf8427e
Profile CMM Type                : appl
Profile Version                 : 2.0.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2005:07:16 00:51:03
Profile File Signature          : acsp
Primary Platform                : Apple Computer Inc.
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             :
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : appl
Profile ID                      : 1371af1f8b41df65dccecb009a845e7d
Red Matrix Column               : 0.46642 0.2403 0.01408
Green Matrix Column             : 0.35201 0.68643 0.10272
Blue Matrix Column              : 0.14577 0.07361 0.70799
Media White Point               : 0.95251 1 1.08606
Chromatic Adaptation            : 1.04576 0.02182 -0.04945 0.02797 0.99156 -0.01674 -0.00919 0.01505 0.75375
Red Tone Reproduction Curve     : (Binary data 14 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 14 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 14 bytes, use -b option to extract)
Video Card Gamma                : (Binary data 48 bytes, use -b option to extract)
Native Display Info             : (Binary data 56 bytes, use -b option to extract)
Profile Description             : Cinema HD Display
Profile Description ML (it-IT)  : Cinema HD Display
Profile Description ML (fr-FR)  : Cinema HD Display
Profile Description ML (nb-NO)  : Cinema HD Display
Profile Description ML (es-ES)  : Cinema HD Display
Profile Description ML (fi-FI)  : Cinema HD Display
Profile Description ML (pt-PT)  : Cinema HD Display
Profile Description ML (zh-TW)  : Cinema HD Display
Profile Description ML (ja-JP)  : Cinema HD Display
Profile Description ML (nl-NL)  : Cinema HD Display
Profile Description ML (de-DE)  : Cinema HD Display
Profile Description ML (ko-KR)  : Cinema HD Display
Profile Description ML          : Cinema HD Display
Profile Description ML (sv-SE)  : Cinema HD Display
Profile Description ML (da-DK)  : Cinema HD Display
Profile Description ML (zh-CN)  : Cinema HD Display
Make And Model                  : (Binary data 40 bytes, use -b option to extract)
Profile Copyright               : Copyright Apple Computer, Inc., 2005
Image Width                     : 167
Image Height                    : 166
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
Image Size                      : 167x166

again mention of jpeg, slightly different size picture here.

I tried exporting the binary data a third time but this only produces:
Warning: Skipped unknown 694 byte header - export
and 1931 bytes of something non picture related.

How would I export the picture(s) within?

I tried an m4a too, and the fields contain slightly different data but the result is the same.
mp3's, wma's are fine!

Thanks
Andy
Title: Re: Metadata in an m4a/b file
Post by: Phil Harvey on September 05, 2012, 06:08:15 PM
Hi Andy,

Quote from: frankerooney on September 05, 2012, 02:29:36 PM
[...]
Cover Art                       : (Binary data 53301 bytes, use -b option to extract)
[...]

I presume the binary filetype is a jpeg as listed. I tried:
exiftool -b -picture <file> >export.jpg

But the tag is called "CoverArt".  Try this:

exiftool -b -coverart <file> > export.jpg

- Phil
Title: Re: Metadata in an m4a/b file
Post by: frankerooney on September 06, 2012, 04:21:33 PM
Thanks Phil, guess I missed that one - pretty obvious really
Apologies for a daft question; that works fine.
Out of interest is there a list of possible picture related tags?
Thanks
Andy
Title: Re: Metadata in an m4a/b file
Post by: Phil Harvey on September 06, 2012, 06:35:43 PM
Hi Andy,

Sorry, I haven't generated a list of picture tags.

- Phil