Closed kartonrad closed 8 months ago
TBH, I couldn't find an authoritative source for this Xmp.video
"XMP Extended Video schema".
The exiv2 code says this:
If this is the correct number in seconds, then I don't think it is a bug, unless the actual schema specification says this should be of "date" type.
Huh! - i guess i just didn't read far enough into it - i couldn't find anything for the exact property name either - which is definetly wierd, but i brushed it off. And pretended that "Created" was close enough
If the Timestamp is since January 1904, that actually makes sense!
If i add -2082848400 to the timestamp before parsing it (as a unix timestamp) the value is completely accurate, and the same one as is output by other commands! Thank you so much for your help... and sorry that i filed this as a bug, i didn't know better
In the future i'll know to look in properties.cpp
Describe the bug
Exiv2 outputs a number for all XMP fields which should normally contain Date Strings, according to Adobes Specification.
I am going to be honest, maybe i am just to silly to properly parse this value, but the number doesn't seem to be a unix timestamp. I am calling exiv2 as part of a rust program i am writing to organize my media files. For videos and audio, exiv2 isn't as reliable with timestamps.
To Reproduce
Expected behavior
I expect an output like
Although WIndows "Properties" show a different date: 2017-01-28 16:49
Desktop (please complete the following information):