ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: malonzo47 on November 02, 2021, 12:02:47 PM

Title: unable to establish or populate Pix4D fields in XMP-Camera group
Post by: malonzo47 on November 02, 2021, 12:02:47 PM
Hello --

I am using the pix4d.config file to try to get Pitch, Roll, and Yaw into those slots within the XMP-Camera group. I have been successful previously (I'm 99% sure) but it's not working now for some reason that I can't figure out.

My command is:
exiftool -config pix4d.config -csv="C:\temp\csv_with_tags_not_functional.csv" C:\temp\G-LiHT__306959.jpg

I have tried the csv column headers e.g., just "Roll" and also "XMP-Camera:Roll" with neither working. The pix4d.config file is unaltered from what I snagged from Phil. Fields like gpslatitude DO seem to update ok.

CSV and one image attached.

Thanks and apologies for newbie errors.

Mike
Title: Re: unable to establish or populate Pix4D fields in XMP-Camera group
Post by: StarGeek on November 02, 2021, 12:29:50 PM
What was the output from that command?  Where is your pix4d.config located?  Maybe you need to put the full path to the config file?

When I run your command, after editing the source file path, exiftool correctly fills out the tags in your csv here.

C:\>exiftool -config pix4d.config -P -overwrite_original -csv=Y:\!temp\aa\csv_with_tags_not_functional.csv  Y:\!temp\aa\G-LiHT__306959.jpg
    1 image files updated

C:\>exiftool -g1 -a -s -xmp:all Y:\!temp\aa\G-LiHT__306959.jpg
---- XMP-x ----
XMPToolkit                      : Image::ExifTool 12.33
---- XMP-rdf ----
About                           : uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b
---- XMP-Camera ----
Pitch                           : 5.966
Roll                            : 1.975
Yaw                             : 119.98
---- XMP-xmp ----
CreateDate                      : 2018:04:25 12:15:38
Title: Re: unable to establish or populate Pix4D fields in XMP-Camera group
Post by: malonzo47 on November 02, 2021, 01:07:25 PM
Thanks for trying. Given that it worked for you, I dug back into the pix4d.config file. Maybe I did change something? I removed this (below) and then it worked! Was this not in original config file? It is possible that I changed this for another purpose (to deal DD vs. DMS coordinate loading). Well, probably my mistake. --Thanks, Mike


%Image::ExifTool::UserDefined = (
    'Image::ExifTool::GPS::Main' => {
        0x0004 => {
            Name => 'GPSLongitude',
            Format => 'rational64s',
            Writable => 'rational64u',
            Count => 3,
            RawConv => q{
                my @vals = split ' ', $val;
                $_ = ($_) foreach @vals;
                return "@vals";
            },
            ValueConv    => 'Image::ExifTool::GPS::ToDegrees($val)',
            ValueConvInv => 'Image::ExifTool::GPS::ToDMS($self, $val)',
            PrintConv    => 'Image::ExifTool::GPS::ToDMS($self, $val, 1)',
            PrintConvInv => 'Image::ExifTool::GPS::ToDegrees($val)',
        },
    },
);
Title: Re: unable to establish or populate Pix4D fields in XMP-Camera group
Post by: StarGeek on November 02, 2021, 04:31:14 PM
Quote from: malonzo47 on November 02, 2021, 01:07:25 PMI removed this (below) and then it worked! Was this not in original config file?

No, it's not.  You can see the original file on GitHub (https://raw.githubusercontent.com/exiftool/exiftool/master/config_files/pix4d.config).