Changing lens info for DxO recognition

Started by MichaelM, April 16, 2013, 11:52:43 PM

Previous topic - Next topic

MichaelM

Hello everyone,

I researched this as best I could and tried many, many lines of command line entry, but it seems I can't solve this on my own.

I'm trying to change the lens info of my Panasonic G3 .rw2 files. I'm using an OLYMPUS M.40-150mm F4.0-5.6 R lens (which is not recognized by DxO for my camera), which is just a slight aesthetic refresh of the Olympus Zuiko Digital ED 40-150mm F4.0-5.6 (which should be recognized for my camera). While being exactly the same internally, it carries different EXIF lens info though.

Here is the lens data, as given by ExifTool, the info of the lens I want to emulate taken from a JPEG of the internet, which has been shot with that lens:

C:\Users\Michael\Downloads\exiftoolgui>exiftool 40150.jpg "-lens*"
Lens Type                       : Olympus Zuiko Digital ED 40-150mm F4.0-5.6
Lens Serial Number              : 222157543
Lens Model                      : OLYMPUS 40-150mm Lens
Lens Firmware Version           : 1.304
Lens Properties                 : 0xc047
Lens ID                         : Olympus Zuiko Digital ED 40-150mm F4.0-5.6

C:\Users\Michael\Downloads\exiftoolgui>exiftool 40150.jpg -n -lensid
Lens ID                         : 0 24 00

C:\Users\Michael\Downloads\exiftoolgui>exiftool 40150r.rw2 "-lens*"
Lens Type                       : OLYMPUS M.40-150mm F4.0-5.6 R
Lens Serial Number              : ABJ334952
Lens ID                         : OLYMPUS M.40-150mm F4.0-5.6 R

C:\Users\Michael\Downloads\exiftoolgui>exiftool 40150r.rw2 -n -lensid
Lens ID                         : OLYMPUS M.40-150mm F4.0-5.6 R


40150r.rw2 is the lens I'm using. 40150.jpg is the lens I want to lift the info from.

I'm using the Windows version of ExifTool on Windows 7 x64.


Help would be much, much appreciated!

Phil Harvey

Looking at the Olympus LensType values, the "R" version of the lens has a LensType number of "0 14 10".  So you should use:

exiftool -lenstype#="0 14 10" -lensmodel="OLYMPUS M.40-150mm F4.0-5.6 R" FILE

This will set the MakerNotes LensType as well as the EXIF LensModel.  I don't understand your internet sample because it has a LensType, but it isn't numerical.  Odd.  I would know more if you added -a -H -G1 to the "-lens*" command.

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

MichaelM

Phil,

thanks for the pointers.

This is the output for the picture of the lens I'm trying to emulate (and which is successfully recognized by DxO, taken from another file I found on the Internet, coming straight out of the cam):

[Olympus]       0x0201 Lens Type                       : Olympus M.Zuiko Digital ED 40-150mm F4.0-5.6 R
[Olympus]       0x0202 Lens Serial Number              : ABJ326475
[Olympus]       0x0203 Lens Model                      : OLYMPUS M.40-150mm F4.0-5.6 R
[Olympus]       0x0204 Lens Firmware Version           : 1.004
[Olympus]       0x020b Lens Properties                 : 0xc140
[ExifIFD]       0xa432 Lens Info                       : 40-150mm f/4-5.6
[ExifIFD]       0xa434 Lens Model                      : OLYMPUS M.40-150mm F4.0-5.6 R
[Composite]          - Lens ID                         : Olympus M.Zuiko Digital ED 40-150mm F4.0-5.6 R



And this is what I get from my lens:

[Panasonic]     0x0051 Lens Type                       : OLYMPUS M.40-150mm F4.0-5.6 R
[Panasonic]     0x0052 Lens Serial Number              : ABJ334952
[Composite]          - Lens ID                         : OLYMPUS M.40-150mm F4.0-5.6 R



And this is what I get from my file after running the command you provided, which doesn't make DxO recognize the lens:

[Panasonic]     0x0051 Lens Type                       : OLYMPUS M.40-150mm F4.0-5.6 R
[Panasonic]     0x0052 Lens Serial Number              : ABJ334952
[ExifIFD]       0xa434 Lens Model                      : OLYMPUS M.40-150mm F4.0-5.6 R
[ExifIFD]       0xa434 Lens Model                      : OLYMPUS M.40-150mm F4.0-5.6 R
[Composite]          - Lens ID                         : OLYMPUS M.40-150mm F4.0-5.6 R


Anything to salvage there?

Phil Harvey

Oh.  I totally missed that the 2 images you were using are from different makes of cameras.  The Pansonic G3 LensType is not numeric, so you must write it as a string.  Unfortunately, I just discovered that the writing of the Panasonic LensType string was accidentally disabled in ExifTool 9.15.  But with version 9.14 or earlier (or 9.28 or later), you should be able to change the Panasonic LensType as a string.

Also, I had you writing the LensType for the "R" version of the lens, not the "R" version as in my previous command.  So maybe you will have some luck with this (and ExifTool 9.14 or earlier):

exiftool -lenstype="OLYMPUS M.40-150mm F4.0-5.6" FILE

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

MichaelM

Just can't get it to work. I can't get files taken by other people with the same camera and the older lens to work either. Think I'll message the Dxo support and ask them, what kind of tags and information they are looking for to ID this combination.