ExifTool Forum

ExifTool => Newbies => Topic started by: jeffayn on November 18, 2019, 08:10:11 AM

Title: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 18, 2019, 08:10:11 AM
how do i get my video file display  20:00 UTC+0800 instead of 13:00 UTC+0100 in MOV & MP4 ... i been trying out quite sometime..and I still can't get it right ...

Title: Re: DISPLAYING THE RIGHT TIME
Post by: StarGeek on November 18, 2019, 12:26:31 PM
What are you using to look at the time stamp?

The time stamp in MOV and MP4 files is supposed to be UTC.  If you are using Windows to look at the time, then Windows will automatically adjust the time according to the local time zone on the computer showing it.  If you change the time zone on your computer or send it to someone in a different time zone, it will adjust the time according to that computer.  You can't change how Windows displays it.

If you are using some other program, you should mention it.
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 18, 2019, 08:56:30 PM
that is the part I am confused, because using exiftool I am able to let google understand the intended time + UTC...

but for video file... I am not able to do so.... I am able to change the modify date and time to what I wish.. but it stuck at my local time zone which is UTC+0800

however.. some video file does able to show correct utc.. i will try few check few more to see what cause the different
Title: Re: DISPLAYING THE RIGHT TIME
Post by: StarGeek on November 18, 2019, 10:23:21 PM
Use this command to see all the time related data for a file:
exiftool -time:all -G1 -a -s <FileOrDir>

If you're able to figure it out, I'd appreciate it if you post back.  In my experience, Google Photos doesn't read the time stamps for video files correctly.
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 18, 2019, 11:53:33 PM
This one is showing +0800 (I wish to correct it to +0100)
Quote
[System]        FileModifyDate                  : 2019:11:19 12:36:33+08:00
[System]        FileAccessDate                  : 2019:11:19 12:36:33+08:00
[System]        FileCreateDate                  : 2013:10:15 19:10:23+08:00
[QuickTime]     CreateDate                      : 2013:10:05 13:45:27
[QuickTime]     ModifyDate                      : 2013:10:05 13:46:10
[Track1]        TrackCreateDate                 : 2013:10:05 13:45:27
[Track1]        TrackModifyDate                 : 2013:10:05 13:46:10
[Track1]        MediaCreateDate                 : 2013:10:05 13:45:27
[Track1]        MediaModifyDate                 : 2013:10:05 13:46:10
[Track2]        TrackCreateDate                 : 2013:10:05 13:45:27
[Track2]        TrackModifyDate                 : 2013:10:05 13:46:10
[Track2]        MediaCreateDate                 : 2013:10:05 13:45:27
[Track2]        MediaModifyDate                 : 2013:10:05 13:46:10
<-END-


this one does show UTC+0100
Quote
[System]        FileModifyDate                  : 2013:10:05 00:07:15+08:00
[System]        FileAccessDate                  : 2019:06:10 17:53:39+08:00
[System]        FileCreateDate                  : 2013:10:15 20:18:28+08:00
[QuickTime]     CreateDate                      : 2013:10:05 07:07:15
[QuickTime]     ModifyDate                      : 2013:10:05 07:07:15
[Track1]        TrackCreateDate                 : 2013:10:05 07:07:15
[Track1]        TrackModifyDate                 : 2013:10:05 07:07:15
[Track1]        MediaCreateDate                 : 2013:10:05 07:07:15
[Track1]        MediaModifyDate                 : 2013:10:05 07:07:15
[Track2]        TrackCreateDate                 : 2013:10:05 07:07:15
[Track2]        TrackModifyDate                 : 2013:10:05 07:07:15
[Track2]        MediaCreateDate                 : 2013:10:05 07:07:15
[Track2]        MediaModifyDate                 : 2013:10:05 07:07:15
<-END-

so.. both look identical to me... but.. the one that able to show UTC+0100 contain GPS
Title: Re: DISPLAYING THE RIGHT TIME
Post by: StarGeek on November 19, 2019, 12:09:59 AM
Quote from: jeffayn on November 18, 2019, 11:53:33 PM
so.. both look identical to me... but.. the one that able to show UTC+0100 contain GPS

Ah, yes, that would be it.  It does the same for photos as well as I only recently discovered.  So if you set approximate GPS coordinates for the video then it should work.  No need for exact location, just get it approximately the right spot.  For example
exiftool -GPSCoordinates="40.6892, -74.0445" File.mp4
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 19, 2019, 12:16:27 AM
interesting approach... but

Warning: Sorry, GPSCoordinates is not writable
Title: Re: DISPLAYING THE RIGHT TIME
Post by: StarGeek on November 19, 2019, 01:23:34 AM
What was your exact command and the exact response?  Was the file an MP4 or MOV or something else?
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 19, 2019, 01:40:47 AM
this is what i use exactly

exiftool -GPSCoordinates="55.948444, -3.200345"  "J:\Y2013\201310\01-10\20131004 London Trip\02-VID\20131012 203522.mp4"

Warning: Sorry, GPSCoordinates is not writable
Nothing to do.
Title: Re: DISPLAYING THE RIGHT TIME
Post by: StarGeek on November 19, 2019, 02:15:21 AM
What version of exiftool are you using?  Run exiftool -ver to find out.  It should be at least version 11.39 to write video tags, but preferably something more recent as there was a minor bug in writing GPS data early on.
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 19, 2019, 03:05:38 AM
OMG.... you da Genius !  ;D

It work... and all because of newer ver of exiftool...
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 24, 2019, 09:31:17 PM
any chance that the newer version  can support MTS kind of movie file ?
Title: Re: DISPLAYING THE RIGHT TIME
Post by: StarGeek on November 24, 2019, 10:06:19 PM
Phil has said that the MTS is such a complex mess that he will likely never add write support (see this post (https://exiftool.org/forum/index.php/topic,10553.msg55903.html#msg55903)).  See here (https://exiftool.org/commentary.html#AVCHD) for his comments on the format.

If all you want to do is edit some time stamps, then mod Hayo has made a Perl script (https://github.com/HayoBaan/matchDateTime) that can do some time edits. 
Title: Re: DISPLAYING THE RIGHT TIME
Post by: jeffayn on November 24, 2019, 10:14:52 PM
forget about it.. lol.. if Phil say is a mess... then it must be a mess...  hahaaa..
Title: Re: DISPLAYING THE RIGHT TIME
Post by: Phil Harvey on November 25, 2019, 12:05:03 PM
Basically the problem with M2TS is that there is no separate metadata.  ExifTool does extract some information from the video stream (which was a real pain to implement), but editing the video stream is not something I want to get into.

- Phil