ExifTool 抓取相片、影片相關 metadata

2013110414:04
ExifTool

以 perl 寫的軟體


可以讀出 (甚至修改) 各種相片、影片、RAW 檔的 metadata (EXIF) 資料


官網:http://www.sno.phy.queensu.ca/~phil/exiftool/



 讀取 mov 影片的範例
$ Image-ExifTool-9.38/exiftool v90.mov

ExifTool Version Number         : 9.38
File Name                       : v90.mov
Directory                       : .
File Size                       : 3.4 MB
File Modification Date/Time     : 2013:07:19 12:09:21+08:00
File Access Date/Time           : 2013:10:06 08:51:16+08:00
File Inode Change Date/Time     : 2013:07:19 12:19:50+08:00
File Permissions                : rwxr--r--
File Type                       : MOV
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 0.0.0
Compatible Brands               : qt
Movie Data Size                 : 3567293
Movie Header Version            : 0
Create Date                     : 2013:07:19 04:09:19
Modify Date                     : 2013:07:19 04:09:21
Time Scale                      : 600
Duration                        : 1.66 s
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                   : 3
Track Header Version            : 0
Track Create Date               : 2013:07:19 04:09:19
Track Modify Date               : 2013:07:19 04:09:21
Track ID                        : 1
Track Duration                  : 1.66 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 1920
Image Height                    : 1080
Clean Aperture Dimensions       : 1920x1080
Production Aperture Dimensions  : 1920x1080
Encoded Pixels Dimensions       : 1920x1080
Graphics Mode                   : ditherCopy
Op Color                        : 32768 32768 32768
Compressor ID                   : avc1
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : H.264
Bit Depth                       : 24
Video Frame Rate                : 29.97
Camera Identifier               : Back
Frame Readout Time              : 29376 microseconds
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2013:07:19 04:09:19
Media Modify Date               : 2013:07:19 04:09:21
Media Time Scale                : 44100
Media Duration                  : 1.70 s
Media Language Code             : und
Balance                         : 0
Handler Class                   : Data Handler
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Audio Format                    : chan
Model (zho)                     : iPhone 5
Software Version (zho)          : 7.0
Create Date (zho)               : 2013:07:19 12:09:19+08:00
GPS Coordinates (zho)           : 25 deg 1' 55.20" N, 121 deg 33' 33.84" E, 45 m Above Sea Level
Make (zho)                      : Apple
Handler Type                    : Metadata Tags
Make (zho-TW)                   : Apple
Creation Date (zho-TW)          : 2013:07:19 12:09:19+08:00
GPS Coordinates (zho-TW)        : 25 deg 1' 55.20" N, 121 deg 33' 33.84" E, 45 m Above Sea Level
Software (zho-TW)               : 7.0
Model (zho-TW)                  : iPhone 5
Avg Bitrate                     : 17.2 Mbps
Image Size                      : 1920x1080
Rotation                        : 90    *影片拍攝的角度
	


讀 JPG 的範例

$ Image-ExifTool-9.38/exiftool DSC_0677.jpg

