ExifTool Forum

ExifTool => Newbies => Topic started by: fe2cruz on July 17, 2024, 08:02:46 PM

Title: -s tag listed no spaces but getting Warning is not defined
Post by: fe2cruz on July 17, 2024, 08:02:46 PM
I got a list of tags without spaces from -s.
However when I input the commands -cameralensmodel= or -CameraLensModel-und-US=
I get Warning" Tag 'cameralensmodel' is not defined
even though it is the exact tag listed from -s
I was able to do commands with *lens or camera* but this three-word tag I can't figure out.
Any help would be much appreciated.
Title: Re: -s tag listed no spaces but getting Warning is not defined
Post by: StarGeek on July 17, 2024, 08:33:42 PM
From what I can tell, there's not tag called CameraLensModel listed on any of the Tags Names page (https://exiftool.org/TagNames/). This means that even though the tag may exist, there isn't a definition to be able to write it.

Also, the fact that you are getting the name of the tag indicates it is probably an XMP tag. What is the exact output of this command
exiftool -G1 -a -s -CameraLensModel file.jpg
Title: Re: -s tag listed no spaces but getting Warning is not defined
Post by: fe2cruz on July 17, 2024, 09:37:26 PM
Ah thanks StarGeek, I ran the full line and the 2 tags I want appear as:
[Track1]        CameraLensModel-und-US         
[Keys]          CameraLensModel 
I tried:
exiftool -cameralensmodel= file and got the warning is not defined
What should be my command line or is this an XMP and I have to read up on that?
Title: Re: -s tag listed no spaces but getting Warning is not defined
Post by: StarGeek on July 17, 2024, 10:15:17 PM
No, these are Quicktime tags (https://exiftool.org/TagNames/QuickTime.html). Exiftool doesn't know these tags, so it can't write them.

The Track1 tag can't be removed by exiftool at all. The Keys tag can probably be removed by removing all keys tags and then adding them back in, though you should test it out first
exiftool -Keys:all= -TagsFromFile @ -Keys:All /path/to/files/

This would also have the side effect of removing any other unknown Keys tags.
Title: Re: -s tag listed no spaces but getting Warning is not defined
Post by: fe2cruz on July 18, 2024, 12:13:55 AM
It worked thank you so much!
We can't change the File Type & Major Brand tags, can we?
Title: Re: -s tag listed no spaces but getting Warning is not defined
Post by: StarGeek on July 18, 2024, 12:35:06 AM
Quote from: fe2cruz on July 18, 2024, 12:13:55 AMWe can't change the File Type & Major Brand tags, can we?

FileType isn't embedded metadata, it's the actual type of the file. You can't simply change a jpeg into a PNG or MP4 into an MKV by flipping a tag.  It has to be converted to the new file type.

I think MajorBrand has to do with the compression format of the file.  Again, not something you can change by simply flipping a tag. And I think this is always going to be a lossy operation. A PNG can be converted to a TIFF or similar lossless format and a MP4 can be converted to an MKV without losing any data, but converting MajorBrand means the data has to be completely recompressed to the new codec.
Title: Re: -s tag listed no spaces but getting Warning is not defined
Post by: fe2cruz on July 18, 2024, 12:58:49 AM
Much appreciated. I think I'm getting the hang of this now.
'Did everything on copied test files in a test folder and it's way easier than I imagined; once a kind person like you explained the extra stuff.