ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Mac2 on December 17, 2021, 03:35:25 AM

Title: Reference to undeclared namespace prefix: XMP-aux.
Post by: Mac2 on December 17, 2021, 03:35:25 AM
When extracting metadata using the -X option of an MP3 file, I get this error message when parsing the output:

Reference to undeclared namespace prefix: XMP-aux.

while parsing <XMP-aux:ApproximateFocusDistance>.

I use the arguments included below.

I've looked at the MP3 and it contains embedded XMP data written by Adobe Premiere Pro CS6 (Windows).
This XMP record contains aux data like aux:ApproximateFocusDistance, which is extracted by ExifTool but the namespace is not declared in the XML data emitted by ExifTool.

I have extracted, de-personalized and attached the embedded XMP record contained in the MP3 file. I can provide the original MP3 file if you need it (need to ask the user for permission first).

-overwrite_original
-charset
FILENAME=UTF8
-tagsfromfile
c:\temp\bsw.mp3
-all:all
-api
struct=2
-use
MWG
--preview:all
C:\temp\imt111C61CF-B9DC-4917-84A1-7FF310BD3342.xmp
-execute
-overwrite_original
-G
-X
-D
-t
-q
-q
-l
-charset
FILENAME=UTF8
-all:all
-api
struct=2
C:\TEMP\IMT111C61CF-B9DC-4917-84A1-7FF310BD3342.XMP
c:\temp\BSW.MP3
-execute9999

Title: Re: Reference to undeclared namespace prefix: XMP-aux.
Post by: Phil Harvey on December 17, 2021, 07:17:58 AM
Thanks for this report.

I can reproduce this but I don't have time to work on it at the moment.  I'll post back here after I have had a chance to look at this in detail.

- Phil
Title: Re: Reference to undeclared namespace prefix: XMP-aux.
Post by: Phil Harvey on December 17, 2021, 08:20:30 AM
I found the problem.  This will be fixed in 12.38.  Thanks again for this report.

Just FYI, the -overwrite_original in your second command is extraneous since you aren't writing anything.

- Phil
Title: Re: Reference to undeclared namespace prefix: XMP-aux.
Post by: Mac2 on December 17, 2021, 08:30:03 AM
Awesome! Thanks.
I'll strip the useless overwrite_... command. Thanks.

A Merry Christmas and a Happy New Year to you and your family.