Author Topic: Recommendation for exif and xmp entry of a manual lens with args file  (Read 590 times)

biofunc

  • Newbie
  • *
  • Posts: 3
Hello,

I would like to write the lens data for a Samyang 12mm in the photo with an args file.
There are many hints, but often only the exif tags are described. These are, however, e.g. not shown in Lightroom Filter.

It would be great if someone could give a complete example of the objective data (exif and xmp).

- The tags should be written in the file

- old tags should be overwritten.

Here is my basis:

-n
Exif:Lens=Samyang 13 mm f/2.8 ED AS NCS Fisheye
Exif:LensSerialNumber=H327E0466
Exif:LensModel=Samyang 13 mm f/2.8 ED AS NCS Fisheye
Exif:FocalLength=13
Exif:FocalLengthIn35mmFormat=13
Exif:MaxApertureValue=2.8
Exif:FNumber=11
-XMP:Lens=Samyang 13 mm f/2.8 ED AS NCS Fisheye
-XMP:LensInfo=12/1 12/1 28/10 28/10
-XMP:LensSerialNumber=H317E0465

Is tag necessary or useful with the XMP-aux command?
For example,
XMP-aux:Lens=Samyang 12mm f / 2.8 ED AS NCS Fisheye

Thanks


StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3785
The one problem I see is that you don't have the leading dash for the tag names in your args file

Code: [Select]
-n
-Exif:Lens=Samyang 13 mm f/2.8 ED AS NCS Fisheye
-Exif:LensSerialNumber=H327E0466
-Exif:LensModel=Samyang 13 mm f/2.8 ED AS NCS Fisheye
-Exif:FocalLength=13
-Exif:FocalLengthIn35mmFormat=13
-Exif:MaxApertureValue=2.8
-Exif:FNumber=11
-XMP:Lens=Samyang 13 mm f/2.8 ED AS NCS Fisheye
-XMP:LensInfo=12/1 12/1 28/10 28/10
-XMP:LensSerialNumber=H317E0465

Quote
Is tag necessary or useful with the XMP-aux command?
For example,
XMP-aux:Lens=Samyang 12mm f / 2.8 ED AS NCS Fisheye

I'm not sure what you mean by that.  Are you asking if it's worth writing to XMP-aux:Lens or not?  That's up to you.  I think Lightroom will read the value from either XMP or EXIF. 

If you're asking whether you need to write XMP-aux:Lens as well as XMP:Lens, then no.  XMP:Lens actually writes to XMP-aux:Lens.  It's just an easier shorthand to just specify that you want to write to XMP without having to detail the exact subgroup.  There are occasions where you may want to specify the subgroup, especially in the case of ACDSee tags, IIRC.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

biofunc

  • Newbie
  • *
  • Posts: 3
Thank you for your answer.

Yes, Lightroom reads the exif and xmp data. If you want to filter photos by lenses, you need the xmp data.

- In addition, it would be great if someone would specify what data he enters with manual lenses next to the ones I have specified, because I have to process a few thousand photos and do not want to do it more often than necessary.

- Does it make sense to write the complete exif-data in addition to the xmp?

- How do I have to insert the option -overwrite_original into the args file so that the original data will be overwritten?

many Greetings

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
- Does it make sense to write the complete exif-data in addition to the xmp?

Yes.

Quote
- How do I have to insert the option -overwrite_original into the args file so that the original data will be overwritten?

Just add it on a new line in the file.

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

biofunc

  • Newbie
  • *
  • Posts: 3
Okay, my args file now looks like this and seems to work:

-n
-Exif: LensModel = Samyang 12mm f / 2.8 ED AS NCS Fisheye
-ExifIFD: LensInfo = 12/1 12/1 28/10 28/10
-Exif: Lens Serial Number = J318F0655
-Exif: FocalLength = 12.0
-Exif: FocalLengthIn35mmFormat = 12
-Exif: MaxApertureValue = 2.8
-Exif: ApertureValue = 11.0
-Exif: FNumber = 11.0
-Exif: DNGLensInfo = 12/1 12/1 28/10 28/10
-XMP: Lens = Samyang 12mm f / 2.8 ED AS NCS Fisheye
-XMP: LensModel = Samyang 12mm f / 2.8 ED AS NCS Fisheye
-XMP: LensInfo = 12/1 12/1 28/10 28/10
-XMP: Lens Serial Number = J318F0655
-XMP: FocalLength = 12.0
-XMP: FocalLengthIn35mmFormat = 12
-XMP: MaxApertureValue = 2.8
-XMP: ApertureValue = 11.0
-XMP: FNumber = 11.0

However, the lens is not detected automatically in the lightroom lens correction.

This is not a problem as you can manually select the profile.

But if anyone knows which tag to write for auto-detection lensprofil in lightroom, I'm grateful for a hint.

Thanks

Wolfgang

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Hi Wolfgang,

I am assuming that the images have the camera Make/Model set, because LR would need to know this.

Also, you may not have been writing some tags properly if you had spaces in your tag names.  Try this:

Code: [Select]
-n
-Exif:LensModel = Samyang 12mm f / 2.8 ED AS NCS Fisheye
-ExifIFD:LensInfo = 12/1 12/1 28/10 28/10
-Exif:LensSerialNumber = J318F0655
-Exif:FocalLength = 12.0
-Exif:FocalLengthIn35mmFormat = 12
-Exif:MaxApertureValue = 2.8
-Exif:ApertureValue = 11.0
-Exif:FNumber = 11.0
-Exif:DNGLensInfo = 12/1 12/1 28/10 28/10
-XMP:Lens = Samyang 12mm f / 2.8 ED AS NCS Fisheye
-XMP:LensModel = Samyang 12mm f / 2.8 ED AS NCS Fisheye
-XMP:LensInfo = 12/1 12/1 28/10 28/10
-XMP:LensSerialNumber = J318F0655
-XMP:FocalLength = 12.0
-XMP:FocalLengthIn35mmFormat = 12
-XMP:MaxApertureValue = 2.8
-XMP:ApertureValue = 11.0
-XMP:FNumber = 11.0

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