Wrongly identified Sony lens

Started by FMTrindade, April 24, 2024, 03:39:17 PM

Previous topic - Next topic

FMTrindade

Hello.

Are there any advances in this area (seen from another post some years ago, regarding Tamron lens and Canon TC2.0x) ?

I'm using exif in a batch file (.bat) to rename all my ARW files I'm shooting daily, according to datetime, sequence number and some tech specs of the camera and lens used to shoot it.

This works, BUT...

Now, using this Tamron lens ( Tamron SP 70-200 f2.8 Di VC USD G2 ) and a Sigma MC-11 or Metabones V (latest firmware on both) and a 2x TC from Canon (the first edition) I get different results:

The results are as follows:

Tamron Lens and MC-11:
at 70mm
2024-04-24__194146_ILCE-9__00000____S1-100__Lens-_Tamron SP 70-200mm f2.8 Di VC USD G2 (A025)_@200.0 mm_F2.8_ISO-4000_.ARW

at 200mm:
2024-04-24__194157_ILCE-9__00000____S1-100__Lens-_Tamron SP 70-200mm f2.8 Di VC USD G2 (A025)_@70.0 mm_F2.8_ISO-1600_.ARW

Tamron Lens and MC-11 and Canon TC2.0x:
at 70mm:
2024-04-24__194255_ILCE-9__00000____S1-100__Lens-_DT 98-280mm F2.8 SAM_@98.0 mm_F4.0_ISO-12800_.ARW
at 200mm:
2024-04-24__194242_ILCE-9__00000____S1-100__Lens-_DT 98-280mm F2.8 SAM_@280.0 mm_F4.0_ISO-20000_.ARW


Tamron lens and Metabones V:
at 70mm:
2024-04-24__194352_ILCE-9__00000____S1-100__Lens-_TAMRON SP 70-200mm F2.8 Di VC USD G2 A025_@70.0 mm_F2.8_ISO-2000_.ARW
at 200mm:
2024-04-24__194348_ILCE-9__00000____S1-100__Lens-_TAMRON SP 70-200mm F2.8 Di VC USD G2 A025_@200.0 mm_F2.8_ISO-4000_.ARW


Tamron Lens and Metabones and Canon TC 2.0x
at 70mm:
2024-04-24__194436_ILCE-9__00000____S1-100__Lens-_TAMRON SP 70-200mm F2.8 Di VC USD G2 A025+1.4x_@98.0 mm_F4.0_ISO-16000_.ARW
at 200mm:
2024-04-24__194429_ILCE-9__00000____S1-100__Lens-_TAMRON SP 70-200mm F2.8 Di VC USD G2 A025+1.4x_@280.0 mm_F4.0_ISO-25600_.ARW


Can anyone help me at least to rewrite the name of the lens correctly?
Even with conditionals on the exiftool


on Tamron + MC11 + TC2.0x:
[EXIF]          LensInfo                : 98-280mm f/2.8
[EXIF]          LensModel              : DT 98-280mm F2.8 SAM
[MakerNotes]    SonyFNumber            : 4.0                <---- should have been 5.6
[EXIF]          FocalLength            : 280.0 mm            <---- should have been 400mm
[EXIF]          FocalLengthIn35mmFormat : 280 mm              <---- should have been 400mm
[MakerNotes]    LensType                : Canon EF 300mm f/2.8L IS II USM or Tamron Lens + Canon EF Adapter <---- all WRONG!!!
[MakerNotes]    LensSpec                : DT 98-280mm F2.8 SAM
[MakerNotes]    LensMount2            : A-mount (5)        <----  A-Mount?? NEVER!
[MakerNotes]    LensType3              : Sony LA-EA1 or Sigma MC-11 Adapter
[Composite]    LensID                      : TAMRON SP 70-200mm F/2.8 Di VC USD G2 A025+1.4x

on Tamron + Metabones 5 + TC2.0x:
[EXIF]          LensInfo                : 98-280mm f/4
[EXIF]          LensModel              : TAMRON SP 70-200mm F/2.8 Di VC USD G2 A025+1.4x  NOT 1.4x!!! 2.0!!!
[MakerNotes]    SonyFNumber            : 4.0                <---- should have been 5.6
[EXIF]          FocalLength            : 280.0 mm            <---- should have been 400mm
[EXIF]          FocalLengthIn35mmFormat : 280 mm              <---- should have been 400mm
[MakerNotes]    LensType                : E-Mount, T-Mount, Other Lens or no lens
[MakerNotes]    LensSpec                : 98-280mm F4 SSM OSS
[MakerNotes]    LensMount2            : E-mount
[MakerNotes]    LensType3              : Unknown (33002)
[Composite]    LensID                      : TAMRON SP 70-200mm F/2.8 Di VC USD G2 A025+1.4x




