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.

image.png

  1. Metadata metadata = ImageMetadataReader.readMetadata(file);
  2. for (Directory directory : metadata.getDirectories()) {
  3. for (Tag tag : directory.getTags()) {
  4. System.out.format("[%s] - %s = %s",
  5. directory.getName(), tag.getTagName(), tag.getDescription());
  6. }
  7. if (directory.hasErrors()) {
  8. for (String error : directory.getErrors()) {
  9. System.err.format("ERROR: %s", error);
  10. }
  11. }
  12. }

ImageMetadataReader.readMetadata(file)如果传入的文件类型不支持,或者传入的文件是支持的类型,但是文件有损坏,该方法都会识别为不支持的文件类型,因为该方法识别文件类型是从文件的元数据中获取的。

获取文件的创建时间

每种文件类型,都有其特定的文件格式。对于大多数文件而言,都存在元数据的概念,元数据存储着特定文件格式规范的信息,比如创建日期、大小、所有者等等。
文件的元数据,在Windows平台下,可以通过鼠标-右键-属性-详细信息可以查看。比如jpg文件的元数据如下:
image.png
在实际应用中,经常需要获取文件的创建日期元数据。比如,我自己亲自遇到的糟心事:1TB的西数机械硬盘读取不了数据,磁头损坏,只能找专业人士数据恢复。还好数据是恢复了,但是恢复的数据由于文件名和目录结构信息损坏,文件的名称和目录结构失效,所有的图片文件都恢复到了统一文件夹下,而且恢复后图片创建日期(非元数据中的创建日期)变为了恢复数据时的日期,无法再根据文件名和目录名辨别图片,上万张图片,要分类保存,工作量不小。
此时便可以通过图片的创建日期元数据来将大量的图片按照时间段划分,然后再逐个时间段处理,毕竟大多数时候,时间相近的图片大多都是同一时间段拍摄的照片,可以论为一组。
那么获取创建日期元数据就是关键的一个步骤。根据个人理解,获取的方法有三种:

  1. 通过java.nio.file.attribute.BasicFileAttributes获取。
  2. 通过java调用windows-cmd-dir指令,从输出流数据中截取。
  3. 读取文件的元数据,从元数据中获取创建日期。

通过实践,发现上述三个方法中,只有方法3是准确靠谱的。

通过java.nio.file.attribute.BasicFileAttributes获取

通过该方法获取到的文件创建日期是系统平台产生的文件创建日期,而不是文件的元数据中的创建日期。

  1. BasicFileAttributes fileAttri = Files.readAttributes(file.toPath(), BasicFileAttributes.class);
  2. FileTime creatTime = fileAttri.creationTime();
  3. Date createDate = new Date(creatTime.toMillis());

通过调用cmd指令从输出流获取

使用cmd dir指令从输出流中获取

  1. Proccess proccess = Runtime.getRuntime().exec(String.format("cmd /C dir %s /tc", file.getAbsolutePath()));
  2. InputStream is = p.getInputStream();
  3. InputStreamReader istream = new InputStreamReader(is);
  4. BufferedReader reader = new BufferedReader(istream);

从元数据中获取

使用metadata extractor从文件的元数据中获取。

  1. Metadata metadata = ImageMetadataReader.readMetadata(file);
  2. for (Directory directory : metadata.getDirectories()) {
  3. for (Tag tag : directory.getTags()) {
  4. System.out.format("[%s] - %s = %s", directory.getName(), tag.getTagName(), tag.getDescription());
  5. System.out.println();
  6. }
  7. if (directory.hasErrors()) {
  8. for (String error : directory.getErrors()) {
  9. System.err.format("ERROR: %s", error);
  10. }
  11. }
  12. }

