Post your LensType / LensID discoveries here

Started by Phil Harvey, January 08, 2012, 08:37:16 PM

Previous topic - Next topic

Phil Harvey

Great, thanks.

I don't expect the 3rd party lens list to be complete, so I am not surprised to have an old lens missing like this.

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

gregglee

Checked on Sony A900 and A700

Tamron 18-270mm f3.5-6.3 Di II PZD

0xb027 lens type 57
0xb02a lensspec 01 18 270 3.5 6.3 00

0xb027 lens type printconversion "Sony DT 50mm F1.8 SAM (SAL50F18) or Tamron Lens"
0xb02a lensspec printconversion  "DT 18-270mm F3.5-6.3"

Composite lensid  "Sony DT 50mm F1.8 SAM (SAL50F18) or Tamron Lens"

Note that unlike some Sigma "DC" lenses, this lens does report 01 for the first byte of lensspec indicating an ASPC only lens.   Thus the "DT" in lensspec print conversion rather than Tamron equivalent "Di II"

This lens does cause the A900 to automatically switch to aspc-size mode.  Just as with Sony DT lenses, the camera reports camera model id 262 / DSLR-A900 (APS-C mode). 

Added:

Also note that at max zoom out the lens reports 280 for the focal length rather than 270. 

Phil Harvey

Quote from: gregglee on March 16, 2012, 03:59:32 PM
Tamron 18-270mm f3.5-6.3 Di II PZD

0xb027 lens type 57

Excellent, thanks!  I'll add this.

Quote
Also note that at max zoom out the lens reports 280 for the focal length rather than 270.

...that may throw a wrench into the Composite LensID determination. :(

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

gregglee

Quote from: Phil Harvey on March 16, 2012, 04:22:13 PM
Quote from: gregglee on March 16, 2012, 03:59:32 PM
Also note that at max zoom out the lens reports 280 for the focal length rather than 270.
...that may throw a wrench into the Composite LensID determination. :(

- Phil
At least at the moment the other two lenstype 57 lenses are primes with max apertures faster than the aperture range of the 18-270, which leaves only one  zoom to select from. 

Phil Harvey

Quote from: gregglee on March 17, 2012, 09:49:46 AM
At least at the moment the other two lenstype 57 lenses are primes with max apertures faster than the aperture range of the 18-270, which leaves only one  zoom to select from.

Unfortunately, that's not how it will work.  If ExifTool sees a FocalLength of 280mm, it will discard the 18-270 as a possible match, and with no other good prospects it will assume that this is an unknown lens.  (Unless the user has added it to the UserDefined Lenses, which overrides the focal length/aperture logic.)

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

gregglee

One way or another 8.84 figures it out.   I don't have any  UserDefined Lenses.


numbers
---- ExifTool ----
ExifTool Version Number         : 8.84
---- EXIF ----
Camera Model Name               : DSLR-A700
Exposure Time                   : 0.004
F Number                        : 6.3
Max Aperture Value              : 6.29846381255363
Focal Length                    : 280
---- MakerNotes ----
Sony Model ID                   : 258
Lens Type                       : 57
Lens Spec                       : 01 18 270 3.5 6.3 00
---- Composite ----
Aperture                        : 6.3
Lens ID                         : 57
Shutter Speed                   : 0.004
Focal Length                    : 420

printconversion
---- EXIF ----
Camera Model Name               : DSLR-A700
Exposure Time                   : 1/250
F Number                        : 6.3
Max Aperture Value              : 6.3
Focal Length                    : 280.0 mm
---- MakerNotes ----
Sony Model ID                   : DSLR-A700
Lens Type                       : Sony DT 50mm F1.8 SAM (SAL50F18) or Tamron Lens
Lens Spec                       : DT 18-270mm F3.5-6.3
---- Composite ----
Aperture                        : 6.3
Lens ID                         : Tamron 18-270mm F3.5-6.3 Di II PZD
Shutter Speed                   : 1/250
Focal Length                    : 280.0 mm (35 mm equivalent: 420.0 mm)


Phil Harvey

Ah, you're right.  This is due to the new LensSpec logic I added recently for Sony lenses.  The LensSpec is correct, so the FocalLength logic is bypassed in this case.  Cool.  Smart program. :)

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

dyvroeth

For Canon EF70-200mm f/2.8L IS II USM with a 1.4x Mk II extender, LensType reports Unknown (252) but LensModel spots it and reports 70-200mm f/2.8L IS II USM +1.4x

Phil Harvey

Excellent, thanks!  This fills in 2 more missing Canon LensType values since it makes sense that 253 is the same lens with the 2x extender.

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

juhala

The following are tested with Canon 40D and ExifTool 8.88.

"Sigma 150mm F2.8 EX DG OS HSM APO Macro" (from Sigma US website)
LensID: 183
This is identified wrongly as "Canon EF 100-400mm f/4.5-5.6L IS". With 1.4x TC (Canon Mk II) LensID remains the same, but focal length and aperture are updated correctly.

"EMF adapter for Canon EOS digital cameras" (from user manual)
LensID: 27
This is a programmable (i.e. focal length and maximum aperture settable) focus confirm chip for adapting manual focus lenses to Canon cameras. Is identified as "Canon EF 35-80mm f/4-5.6", which it is probably meant to claim to be. But unlike the real thing, this chip reports LongFocal as 65535 and LensModel as "1-65535mm". Manufacturer is emfphoto.com.

Phil Harvey

Thanks!

I'll add the Sigma, but recognizing the EMF adapter is problematic because the focal length doesn't appear in the adapter name, and this is how ExifTool chooses amongst the possibilities.  I have seen an image taken with a Nikon lens that gave a LensType of 27 too, which was obviously done using some sort of adapter.

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

mikepollock

Hi,

Just received a shiny new Nikon lens, which doesn't seem to be in the list yet; here's the Lens-related output from yesterday's test pics:

Lens Type                       : G
Lens                            : 28mm f/1.8
Lens Data Version               : 0204
Lens ID Number                  : 181
Lens F Stops                    : 6.33
Lens ID                         : Unknown (B5 4C 3C 3C 14 14 B7 06)
Lens                            : 28mm f/1.8 G

The official name is something like:
Nikon AF-S Nikkor 28mm f/1.8G

Thanks a lot,
Mike.

Phil Harvey

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

boels069

Canon EF 40 f/2.8 STM Pancake
LensType: unknown (4144)
LensModel EF40mm f/2.8 STM


Phil Harvey

Quote from: boels069 on June 30, 2012, 05:01:29 AM
Canon EF 40 f/2.8 STM Pancake
LensType: unknown (4144)
LensModel EF40mm f/2.8 STM

Thanks.  Do you have a sample image for this one?  The number is incongruous with the normal Canon numbering scheme, and may indicate corrupted metadata.  If you have a sample, please email it to me (philharvey66 at gmail.com).  Thanks.

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