ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: werwolf on December 15, 2016, 09:33:32 AM

Title: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: werwolf on December 15, 2016, 09:33:32 AM
Hello,
after spending quite some hours on exiftool FAQ and trying out exiftool GUI, I really need some help from professionals.

My problem is, that I have videos files (from differenz mobiles or cameras) in my media library, where the Date und time of the recording is not available or not showing.

In Photoshop Elements database the videos are not sorted correctly, as photoshop elements apparently uses only exif tags.

With exif tool I found out, that the correct date is registered in the Quicktime Tags ContentCreateDate.
I was not successful copying the date into an EXIF Tag.
With exif Gui Tool I finally managed to copy the Tag content manually to the correct XMP Tag.
But I did not understand how I can copy or move the Quicktime TAGs to XMP for all video files (MPG, MP4).
How would such a command be or where are similar examples.

Thanks for you help!
Regards Wolfram
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: Hayo Baan on December 15, 2016, 11:59:07 AM
To copy the value of one tag to another, you simply use the < operator like so:
exiftool "-DSTTAG<SRCTAG" FILESorDIRS

Does this help?
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: werwolf on December 15, 2016, 01:34:19 PM
I will try.. today
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: werwolf on December 15, 2016, 03:18:36 PM
I was not successfull.
What I did was:
I copied a mov file (video file from a olympus omd e10) in the directory.
filename is WB004286.mov
according to http://www.exiftool.org/TagNames/QuickTime.html the correct quicktime tag name ist "ContentCreateDate"
according to http://www.exiftool.org/TagNames/XMP.html a good destination TAG would be "DateTimeOriginal"
so my commandline was this
exiftool "-DateTimeOriginal<ContentCreateDate" WB004286.mov
the result was:
Warning: Error opening file - exiftool
Error: File not found - exiftool
Warning: No writable tags set from WB004286.mov

    0 image files updated
    1 image files unchanged
    1 files weren't updated due to errors
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: Alan Clifford on December 15, 2016, 04:44:11 PM
Quote from: werwolf on December 15, 2016, 03:18:36 PM
so my commandline was this
exiftool "-DateTimeOriginal<ContentCreateDate" WB004286.mov
the result was:
Warning: Error opening file - exiftool
Error: File not found - exiftool
Warning: No writable tags set from WB004286.mov

    0 image files updated
    1 image files unchanged
    1 files weren't updated due to errors


Was that your actual command line, i.e. you copied and pasted it into your post?  Or did you type it in again?  I ask because there is no command prompt showing.

Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: werwolf on December 15, 2016, 05:09:48 PM
I copied it from the command line.
Therefore  no prompt.
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: werwolf on December 15, 2016, 05:30:48 PM
I looked some more around and changed the command to:

M:\>exiftool "-xmp:dateTimeOriginal<ContentCreateDate" WB004286.MOV

M:\>exiftool "-xmp:dateTimeOriginal<ContentCreateDate" WB004286.MOV
Warning: No writable tags set from WB004286.MOV
    0 image files updated
    1 image files unchanged

The result is the same.. I cannot transfer the dtm in a better readable TAG  :(
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: Alan Clifford on December 15, 2016, 08:57:25 PM
The result was not the same as you didn't get
Error: File not found - exiftool
with the new command line.


I get exactly the same output for you new command line if the ContentCreateDate tag does not exist.

But using -xmp:dateTimeOriginal<quicktime:CreateDate I was successful.

I think you need to check if the ContentCreateDate tag exists.
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: werwolf on December 16, 2016, 05:47:07 AM
Hello,
hoooraaaah!!
Nearly solved the problem:

M:\>exiftool "-xmp:dateTimeOriginal<ContentCreateDate" WB004286.MOV
Warning: No writable tags set from WB004286.MOV
    0 image files updated
    1 image files unchanged

M:\>exiftool "-xmp:dateTimeOriginal<quicktime:ContentCreateDate" WB004286.MOV
Warning: No writable tags set from WB004286.MOV
    0 image files updated
    1 image files unchanged

M:\>exiftool "-xmp:dateTimeOriginal<quicktime:CreateDate" WB004286.MOV
    1 image files updated


the 3rd line was the correct Quicktimetag and solved the problem.
but exiftool copied the file to new an saved the originalversion. I guess this is on purpose, right?
I will delete them later.

Thanks alot guys for your help.
Title: Re: how to transfer quicktime tags like ContentCreateDate to XMP or EXIF createdate
Post by: Alan Clifford on December 16, 2016, 09:07:58 AM
You can use -overwrite_original or -overwrite_original_in_place to avoid saving the original.