Populate DateTimeOriginal from CreatedDate

Started by hresna, May 22, 2020, 07:14:36 PM

Previous topic - Next topic

hresna

So I got the tool primarily to do this, and I've done a bunch of reading and tried a number of things but can't seem to get the syntax right.

The use case is this: iPhone doesn't populate good EXIF data for the videos, so if I try to sort by "Date Taken" in windows, the photos work fine for the pictures (DateTimeOriginal is populated) but not for the MOV files.

I've tried a bunch of versions of this syntax:

exiftool -DateTimeOriginal=-CreateDate FILE

With and without quotes in different spots...

But I always get this sort of output
Warning: Invalid date/time (use YYYY:mm:dd HH:MM:SS[.ss][+/-HH:MM|Z]) in ExifIFD:DateTimeOriginal (PrintConvInv)
Nothing to do.


I've looked at those fields using the -a -G1 -s
But as far as I can tell those fields should have the same string formats as each other...
So... yeah, bigtime newbie... really appreciate any help.

Can I not copy from one tag to another, or would I have to first export to file and then import to other tag?

Thanks so much!

hresna

Hm, I may have given up a half hour too soon.
I think I might have figured it out:
exiftool "-DateTimeOriginal<CreateDate" artvid.mov

Look right?

StarGeek

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).