ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: multinet on August 25, 2017, 08:38:49 AM

Title: exiftool to decremente time by 9 Hours
Post by: multinet on August 25, 2017, 08:38:49 AM
Hello

I'm want to use exiftool in order to decrease the date/time of a tag by 9H for a number of videos files (.MOV captured by FCP PRO)
In fact i forgot to set my camcorder to the local time

Then I ran this command :
Quoteexiftool clip-2012-07-28\ 18\;06\;09.mov  -time:all
File Modification Date/Time     : 2012:08:15 13:57:43+02:00
File Access Date/Time           : 2017:08:24 23:24:07+02:00
File Inode Change Date/Time     : 2017:08:24 23:19:58+02:00
Create Date                     : 2012:08:15 11:57:41
Modify Date                     : 2012:08:15 11:57:42
Track Create Date               : 2012:08:15 11:57:41
Track Modify Date               : 2012:08:15 11:57:41
Media Create Date               : 2012:08:15 11:57:41
Media Modify Date               : 2012:08:15 11:57:41
Creation Date                   : 2012:07:28 18:06:09+02:00

The Creation Date is the date time of my movie but in French time it should be 2012:07:28 09:06:09-07:00

So I ran this command

Quoteexiftool -CreationDate-='0:0:0 9:0:0' clip-2012-07-28\ 18\;06\;09.mov -overwrite_original -v
======== clip-2012-07-28 18;06;09.mov
Rewriting clip-2012-07-28 18;06;09.mov...
  FileType = MOV
  FileTypeExtension = MOV
  MIMEType = video/quicktime
  Editing tags in: MOV Movie UserData XMP
  Rewriting Movie
  Rewriting MovieHeader
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting UserData
  Rewriting XMP
Nothing changed in clip-2012-07-28 18;06;09.mov
    0 image files updated
    1 image files unchanged

As you can see, no change on the file append. It is the same result if I remove the -overwrite_original line command

Could you help me to get it running correctly ?

In addition i haven't found the trick to set the -07:00 (shift from gmt)

Thanks a lot
Title: Re: exiftool to decremente time by 9 Hours
Post by: Phil Harvey on August 25, 2017, 08:40:50 AM
Unforunately, CreationDate is not yet writable (https://exiftool.org/TagNames/QuickTime.html#Keys) in MOV/MP4 videos.

- Phil
Title: Re: exiftool to decremente time by 9 Hours
Post by: multinet on August 25, 2017, 08:59:42 AM
Hello Phil

Thank you for your quick answer.

I will recopy CreationDate to CreateDate and apply -09H00

Is there a way to set timezone in CreateDate ?

Nicolas
Title: Re: exiftool to decremente time by 9 Hours
Post by: Phil Harvey on August 25, 2017, 09:05:14 AM
Hi Nicolas,

There is no way to set the time zone, but CreateDate in theory should be stored as UTC.  If the -api quicktimeutc option is used, then QuickTime:CreateDate is read/written using the local time zone (I know the option sounds backward.  Apologies for that.)

- Phil
Title: Re: exiftool to decremente time by 9 Hours
Post by: Hayo Baan on August 26, 2017, 02:57:55 AM
Hi Nicholas,

As exiftool can't write the creation date tag, I wrote a Perl script that will write it. It called matchDateTime and can be found on GitHub: https://github.com/HayoBaan/matchDateTime

It has helped a number of people already and may be working for you too.
Title: Re: exiftool to decremente time by 9 Hours
Post by: multinet on March 08, 2018, 01:48:00 AM
Hi Just but in forum and saw only now your answer ! thank you I will try it !