Problem writing ContentCreateDate to both ItemList and UserData

Started by StarGeek, February 08, 2025, 10:04:20 AM

Previous topic - Next topic

StarGeek

Writing to both ItemList:ContentCreateDate and UserData:ContentCreateDate only sets the date for ItemList:ContentCreateDate

C:\>exiftool -all= -P -overwrite_original -UserData:ContentCreateDate="2020:01:01 12:00:00-08:00" -ItemList:ContentCreateDate="2024:01:01 12:00:00-08:00" Y:\!temp\Test4.mp4
    1 image files updated

C:\>exiftool -G1 -a -s -content* Y:\!temp\Test4a.mp4
[ItemList]      ContentCreateDate               : 2024:01:01 12:00:00-08:00
[UserData]      ContentCreateDate               : 2024:01:01 12:00:00-08:00

C:\>exiftool -all= -P -overwrite_original -UserData:ContentCreateDate="2020:01:01 12:00:00-08:00" Y:\!temp\Test4.mp4
    1 image files updated

C:\>exiftool -G1 -a -s -content* Y:\!temp\Test4a.mp4
[ItemList]      ContentCreateDate               : 2024:01:01 12:00:00-08:00
[UserData]      ContentCreateDate               : 2024:01:01 12:00:00-08:00

I tested ItemList:Artist and UserData:Artist and those tags didn't have this problem.
"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 this report.  It took me a while to notice that one date was 2020 and one was 2024, but I see that now.

But I don't see this effect when I write a test MP4 here.  Could you send me an MP4 that shows this effect?

- 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

Ok, something is really weird here. I'm getting inconsistent results. One second it's working, the next it's not.

Damn it, user error. Writing to Test4.mp4, reading Test4a.mp4.
Nevermind

I was testing ffmpeg and where it writes the Description tag and since ffmpeg doesn't write in place, I had to make a copy of the file.

Side note, apparently ffmpeg writes to ID-desc:Description and not ©des. This was causing problems for a ffmpeg user.

"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

Glad you figured it out.  I've fooled myself the same way numerous times.

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