Updating Yaw,Pitch and Roll to Seagull Digital Images

Started by pedorium, January 25, 2023, 12:58:17 PM

Previous topic - Next topic

pedorium

Hello!
I am trying to update the Yaw,Pitch and Roll to Seagull Digital Images and I get this error
Warning: [minor] Maker notes could not be parsed - ./SEAG00333_110004.JPG
Error: Error reading ThumbnailImage data in IFD1 - ./SEAG00333_110004.JPG
I am using the pix4d.config configuration which was applied succesfully to SONY ILCE-5100 images
I attach the a sample csv and an image
Could you please direct me as to what I am doing wrong?
My command line is
exiftool -config pix4d.config -csv=geot.csv .
Thank you!


wywh

The GPS tags look weird. Why are some of those duplicates and 0?

exiftool -a -G1 -s -n -ee '-*GPS*' SEAG00333_110004.JPG
[GPS]           GPSLatitudeRef                  : N
[GPS]           GPSLatitude                     : 40.3778281522222
[GPS]           GPSLatitude                     : 0
[GPS]           GPSLongitudeRef                 : E
[GPS]           GPSLongitude                    : 22.1398736044444
[GPS]           GPSLongitude                    : 0
[GPS]           GPSAltitudeRef                  : 0
[GPS]           GPSAltitude                     : 727.343
[GPS]           GPSAltitude                     : 0
[GPS]           GPSTimeStamp                    : 00:00:00
[XMP-xmp]       GpsLatitude                     : 40.3778
[XMP-xmp]       GpsLongtitude                   : 22.1399

StarGeek

Quote from: wywh on January 26, 2023, 08:49:17 AMThe GPS tags look weird. Why are some of those duplicates and 0?

Multiple warnings on that file.  The latitude and longitude GPS tags are duplicated.
C:\>exiftool -g1 -a -s -warning -validate Y:\!temp\dd\SEAG00333_110004.JPG
---- ExifTool ----
Warning                        : [minor] Unrecognized MakerNotes
Warning                        : Entries in GPS are out of order
Warning                        : Duplicate tag 0x0002 GPSLatitude in GPS
Warning                        : Duplicate tag 0x0004 GPSLongitude in GPS
Warning                        : Non-standard format (int32s) for GPS 0x0005 GPSAltitudeRef
Warning                        : Duplicate tag 0x0006 GPSAltitude in GPS
Warning                        : Missing required JPEG GPS tag 0x0000 GPSVersionID
Validate                        : 7 Warnings (1 minor)

Also, the XMP GPS tags are in XMP-xmp, when they should be in XMP-exif.  It's writing a lot of XMP-xmp tags, which are all non-standard except for ModifyDate, which is missing the time component.

There's just too much corruption in this file to make it easy.  If you're using some other program as an intermediate step, then you probably don't want to use that program.  If this file is coming directly from the camera, the the camera manufacturer is using really bad code.

Testing it, you can't just remove the GPS and copy the correct values back in. So it looks like this will have to be a two step fix.  First, copy the correct GPS coordinates into the XMP-exif GPS tags, then rebuild the EXIF as in FAQ #20 and copy the XMP tags back into the regular EXIF GPS locations.
C:\>exiftool -G1:4 -a -s -gps* Y:\!temp\dd\SEAG00333_110004.JPG
[GPS]           GPSLatitudeRef                  : North
[GPS:Copy1]     GPSLatitude                     : 40 deg 22' 40.18"
[GPS:Copy2]     GPSLatitude                     : 0 deg 0' 0.00"
[GPS]           GPSLongitudeRef                 : East
[GPS:Copy1]     GPSLongitude                    : 22 deg 8' 23.54"
[GPS:Copy2]     GPSLongitude                    : 0 deg 0' 0.00"
[GPS]           GPSAltitudeRef                  : Above Sea Level
[GPS:Copy1]     GPSAltitude                     : 727.343 m
[GPS:Copy2]     GPSAltitude                     : 0 m
[GPS]           GPSTimeStamp                    : 00:00:00
[XMP-xmp]       GpsLatitude                     : 40.3778
[XMP-xmp]       GpsLongtitude                   : 22.1399
[Composite]     GPSAltitude                     : 0 m Above Sea Level
[Composite]     GPSLatitude                     : 0 deg 0' 0.00" N
[Composite]     GPSLongitude                    : 0 deg 0' 0.00" E
[Composite]     GPSPosition                     : 0 deg 0' 0.00" N, 0 deg 0' 0.00" E