元数据集

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信息分析

  1. Format: [Directory Name] - TagName = TagDescription[JPEG] - Compression Type = Baseline
  2. [JPEG] - Data Precision = 8 bits
  3. [JPEG] - Image Height = 3456 pixels
  4. [JPEG] - Image Width = 5184 pixels
  5. [JPEG] - Number of Components = 3
  6. [JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/1 vert
  7. [JPEG] - Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
  8. [JPEG] - Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
  9. [Exif IFD0] - Make = Canon
  10. [Exif IFD0] - Model = Canon EOS 600D
  11. [Exif IFD0] - Orientation = Top, left side (Horizontal / normal)
  12. [Exif IFD0] - X Resolution = 72 dots per inch
  13. [Exif IFD0] - Y Resolution = 72 dots per inch
  14. [Exif IFD0] - Resolution Unit = Inch
  15. [Exif IFD0] - Date/Time = 2019:01:19 18:39:13
  16. [Exif IFD0] - Artist =
  17. [Exif IFD0] - YCbCr Positioning = Datum point
  18. [Exif IFD0] - Copyright =
  19. [Exif SubIFD] - Exposure Time = 0.02 sec
  20. [Exif SubIFD] - F-Number = f/4.0
  21. [Exif SubIFD] - Exposure Program = Unknown (0)
  22. [Exif SubIFD] - ISO Speed Ratings = 100
  23. [Exif SubIFD] - Sensitivity Type = Recommended Exposure Index
  24. [Exif SubIFD] - Recommended Exposure Index = 100
  25. [Exif SubIFD] - Exif Version = 2.30
  26. [Exif SubIFD] - Date/Time Original = 2019:01:19 18:39:13
  27. [Exif SubIFD] - Date/Time Digitized = 2019:01:19 18:39:13
  28. [Exif SubIFD] - Components Configuration = YCbCr
  29. [Exif SubIFD] - Shutter Speed Value = 1/49 sec
  30. [Exif SubIFD] - Aperture Value = f/4.0
  31. [Exif SubIFD] - Exposure Bias Value = 0 EV
  32. [Exif SubIFD] - Metering Mode = Multi-segment
  33. [Exif SubIFD] - Flash = Flash did not fire
  34. [Exif SubIFD] - Focal Length = 18 mm
  35. [Exif SubIFD] - User Comment =
  36. [Exif SubIFD] - Sub-Sec Time = 26
  37. [Exif SubIFD] - Sub-Sec Time Original = 26
  38. [Exif SubIFD] - Sub-Sec Time Digitized = 26
  39. [Exif SubIFD] - FlashPix Version = 1.00
  40. [Exif SubIFD] - Color Space = sRGB
  41. [Exif SubIFD] - Exif Image Width = 5184 pixels
  42. [Exif SubIFD] - Exif Image Height = 3456 pixels
  43. [Exif SubIFD] - Focal Plane X Resolution = 181/1036800 inches
  44. [Exif SubIFD] - Focal Plane Y Resolution = 119/691200 inches
  45. [Exif SubIFD] - Focal Plane Resolution Unit = Inches
  46. [Exif SubIFD] - Custom Rendered = Normal process
  47. [Exif SubIFD] - Exposure Mode = Auto exposure
  48. [Exif SubIFD] - White Balance Mode = Auto white balance
  49. [Exif SubIFD] - Scene Capture Type = Standard
  50. [Exif SubIFD] - Camera Owner Name =
  51. [Exif SubIFD] - Body Serial Number = 424078010716
  52. [Exif SubIFD] - Lens Specification = 18-55mm
  53. [Exif SubIFD] - Lens Model = EF-S18-55mm f/3.5-5.6 IS II
  54. [Exif SubIFD] - Lens Serial Number = 00004bb6ff
  55. [Canon Makernote] - Unknown tag (0xc100) = 98
  56. [Canon Makernote] - Macro Mode = Normal
  57. [Canon Makernote] - Self Timer Delay = Self timer not used
  58. [Canon Makernote] - Quality = Fine
  59. [Canon Makernote] - Flash Mode = No flash fired
  60. [Canon Makernote] - Continuous Drive Mode = Single shot
  61. [Canon Makernote] - Unknown Camera Setting 2 = 0
  62. [Canon Makernote] - Focus Mode = AI Focus
  63. [Canon Makernote] - Unknown Camera Setting 3 = 0
  64. [Canon Makernote] - Record Mode = JPEG
  65. [Canon Makernote] - Image Size = Large
  66. [Canon Makernote] - Easy Shooting Mode = Unknown (15)
  67. [Canon Makernote] - Digital Zoom = No digital zoom
  68. [Canon Makernote] - Contrast = Normal
  69. [Canon Makernote] - Saturation = Normal
  70. [Canon Makernote] - Sharpness = Unknown (32767)
  71. [Canon Makernote] - Iso = Auto
  72. [Canon Makernote] - Metering Mode = Evaluative
  73. [Canon Makernote] - Focus Type = Unknown (2)
  74. [Canon Makernote] - AF Point Selected = Unknown (0)
  75. [Canon Makernote] - Exposure Mode = Easy shooting
  76. [Canon Makernote] - Unknown Camera Setting 7 = 65535
  77. [Canon Makernote] - Lens Type = Canon EF-S 18-55mm f/3.5-5.6 IS II
  78. [Canon Makernote] - Long Focal Length = 55 1
  79. [Canon Makernote] - Short Focal Length = 18 1
  80. [Canon Makernote] - Focal Units per mm = 1
  81. [Canon Makernote] - Max Aperture = f/3.6
  82. [Canon Makernote] - Min Aperture = f/22.6
  83. [Canon Makernote] - Flash Activity = Flash did not fire
  84. [Canon Makernote] - Flash Details = Unknown (0)
  85. [Canon Makernote] - Focus Continuous = Single
  86. [Canon Makernote] - AE Setting = Normal AE
  87. [Canon Makernote] - Focus Mode = Unknown (65535)
  88. [Canon Makernote] - Display Aperture = 65535
  89. [Canon Makernote] - Zoom Source Width = 65535
  90. [Canon Makernote] - Zoom Target Width = 0
  91. [Canon Makernote] - Unknown tag (0xc124) = 0
  92. [Canon Makernote] - Spot Metering Mode = Center
  93. [Canon Makernote] - Photo Effect = Off
  94. [Canon Makernote] - Manual Flash Output = Unknown (65535)
  95. [Canon Makernote] - Unknown tag (0xc128) = 65535
  96. [Canon Makernote] - Color Tone = 0
  97. [Canon Makernote] - Unknown tag (0xc12a) = 0
  98. [Canon Makernote] - Unknown tag (0xc12b) = 32767
  99. [Canon Makernote] - Unknown tag (0xc12c) = 65535
  100. [Canon Makernote] - SRAW Quality = Unknown (65535)
  101. [Canon Makernote] - Unknown tag (0xc12e) = 65535
  102. [Canon Makernote] - Unknown tag (0xc12f) = 0
  103. [Canon Makernote] - Unknown tag (0xc130) = 65535
  104. [Canon Makernote] - Unknown tag (0xc200) = 0
  105. [Canon Makernote] - Unknown tag (0xc201) = 18
  106. [Canon Makernote] - Unknown tag (0xc202) = 8902
  107. [Canon Makernote] - Unknown tag (0xc203) = 19690
  108. [Canon Makernote] - Unknown tag (0x0003) = 0 0 0 0
  109. [Canon Makernote] - Unknown tag (0xc400) = 68
  110. [Canon Makernote] - Auto ISO = 0
  111. [Canon Makernote] - Base ISO = 160
  112. [Canon Makernote] - Measured EV = 144
  113. [Canon Makernote] - Target Aperture = 128
  114. [Canon Makernote] - Target Exposure Time = 180
  115. [Canon Makernote] - Exposure Compensation = 0
  116. [Canon Makernote] - White Balance = 0
  117. [Canon Makernote] - Slow Shutter = 3
  118. [Canon Makernote] - Sequence Number = 0
  119. [Canon Makernote] - Optical Zoom Code = 8
  120. [Canon Makernote] - Unknown tag (0xc40b) = 8
  121. [Canon Makernote] - Camera Temperature = 161
  122. [Canon Makernote] - Flash Guide Number = 0
  123. [Canon Makernote] - AF Points in Focus = 0
  124. [Canon Makernote] - Flash Exposure Compensation = 0
  125. [Canon Makernote] - Auto Exposure Bracketing = 0
  126. [Canon Makernote] - AEB Bracket Value = 0
  127. [Canon Makernote] - Control Mode = 1
  128. [Canon Makernote] - Focus Distance Upper = 0
  129. [Canon Makernote] - Focus Distance Lower = 0
  130. [Canon Makernote] - F Number = 128
  131. [Canon Makernote] - Exposure Time = 176
  132. [Canon Makernote] - Measured EV 2 = 126
  133. [Canon Makernote] - Bulb Duration = 0
  134. [Canon Makernote] - Unknown tag (0xc419) = 0
  135. [Canon Makernote] - Camera Type = 248
  136. [Canon Makernote] - Auto Rotate = 65535
  137. [Canon Makernote] - ND Filter = 65535
  138. [Canon Makernote] - Self Timer 2 = 65535
  139. [Canon Makernote] - Unknown tag (0xc41e) = 65535
  140. [Canon Makernote] - Unknown tag (0xc41f) = 0
  141. [Canon Makernote] - Unknown tag (0xc420) = 0
  142. [Canon Makernote] - Flash Output = 0
  143. [Canon Makernote] - Image Type = Canon EOS 600D
  144. [Canon Makernote] - Firmware Version = Firmware Version 1.0.2
  145. [Canon Makernote] - Owner Name =
  146. [Canon Makernote] - Camera Info Array = [1536 values]
  147. [Canon Makernote] - Canon Model ID = 2147484294
  148. [Canon Makernote] - Thumbnail Image Valid Area = 0 159 7 112
  149. [Canon Makernote] - Unknown tag (0x0019) = 1
  150. [Canon Makernote] - AF Info Array 2 = [48 values]
  151. [Canon Makernote] - Original Decision Data Offset = 0
  152. [Canon Makernote] - File Info Array = [28 values]
  153. [Canon Makernote] - Lens Model = EF-S18-55mm f/3.5-5.6 IS II
  154. [Canon Makernote] - Serial Info Array = ZC4470620
  155. [Canon Makernote] - Dust Removal Data = [1024 values]
  156. [Canon Makernote] - Crop Info = 0 0 0 0
  157. [Canon Makernote] - Custom Functions Array 2 = [50 values]
  158. [Canon Makernote] - Aspect Information Array = 0 5184 3456 0 0
  159. [Canon Makernote] - Processing Information Array = 28 0 3 0 0 0 0 0 65535 5200 135 0 0 0
  160. [Canon Makernote] - Measured Color Array = 12 433 1024 1024 757 0
  161. [Canon Makernote] - Color Space = 1
  162. [Canon Makernote] - VRD Offset = 0
  163. [Canon Makernote] - Sensor Information Array = [17 values]
  164. [Canon Makernote] - Color Data Array 1 = [1273 values]
  165. [Canon Makernote] - Black Level = 135 135 135
  166. [Canon Makernote] - Unknown tag (0x4009) = 0 0 0
  167. [Canon Makernote] - Custom Picture Style File Name =
  168. [Canon Makernote] - Unknown tag (0x4011) = [252 values]
  169. [Canon Makernote] - Unknown tag (0x4012) =
  170. [Canon Makernote] - Vignetting Correction Array 1 = [116 values]
  171. [Canon Makernote] - Vignetting Correction Array 2 = 24 0 1 0 1 1
  172. [Canon Makernote] - Unknown tag (0x4017) = 198659 1342177307
  173. [Canon Makernote] - Lighting Optimizer Array = 12 0 0
  174. [Canon Makernote] - Lens Info Array = [30 values]
  175. [Canon Makernote] - Ambiance Info Array = 20 0 0 0 0
  176. [Interoperability] - Interoperability Index = Recommended Exif Interoperability Rules (ExifR98)
  177. [Interoperability] - Interoperability Version = 1.00
  178. [Exif Thumbnail] - Compression = JPEG (old-style)
  179. [Exif Thumbnail] - X Resolution = 72 dots per inch
  180. [Exif Thumbnail] - Y Resolution = 72 dots per inch
  181. [Exif Thumbnail] - Resolution Unit = Inch
  182. [Exif Thumbnail] - Thumbnail Offset = 8916 bytes
  183. [Exif Thumbnail] - Thumbnail Length = 18528 bytes
  184. [XMP] - XMP Value Count = 1
  185. [Huffman] - Number of Tables = 4 Huffman tables
  186. [File Type] - Detected File Type Name = JPEG
  187. [File Type] - Detected File Type Long Name = Joint Photographic Experts Group
  188. [File Type] - Detected MIME Type = image/jpeg
  189. [File Type] - Expected File Name Extension = jpg
  190. [File] - File Name = IMG_2639.JPG
  191. [File] - File Size = 7000779 bytes
  192. [File] - File Modified Date = 星期五 七月 01 06:26:25 +08:00 2022
  1. [JPEG] - Compression Type = Baseline
  2. [JPEG] - Data Precision = 8 bits
  3. [JPEG] - Image Height = 2448 pixels
  4. [JPEG] - Image Width = 3264 pixels
  5. [JPEG] - Number of Components = 3
  6. [JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/2 vert
  7. [JPEG] - Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
  8. [JPEG] - Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
  9. [Exif IFD0] - Make = Apple
  10. [Exif IFD0] - Model = iPhone 6
  11. [Exif IFD0] - Orientation = Top, left side (Horizontal / normal)
  12. [Exif IFD0] - X Resolution = 72 dots per inch
  13. [Exif IFD0] - Y Resolution = 72 dots per inch
  14. [Exif IFD0] - Resolution Unit = Inch
  15. [Exif IFD0] - Software = 9.3
  16. [Exif IFD0] - Date/Time = 2016:03:29 10:40:27
  17. [Exif IFD0] - YCbCr Positioning = Center of pixel array
  18. [Exif SubIFD] - Exposure Time = 1/33 sec
  19. [Exif SubIFD] - F-Number = f/2.2
  20. [Exif SubIFD] - Exposure Program = Program normal
  21. [Exif SubIFD] - ISO Speed Ratings = 40
  22. [Exif SubIFD] - Exif Version = 2.21
  23. [Exif SubIFD] - Date/Time Original = 2016:03:29 10:40:27
  24. [Exif SubIFD] - Date/Time Digitized = 2016:03:29 10:40:27
  25. [Exif SubIFD] - Components Configuration = YCbCr
  26. [Exif SubIFD] - Shutter Speed Value = 1/33 sec
  27. [Exif SubIFD] - Aperture Value = f/2.2
  28. [Exif SubIFD] - Brightness Value = 4.228
  29. [Exif SubIFD] - Exposure Bias Value = 0 EV
  30. [Exif SubIFD] - Metering Mode = Spot
  31. [Exif SubIFD] - Flash = Flash did not fire, auto
  32. [Exif SubIFD] - Focal Length = 4.2 mm
  33. [Exif SubIFD] - Subject Location = 2459 1625 610 612
  34. [Exif SubIFD] - Sub-Sec Time Original = 269
  35. [Exif SubIFD] - Sub-Sec Time Digitized = 269
  36. [Exif SubIFD] - FlashPix Version = 1.00
  37. [Exif SubIFD] - Color Space = sRGB
  38. [Exif SubIFD] - Exif Image Width = 3264 pixels
  39. [Exif SubIFD] - Exif Image Height = 2448 pixels
  40. [Exif SubIFD] - Sensing Method = One-chip color area sensor
  41. [Exif SubIFD] - Scene Type = Directly photographed image
  42. [Exif SubIFD] - Exposure Mode = Auto exposure
  43. [Exif SubIFD] - White Balance Mode = Auto white balance
  44. [Exif SubIFD] - Focal Length 35 = 29 mm
  45. [Exif SubIFD] - Scene Capture Type = Standard
  46. [Exif SubIFD] - Lens Specification = 4.15mm f/2.2
  47. [Exif SubIFD] - Lens Make = Apple
  48. [Exif SubIFD] - Lens Model = iPhone 6 back camera 4.15mm f/2.2
  49. [Apple Makernote] - Unknown tag (0x0001) = 4
  50. [Apple Makernote] - Unknown tag (0x0002) = [558 values]
  51. [Apple Makernote] - Run Time = [104 values]
  52. [Apple Makernote] - Unknown tag (0x0004) = 1
  53. [Apple Makernote] - Unknown tag (0x0005) = 190
  54. [Apple Makernote] - Unknown tag (0x0006) = 180
  55. [Apple Makernote] - Unknown tag (0x0007) = 1
  56. [Apple Makernote] - Acceleration Vector = 1.00g right, 0.02g up, 0.00g forward
  57. [Apple Makernote] - Unknown tag (0x0009) = 275
  58. [Apple Makernote] - Unknown tag (0x000e) = 12
  59. [Apple Makernote] - Unknown tag (0x0014) = 4
  60. [Apple Run Time] - Flags = Valid
  61. [Apple Run Time] - Epoch = 0
  62. [Apple Run Time] - Scale = 1000000000
  63. [Apple Run Time] - Value = 2289 seconds
  64. [GPS] - GPS Latitude Ref = N
  65. [GPS] - GPS Latitude = 32° 0' 19.06"
  66. [GPS] - GPS Longitude Ref = E
  67. [GPS] - GPS Longitude = 118° 44' 44.34"
  68. [GPS] - GPS Altitude Ref = Below sea level
  69. [GPS] - GPS Altitude = 17.56 metres
  70. [GPS] - GPS Time-Stamp = 02:40:27.000 UTC
  71. [GPS] - GPS Speed Ref = km/h
  72. [GPS] - GPS Speed = 1.48 km/h
  73. [GPS] - GPS Img Direction Ref = True direction
  74. [GPS] - GPS Img Direction = 5.24 degrees
  75. [GPS] - GPS Dest Bearing Ref = True direction
  76. [GPS] - GPS Dest Bearing = 5.24 degrees
  77. [GPS] - GPS Date Stamp = 2016:03:29
  78. [GPS] - GPS Horizontal Positioning Error = 50 metres
  79. [Exif Thumbnail] - Compression = JPEG (old-style)
  80. [Exif Thumbnail] - X Resolution = 72 dots per inch
  81. [Exif Thumbnail] - Y Resolution = 72 dots per inch
  82. [Exif Thumbnail] - Resolution Unit = Inch
  83. [Exif Thumbnail] - Thumbnail Offset = 2006 bytes
  84. [Exif Thumbnail] - Thumbnail Length = 12685 bytes
  85. [Huffman] - Number of Tables = 4 Huffman tables
  86. [File Type] - Detected File Type Name = JPEG
  87. [File Type] - Detected File Type Long Name = Joint Photographic Experts Group
  88. [File Type] - Detected MIME Type = image/jpeg
  89. [File Type] - Expected File Name Extension = jpg
  90. [File] - File Name = IMG_3460.JPG
  91. [File] - File Size = 2276188 bytes
  92. [File] - File Modified Date = 星期四 六月 30 09:19:13 +08:00 2022
  1. F:\WorkSpace\EclipseCoconutProjects\kimojar-soft\kimojar-tool-file\src\test\resources\source\win10.desktop..jpg
  2. Format: [Directory Name] - TagName = TagDescription[JPEG] - Compression Type = Baseline
  3. [JPEG] - Data Precision = 8 bits
  4. [JPEG] - Image Height = 1080 pixels
  5. [JPEG] - Image Width = 1920 pixels
  6. [JPEG] - Number of Components = 3
  7. [JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/2 vert
  8. [JPEG] - Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
  9. [JPEG] - Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
  10. [JFIF] - Version = 1.1
  11. [JFIF] - Resolution Units = inch
  12. [JFIF] - X Resolution = 96 dots
  13. [JFIF] - Y Resolution = 96 dots
  14. [JFIF] - Thumbnail Width Pixels = 0
  15. [JFIF] - Thumbnail Height Pixels = 0
  16. [Huffman] - Number of Tables = 4 Huffman tables
  17. [File Type] - Detected File Type Name = JPEG
  18. [File Type] - Detected File Type Long Name = Joint Photographic Experts Group
  19. [File Type] - Detected MIME Type = image/jpeg
  20. [File Type] - Expected File Name Extension = jpg
  21. [File] - File Name = win10.desktop..jpg
  22. [File] - File Size = 571683 bytes
  23. [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

  1. <a name="BfxB9"></a>
  2. ##### mp4
  3. create time:
  4. - [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

  1. <a name="D9pT3"></a>
  2. ##### mov
  3. create time:
  4. - [QuickTime] - Creation Time = 星期四 七月 22 13:05:33 +08:00 2021
  5. 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 ```