Mongoosej.Blog.Software.Programing Language.Java.Framework.Utils.Jars.metadata extractor
:::info
版权声明:本文为语雀博主「mongoosej」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://www.yuque.com/mongoosej/blog/metadata-extractor
:::
Offical Website
Offical Github
Offical User Manaual
metadata-extractor lets you access the metadata in digital images and video via a simple API.
Metadata metadata = ImageMetadataReader.readMetadata(file);
for (Directory directory : metadata.getDirectories()) {
for (Tag tag : directory.getTags()) {
System.out.format("[%s] - %s = %s",
directory.getName(), tag.getTagName(), tag.getDescription());
}
if (directory.hasErrors()) {
for (String error : directory.getErrors()) {
System.err.format("ERROR: %s", error);
}
}
}
ImageMetadataReader.readMetadata(file)如果传入的文件类型不支持,或者传入的文件是支持的类型,但是文件有损坏,该方法都会识别为不支持的文件类型,因为该方法识别文件类型是从文件的元数据中获取的。
获取文件的创建时间
每种文件类型,都有其特定的文件格式。对于大多数文件而言,都存在元数据的概念,元数据存储着特定文件格式规范的信息,比如创建日期、大小、所有者等等。
文件的元数据,在Windows平台下,可以通过鼠标-右键-属性-详细信息可以查看。比如jpg文件的元数据如下:
在实际应用中,经常需要获取文件的创建日期元数据。比如,我自己亲自遇到的糟心事:1TB的西数机械硬盘读取不了数据,磁头损坏,只能找专业人士数据恢复。还好数据是恢复了,但是恢复的数据由于文件名和目录结构信息损坏,文件的名称和目录结构失效,所有的图片文件都恢复到了统一文件夹下,而且恢复后图片创建日期(非元数据中的创建日期)变为了恢复数据时的日期,无法再根据文件名和目录名辨别图片,上万张图片,要分类保存,工作量不小。
此时便可以通过图片的创建日期元数据来将大量的图片按照时间段划分,然后再逐个时间段处理,毕竟大多数时候,时间相近的图片大多都是同一时间段拍摄的照片,可以论为一组。
那么获取创建日期元数据就是关键的一个步骤。根据个人理解,获取的方法有三种:
- 通过java.nio.file.attribute.BasicFileAttributes获取。
- 通过java调用windows-cmd-dir指令,从输出流数据中截取。
- 读取文件的元数据,从元数据中获取创建日期。
通过实践,发现上述三个方法中,只有方法3是准确靠谱的。
通过java.nio.file.attribute.BasicFileAttributes获取
通过该方法获取到的文件创建日期是系统平台产生的文件创建日期,而不是文件的元数据中的创建日期。
BasicFileAttributes fileAttri = Files.readAttributes(file.toPath(), BasicFileAttributes.class);
FileTime creatTime = fileAttri.creationTime();
Date createDate = new Date(creatTime.toMillis());
通过调用cmd指令从输出流获取
使用cmd dir指令从输出流中获取
Proccess proccess = Runtime.getRuntime().exec(String.format("cmd /C dir %s /tc", file.getAbsolutePath()));
InputStream is = p.getInputStream();
InputStreamReader istream = new InputStreamReader(is);
BufferedReader reader = new BufferedReader(istream);
从元数据中获取
使用metadata extractor从文件的元数据中获取。
Metadata metadata = ImageMetadataReader.readMetadata(file);
for (Directory directory : metadata.getDirectories()) {
for (Tag tag : directory.getTags()) {
System.out.format("[%s] - %s = %s", directory.getName(), tag.getTagName(), tag.getDescription());
System.out.println();
}
if (directory.hasErrors()) {
for (String error : directory.getErrors()) {
System.err.format("ERROR: %s", error);
}
}
}
元数据集
format:
[Directory.getName()] - [tag.getTagName()] = [tag.getDescription()]
jpg
create time:
- [Exif SubIFD] - Date/Time Original = 2019:01:19 18:39:13
- [IPTC]
- [IPTC] - Date Created
- [IPTC] - Time Created
- [GPS] - GPS Time-Stamp = 02:40:27.000 UTC
reference:
图像元数据(Metadata) ——Exif信息分析
Format: [Directory Name] - TagName = TagDescription[JPEG] - Compression Type = Baseline
[JPEG] - Data Precision = 8 bits
[JPEG] - Image Height = 3456 pixels
[JPEG] - Image Width = 5184 pixels
[JPEG] - Number of Components = 3
[JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/1 vert
[JPEG] - Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
[JPEG] - Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
[Exif IFD0] - Make = Canon
[Exif IFD0] - Model = Canon EOS 600D
[Exif IFD0] - Orientation = Top, left side (Horizontal / normal)
[Exif IFD0] - X Resolution = 72 dots per inch
[Exif IFD0] - Y Resolution = 72 dots per inch
[Exif IFD0] - Resolution Unit = Inch
[Exif IFD0] - Date/Time = 2019:01:19 18:39:13
[Exif IFD0] - Artist =
[Exif IFD0] - YCbCr Positioning = Datum point
[Exif IFD0] - Copyright =
[Exif SubIFD] - Exposure Time = 0.02 sec
[Exif SubIFD] - F-Number = f/4.0
[Exif SubIFD] - Exposure Program = Unknown (0)
[Exif SubIFD] - ISO Speed Ratings = 100
[Exif SubIFD] - Sensitivity Type = Recommended Exposure Index
[Exif SubIFD] - Recommended Exposure Index = 100
[Exif SubIFD] - Exif Version = 2.30
[Exif SubIFD] - Date/Time Original = 2019:01:19 18:39:13
[Exif SubIFD] - Date/Time Digitized = 2019:01:19 18:39:13
[Exif SubIFD] - Components Configuration = YCbCr
[Exif SubIFD] - Shutter Speed Value = 1/49 sec
[Exif SubIFD] - Aperture Value = f/4.0
[Exif SubIFD] - Exposure Bias Value = 0 EV
[Exif SubIFD] - Metering Mode = Multi-segment
[Exif SubIFD] - Flash = Flash did not fire
[Exif SubIFD] - Focal Length = 18 mm
[Exif SubIFD] - User Comment =
[Exif SubIFD] - Sub-Sec Time = 26
[Exif SubIFD] - Sub-Sec Time Original = 26
[Exif SubIFD] - Sub-Sec Time Digitized = 26
[Exif SubIFD] - FlashPix Version = 1.00
[Exif SubIFD] - Color Space = sRGB
[Exif SubIFD] - Exif Image Width = 5184 pixels
[Exif SubIFD] - Exif Image Height = 3456 pixels
[Exif SubIFD] - Focal Plane X Resolution = 181/1036800 inches
[Exif SubIFD] - Focal Plane Y Resolution = 119/691200 inches
[Exif SubIFD] - Focal Plane Resolution Unit = Inches
[Exif SubIFD] - Custom Rendered = Normal process
[Exif SubIFD] - Exposure Mode = Auto exposure
[Exif SubIFD] - White Balance Mode = Auto white balance
[Exif SubIFD] - Scene Capture Type = Standard
[Exif SubIFD] - Camera Owner Name =
[Exif SubIFD] - Body Serial Number = 424078010716
[Exif SubIFD] - Lens Specification = 18-55mm
[Exif SubIFD] - Lens Model = EF-S18-55mm f/3.5-5.6 IS II
[Exif SubIFD] - Lens Serial Number = 00004bb6ff
[Canon Makernote] - Unknown tag (0xc100) = 98
[Canon Makernote] - Macro Mode = Normal
[Canon Makernote] - Self Timer Delay = Self timer not used
[Canon Makernote] - Quality = Fine
[Canon Makernote] - Flash Mode = No flash fired
[Canon Makernote] - Continuous Drive Mode = Single shot
[Canon Makernote] - Unknown Camera Setting 2 = 0
[Canon Makernote] - Focus Mode = AI Focus
[Canon Makernote] - Unknown Camera Setting 3 = 0
[Canon Makernote] - Record Mode = JPEG
[Canon Makernote] - Image Size = Large
[Canon Makernote] - Easy Shooting Mode = Unknown (15)
[Canon Makernote] - Digital Zoom = No digital zoom
[Canon Makernote] - Contrast = Normal
[Canon Makernote] - Saturation = Normal
[Canon Makernote] - Sharpness = Unknown (32767)
[Canon Makernote] - Iso = Auto
[Canon Makernote] - Metering Mode = Evaluative
[Canon Makernote] - Focus Type = Unknown (2)
[Canon Makernote] - AF Point Selected = Unknown (0)
[Canon Makernote] - Exposure Mode = Easy shooting
[Canon Makernote] - Unknown Camera Setting 7 = 65535
[Canon Makernote] - Lens Type = Canon EF-S 18-55mm f/3.5-5.6 IS II
[Canon Makernote] - Long Focal Length = 55 1
[Canon Makernote] - Short Focal Length = 18 1
[Canon Makernote] - Focal Units per mm = 1
[Canon Makernote] - Max Aperture = f/3.6
[Canon Makernote] - Min Aperture = f/22.6
[Canon Makernote] - Flash Activity = Flash did not fire
[Canon Makernote] - Flash Details = Unknown (0)
[Canon Makernote] - Focus Continuous = Single
[Canon Makernote] - AE Setting = Normal AE
[Canon Makernote] - Focus Mode = Unknown (65535)
[Canon Makernote] - Display Aperture = 65535
[Canon Makernote] - Zoom Source Width = 65535
[Canon Makernote] - Zoom Target Width = 0
[Canon Makernote] - Unknown tag (0xc124) = 0
[Canon Makernote] - Spot Metering Mode = Center
[Canon Makernote] - Photo Effect = Off
[Canon Makernote] - Manual Flash Output = Unknown (65535)
[Canon Makernote] - Unknown tag (0xc128) = 65535
[Canon Makernote] - Color Tone = 0
[Canon Makernote] - Unknown tag (0xc12a) = 0
[Canon Makernote] - Unknown tag (0xc12b) = 32767
[Canon Makernote] - Unknown tag (0xc12c) = 65535
[Canon Makernote] - SRAW Quality = Unknown (65535)
[Canon Makernote] - Unknown tag (0xc12e) = 65535
[Canon Makernote] - Unknown tag (0xc12f) = 0
[Canon Makernote] - Unknown tag (0xc130) = 65535
[Canon Makernote] - Unknown tag (0xc200) = 0
[Canon Makernote] - Unknown tag (0xc201) = 18
[Canon Makernote] - Unknown tag (0xc202) = 8902
[Canon Makernote] - Unknown tag (0xc203) = 19690
[Canon Makernote] - Unknown tag (0x0003) = 0 0 0 0
[Canon Makernote] - Unknown tag (0xc400) = 68
[Canon Makernote] - Auto ISO = 0
[Canon Makernote] - Base ISO = 160
[Canon Makernote] - Measured EV = 144
[Canon Makernote] - Target Aperture = 128
[Canon Makernote] - Target Exposure Time = 180
[Canon Makernote] - Exposure Compensation = 0
[Canon Makernote] - White Balance = 0
[Canon Makernote] - Slow Shutter = 3
[Canon Makernote] - Sequence Number = 0
[Canon Makernote] - Optical Zoom Code = 8
[Canon Makernote] - Unknown tag (0xc40b) = 8
[Canon Makernote] - Camera Temperature = 161
[Canon Makernote] - Flash Guide Number = 0
[Canon Makernote] - AF Points in Focus = 0
[Canon Makernote] - Flash Exposure Compensation = 0
[Canon Makernote] - Auto Exposure Bracketing = 0
[Canon Makernote] - AEB Bracket Value = 0
[Canon Makernote] - Control Mode = 1
[Canon Makernote] - Focus Distance Upper = 0
[Canon Makernote] - Focus Distance Lower = 0
[Canon Makernote] - F Number = 128
[Canon Makernote] - Exposure Time = 176
[Canon Makernote] - Measured EV 2 = 126
[Canon Makernote] - Bulb Duration = 0
[Canon Makernote] - Unknown tag (0xc419) = 0
[Canon Makernote] - Camera Type = 248
[Canon Makernote] - Auto Rotate = 65535
[Canon Makernote] - ND Filter = 65535
[Canon Makernote] - Self Timer 2 = 65535
[Canon Makernote] - Unknown tag (0xc41e) = 65535
[Canon Makernote] - Unknown tag (0xc41f) = 0
[Canon Makernote] - Unknown tag (0xc420) = 0
[Canon Makernote] - Flash Output = 0
[Canon Makernote] - Image Type = Canon EOS 600D
[Canon Makernote] - Firmware Version = Firmware Version 1.0.2
[Canon Makernote] - Owner Name =
[Canon Makernote] - Camera Info Array = [1536 values]
[Canon Makernote] - Canon Model ID = 2147484294
[Canon Makernote] - Thumbnail Image Valid Area = 0 159 7 112
[Canon Makernote] - Unknown tag (0x0019) = 1
[Canon Makernote] - AF Info Array 2 = [48 values]
[Canon Makernote] - Original Decision Data Offset = 0
[Canon Makernote] - File Info Array = [28 values]
[Canon Makernote] - Lens Model = EF-S18-55mm f/3.5-5.6 IS II
[Canon Makernote] - Serial Info Array = ZC4470620
[Canon Makernote] - Dust Removal Data = [1024 values]
[Canon Makernote] - Crop Info = 0 0 0 0
[Canon Makernote] - Custom Functions Array 2 = [50 values]
[Canon Makernote] - Aspect Information Array = 0 5184 3456 0 0
[Canon Makernote] - Processing Information Array = 28 0 3 0 0 0 0 0 65535 5200 135 0 0 0
[Canon Makernote] - Measured Color Array = 12 433 1024 1024 757 0
[Canon Makernote] - Color Space = 1
[Canon Makernote] - VRD Offset = 0
[Canon Makernote] - Sensor Information Array = [17 values]
[Canon Makernote] - Color Data Array 1 = [1273 values]
[Canon Makernote] - Black Level = 135 135 135
[Canon Makernote] - Unknown tag (0x4009) = 0 0 0
[Canon Makernote] - Custom Picture Style File Name =
[Canon Makernote] - Unknown tag (0x4011) = [252 values]
[Canon Makernote] - Unknown tag (0x4012) =
[Canon Makernote] - Vignetting Correction Array 1 = [116 values]
[Canon Makernote] - Vignetting Correction Array 2 = 24 0 1 0 1 1
[Canon Makernote] - Unknown tag (0x4017) = 198659 1342177307
[Canon Makernote] - Lighting Optimizer Array = 12 0 0
[Canon Makernote] - Lens Info Array = [30 values]
[Canon Makernote] - Ambiance Info Array = 20 0 0 0 0
[Interoperability] - Interoperability Index = Recommended Exif Interoperability Rules (ExifR98)
[Interoperability] - Interoperability Version = 1.00
[Exif Thumbnail] - Compression = JPEG (old-style)
[Exif Thumbnail] - X Resolution = 72 dots per inch
[Exif Thumbnail] - Y Resolution = 72 dots per inch
[Exif Thumbnail] - Resolution Unit = Inch
[Exif Thumbnail] - Thumbnail Offset = 8916 bytes
[Exif Thumbnail] - Thumbnail Length = 18528 bytes
[XMP] - XMP Value Count = 1
[Huffman] - Number of Tables = 4 Huffman tables
[File Type] - Detected File Type Name = JPEG
[File Type] - Detected File Type Long Name = Joint Photographic Experts Group
[File Type] - Detected MIME Type = image/jpeg
[File Type] - Expected File Name Extension = jpg
[File] - File Name = IMG_2639.JPG
[File] - File Size = 7000779 bytes
[File] - File Modified Date = 星期五 七月 01 06:26:25 +08:00 2022
[JPEG] - Compression Type = Baseline
[JPEG] - Data Precision = 8 bits
[JPEG] - Image Height = 2448 pixels
[JPEG] - Image Width = 3264 pixels
[JPEG] - Number of Components = 3
[JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/2 vert
[JPEG] - Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
[JPEG] - Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
[Exif IFD0] - Make = Apple
[Exif IFD0] - Model = iPhone 6
[Exif IFD0] - Orientation = Top, left side (Horizontal / normal)
[Exif IFD0] - X Resolution = 72 dots per inch
[Exif IFD0] - Y Resolution = 72 dots per inch
[Exif IFD0] - Resolution Unit = Inch
[Exif IFD0] - Software = 9.3
[Exif IFD0] - Date/Time = 2016:03:29 10:40:27
[Exif IFD0] - YCbCr Positioning = Center of pixel array
[Exif SubIFD] - Exposure Time = 1/33 sec
[Exif SubIFD] - F-Number = f/2.2
[Exif SubIFD] - Exposure Program = Program normal
[Exif SubIFD] - ISO Speed Ratings = 40
[Exif SubIFD] - Exif Version = 2.21
[Exif SubIFD] - Date/Time Original = 2016:03:29 10:40:27
[Exif SubIFD] - Date/Time Digitized = 2016:03:29 10:40:27
[Exif SubIFD] - Components Configuration = YCbCr
[Exif SubIFD] - Shutter Speed Value = 1/33 sec
[Exif SubIFD] - Aperture Value = f/2.2
[Exif SubIFD] - Brightness Value = 4.228
[Exif SubIFD] - Exposure Bias Value = 0 EV
[Exif SubIFD] - Metering Mode = Spot
[Exif SubIFD] - Flash = Flash did not fire, auto
[Exif SubIFD] - Focal Length = 4.2 mm
[Exif SubIFD] - Subject Location = 2459 1625 610 612
[Exif SubIFD] - Sub-Sec Time Original = 269
[Exif SubIFD] - Sub-Sec Time Digitized = 269
[Exif SubIFD] - FlashPix Version = 1.00
[Exif SubIFD] - Color Space = sRGB
[Exif SubIFD] - Exif Image Width = 3264 pixels
[Exif SubIFD] - Exif Image Height = 2448 pixels
[Exif SubIFD] - Sensing Method = One-chip color area sensor
[Exif SubIFD] - Scene Type = Directly photographed image
[Exif SubIFD] - Exposure Mode = Auto exposure
[Exif SubIFD] - White Balance Mode = Auto white balance
[Exif SubIFD] - Focal Length 35 = 29 mm
[Exif SubIFD] - Scene Capture Type = Standard
[Exif SubIFD] - Lens Specification = 4.15mm f/2.2
[Exif SubIFD] - Lens Make = Apple
[Exif SubIFD] - Lens Model = iPhone 6 back camera 4.15mm f/2.2
[Apple Makernote] - Unknown tag (0x0001) = 4
[Apple Makernote] - Unknown tag (0x0002) = [558 values]
[Apple Makernote] - Run Time = [104 values]
[Apple Makernote] - Unknown tag (0x0004) = 1
[Apple Makernote] - Unknown tag (0x0005) = 190
[Apple Makernote] - Unknown tag (0x0006) = 180
[Apple Makernote] - Unknown tag (0x0007) = 1
[Apple Makernote] - Acceleration Vector = 1.00g right, 0.02g up, 0.00g forward
[Apple Makernote] - Unknown tag (0x0009) = 275
[Apple Makernote] - Unknown tag (0x000e) = 12
[Apple Makernote] - Unknown tag (0x0014) = 4
[Apple Run Time] - Flags = Valid
[Apple Run Time] - Epoch = 0
[Apple Run Time] - Scale = 1000000000
[Apple Run Time] - Value = 2289 seconds
[GPS] - GPS Latitude Ref = N
[GPS] - GPS Latitude = 32° 0' 19.06"
[GPS] - GPS Longitude Ref = E
[GPS] - GPS Longitude = 118° 44' 44.34"
[GPS] - GPS Altitude Ref = Below sea level
[GPS] - GPS Altitude = 17.56 metres
[GPS] - GPS Time-Stamp = 02:40:27.000 UTC
[GPS] - GPS Speed Ref = km/h
[GPS] - GPS Speed = 1.48 km/h
[GPS] - GPS Img Direction Ref = True direction
[GPS] - GPS Img Direction = 5.24 degrees
[GPS] - GPS Dest Bearing Ref = True direction
[GPS] - GPS Dest Bearing = 5.24 degrees
[GPS] - GPS Date Stamp = 2016:03:29
[GPS] - GPS Horizontal Positioning Error = 50 metres
[Exif Thumbnail] - Compression = JPEG (old-style)
[Exif Thumbnail] - X Resolution = 72 dots per inch
[Exif Thumbnail] - Y Resolution = 72 dots per inch
[Exif Thumbnail] - Resolution Unit = Inch
[Exif Thumbnail] - Thumbnail Offset = 2006 bytes
[Exif Thumbnail] - Thumbnail Length = 12685 bytes
[Huffman] - Number of Tables = 4 Huffman tables
[File Type] - Detected File Type Name = JPEG
[File Type] - Detected File Type Long Name = Joint Photographic Experts Group
[File Type] - Detected MIME Type = image/jpeg
[File Type] - Expected File Name Extension = jpg
[File] - File Name = IMG_3460.JPG
[File] - File Size = 2276188 bytes
[File] - File Modified Date = 星期四 六月 30 09:19:13 +08:00 2022
F:\WorkSpace\EclipseCoconutProjects\kimojar-soft\kimojar-tool-file\src\test\resources\source\win10.desktop..jpg
Format: [Directory Name] - TagName = TagDescription[JPEG] - Compression Type = Baseline
[JPEG] - Data Precision = 8 bits
[JPEG] - Image Height = 1080 pixels
[JPEG] - Image Width = 1920 pixels
[JPEG] - Number of Components = 3
[JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/2 vert
[JPEG] - Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
[JPEG] - Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
[JFIF] - Version = 1.1
[JFIF] - Resolution Units = inch
[JFIF] - X Resolution = 96 dots
[JFIF] - Y Resolution = 96 dots
[JFIF] - Thumbnail Width Pixels = 0
[JFIF] - Thumbnail Height Pixels = 0
[Huffman] - Number of Tables = 4 Huffman tables
[File Type] - Detected File Type Name = JPEG
[File Type] - Detected File Type Long Name = Joint Photographic Experts Group
[File Type] - Detected MIME Type = image/jpeg
[File Type] - Expected File Name Extension = jpg
[File] - File Name = win10.desktop..jpg
[File] - File Size = 571683 bytes
[File] - File Modified Date = 星期五 七月 01 06:14:06 +08:00 2022
png
create time:
- [File] - File Modified Date = 星期六 八月 23 23:29:13 +08:00 2014 ``` [PNG-IHDR] - Image Width = 588 [PNG-IHDR] - Image Height = 512 [PNG-IHDR] - Bits Per Sample = 8 [PNG-IHDR] - Color Type = True Color [PNG-IHDR] - Compression Type = Deflate [PNG-IHDR] - Filter Method = Adaptive [PNG-IHDR] - Interlace Method = No Interlace
[PNG-bKGD] - Background Color = R 255, G 255, B 255
[PNG-pHYs] - Pixels Per Unit X = 3780 [PNG-pHYs] - Pixels Per Unit Y = 3780 [PNG-pHYs] - Unit Specifier = Metres
[File Type] - Detected File Type Name = PNG [File Type] - Detected File Type Long Name = Portable Network Graphics [File Type] - Detected MIME Type = image/png [File Type] - Expected File Name Extension = png
[File] - File Name = 19.png [File] - File Size = 386068 bytes [File] - File Modified Date = 星期六 八月 23 23:29:13 +08:00 2014
<a name="BfxB9"></a>
##### mp4
create time:
- [MP4] - Creation Time = Wed Apr 20 08:59:27 CST 2011
[MP4] - Major Brand = MPEG-4 (.MP4) for SonyPSP [MP4] - Minor Version = 19595353 [MP4] - Compatible Brands = [MPEG-4 (.MP4) for SonyPSP, MP4 v2 [ISO 14496-14], MP4 Base Media v1 [IS0 14496-12:2003]] [MP4] - Creation Time = Wed Apr 20 08:59:27 CST 2011 [MP4] - Modification Time = Wed Apr 20 08:59:36 CST 2011 [MP4] - Duration = 945945 [MP4] - Media Time Scale = 90000 [MP4] - Duration in Seconds = 00:00:11 [MP4] - Transformation Matrix = 65536 0 0 0 65536 0 0 0 1073741824 [MP4] - Preferred Rate = 1 [MP4] - Preferred Volume = 1 [MP4] - Next Track ID = 3 [MP4] - Rotation = 0
[UUID] - UUID = 50524f46-21d2-4fce-bb88-695cfac9c740 [UUID] - Data = [124 values]
[MP4 Video] - Creation Time = 星期三 四月 20 08:59:27 +08:00 2011 [MP4 Video] - Modification Time = 星期三 四月 20 08:59:36 +08:00 2011 [MP4 Video] - ISO 639-2 Language Code = und [MP4 Video] - Opcolor = 0 0 0 [MP4 Video] - Graphics Mode = Copy [MP4 Video] - Compression Type = MPEG-4 [MP4 Video] - Width = 1280 pixels [MP4 Video] - Height = 720 pixels [MP4 Video] - Depth = 24-bit color [MP4 Video] - Horizontal Resolution = 72 [MP4 Video] - Vertical Resolution = 72 [MP4 Video] - Frame Rate = 29.97
[UUID] - UUID = 55534d54-21d2-4fce-bb88-695cfac9c740 [UUID] - Data = [28 values]
[MP4 Sound] - Creation Time = 星期三 四月 20 08:59:27 +08:00 2011 [MP4 Sound] - Modification Time = 星期三 四月 20 08:59:36 +08:00 2011 [MP4 Sound] - ISO 639-2 Language Code = und [MP4 Sound] - Balance = 0 [MP4 Sound] - Format = MPEG-4, Advanced Audio Coding (AAC) [MP4 Sound] - Number of Channels = 2 [MP4 Sound] - Sample Size = 16 [MP4 Sound] - Sample Rate = 24000
[UUID] - UUID = 55534d54-21d2-4fce-bb88-695cfac9c740 [UUID] - Data = [28 values]
[File Type] - Detected File Type Name = MP4 [File Type] - Detected File Type Long Name = MPEG-4 Part 14 [File Type] - Detected MIME Type = video/mp4 [File Type] - Expected File Name Extension = mp4
[File] - File Name = 0003927.mp4 [File] - File Size = 11108971 bytes [File] - File Modified Date = 星期日 六月 26 11:37:35 +08:00 2022
<a name="D9pT3"></a>
##### mov
create time:
- [QuickTime] - Creation Time = 星期四 七月 22 13:05:33 +08:00 2021
reference<br />[QuickTime File Format Specification](https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFPreface/qtffPreface.html#//apple_ref/doc/uid/TP40000939-CH202-TPXREF101)
[QuickTime] - Major Brand = Apple QuickTime (.MOV/QT) [QuickTime] - Minor Version = 0 [QuickTime] - Compatible Brands = [Apple QuickTime (.MOV/QT)] [QuickTime] - Creation Time = 星期四 七月 22 13:05:33 +08:00 2021 [QuickTime] - Modification Time = 星期四 七月 22 13:05:54 +08:00 2021 [QuickTime] - Duration = 12360 [QuickTime] - Media Time Scale = 600 [QuickTime] - Duration in Seconds = 00:00:21 [QuickTime] - Preferred Rate = 1 [QuickTime] - Preferred Volume = 1 [QuickTime] - Preview Time = 0 [QuickTime] - Preview Duration = 0 [QuickTime] - Poster Time = 0 [QuickTime] - Selection Time = 0 [QuickTime] - Selection Duration = 0 [QuickTime] - Current Time = 0 [QuickTime] - Next Track ID = 6 [QuickTime] - Rotation = -90
[QuickTime Video] - Creation Time = 星期四 七月 22 13:05:33 +08:00 2021 [QuickTime Video] - Modification Time = 星期四 七月 22 13:05:54 +08:00 2021 [QuickTime Video] - Opcolor = 32768 32768 32768 [QuickTime Video] - Graphics Mode = Dither copy [QuickTime Video] - Vendor = Unknown [QuickTime Video] - Compression Type = H.264 [QuickTime Video] - Temporal Quality = 512 [QuickTime Video] - Spatial Quality = 512 [QuickTime Video] - Width = 1920 pixels [QuickTime Video] - Height = 1080 pixels [QuickTime Video] - Compressor Name = H.264 [QuickTime Video] - Depth = 24-bit color [QuickTime Video] - Color Table = None [QuickTime Video] - Horizontal Resolution = 72 [QuickTime Video] - Vertical Resolution = 72 [QuickTime Video] - Frame Rate = 30 [QuickTime Sound] - Creation Time = 星期四 七月 22 13:05:33 +08:00 2021 [QuickTime Sound] - Modification Time = 星期四 七月 22 13:05:54 +08:00 2021 [QuickTime Sound] - Balance = 0 [QuickTime Sound] - Format = MPEG-4, Advanced Audio Coding (AAC) [QuickTime Sound] - Number of Channels = 1 [QuickTime Sound] - Sample Size = 16 [QuickTime Sound] - Sample Rate = 44100
[QuickTime Metadata] - ISO 6709 = +30.5659+104.0466+477.610/ [QuickTime Metadata] - Make = Apple [QuickTime Metadata] - Model = iPhone 7 [QuickTime Metadata] - Software = 14.6 [QuickTime Metadata] - Creation Date = 2021-07-22T13:05:32+0800
[File Type] - Detected File Type Name = MOV [File Type] - Detected File Type Long Name = QuickTime Movie [File Type] - Detected MIME Type = video/quicktime [File Type] - Expected File Name Extension = mov
[File] - File Name = IMG_0318.MOV [File] - File Size = 40537648 bytes [File] - File Modified Date = 星期五 七月 23 09:19:45 +08:00 2021 ```