Hi,
I tried to write the Canon-OwnerName to an *.mp4 file (can be downloaded here (https://c.gmx.net/@329885836172591305/FX0k5gs-QxG6VNJAFpjGUw)) from a Canon EOS 80D but wasn't successfull.
I've used the following command (on Windows):
exiftool.exe -overwrite_original -OwnerName=test vid.mp4
And the result when running
exiftool.exe -G1 -OwnerName -a -s vid.mp4>out.txt
is just:
[Canon] OwnerName :
[ExifIFD] OwnerName :
[XMP-exifEX] OwnerName : test
I think the documentation says that Canon-OwnerName is writeable but even if I try
exiftool.exe -overwrite_original -Canon:OwnerName=test vid.mp4
it is not working.
Can anybody help here?
The OwnerName is actually stored in the embedded ThumbnailImage in Canon MP4 videos. ExifTool automatically extracts metadata from this thumbnail when reading, but doesn't automatically edit the thumbnail when writing. I don't like asymmetries like this, but editing the thumbnail is very unusual and it could be confusing if ExifTool did this automatically.
Since it isn't automatic, you must do it manually. This may be done with a command similar to the last one in the PIPING EXAMPLES (https://exiftool.org/exiftool_pod.html#PIPING-EXAMPLES):
exiftool test.mp4 -thumbnailimage -b | exiftool -ownername=test - | exiftool test.mp4 -thumbnailimage"<=-"
I'm not sure if this piping will work in Windows, so here it is as 3 separate commands:
1. exiftool test.mp4 -thumbnailimage -b > thumb.jpg
2. exiftool thumb.jpg -ownername=test
3. exiftool test.mp4 "-thumbnailimage<=thumb.jpg"
- Phil
Quote from: Phil Harvey on January 11, 2024, 07:55:47 AMI'm not sure if this piping will work in Windows, so here it is as 3 separate commands:
I haven't tested it but it should work using Windows CMD. PowerShell will corrupt binary data passed through pipes/redirection.
Thanks Phil, really great support.
Your answer is
Quote from: Phil Harvey on January 11, 2024, 07:55:47 AMExifTool automatically extracts metadata from this thumbnail when reading, but doesn't automatically edit the thumbnail when writing. I don't like asymmetries like this, but editing the thumbnail is very unusual and it could be confusing if ExifTool did this automatically.
Would it make sense to add an option to do this automatically (syncing metadata and metadata in thumbnail)? In that case the user could decide if he wants that or not.
It probably would, but it would also be a lot of work because each manufacturer has their own way to store EXIF metadata in videos, and I don't think there is enough demand to warrant the effort.
- Phil