Problem writing Microsoft:Category

Started by StarGeek, February 23, 2021, 03:57:41 PM

Previous topic - Next topic

StarGeek

I saw the Microsoft videos tags update and had a problem testing it out.

The file starts with no category.  I add an entry as follows
C:\>exiftool -P -overwrite_original -Microsoft:Category=Test Y:\!temp\ccccc\f\2_ETAddedCategory.mp4
    1 image files updated

C:\>exiftool -g1 -a -s -category Y:\!temp\ccccc\f\2_ETAddedCategory.mp4
---- Microsoft ----
Category                        : Test


I check Windows Properties and the update doesn't show up under "Tags" where it's supposed to be displayed.


I try to update the Tags property through Windows and Windows cannot update the file.


I can provide before and after files if needed.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks for testing this.  Can the file (before ExifTool update) be updated by Windows?  If so, could you you send the original file and the Windows-updated file?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Quote from: Phil Harvey on February 24, 2021, 02:44:12 PM
Thanks for testing this.  Can the file (before ExifTool update) be updated by Windows?

Yep, see attached

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks!

It seems that maybe ExifTool should be writing a null terminator on the string values.

Could you test this to see if it works?:

/exiftool -E -microsoft:category="Added Category�" FILE

If it does, then I'll fix this and do a new release ASAP.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

That did work.

But trying to one or more keywords when there already was an entry didn't work.  These failed for Windows to edit. 

C:\>exiftool -g1 -a -s -microsoft:category "Y:\!temp\ccccc\f\2_UpdatedCategory - Copy.mp4"
---- Microsoft ----
Category                        : Added Category

C:\Programs\My_Stuff>exiftool -P -overwrite_original -E -microsoft:category+="test4�" "Y:\!temp\ccccc\f\2_UpdatedCategory - Copy.mp4"
    1 image files updated

<failed, deleted and re-duplicated file>

C:\>exiftool -P -overwrite_original -E -microsoft:category+="Test3&#00;" -microsoft:category+="test4&#00;" "Y:\!temp\ccccc\f\2_UpdatedCategory - Copy.mp4"
    1 image files updated

<failed, deleted and re-duplicated file>

C:\>exiftool -P -overwrite_original -E -microsoft:category+="Test3" -microsoft:category+="test4&#00;" "Y:\!temp\ccccc\f\2_UpdatedCategory - Copy.mp4"
    1 image files updated

<failed>


This did work and Windows allowed me to add additional entries
C:\>exiftool -P -overwrite_original -E -microsoft:category="Test3&#00;" -microsoft:category="test4&#00;" "Y:\!temp\ccccc\f\2_UpdatedCategory - Copy.mp4"
    1 image files updated
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks for pointing this out.  Yes.  ExifTool did remove the terminator from the existing item.  Fixing both of these is a simple patch.  I'll release a new version ASAP.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

A little late getting back to testing this, but it's looking good.  Added more categories and was still able to update with Windows.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks for checking.  And thanks for the original report!

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).