So...
Can you help me at least to change the filename in the batchfile below so that when it finds these values, correct them to the appropriate names/models/focal lengths, please?

Thanks.


The batchfile I created to help me doing it is this:


File ImgRename.bat
Usage: ImgRename -f -i

On something shot with Sony a9 , Sigma MC-11 and Tamron SP 70-200 f2.8 Di VC USD G2
will give you something like:
2024-04-24__082605_ILCE-9__00001____S1-5000__Lens-_TAMRON SP 70-200mm F2.8 Di VC USD G2 A025_@200.0 mm_F2.8_ISO-100_.ARW


@echo off

REM  execute exiftool as
REM      exiftool -r -d %Y%m%d_%H%M%S "-filename<${DateTimeOriginal}_${model;}_#_S${shutterspeed;tr(1/)(1-)}${LensID;}_${FocalLength;}%-3c.%e" .
REM  or
REM      exiftool -r -d %Y%m%d_%H%M%S "-filename<${DateTimeOriginal}_${model;}_#_S${shutterspeed;tr(1/)(1-)}%-3c.%e" .

echo use ImgRename -t to test
echo use ImgRename -nolenses to rename without lens
echo or both
echo no arguments will rename with lenses if exist or fail to rename if no lenses

Set lenses=__Lens-_${LensID;}_@${FocalLength;}
Set speed=___S=${shutterspeed;;tr(1/)(1-)}_
Set test=filename
Set final=_%%-3c.%%e" .

if /I [%1] == [-t] (Set test=testname)
if /I [%1] == [t]  (Set test=testname)
if /I [%2] == [-t] (Set test=testname)
if /I [%2] == [t]  (Set test=testname)
if /I [%3] == [-t] (Set test=testname)
if /I [%3] == [t]  (Set test=testname)
if /I [%4] == [-t] (Set test=testname)
if /I [%4] == [t]  (Set test=testname)
if /I [%5] == [-t] (Set test=testname)
if /I [%5] == [t]  (Set test=testname)
if /I [%6] == [-t] (Set test=testname)
if /I [%6] == [t]  (Set test=testname)


if /I [%1] == [-nolenses] (Set lenses=)
if /I [%1] == [nolenses]  (Set lenses=)
if /I [%2] == [-nolenses] (Set lenses=)
if /I [%2] == [nolenses]  (Set lenses=)
if /I [%3] == [-nolenses] (Set lenses=)
if /I [%3] == [nolenses]  (Set lenses=)
if /I [%4] == [-nolenses] (Set lenses=)
if /I [%4] == [nolenses]  (Set lenses=)
if /I [%5] == [-nolenses] (Set lenses=)
if /I [%5] == [nolenses]  (Set lenses=)
if /I [%6] == [-nolenses] (Set lenses=)
if /I [%6] == [nolenses]  (Set lenses=)

if /I [%1] == [f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%2] == [f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%3] == [f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%4] == [f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%5] == [f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%6] == [f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%1] == [-f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%2] == [-f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%3] == [-f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%4] == [-f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%5] == [-f]  (Set lenses=%lenses%_F${Aperture;})
if /I [%6] == [-f]  (Set lenses=%lenses%_F${Aperture;})

if /I [%1] == [i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%2] == [i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%3] == [i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%4] == [i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%5] == [i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%6] == [i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%1] == [-i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%2] == [-i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%3] == [-i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%4] == [-i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%5] == [-i]  (Set lenses=%lenses%_ISO-${ISO;})
if /I [%6] == [-i]  (Set lenses=%lenses%_ISO-${ISO;})




REM F${Aperture;} ISO-${ISO;}




Set comando=exiftool -r -d %%Y-%%m-%%d__%%H%%M%%S "-
Set comando=%comando%%test%
Set comando=%comando%<${DateTimeOriginal}_${model;}__${SequenceNumber;$_=sprintf('%%05d',$_ )}_
Set comando=%comando%%speed%
Set comando=%comando%%lenses%
Set comando=%comando%%final%


