exiftool-vendored.pl 12.85.0 → 12.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/Changes +69 -0
- package/bin/MANIFEST +1 -0
- package/bin/META.json +1 -1
- package/bin/META.yml +16 -16
- package/bin/README +3 -2
- package/bin/build_geolocation +6 -3
- package/bin/config_files/example.config +5 -0
- package/bin/config_files/onone.config +28 -0
- package/bin/exiftool +20 -12
- package/bin/lib/Image/ExifTool/AIFF.pm +8 -4
- package/bin/lib/Image/ExifTool/ASF.pm +4 -1
- package/bin/lib/Image/ExifTool/BuildTagLookup.pm +14 -8
- package/bin/lib/Image/ExifTool/Canon.pm +90 -6
- package/bin/lib/Image/ExifTool/CanonRaw.pm +1 -1
- package/bin/lib/Image/ExifTool/CanonVRD.pm +5 -2
- package/bin/lib/Image/ExifTool/FujiFilm.pm +46 -4
- package/bin/lib/Image/ExifTool/Geolocation.dat +0 -0
- package/bin/lib/Image/ExifTool/Geolocation.pm +6 -0
- package/bin/lib/Image/ExifTool/ID3.pm +39 -33
- package/bin/lib/Image/ExifTool/InDesign.pm +8 -4
- package/bin/lib/Image/ExifTool/Jpeg2000.pm +0 -1
- package/bin/lib/Image/ExifTool/Lang/de.pm +2 -2
- package/bin/lib/Image/ExifTool/Matroska.pm +66 -10
- package/bin/lib/Image/ExifTool/MinoltaRaw.pm +2 -2
- package/bin/lib/Image/ExifTool/Nikon.pm +3 -2
- package/bin/lib/Image/ExifTool/Olympus.pm +27 -17
- package/bin/lib/Image/ExifTool/Panasonic.pm +1 -0
- package/bin/lib/Image/ExifTool/PanasonicRaw.pm +1 -0
- package/bin/lib/Image/ExifTool/Pentax.pm +80 -14
- package/bin/lib/Image/ExifTool/QuickTime.pm +52 -12
- package/bin/lib/Image/ExifTool/QuickTimeStream.pl +24 -2
- package/bin/lib/Image/ExifTool/RIFF.pm +20 -10
- package/bin/lib/Image/ExifTool/Samsung.pm +29 -1
- package/bin/lib/Image/ExifTool/Sony.pm +21 -11
- package/bin/lib/Image/ExifTool/TagLookup.pm +6804 -6788
- package/bin/lib/Image/ExifTool/TagNames.pod +111 -50
- package/bin/lib/Image/ExifTool/WriteIPTC.pl +1 -1
- package/bin/lib/Image/ExifTool/WriteQuickTime.pl +84 -15
- package/bin/lib/Image/ExifTool/Writer.pl +7 -4
- package/bin/lib/Image/ExifTool/XMP.pm +8 -8
- package/bin/lib/Image/ExifTool/XMP2.pl +51 -30
- package/bin/lib/Image/ExifTool/ZIP.pm +8 -4
- package/bin/lib/Image/ExifTool.pm +65 -42
- package/bin/lib/Image/ExifTool.pod +28 -20
- package/bin/perl-Image-ExifTool.spec +1 -1
- package/bin/pp_build_exe.args +4 -4
- package/package.json +3 -3
|
@@ -1212,9 +1212,9 @@ my $blankFooter = "CANON OPTIONAL DATA\0" . ("\0" x 42) . "\xff\xd9";
|
|
|
1212
1212
|
4 => 'Emphasize Center',
|
|
1213
1213
|
},
|
|
1214
1214
|
},
|
|
1215
|
+
0x2070b => { Name => 'DiffractionCorrectionOn', %noYes },
|
|
1215
1216
|
# 0x20800 - fmt=1: 0
|
|
1216
1217
|
# 0x20801 - fmt=1: 0
|
|
1217
|
-
0x2070b => { Name => 'DiffractionCorrectionOn', %noYes },
|
|
1218
1218
|
0x20900 => 'ColorHue',
|
|
1219
1219
|
0x20901 => 'SaturationAdj',
|
|
1220
1220
|
0x20910 => 'RedHSL',
|
|
@@ -1282,6 +1282,9 @@ my $blankFooter = "CANON OPTIONAL DATA\0" . ("\0" x 42) . "\xff\xd9";
|
|
|
1282
1282
|
# 0xf0521 - DLO data
|
|
1283
1283
|
# 0xf0520 - DLO data
|
|
1284
1284
|
# 0xf0530 - created when dust delete data applied (4 bytes, all zero)
|
|
1285
|
+
# 0xf0561 - 1932 bytes, related to Partial Adjustment Tool Palette (ref forum15660)
|
|
1286
|
+
# 0xf0562 - 1596 bytes, related to Partial Adjustment Tool Palette (ref forum15660)
|
|
1287
|
+
# 0xf0566 - 1520 bytes, related to Partial Adjustment Tool Palette (ref forum15660)
|
|
1285
1288
|
# 0xf0600 - fmt=253 (2308 bytes, JPG images)
|
|
1286
1289
|
# 0xf0601 - fmt=253 (2308 bytes, JPG images)
|
|
1287
1290
|
# 0x1ff52c - values: 129,130,132 (related to custom picture style somehow)
|
|
@@ -1303,7 +1306,7 @@ my $blankFooter = "CANON OPTIONAL DATA\0" . ("\0" x 42) . "\xff\xd9";
|
|
|
1303
1306
|
# 2 - value: 6
|
|
1304
1307
|
3 => {
|
|
1305
1308
|
Name => 'DR4CameraModel',
|
|
1306
|
-
|
|
1309
|
+
Format => 'int32u',
|
|
1307
1310
|
PrintHex => 1,
|
|
1308
1311
|
SeparateTable => 'Canon CanonModelID',
|
|
1309
1312
|
PrintConv => \%Image::ExifTool::Canon::canonModelID,
|
|
@@ -31,7 +31,7 @@ use vars qw($VERSION);
|
|
|
31
31
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
32
32
|
use Image::ExifTool::Exif;
|
|
33
33
|
|
|
34
|
-
$VERSION = '1.
|
|
34
|
+
$VERSION = '1.95';
|
|
35
35
|
|
|
36
36
|
sub ProcessFujiDir($$$);
|
|
37
37
|
sub ProcessFaceRec($$$);
|
|
@@ -1169,6 +1169,46 @@ my %faceCategories = (
|
|
|
1169
1169
|
Face8Birthday => { },
|
|
1170
1170
|
);
|
|
1171
1171
|
|
|
1172
|
+
# tags extracted from RAF header
|
|
1173
|
+
%Image::ExifTool::FujiFilm::RAFHeader = (
|
|
1174
|
+
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
|
1175
|
+
GROUPS => { 0 => 'RAF', 1 => 'RAF', 2 => 'Image' },
|
|
1176
|
+
NOTES => 'Tags extracted from the header of RAF images.',
|
|
1177
|
+
# 0x00 - eg. "FUJIFILMCCD-RAW 0201FA392001FinePix S3Pro"
|
|
1178
|
+
0x3c => { #PH
|
|
1179
|
+
Name => 'RAFVersion',
|
|
1180
|
+
Format => 'undef[4]',
|
|
1181
|
+
},
|
|
1182
|
+
# (all int32u values)
|
|
1183
|
+
# 0x40 - 1 for M-RAW, 0 otherwise?
|
|
1184
|
+
# 0x44 - high word of M-RAW offset? (only seen zero)
|
|
1185
|
+
# 0x48 - M-RAW header offset
|
|
1186
|
+
# 0x4c - M-RAW header length
|
|
1187
|
+
# 0x50 - ? (only seen zero)
|
|
1188
|
+
# 0x54 - JPEG offset
|
|
1189
|
+
# 0x58 - JPEG length
|
|
1190
|
+
# 0x5c - RAF directory offset
|
|
1191
|
+
# 0x60 - RAF directory length
|
|
1192
|
+
# 0x64 - FujiIFD dir offset
|
|
1193
|
+
# 0x68 - FujiIFD dir length
|
|
1194
|
+
# 0x6c - RAFCompression or JPEG start
|
|
1195
|
+
0x6c => { #10
|
|
1196
|
+
Name => 'RAFCompression',
|
|
1197
|
+
Condition => '$$valPt =~ /^\0\0\0/', # (JPEG header is in this location for some RAF versions)
|
|
1198
|
+
Format => 'int32u',
|
|
1199
|
+
PrintConv => { 0 => 'Uncompressed', 2 => 'Lossless', 3 => 'Lossy' },
|
|
1200
|
+
},
|
|
1201
|
+
# 0x70 - ? same as 0x68?
|
|
1202
|
+
# 0x74 - ? usually 0, but have seen 0x1700
|
|
1203
|
+
# 0x78 - RAF1 dir offset
|
|
1204
|
+
# 0x7c - RAF1 dir length
|
|
1205
|
+
# 0x80 - FujiIFD1 dir offset
|
|
1206
|
+
# 0x84 - FujiIFD1 dir length
|
|
1207
|
+
# 0x88-0x8c - always zero?
|
|
1208
|
+
# 0x90 - ? same as 0x74?
|
|
1209
|
+
# 0x94 - JPEG or M-RAW start
|
|
1210
|
+
);
|
|
1211
|
+
|
|
1172
1212
|
# tags in RAF images (ref 5)
|
|
1173
1213
|
%Image::ExifTool::FujiFilm::RAF = (
|
|
1174
1214
|
PROCESS_PROC => \&ProcessFujiDir,
|
|
@@ -1797,7 +1837,7 @@ sub ProcessRAF($$)
|
|
|
1797
1837
|
my ($buff, $jpeg, $warn, $offset);
|
|
1798
1838
|
|
|
1799
1839
|
my $raf = $$dirInfo{RAF};
|
|
1800
|
-
$raf->Read($buff,
|
|
1840
|
+
$raf->Read($buff,0x70) == 0x70 or return 0;
|
|
1801
1841
|
$buff =~ /^FUJIFILM/ or return 0;
|
|
1802
1842
|
# get position and size of M-RAW header and jpeg preview
|
|
1803
1843
|
my ($mpos, $mlen) = unpack('x72NN', $buff);
|
|
@@ -1807,9 +1847,11 @@ sub ProcessRAF($$)
|
|
|
1807
1847
|
$raf->Seek($jpos, 0) or return 0;
|
|
1808
1848
|
$raf->Read($jpeg, $jlen) == $jlen or return 0;
|
|
1809
1849
|
}
|
|
1850
|
+
SetByteOrder('MM');
|
|
1810
1851
|
$et->SetFileType();
|
|
1811
|
-
$
|
|
1812
|
-
|
|
1852
|
+
my $tbl = GetTagTable('Image::ExifTool::FujiFilm::RAFHeader');
|
|
1853
|
+
$et->ProcessDirectory({ DataPt => \$buff, DirName => 'RAFHeader' }, $tbl);
|
|
1854
|
+
|
|
1813
1855
|
# extract information from embedded JPEG
|
|
1814
1856
|
my %dirInfo = (
|
|
1815
1857
|
Parent => 'RAF',
|
|
Binary file
|
|
@@ -509,6 +509,12 @@ sub Geolocate($;$)
|
|
|
509
509
|
$city = '' unless defined $city;
|
|
510
510
|
} elsif (/^[-+]?\d+(\.\d+)?$/) { # coordinate format
|
|
511
511
|
push @coords, $_ if @coords < 2;
|
|
512
|
+
} elsif (/^([-+]?\d+(?:\.\d+)?) *(([NS])[A-Z]*)? +([-+]?\d+(?:\.\d+)?) *(([EW])[A-Z]*)?/i) { # "lat lon" format
|
|
513
|
+
next if @coords;
|
|
514
|
+
my ($lat, $lon) = ($1, $4);
|
|
515
|
+
$lat = -abs($lat) if $3 and uc($3) eq 'S';
|
|
516
|
+
$lon = -abs($lon) if $6 and uc($6) eq 'W';
|
|
517
|
+
push @coords, $lat, $lon;
|
|
512
518
|
} elsif (lc $_ eq 'both') {
|
|
513
519
|
$both = 1;
|
|
514
520
|
} elsif ($_ =~ /^num=(\d+)$/i) {
|
|
@@ -18,7 +18,7 @@ use strict;
|
|
|
18
18
|
use vars qw($VERSION);
|
|
19
19
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
20
20
|
|
|
21
|
-
$VERSION = '1.
|
|
21
|
+
$VERSION = '1.62';
|
|
22
22
|
|
|
23
23
|
sub ProcessID3v2($$$);
|
|
24
24
|
sub ProcessPrivate($$$);
|
|
@@ -68,6 +68,12 @@ my %dateTimeConv = (
|
|
|
68
68
|
PrintConv => '$self->ConvertDateTime($val)',
|
|
69
69
|
);
|
|
70
70
|
|
|
71
|
+
# patch for names of user-defined tags which don't automatically generate very well
|
|
72
|
+
my %userTagName = (
|
|
73
|
+
ALBUMARTISTSORT => 'AlbumArtistSort',
|
|
74
|
+
ASIN => 'ASIN',
|
|
75
|
+
);
|
|
76
|
+
|
|
71
77
|
# This table is just for documentation purposes
|
|
72
78
|
%Image::ExifTool::ID3::Main = (
|
|
73
79
|
VARS => { NO_ID => 1 },
|
|
@@ -103,14 +109,6 @@ my %dateTimeConv = (
|
|
|
103
109
|
},
|
|
104
110
|
);
|
|
105
111
|
|
|
106
|
-
%Image::ExifTool::ID3::UserDefined = (
|
|
107
|
-
GROUPS => { 1 => 'UserDefined', 2 => 'Other' },
|
|
108
|
-
NOTES => q{
|
|
109
|
-
ID3 user-defined text and URL tags will be dynamically added to this table
|
|
110
|
-
by name when found.
|
|
111
|
-
},
|
|
112
|
-
);
|
|
113
|
-
|
|
114
112
|
# Lyrics3 tags (ref 4)
|
|
115
113
|
%Image::ExifTool::ID3::Lyrics3 = (
|
|
116
114
|
GROUPS => { 1 => 'Lyrics3', 2 => 'Audio' },
|
|
@@ -501,7 +499,7 @@ my %genre = (
|
|
|
501
499
|
TT2 => 'Title',
|
|
502
500
|
TT3 => 'Subtitle',
|
|
503
501
|
TXT => 'Lyricist',
|
|
504
|
-
TXX =>
|
|
502
|
+
TXX => 'UserDefinedText',
|
|
505
503
|
TYE => { Name => 'Year', Groups => { 2 => 'Time' } },
|
|
506
504
|
ULT => 'Lyrics',
|
|
507
505
|
WAF => 'FileURL',
|
|
@@ -510,7 +508,7 @@ my %genre = (
|
|
|
510
508
|
WCM => 'CommercialURL',
|
|
511
509
|
WCP => { Name => 'CopyrightURL', Groups => { 2 => 'Author' } },
|
|
512
510
|
WPB => 'PublisherURL',
|
|
513
|
-
WXX =>
|
|
511
|
+
WXX => 'UserDefinedURL',
|
|
514
512
|
# the following written by iTunes 10.5 (ref PH)
|
|
515
513
|
RVA => 'RelativeVolumeAdjustment',
|
|
516
514
|
TST => 'TitleSortOrder',
|
|
@@ -613,7 +611,7 @@ my %id3v2_common = (
|
|
|
613
611
|
TRSO => 'InternetRadioStationOwner',
|
|
614
612
|
TSRC => 'ISRC', # (international standard recording code)
|
|
615
613
|
TSSE => 'EncoderSettings',
|
|
616
|
-
TXXX =>
|
|
614
|
+
TXXX => 'UserDefinedText',
|
|
617
615
|
# UFID => 'UniqueFileID', (not extracted because it is long and nasty and not very useful)
|
|
618
616
|
USER => 'TermsOfUse',
|
|
619
617
|
USLT => 'Lyrics',
|
|
@@ -625,7 +623,7 @@ my %id3v2_common = (
|
|
|
625
623
|
WORS => 'InternetRadioStationURL',
|
|
626
624
|
WPAY => 'PaymentURL',
|
|
627
625
|
WPUB => 'PublisherURL',
|
|
628
|
-
WXXX =>
|
|
626
|
+
WXXX => 'UserDefinedURL',
|
|
629
627
|
#
|
|
630
628
|
# non-standard frames
|
|
631
629
|
#
|
|
@@ -879,6 +877,19 @@ Image::ExifTool::AddCompositeTags('Image::ExifTool::ID3');
|
|
|
879
877
|
}
|
|
880
878
|
}
|
|
881
879
|
|
|
880
|
+
#------------------------------------------------------------------------------
|
|
881
|
+
# Make tag name for user-defined tag
|
|
882
|
+
# Inputs: 0) User defined tag description
|
|
883
|
+
# Returns: Tag name
|
|
884
|
+
sub MakeTagName($)
|
|
885
|
+
{
|
|
886
|
+
my $name = shift;
|
|
887
|
+
return $userTagName{$name} if $userTagName{$name};
|
|
888
|
+
$name = ucfirst(lc $name) unless $name =~ /[a-z]/; # convert all uppercase to mixed case
|
|
889
|
+
$name =~ s/([a-z])[_ ]([a-z])/$1\U$2/g;
|
|
890
|
+
return Image::ExifTool::MakeTagName($name);
|
|
891
|
+
}
|
|
892
|
+
|
|
882
893
|
#------------------------------------------------------------------------------
|
|
883
894
|
# Convert ID3v1 text to exiftool character set
|
|
884
895
|
# Inputs: 0) ExifTool object ref, 1) text string
|
|
@@ -1255,39 +1266,34 @@ sub ProcessID3v2($$$)
|
|
|
1255
1266
|
# two encoded strings separated by a null
|
|
1256
1267
|
my @vals = DecodeString($et, $val);
|
|
1257
1268
|
foreach (0..1) { $vals[$_] = '' unless defined $vals[$_]; }
|
|
1258
|
-
$vals[0]
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
my $name = Image::ExifTool::MakeTagName($vals[0]);
|
|
1262
|
-
AddTagToTable($tbl, $vals[0], $name, 1);
|
|
1269
|
+
if (length $vals[0]) {
|
|
1270
|
+
$id .= "_$vals[0]";
|
|
1271
|
+
$tagInfo = $$tagTablePtr{$id} || AddTagToTable($tagTablePtr, $id, MakeTagName($vals[0]));
|
|
1263
1272
|
}
|
|
1264
|
-
$
|
|
1265
|
-
next;
|
|
1273
|
+
$val = $vals[1];
|
|
1266
1274
|
} elsif ($id =~ /^T/ or $id =~ /^(IPL|IPLS|GP1|MVI|MVN)$/) {
|
|
1267
1275
|
$val = DecodeString($et, $val);
|
|
1268
1276
|
} elsif ($id =~ /^(WXX|WXXX)$/) {
|
|
1269
1277
|
# one encoded string and one Latin string separated by a null
|
|
1270
1278
|
my $enc = unpack('C', $val);
|
|
1271
|
-
my $url;
|
|
1279
|
+
my ($tag, $url);
|
|
1272
1280
|
if ($enc == 1 or $enc == 2) {
|
|
1273
|
-
($
|
|
1281
|
+
($tag, $url) = ($tag =~ /^(.(?:..)*?)\0\0(.*)/s);
|
|
1274
1282
|
} else {
|
|
1275
|
-
($
|
|
1283
|
+
($tag, $url) = ($tag =~ /^(..*?)\0(.*)/s);
|
|
1276
1284
|
}
|
|
1277
|
-
unless (defined $
|
|
1285
|
+
unless (defined $tag and defined $url) {
|
|
1278
1286
|
$et->Warn("Invalid $id frame value");
|
|
1279
1287
|
next;
|
|
1280
1288
|
}
|
|
1281
|
-
$
|
|
1282
|
-
$
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
my $name = Image::ExifTool::MakeTagName($val);
|
|
1287
|
-
AddTagToTable($tbl, $val, $name, 1);
|
|
1289
|
+
$tag = DecodeString($et, $tag);
|
|
1290
|
+
if (length $tag) {
|
|
1291
|
+
$id .= "_$tag";
|
|
1292
|
+
$tag .= '_URL' unless $tag =~ /url/i;
|
|
1293
|
+
$tagInfo = $$tagTablePtr{$id} || AddTagToTable($tagTablePtr, $id, MakeTagName($tag));
|
|
1288
1294
|
}
|
|
1289
|
-
$
|
|
1290
|
-
|
|
1295
|
+
$url =~ s/\0.*//s;
|
|
1296
|
+
$val = $url;
|
|
1291
1297
|
} elsif ($id =~ /^W/) {
|
|
1292
1298
|
$val =~ s/\0.*//s; # truncate at null
|
|
1293
1299
|
} elsif ($id =~ /^(COM|COMM|ULT|USLT)$/) {
|
|
@@ -14,7 +14,7 @@ use strict;
|
|
|
14
14
|
use vars qw($VERSION);
|
|
15
15
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
16
16
|
|
|
17
|
-
$VERSION = '1.
|
|
17
|
+
$VERSION = '1.07';
|
|
18
18
|
|
|
19
19
|
# map for writing metadata to InDesign files (currently only write XMP)
|
|
20
20
|
my %indMap = (
|
|
@@ -73,9 +73,13 @@ sub ProcessIND($$)
|
|
|
73
73
|
my $pages = Get32u($curPage, 280);
|
|
74
74
|
$pages < 2 and $err = 'Invalid page count', goto DONE;
|
|
75
75
|
my $pos = $pages * 4096;
|
|
76
|
-
if ($pos > 0x7fffffff
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
if ($pos > 0x7fffffff) {
|
|
77
|
+
if (not $et->Options('LargeFileSupport')) {
|
|
78
|
+
$err = 'InDesign files larger than 2 GB not supported (LargeFileSupport not set)';
|
|
79
|
+
goto DONE;
|
|
80
|
+
} elsif ($et->Options('LargeFileSupport') eq '2') {
|
|
81
|
+
$et->WarnOnce('Processing large file (LargeFileSupport is 2)');
|
|
82
|
+
}
|
|
79
83
|
}
|
|
80
84
|
if ($outfile) {
|
|
81
85
|
# make XMP the preferred group for writing
|
|
@@ -11,7 +11,7 @@ package Image::ExifTool::Lang::de;
|
|
|
11
11
|
use strict;
|
|
12
12
|
use vars qw($VERSION);
|
|
13
13
|
|
|
14
|
-
$VERSION = '1.
|
|
14
|
+
$VERSION = '1.37';
|
|
15
15
|
|
|
16
16
|
%Image::ExifTool::Lang::de::Translate = (
|
|
17
17
|
'AEAperture' => 'AE-Blende',
|
|
@@ -5118,7 +5118,7 @@ $VERSION = '1.36';
|
|
|
5118
5118
|
'LensMake' => 'Objektivhersteller',
|
|
5119
5119
|
'LensManufacturer' => 'Objektivhersteller',
|
|
5120
5120
|
'LensMaxApertureRange' => 'Objektiv Blendenbereich',
|
|
5121
|
-
'LensModel' => '
|
|
5121
|
+
'LensModel' => 'Objektivmodell',
|
|
5122
5122
|
'LensProfileDigest' => 'Kennwert des Objektivprofils',
|
|
5123
5123
|
'LensProperties' => 'Objektivfunktionen?',
|
|
5124
5124
|
'LensSerialNumber' => 'Objektiv-Seriennummer',
|
|
@@ -15,7 +15,7 @@ use strict;
|
|
|
15
15
|
use vars qw($VERSION);
|
|
16
16
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
17
17
|
|
|
18
|
-
$VERSION = '1.
|
|
18
|
+
$VERSION = '1.16';
|
|
19
19
|
|
|
20
20
|
sub HandleStruct($$;$$$$);
|
|
21
21
|
|
|
@@ -44,7 +44,8 @@ my %uidInfo = (
|
|
|
44
44
|
NOTES => q{
|
|
45
45
|
The following tags are extracted from Matroska multimedia container files.
|
|
46
46
|
This container format is used by file types such as MKA, MKV, MKS and WEBM.
|
|
47
|
-
For speed, by default ExifTool extracts tags only up to the first Cluster
|
|
47
|
+
For speed, by default ExifTool extracts tags only up to the first Cluster
|
|
48
|
+
unless a Seek element specifies the position of a Tags element after this.
|
|
48
49
|
However, the L<Verbose|../ExifTool.html#Verbose> (-v) and L<Unknown|../ExifTool.html#Unknown> = 2 (-U) options force processing of
|
|
49
50
|
Cluster data, and the L<ExtractEmbedded|../ExifTool.html#ExtractEmbedded> (-ee) option skips over Clusters to
|
|
50
51
|
read subsequent tags. See
|
|
@@ -112,8 +113,25 @@ my %uidInfo = (
|
|
|
112
113
|
Name => 'Seek',
|
|
113
114
|
SubDirectory => { TagTable => 'Image::ExifTool::Matroska::Main' },
|
|
114
115
|
},
|
|
115
|
-
0x13ab => {
|
|
116
|
-
|
|
116
|
+
0x13ab => {
|
|
117
|
+
Name => 'SeekID',
|
|
118
|
+
Unknown => 1,
|
|
119
|
+
SeekInfo => 'ID', # save seek ID's
|
|
120
|
+
# (note: converted from VInt internally)
|
|
121
|
+
PrintConv => q{
|
|
122
|
+
my $tagInfo = $Image::ExifTool::Matroska::Main{$val};
|
|
123
|
+
$val = sprintf('0x%x', $val);
|
|
124
|
+
$val .= " ($$tagInfo{Name})" if ref $tagInfo eq 'HASH' and $$tagInfo{Name};
|
|
125
|
+
return $val;
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
0x13ac => {
|
|
129
|
+
Name => 'SeekPosition',
|
|
130
|
+
Format => 'unsigned',
|
|
131
|
+
Unknown => 1,
|
|
132
|
+
SeekInfo => 'Position', # save seek positions
|
|
133
|
+
RawConv => '$val + $$self{SeekHeadOffset}',
|
|
134
|
+
},
|
|
117
135
|
#
|
|
118
136
|
# Segment Info
|
|
119
137
|
#
|
|
@@ -350,8 +368,9 @@ my %uidInfo = (
|
|
|
350
368
|
Name => 'VideoScanType',
|
|
351
369
|
Format => 'unsigned',
|
|
352
370
|
PrintConv => {
|
|
353
|
-
0 => '
|
|
371
|
+
0 => 'Undetermined',
|
|
354
372
|
1 => 'Interlaced',
|
|
373
|
+
2 => 'Progressive',
|
|
355
374
|
},
|
|
356
375
|
},
|
|
357
376
|
0x13b8 => {
|
|
@@ -893,6 +912,7 @@ sub HandleStruct($$;$$$$)
|
|
|
893
912
|
# Inputs: 0) data buffer, 1) position in data
|
|
894
913
|
# Returns: integer value and updates position, -1 for unknown/reserved value,
|
|
895
914
|
# or undef if no data left
|
|
915
|
+
# Notes: Increments position pointer
|
|
896
916
|
sub GetVInt($$)
|
|
897
917
|
{
|
|
898
918
|
return undef if $_[1] >= length $_[0];
|
|
@@ -929,7 +949,7 @@ sub ProcessMKV($$)
|
|
|
929
949
|
{
|
|
930
950
|
my ($et, $dirInfo) = @_;
|
|
931
951
|
my $raf = $$dirInfo{RAF};
|
|
932
|
-
my ($buff, $buf2, @dirEnd, $trackIndent, %trackTypes, $struct);
|
|
952
|
+
my ($buff, $buf2, @dirEnd, $trackIndent, %trackTypes, $struct, %seekInfo, %seek);
|
|
933
953
|
|
|
934
954
|
$raf->Read($buff, 4) == 4 or return 0;
|
|
935
955
|
return 0 unless $buff =~ /^\x1a\x45\xdf\xa3/;
|
|
@@ -952,6 +972,7 @@ sub ProcessMKV($$)
|
|
|
952
972
|
my $processAll = ($verbose or $et->Options('Unknown') > 1) ? 2 : 0;
|
|
953
973
|
++$processAll if $et->Options('ExtractEmbedded');
|
|
954
974
|
$$et{TrackTypes} = \%trackTypes; # store Track types reference
|
|
975
|
+
$$et{SeekHeadOffset} = 0;
|
|
955
976
|
my $oldIndent = $$et{INDENT};
|
|
956
977
|
my $chapterNum = 0;
|
|
957
978
|
my $dirName = 'MKV';
|
|
@@ -960,6 +981,16 @@ sub ProcessMKV($$)
|
|
|
960
981
|
for (;;) {
|
|
961
982
|
while (@dirEnd) {
|
|
962
983
|
if ($pos + $dataPos >= $dirEnd[-1][0]) {
|
|
984
|
+
if ($dirEnd[-1][1] eq 'Seek') {
|
|
985
|
+
# save seek info
|
|
986
|
+
if (defined $seekInfo{ID} and defined $seekInfo{Position}) {
|
|
987
|
+
my $seekTag = $$tagTablePtr{$seekInfo{ID}};
|
|
988
|
+
if (ref $seekTag eq 'HASH' and $$seekTag{Name}) {
|
|
989
|
+
$seek{$$seekTag{Name}} = $seekInfo{Position} + $$et{SeekHeadOffset};
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
undef %seekInfo;
|
|
993
|
+
}
|
|
963
994
|
pop @dirEnd;
|
|
964
995
|
if ($struct) {
|
|
965
996
|
if (@dirEnd and $dirEnd[-1][2]) {
|
|
@@ -993,9 +1024,10 @@ sub ProcessMKV($$)
|
|
|
993
1024
|
}
|
|
994
1025
|
my $tag = GetVInt($buff, $pos);
|
|
995
1026
|
last unless defined $tag and $tag >= 0;
|
|
1027
|
+
$$et{SeekHeadOffset} = $pos if $tag == 0x14d9b74; # save offset of seek head
|
|
996
1028
|
my $size = GetVInt($buff, $pos);
|
|
997
1029
|
last unless defined $size;
|
|
998
|
-
my $unknownSize;
|
|
1030
|
+
my ($unknownSize, $seekInfoOnly);
|
|
999
1031
|
$size < 0 and $unknownSize = 1, $size = 1e20;
|
|
1000
1032
|
if (@dirEnd and $pos + $dataPos + $size > $dirEnd[-1][0]) {
|
|
1001
1033
|
$et->Warn("Invalid or corrupted $dirEnd[-1][1] master element");
|
|
@@ -1010,14 +1042,28 @@ sub ProcessMKV($$)
|
|
|
1010
1042
|
next;
|
|
1011
1043
|
}
|
|
1012
1044
|
my $tagInfo = $et->GetTagInfo($tagTablePtr, $tag);
|
|
1013
|
-
|
|
1045
|
+
if (not $tagInfo and ref $$tagTablePtr{$tag} eq 'HASH' and $$tagTablePtr{$tag}{SeekInfo}) {
|
|
1046
|
+
$tagInfo = $$tagTablePtr{$tag};
|
|
1047
|
+
$seekInfoOnly = 1;
|
|
1048
|
+
}
|
|
1014
1049
|
if ($tagInfo) {
|
|
1015
1050
|
if ($$tagInfo{SubDirectory}) {
|
|
1016
1051
|
# stop processing at first cluster unless we are using -v -U or -ee
|
|
1052
|
+
# or there are Tags after this
|
|
1017
1053
|
if ($$tagInfo{Name} eq 'Cluster' and $processAll < 2) {
|
|
1018
|
-
|
|
1054
|
+
# jump to Tags if possible
|
|
1055
|
+
unless ($processAll) {
|
|
1056
|
+
if ($seek{Tags} and $seek{Tags} > $pos + $dataPos and $raf->Seek($seek{Tags},0)) {
|
|
1057
|
+
$buff = '';
|
|
1058
|
+
$dataPos = $seek{Tags};
|
|
1059
|
+
$pos = $dataLen = 0;
|
|
1060
|
+
next;
|
|
1061
|
+
}
|
|
1062
|
+
last;
|
|
1063
|
+
}
|
|
1019
1064
|
undef $tagInfo; # just skip the Cluster when -ee is used
|
|
1020
1065
|
} else {
|
|
1066
|
+
# just fall through into the contained EBML elements
|
|
1021
1067
|
$$et{INDENT} .= '| ';
|
|
1022
1068
|
$et->VerboseDir($$tagTablePtr{$tag}{Name}, undef, $size);
|
|
1023
1069
|
$dirName = $$tagInfo{Name};
|
|
@@ -1040,7 +1086,12 @@ sub ProcessMKV($$)
|
|
|
1040
1086
|
# just skip unknown and large data blocks
|
|
1041
1087
|
if (not $tagInfo or $more > 10000000) {
|
|
1042
1088
|
# don't try to skip very large blocks unless LargeFileSupport is enabled
|
|
1043
|
-
|
|
1089
|
+
if ($more >= 0x80000000) {
|
|
1090
|
+
last unless $et->Options('LargeFileSupport');
|
|
1091
|
+
if ($et->Options('LargeFileSupport') eq '2') {
|
|
1092
|
+
$et->WarnOnce('Processing large block (LargeFileSupport is 2)');
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1044
1095
|
$raf->Seek($more, 1) or last;
|
|
1045
1096
|
$buff = '';
|
|
1046
1097
|
$dataPos += $dataLen + $more;
|
|
@@ -1118,6 +1169,11 @@ sub ProcessMKV($$)
|
|
|
1118
1169
|
if ($$tagInfo{NoSave} or $struct) {
|
|
1119
1170
|
$et->VerboseInfo($tag, $tagInfo, Value => $val, %parms) if $verbose;
|
|
1120
1171
|
$$struct{$$tagInfo{Name}} = $val if $struct;
|
|
1172
|
+
} elsif ($$tagInfo{SeekInfo}) {
|
|
1173
|
+
my $p = $pos;
|
|
1174
|
+
$val = GetVInt($buff, $p) unless defined $val;
|
|
1175
|
+
$seekInfo{$$tagInfo{SeekInfo}} = $val;
|
|
1176
|
+
$et->HandleTag($tagTablePtr, $tag, $val, %parms) unless $seekInfoOnly;
|
|
1121
1177
|
} else {
|
|
1122
1178
|
$et->HandleTag($tagTablePtr, $tag, $val, %parms);
|
|
1123
1179
|
}
|
|
@@ -203,13 +203,13 @@ sub WriteMRW($$;$);
|
|
|
203
203
|
Name => 'ColorMode',
|
|
204
204
|
Condition => '$$self{Make} !~ /^SONY/',
|
|
205
205
|
Priority => 0,
|
|
206
|
-
Writable =>
|
|
206
|
+
Writable => 1,
|
|
207
207
|
PrintConv => \%Image::ExifTool::Minolta::minoltaColorMode,
|
|
208
208
|
},
|
|
209
209
|
{ #3
|
|
210
210
|
Name => 'ColorMode',
|
|
211
211
|
Condition => '$$self{Model} eq "DSLR-A100"',
|
|
212
|
-
Writable =>
|
|
212
|
+
Writable => 1,
|
|
213
213
|
Notes => 'Sony A100',
|
|
214
214
|
Priority => 0,
|
|
215
215
|
PrintHex => 1,
|
|
@@ -65,7 +65,7 @@ use Image::ExifTool::Exif;
|
|
|
65
65
|
use Image::ExifTool::GPS;
|
|
66
66
|
use Image::ExifTool::XMP;
|
|
67
67
|
|
|
68
|
-
$VERSION = '4.
|
|
68
|
+
$VERSION = '4.35';
|
|
69
69
|
|
|
70
70
|
sub LensIDConv($$$);
|
|
71
71
|
sub ProcessNikonAVI($$$);
|
|
@@ -720,6 +720,7 @@ sub GetAFPointGrid($$;$);
|
|
|
720
720
|
'9A 4C 50 50 14 14 9C 06' => 'Yongnuo YN50mm F1.8N',
|
|
721
721
|
'9F 48 48 48 24 24 A1 06' => 'Yongnuo YN40mm F2.8N', #30
|
|
722
722
|
'9F 54 68 68 18 18 A2 06' => 'Yongnuo YN100mm F2N', #30
|
|
723
|
+
'9F 4C 44 44 18 18 A1 06' => 'Yongnuo YN35mm F2', #30
|
|
723
724
|
#
|
|
724
725
|
'02 40 44 5C 2C 34 02 00' => 'Exakta AF 35-70mm 1:3.5-4.5 MC',
|
|
725
726
|
#
|
|
@@ -11710,7 +11711,7 @@ my %nikonFocalConversions = (
|
|
|
11710
11711
|
},
|
|
11711
11712
|
10 => {
|
|
11712
11713
|
Name => 'NEFCompression',
|
|
11713
|
-
|
|
11714
|
+
Format => 'int16u',
|
|
11714
11715
|
SeparateTable => 'NEFCompression',
|
|
11715
11716
|
PrintConv => \%nefCompression,
|
|
11716
11717
|
},
|
|
@@ -1935,6 +1935,7 @@ my %indexInfo = (
|
|
|
1935
1935
|
3 => 'Trains',
|
|
1936
1936
|
4 => 'Birds',
|
|
1937
1937
|
5 => 'Dogs & Cats',
|
|
1938
|
+
6 => 'Human', #forum16072
|
|
1938
1939
|
},{
|
|
1939
1940
|
0 => 'Object Not Found',
|
|
1940
1941
|
1 => 'Object Found',
|
|
@@ -2842,24 +2843,32 @@ my %indexInfo = (
|
|
|
2842
2843
|
RawConv => '$val=~s/\0+$//; $val', # (may be null terminated)
|
|
2843
2844
|
Count => 4,
|
|
2844
2845
|
},
|
|
2845
|
-
0x100 => {
|
|
2846
|
+
0x100 => { #6
|
|
2847
|
+
Name => 'WB_RBLevels',
|
|
2848
|
+
Writable => 'int16u',
|
|
2849
|
+
Notes => q{
|
|
2850
|
+
These tags store 2 values, red and blue levels, for some models, but 4
|
|
2851
|
+
values, presumably RBGG levels, for other models
|
|
2852
|
+
},
|
|
2853
|
+
Count => -1,
|
|
2854
|
+
}, #6
|
|
2846
2855
|
# 0x101 - in-camera AutoWB unless it is all 0's or all 256's (ref IB)
|
|
2847
|
-
0x102 => { Name => 'WB_RBLevels3000K', Writable => 'int16u', Count =>
|
|
2848
|
-
0x103 => { Name => 'WB_RBLevels3300K', Writable => 'int16u', Count =>
|
|
2849
|
-
0x104 => { Name => 'WB_RBLevels3600K', Writable => 'int16u', Count =>
|
|
2850
|
-
0x105 => { Name => 'WB_RBLevels3900K', Writable => 'int16u', Count =>
|
|
2851
|
-
0x106 => { Name => 'WB_RBLevels4000K', Writable => 'int16u', Count =>
|
|
2852
|
-
0x107 => { Name => 'WB_RBLevels4300K', Writable => 'int16u', Count =>
|
|
2853
|
-
0x108 => { Name => 'WB_RBLevels4500K', Writable => 'int16u', Count =>
|
|
2854
|
-
0x109 => { Name => 'WB_RBLevels4800K', Writable => 'int16u', Count =>
|
|
2855
|
-
0x10a => { Name => 'WB_RBLevels5300K', Writable => 'int16u', Count =>
|
|
2856
|
-
0x10b => { Name => 'WB_RBLevels6000K', Writable => 'int16u', Count =>
|
|
2857
|
-
0x10c => { Name => 'WB_RBLevels6600K', Writable => 'int16u', Count =>
|
|
2858
|
-
0x10d => { Name => 'WB_RBLevels7500K', Writable => 'int16u', Count =>
|
|
2859
|
-
0x10e => { Name => 'WB_RBLevelsCWB1', Writable => 'int16u', Count =>
|
|
2860
|
-
0x10f => { Name => 'WB_RBLevelsCWB2', Writable => 'int16u', Count =>
|
|
2861
|
-
0x110 => { Name => 'WB_RBLevelsCWB3', Writable => 'int16u', Count =>
|
|
2862
|
-
0x111 => { Name => 'WB_RBLevelsCWB4', Writable => 'int16u', Count =>
|
|
2856
|
+
0x102 => { Name => 'WB_RBLevels3000K', Writable => 'int16u', Count => -1 }, #11
|
|
2857
|
+
0x103 => { Name => 'WB_RBLevels3300K', Writable => 'int16u', Count => -1 }, #11
|
|
2858
|
+
0x104 => { Name => 'WB_RBLevels3600K', Writable => 'int16u', Count => -1 }, #11
|
|
2859
|
+
0x105 => { Name => 'WB_RBLevels3900K', Writable => 'int16u', Count => -1 }, #11
|
|
2860
|
+
0x106 => { Name => 'WB_RBLevels4000K', Writable => 'int16u', Count => -1 }, #11
|
|
2861
|
+
0x107 => { Name => 'WB_RBLevels4300K', Writable => 'int16u', Count => -1 }, #11
|
|
2862
|
+
0x108 => { Name => 'WB_RBLevels4500K', Writable => 'int16u', Count => -1 }, #11
|
|
2863
|
+
0x109 => { Name => 'WB_RBLevels4800K', Writable => 'int16u', Count => -1 }, #11
|
|
2864
|
+
0x10a => { Name => 'WB_RBLevels5300K', Writable => 'int16u', Count => -1 }, #11
|
|
2865
|
+
0x10b => { Name => 'WB_RBLevels6000K', Writable => 'int16u', Count => -1 }, #11
|
|
2866
|
+
0x10c => { Name => 'WB_RBLevels6600K', Writable => 'int16u', Count => -1 }, #11
|
|
2867
|
+
0x10d => { Name => 'WB_RBLevels7500K', Writable => 'int16u', Count => -1 }, #11
|
|
2868
|
+
0x10e => { Name => 'WB_RBLevelsCWB1', Writable => 'int16u', Count => -1 }, #11
|
|
2869
|
+
0x10f => { Name => 'WB_RBLevelsCWB2', Writable => 'int16u', Count => -1 }, #11
|
|
2870
|
+
0x110 => { Name => 'WB_RBLevelsCWB3', Writable => 'int16u', Count => -1 }, #11
|
|
2871
|
+
0x111 => { Name => 'WB_RBLevelsCWB4', Writable => 'int16u', Count => -1 }, #11
|
|
2863
2872
|
0x113 => { Name => 'WB_GLevel3000K', Writable => 'int16u' }, #11
|
|
2864
2873
|
0x114 => { Name => 'WB_GLevel3300K', Writable => 'int16u' }, #11
|
|
2865
2874
|
0x115 => { Name => 'WB_GLevel3600K', Writable => 'int16u' }, #11
|
|
@@ -3246,6 +3255,7 @@ my %indexInfo = (
|
|
|
3246
3255
|
3 => 'Trains',
|
|
3247
3256
|
4 => 'Birds',
|
|
3248
3257
|
5 => 'Dogs & Cats',
|
|
3258
|
+
6 => 'Human', #forum16072
|
|
3249
3259
|
},{
|
|
3250
3260
|
0 => 'Face Priority',
|
|
3251
3261
|
1 => 'Target Priority',
|
|
@@ -366,6 +366,7 @@ my %shootingMode = (
|
|
|
366
366
|
'32 1' => '3-area (left)?', # (DMC-L1 guess)
|
|
367
367
|
'32 2' => '3-area (center)?', # (DMC-L1 guess)
|
|
368
368
|
'32 3' => '3-area (right)?', # (DMC-L1 guess)
|
|
369
|
+
# '32 16' ? (DC-GH6)
|
|
369
370
|
'64 0' => 'Face Detect',
|
|
370
371
|
'64 1' => 'Face Detect (animal detect on)', #forum11194
|
|
371
372
|
'64 2' => 'Face Detect (animal detect off)', #forum11194
|
|
@@ -218,6 +218,7 @@ my %panasonicWhiteBalance = ( #forum9396
|
|
|
218
218
|
0x30 => { Name => 'CropLeft', Writable => 'int16u' },
|
|
219
219
|
0x31 => { Name => 'CropBottom', Writable => 'int16u' },
|
|
220
220
|
0x32 => { Name => 'CropRight', Writable => 'int16u' },
|
|
221
|
+
0x37 => { Name => 'ISO', Writable => 'int32u' },
|
|
221
222
|
# 0x44 - may contain another pointer to the raw data starting at byte 2 in this data (DC-GH6)
|
|
222
223
|
0x10f => {
|
|
223
224
|
Name => 'Make',
|