C:\>exiftool -P -overwrite_original "-XMP:GpsLatitude<$GPS:Copy1:GpsLatitude $GPSLatitudeRef" "-XMP:GPSLongitude<$GPS:Copy1:GPSLongitude $GPSLongitudeRef" "-XMP:GPSAltitude<$GPS:Copy1:GPSAltitude $GPSAltitudeRef" Y:\!temp\dd\SEAG00333_110004.JPG
Warning: [minor] Unrecognized MakerNotes - Y:/!temp/dd/SEAG00333_110004.JPG
    1 image files updated

C:\>exiftool -P -overwrite_original -exif:all= -tagsfromfile @ -exif:all -unsafe -thumbnailimage -F "-EXIF:GPSGPSLatitude*<XMP:GPSLatitude" "-EXIF:GPSLongitude*<XMP:GPSLongitude" "-EXIF:GPSAltitude*<XMP:GPSAltitude" Y:\!temp\dd\SEAG00333_110004.JPG
Warning: [minor] Unrecognized MakerNotes - Y:/!temp/dd/SEAG00333_110004.JPG
    1 image files updated

C:\>exiftool -G1:4 -a -s -gps* Y:\!temp\dd\SEAG00333_110004.JPG
[GPS]           GPSVersionID                    : 2.3.0.0
[GPS:Copy1]     GPSLatitudeRef                  : North
[GPS:Copy2]     GPSLatitude                     : 40 deg 22' 40.18"
[GPS:Copy1]     GPSLongitudeRef                 : East
[GPS:Copy2]     GPSLongitude                    : 22 deg 8' 23.54"
[GPS]           GPSAltitudeRef                  : Above Sea Level
[GPS:Copy2]     GPSAltitude                     : 727.3429952 m
[GPS]           GPSTimeStamp                    : 00:00:00
[XMP-exif:Copy1] GPSAltitude                    : 727.342995169082 m
[XMP-exif:Copy1] GPSLatitude                    : 40 deg 22' 40.18" N
[XMP-exif:Copy1] GPSLongitude                   : 22 deg 8' 23.54" E
[XMP-xmp]       GpsLatitude                     : 40.3778
[XMP-xmp]       GpsLongtitude                   : 22.1399
[Composite]     GPSAltitude                     : 727.3 m Above Sea Level
[Composite]     GPSLatitude                     : 40 deg 22' 40.18" N
[Composite]     GPSLongitude                    : 22 deg 8' 23.54" E
[Composite]     GPSLatitudeRef                  : North
[Composite]     GPSLongitudeRef                 : East
[Composite]     GPSPosition                     : 40 deg 22' 40.18" N, 22 deg 8' 23.54" E

C:\>

Make sure you have backups and I'd check all the files you want to process with
exiftool -G1:4 -a -s -gps*
to make sure the correct numbers are in Copy1
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

pedorium

I cannot thank you enough for your effort, comments & support
The software used to update lat & lon was indeed corrupting the metadata
Problem solved by mass updating the raw files GPSLongitude,GPSLatitude using exiftool with the commnad:
exiftool -csv=mycoords.log .
the format of mycoords.log beeing SourceFile,GPSLongitude,GPSLatitude
I hope this helps someone in the future
Thanks again & All the Best!!!