ExifTool Version Number         : 9.38
File Name                       : DSC_0677.jpg
Directory                       : .
File Size                       : 4.5 MB
File Modification Date/Time     : 2012:01:29 15:03:02+08:00
File Access Date/Time           : 2013:11:04 14:32:11+08:00
File Inode Change Date/Time     : 2013:11:04 14:32:11+08:00
File Permissions                : rwxr--r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : NIKON CORPORATION
Camera Model Name               : NIKON D700
X Resolution                    : 240
Y Resolution                    : 240
Resolution Unit                 : cm
Software                        : Ver.1.00
Modify Date                     : 2012:01:29 15:02:59
Artist                          : SKH
Copyright                       : SKH
Exposure Time                   : 1/50
F Number                        : 6.3
Exposure Program                : Aperture-priority AE
ISO                             : 1000
Exif Version                    : 0221
Date/Time Original              : 2011:12:27 13:40:21
Create Date                     : 2011:12:27 13:40:21
Shutter Speed Value             : 1/50
Aperture Value                  : 6.3
Exposure Compensation           : 0
Max Aperture Value              : 2.8
Subject Distance                : 1.19 m
Metering Mode                   : Multi-segment
Light Source                    : Unknown
Focal Length                    : 32.0 mm
User Comment                    : SKH
Sub Sec Time Original           : 64
Sub Sec Time Digitized          : 64
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Scene Type                      : Directly photographed
CFA Pattern                     : [Red,Green][Green,Blue]
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Focal Length In 35mm Format     : 32 mm
Scene Capture Type              : Standard
Gain Control                    : High gain up
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Hard
Subject Distance Range          : Unknown
Compression                     : JPEG (old-style)
Thumbnail Offset                : 904
Thumbnail Length                : 20327
Displayed Units X               : cm
Displayed Units Y               : cm
Current IPTC Digest             : d1d71e6132c866351ead66011fcc266d
Application Record Version      : 2
By-line                         : SKH
Copyright Notice                : SKH
Photoshop Thumbnail             : (Binary data 20327 bytes, use -b option to extract)
IPTC Digest                     : d1d71e6132c866351ead66011fcc266d
Profile CMM Type                : Lino
Profile Version                 : 2.1.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 1998:02:09 06:49:00
Profile File Signature          : acsp
Primary Platform                : Microsoft Corporation
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : IEC
Device Model                    : sRGB
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : HP
Profile ID                      : 0
Profile Copyright               : Copyright (c) 1998 Hewlett-Packard Company
Profile Description             : sRGB IEC61966-2.1
Media White Point               : 0.95045 1 1.08905
Media Black Point               : 0 0 0
Red Matrix Column               : 0.43607 0.22249 0.01392
Green Matrix Column             : 0.38515 0.71687 0.09708
Blue Matrix Column              : 0.14307 0.06061 0.7141
Device Mfg Desc                 : IEC http://www.iec.ch
Device Model Desc               : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc               : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant         : 19.6445 20.3718 16.8089
Viewing Cond Surround           : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type    : D50
Luminance                       : 76.03647 80 87.12462
Measurement Observer            : CIE 1931
Measurement Backing             : 0 0 0
Measurement Geometry            : Unknown (0)
Measurement Flare               : 0.999%
Measurement Illuminant          : D65
Technology                      : Cathode Ray Tube Display
Red Tone Reproduction Curve     : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 2060 bytes, use -b option to extract)
XMP Toolkit                     : Adobe XMP Core 4.2-c020 1.124078, Tue Sep 11 2007 23:21:40
Date/Time Digitized             : 2011:12:27 13:40:21.64+08:00
Exif Image Width                : 4256
Exif Image Height               : 2832
Creator Tool                    : Adobe Photoshop Lightroom
Serial Number                   : 2063678
Lens Info                       : 17-35mm f/2.8
Lens                            : 17.0-35.0 mm f/2.8
Image Number                    : 32556
Version                         : 6.1
Process Version                 : 5.7
Color Temperature               : 4100
Tint                            : +3
Exposure                        : 0.00
Shadows                         : 5
Brightness                      : +50
Luminance Smoothing             : 0
Color Noise Reduction           : 25
Chromatic Aberration R          : 0
Chromatic Aberration B          : 0
Vignette Amount                 : 0
Shadow Tint                     : 0
Red Hue                         : 0
Red Saturation                  : 0
Green Hue                       : 0
Green Saturation                : 0
Blue Hue                        : 0
Blue Saturation                 : 0
Fill Light                      : 12
Vibrance                        : 0
Highlight Recovery              : 0
Clarity                         : 0
Defringe                        : 0
Hue Adjustment Red              : 0
Hue Adjustment Orange           : 0
Hue Adjustment Yellow           : 0
Hue Adjustment Green            : 0
Hue Adjustment Aqua             : 0
Hue Adjustment Blue             : 0
Hue Adjustment Purple           : 0
Hue Adjustment Magenta          : 0
Saturation Adjustment Red       : 0
Saturation Adjustment Orange    : 0
Saturation Adjustment Yellow    : 0
Saturation Adjustment Green     : 0
Saturation Adjustment Aqua      : 0
Saturation Adjustment Blue      : 0
Saturation Adjustment Purple    : 0
Saturation Adjustment Magenta   : 0
Luminance Adjustment Red        : 0
Luminance Adjustment Orange     : 0
Luminance Adjustment Yellow     : 0
Luminance Adjustment Green      : 0
Luminance Adjustment Aqua       : 0
Luminance Adjustment Blue       : 0
Luminance Adjustment Purple     : 0
Luminance Adjustment Magenta    : 0
Split Toning Shadow Hue         : 0
Split Toning Shadow Saturation  : 0
Split Toning Highlight Hue      : 0
Split Toning Highlight Saturation: 0
Split Toning Balance            : 0
Parametric Shadows              : 0
Parametric Darks                : 0
Parametric Lights               : 0
Parametric Highlights           : 0
Parametric Shadow Split         : 25
Parametric Midtone Split        : 50
Parametric Highlight Split      : 75
Sharpen Radius                  : +1.0
Sharpen Detail                  : 25
Sharpen Edge Masking            : 0
Post Crop Vignette Amount       : 0
Grain Amount                    : 0
Color Noise Reduction Detail    : 50
Lens Profile Enable             : 0
Lens Manual Distortion Amount   : 0
Perspective Vertical            : 0
Perspective Horizontal          : 0
Perspective Rotate              : 0.0
Perspective Scale               : 100
Convert To Grayscale            : False
Tone Curve Name                 : Medium Contrast
Camera Profile                  : Adobe Standard
Camera Profile Digest           : AC58BA900C3A001F052B43DCCC15508D
Lens Profile Setup              : LensDefaults
Has Settings                    : True
Has Crop                        : False
Already Applied                 : True
Legacy IPTC Digest              : D1D71E6132C866351EACCC095FCB266D
Flash Fired                     : False
Flash Return                    : No return detection
Flash Mode                      : Unknown
Flash Function                  : False
Flash Red Eye Mode              : False
Creator                         : SKH
Rights                          : SKH
Tone Curve                      : 0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255, 255
DCT Encode Version              : 100
APP14 Flags 0                   : [14]
APP14 Flags 1                   : (none)
Color Transform                 : YCbCr
Image Width                     : 4256
Image Height                    : 2832
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
Aperture                        : 6.3
Flash                           : No Flash
Image Size                      : 4256x2832
Scale Factor To 35 mm Equivalent: 1.0
Shutter Speed                   : 1/50
Create Date                     : 2011:12:27 13:40:21.64
Date/Time Original              : 2011:12:27 13:40:21.64
Thumbnail Image                 : (Binary data 20327 bytes, use -b option to extract)
Circle Of Confusion             : 0.030 mm
Depth Of Field                  : 0.53 m (0.98 - 1.51)
Field Of View                   : 58.7 deg
Focal Length                    : 32.0 mm (35 mm equivalent: 32.0 mm)
Hyperfocal Distance             : 5.41 m
Lens ID                         : AF-S Nikkor 17-35mm f/2.8D IF-ED
Light Value                     : 7.6