echo lenses: %lenses%
echo teste: %test

echo comando: %comando%
echo -----------------------------------------------------------#
%comando%
echo #####################################################################################
echo.
echo.
echo comando: %comando%
echo.
echo.
There is no such thing as inexpensive underwater photography gear...

Phil Harvey

Maybe someone else can help with the bat file.

It looks as if the camera is storing incorrect EXIF metadata for some of your lens combinations, which really complicates the automatic lens identification.  I don't know if there is much that can be done here to improve this.  Certainly without samples my hands are tied.

- 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 ($).

FMTrindade

Quote from: Phil Harvey on April 24, 2024, 04:14:09 PMCertainly without samples my hands are tied.

Hello.
Thanks for your reply.

Samples here:
https://drive.google.com/drive/folders/17TG3lLwZ7i-NSYd5Ji-dwzSH87AjH0XF?usp=sharing

tHANKS!
There is no such thing as inexpensive underwater photography gear...

Phil Harvey

What lens/adapter was used for each of these files?

- 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 ($).

FMTrindade

Quote from: Phil Harvey on April 25, 2024, 11:05:03 AMWhat lens/adapter was used for each of these files?

- Phil

Hello again.

I replaced the files in the folder with the files mentioned in this thread, on my OP.
You have the description of what was used in each of the photos.
Will this help?

Thanks.
Fernando
There is no such thing as inexpensive underwater photography gear...

FMTrindade

I just opened file indo on photoshop and...
For the one shot with the Canon TC2.0x and Sigma  MC-11 adapter, the camera identifies  this:

   <aux:SerialNumber>03772219</aux:SerialNumber>
   <aux:LensInfo>980/10 2800/10 28/10 28/10</aux:LensInfo>
   <aux:Lens>DT 98-280mm F2.8 SAM</aux:Lens>
   <aux:LensID>61675</aux:LensID>
   <exifEX:LensModel>DT 98-280mm F2.8 SAM</exifEX:LensModel>

   
This is absolutely wrong!!!
Where can the problem be located at?
Sigma MC-11?
Canon 2x?

Because if we use only one of these.. it works ok.
At least we can read Tamron sp 70-200...


There is no such thing as inexpensive underwater photography gear...

Phil Harvey

Generally, 3rd party lenses aren't handled well in metadata from a different make of camera.  This is especially a problem when you are using lens mount adapters.  I'm not surprised that Adobe doesn't get this right, and I don't think it is possible to fix this in ExifTool either.

- 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 ($).

JosR

Some observations and questions:

1)
You are using a Tamron Lens
With a Canon teleconverter
And a Sigma or Metabones adapter
On a Sony camera ...
And still you expect that all Exif data will be correct? That's a tough call to start with!

2)
Are you ABSOLUTELY SURE that you used a 2x TC ??
Is the TC new? Are you the first owner? Or is it possible that the chip in the TC was ever changed?

Because ALL your above posted info indicates the use of a 1.4x TC
e.g. 98-280mm is 70-200mm times 1.4 for the Sigma MC11,
And the Metabones have "+1.4x"
In addition, both MC11 and Metabones give FocalLength=98mm and 280mm.
From my experience with many Sony images, when using a TC the FocalLength values are usually correct for the multiplied lens (or for the base lens in case of 'dumb' converters). In case of a 2xTC I would therefore expect 140mm and 400mm.
Therefore, the values 98mm and 280mm indicate that your TC is actually providing 98 and 280 to the MC11 or Metabones, i.e. like an 1.4x TC.
I find it very unlikely that both Sigma and Metabones, which both give correct info without TC, would come up with the SAME INCORRECT info with the TC, unless coming from the TC itself.

3)
Also, which software did you use on these images before running the Batch-file?
Because, e.g. from the filenames in your first post and the Composite:LensID output:
There are various small differences in the text-strings, and none of these text-strings are literally written by Sony cameras, so they must have been added to the image-files by some piece of software ...
(and Exiftool only contains, in Canon.pm at LensType 491: 'Tamron SP 70-200mm f/2.8 Di VC USD G2 (A025)'

4)
Concluding:
All the results/output you provided above is consistent with the use of an 1.4x TC ...
I don't think this has to do with Exiftool providing incorrect output, but rather with the data provided by your TC. So I suggest you check your TC – see item 2 above.