Command fails when writing to MP4 files, but succeeds for JPG files.

Started by ryerman, April 28, 2016, 12:54:58 PM

Previous topic - Next topic

ryerman

This is an attempt to clarify and simplify the problem as reported by TSM here:
https://exiftool.org/forum/index.php/topic,7204.0.html

Execute these 2 command lines, one after the other, for 2 file types; JPG and MP4:
exiftool -all= -overwrite_original FILE
exiftool -all= -XMP-dc:description=MYTEXT -overwrite_original FILE

If FILE is JPG, then MYTEXT will be successfully written to XMP-dc:Description.
But,
if FILE is MP4, then XMP-dc:Description will be undefined.

Is this a bug?


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>exiftool -ver
10.15

C:\Windows\system32>exiftool -all= -overwrite_original W:\file.JPG
    1 image files updated

C:\Windows\system32>exiftool -all= -XMP-dc:description=MYTEXT -overwrite_original W:\file.JPG
    1 image files updated

C:\Windows\system32>exiftool -p "$filename     $XMP-dc:description" W:\file.JPG
file.jpg     MYTEXT

C:\Windows\system32>exiftool -all= -overwrite_original W:\file.MP4
    1 image files updated

C:\Windows\system32>exiftool -all= -XMP-dc:description=MyText -overwrite_original W:\file.MP4
    1 image files updated

C:\Windows\system32>exiftool -p "$filename     $XMP-dc:description" W:\file.MP4
Warning: [Minor] Tag 'XMP-dc:description' not defined - W:/file.mp4

C:\Windows\system32>
Windows 10 Home 64 bit, Exiftool v12.61

Phil Harvey

Yes, it seems to be a bug.  I'll look into this.

Thanks for this 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 ($).

Phil Harvey

Found the bug.  This should be fixed in ExifTool 10.16.

Thanks Ryerman and TSM for pointing this out.

- 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 ($).

ryerman

Windows 10 Home 64 bit, Exiftool v12.61