Reading WM/Picture in ASF

Started by starkline, May 01, 2013, 01:40:53 PM

Previous topic - Next topic

starkline

Hi- So, some context: I stumbled onto exiftool a while back and fell in love with its features and no nonsense attitude. It gets the job done! So, Phil, if you read this, another thanks from me.

I'm trying to use exiftool from a windows cmd line to extract embedded "cover art" from ASF/WMV video files. I believe that the tag written is "WM/Picture" http://msdn.microsoft.com/en-us/library/windows/desktop/dd757832%28v=vs.85%29.aspx

Below is exif tool's output, but I don't see anything resembling the tag I know is there. I also attached a sample ASF with embedded art as an example. The art is an image with the text "I'm trying to extract this image." If you look at it in a windows box with thumbnail previews enabled, you'll see that image instead of a frame of the actual video which windows usually shows.

Might anyone offer me some help?

ExifTool Version Number         : 9.16
File Name                       : test1.wmv
Directory                       : O:/_temp/
File Size                       : 6.4 MB
File Modification Date/Time     : 2013:05:01 11:29:07-06:00
File Access Date/Time           : 2013:05:01 11:26:29-06:00
File Creation Date/Time         : 2013:05:01 11:26:29-06:00
File Permissions                : rw-rw-rw-
File Type                       : WMV
MIME Type                       : video/x-ms-wmv
Parental Rating                 :
Is VBR                          : False
Title                           :
Author                          :
Copyright                       :
Description                     :
File ID                         : EFD168F2-CA24-41AC-BF49-D0A74A122B98
File Length                     : 6712855
Creation Date                   : 2013:05:01 17:25:55Z
Data Packets                    : 823
Play Duration                   : 13.01 s
Send Duration                   : 12.21 s
Preroll                         : 3000
Flags                           : 2
Min Packet Size                 : 8000
Max Packet Size                 : 8000
Max Bitrate                     : 5.17 Mbps
Audio Codec Name                : Windows Media Audio 9.2
Audio Codec Description         : 128 kbps, 44 kHz, stereo (A/V) 1-pass CBR
Video Codec Name                : Windows Media Video 9
Video Codec Description         : Professional
Audio Codec ID                  : Windows Media Audio V2 V7 V8 V9 / DivX audio (WMA) / Alex AC3 Audio
Audio Channels                  : 2
Audio Sample Rate               : 44100
Stream Type                     : Video
Error Correction Type           : No Error Correction
Time Offset                     : 0 s
Stream Number                   : 2
Image Width                     : 1280
Image Height                    : 720
Image Size                      : 1280x720

Phil Harvey

Thanks for the report and sample.  This one is new to me.  ExifTool 9.29 will add support for extracting this (the tag name will be "Picture").

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

starkline

Thanks!

Just an afterthought, but I'm curious if you are thinking of making this particular tag writable? I think I recall seeing exiftool only supports reading asf tags, but I didn't think it would hurt to ask.

Phil Harvey

Sorry, no writing yet.  It really doesn't help the metadata is so inconsistent.  (There is another place where this Picture is also stored in these files.)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).