Hi,
Since I am using a manual lens (LAOWA macro lens) on my SONY a7rIV at this time, I wanted to update my raw file's EXIF data with the Aperture and/or FNumber value I used to make the shot. However, exiftool can't rewrite the SR2Private entry.
I have no clue how to fix this, can anyone help with that ?
C:\Users\User>exiftool -FocalLength=100 -FNumber=5.6 -m -overwrite_original_in_place -P "Z:\Pictures\Foto's\2021\2021-07\2021-07-14\DSC03612.ARW" -v1
Warning: Value above int16u maximum for Leica:FocalLength
======== Z:/Pictures/Foto's/2021/2021-07/2021-07-14/DSC03612.ARW
Rewriting Z:/Pictures/Foto's/2021/2021-07/2021-07-14/DSC03612.ARW...
Editing tags in: ExifIFD IFD0 MIE-Lens MakerNotes TIFF XMP
FileType = ARW
FileTypeExtension = ARW
MIMEType = image/x-sony-arw
Rewriting IFD0
Rewriting SubIFD
Rewriting XMP
Rewriting ExifIFD
Rewriting MakerNoteSony5
Rewriting ShotInfo
Rewriting Tag202a
Rewriting Tag9400c
Rewriting Tag9401
Rewriting Tag9402
Rewriting Tag9403
Rewriting Tag9404c
Rewriting Tag9405b
Rewriting Tag9406
Rewriting Tag940c
Rewriting Tag940e
Rewriting Tag2010i
Rewriting Tag9050b
Rewriting InteropIFD
Rewriting GPS
Rewriting SR2Private
Warning = Bad format (39295) for SR2Private entry 0
Error = Error writing MakerNotes
Warning: Bad format (39295) for SR2Private entry 0 - Z:/Pictures/Foto's/2021/2021-07/2021-07-14/DSC03612.ARW
Error: Error writing MakerNotes - Z:/Pictures/Foto's/2021/2021-07/2021-07-14/DSC03612.ARW
0 image files updated
1 files weren't updated due to errors
Thanks,
Paul
Hi Paul,
I get this with a sample I have here:
> exiftool ../pics/SonyILCE-7RM4.arw -focallength=100 -o tmp
Warning: [minor] Oversized SubIFD StripByteCounts (122419200 bytes, but expected 107116800) - ../pics/SonyILCE-7RM4.arw
Warning: [minor] Entries in SubIFD were out of sequence. Fixed. - ../pics/SonyILCE-7RM4.arw
1 image files created
> exiftool -ver
12.29
Are you sure you are working on an original ARW file?
- Phil
Phil,
Yes, it's an original Sony A7RIV image, imported by Lightroom Classic from an SD-Card.
It's just a few images that give me problems, most are just fine and can be edited correctly.
It may be the LensTagger plugin (in lightroom) that messed things up. I tried that plugin first, but what that does is just call exiftool. LensTagger just reported that the action failed.
(https://i.imgur.com/CnhcpHT.jpeg)
I will upload the offending .arw file to OneDrive and share it.
https://1drv.ms/u/s!AqsA0RVIz7_DzHgSK6W37t7bzCK9?e=6rI7XD (https://1drv.ms/u/s!AqsA0RVIz7_DzHgSK6W37t7bzCK9?e=6rI7XD)
If you can download it and reproduce the error, you may be able to find out what's happening ;D
Thanks,
Paul
If the ExifTool command failed in LensTagger, then the file wouldn't have been changed.
It looks like all of the SR2 information is messed up in this sample.
The difference is in one of two places:
1. Lightroom modified the file when downloading. This is possible, and dangerous. The Nikon utilities do this, and they are well known for corrupting images. And Adobe has a history of not caring about maker notes.
2. There is a difference in version 1.20 of the ILCE-7RM4 firmware. My sample is from firmware 1.00. Could you upload a file copied straight from the memory card (ie. don't use Lightroom)? I'll take a look to see if this has the same problem.
- Phil
Hi Phil,
The original file was still on the SD-Card and I uploaded it to one-drive:
https://1drv.ms/u/s!AqsA0RVIz7_DzHmy1XklO4zLWbDM?e=Jbav4F (https://1drv.ms/u/s!AqsA0RVIz7_DzHmy1XklO4zLWbDM?e=Jbav4F)
I noticed there was a difference in filesize. 119.970 KB for the original, where the corrupted one is 119.884 KB.
Yes, I know the sizes are ridiculously enormous ::) but if you want the megapixels, you will need the space too :D
My knowledge of the raw-file make-up and sections is very little to none. I have no clue what SR2 info is, but I can imagine something concerning 'maker notes' :D
Best regards,
Paul
Hi Paul,
Wow. OK. Adobe is corrupting the file when downloaded using Lightroom. The original file is fine.
Lesson learned.
Yes, the SR2 section is part of the make notes, and contains a LOT of information.
- Phil
P.S. That's MB, not KB. :)
FYI, here is the information that ExifTool extracts from the original, but is lost in the Lightroom-downloaded file:
[SR2] SR2 Sub IFD Offset : 50450
[SR2] SR2 Sub IFD Length : 42826
[SR2] SR2 Sub IFD Key : 0x44332211
[SR2SubIFD] Black Level : 512 512 512 512
[SR2SubIFD] WB RGGB Levels Auto : 2460 1024 1024 2024
[SR2SubIFD] WB RGGB Levels : 2460 1024 1024 2024
[SR2SubIFD] Color Matrix : 1112 -159 103 15 1252 -211 -71 -243 1370
[SR2SubIFD] WB RGB Levels Daylight : 2604 1024 1676
[SR2SubIFD] WB RGB Levels Cloudy : 2824 1024 1536
[SR2SubIFD] WB RGB Levels Tungsten : 1576 1024 3004
[SR2SubIFD] WB RGB Levels Flash : 2864 1024 1496
[SR2SubIFD] WB RGB Levels 4500K : 2336 1024 1884
[SR2SubIFD] WB RGB Levels Shade : 3132 1024 1380
[SR2SubIFD] WB RGB Levels Fluorescent : 2332 1024 2352
[SR2SubIFD] WB RGB Levels Fluorescent P1 : 2508 1024 1756
[SR2SubIFD] WB RGB Levels Fluorescent P2 : 2824 1024 1624
[SR2SubIFD] WB RGB Levels Fluorescent M1 : 1860 1024 2888
[SR2SubIFD] WB RGB Levels 8500K : 3304 1024 1308
[SR2SubIFD] WB RGB Levels 6000K : 2800 1024 1552
[SR2SubIFD] WB RGB Levels 3200K : 1768 1024 2608
[SR2SubIFD] WB RGB Levels 2500K : 1364 1024 3616
[SR2SubIFD] White Level : 15360 15360 15360
[SR2SubIFD] Vignetting Corr Params : 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[SR2SubIFD] Chromatic Aberration Corr Params: 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[SR2SubIFD] Distortion Corr Params : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[SR2DataIFD] Color Mode : Standard
[SR2DataIFD1] Color Mode : Vivid
[SR2DataIFD2] Color Mode : Neutral
[SR2DataIFD3] Color Mode : Clear
[SR2DataIFD4] Color Mode : Deep
[SR2DataIFD5] Color Mode : Light
[SR2DataIFD6] Color Mode : Portrait
[SR2DataIFD7] Color Mode : Landscape
[SR2DataIFD8] Color Mode : Sunset
[SR2DataIFD9] Color Mode : Nightview
[SR2DataIFD10] Color Mode : Autumnleaves
[SR2DataIFD11] Color Mode : BW
[SR2DataIFD12] Color Mode : Sepia
And there is MUCH more unknown SR2 information lost. You can use the -u option to see it all, but the output is too long to post in the forum -- there are a total of 1844 tags lost.
- Phil
Quote from: Phil Harvey on July 16, 2021, 09:28:14 AM
P.S. That's MB, not KB. :)
eermmm, no Kb according to Windows:
(https://i.imgur.com/5Egz3yZ.jpeg)
Quote from: Phil Harvey on July 16, 2021, 09:34:11 AM
<snip>
And there is MUCH more unknown SR2 information lost. You can use the -u option to see it all, but the output is too long to post in the forum -- there are a total of 1844 tags lost.
- Phil
Thanks Phil,
I will tag the raw files before importing them into Lightroom. Just copy them by hand from the SD card to a tmp folder, tag them, and import from the tmp folder.
Good thing we now know that lightroom corrupts the files on import :)
Best regards,
Paul
Quote from: PaulMeesters on July 16, 2021, 07:20:24 AM
I noticed there was a difference in filesize. 119.970 KB for the original, where the corrupted one is 119.884 KB.
Your image shows 119,970/119,884 KB or 119.97/119.884MB (commas to separate the thousands). If it was KB, it would just show up as 119KB
(https://i.imgur.com/CAgjuLj.png)
For some reason, my brain freezes up when trying to figure this out quite often and I make mistakes like this a lot.
extra confusing is the locale differences.
I'm from The Netherlands, and here the decimal separator is the comma, the thousands seperator is the dot (period). In the U.S. that's the other way around ::)
anyway the files are around 117 MB (117 MB (122,849,280 bytes) -- here I use the US separator :o