DISPLAYING THE RIGHT TIME

Started by jeffayn, November 18, 2019, 08:10:11 AM

Previous topic - Next topic

jeffayn

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 ...


StarGeek

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.
* 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).

jeffayn

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

StarGeek

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.
* 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).

jeffayn

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

StarGeek

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
* 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).

jeffayn

interesting approach... but

Warning: Sorry, GPSCoordinates is not writable

StarGeek

What was your exact command and the exact response?  Was the file an MP4 or MOV or something else?
* 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).

jeffayn

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.

StarGeek

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.
* 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).

jeffayn

OMG.... you da Genius !  ;D

It work... and all because of newer ver of exiftool...

jeffayn

any chance that the newer version  can support MTS kind of movie file ?

StarGeek

Phil has said that the MTS is such a complex mess that he will likely never add write support (see this post).  See here 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 that can do some time edits. 
* 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).

jeffayn

forget about it.. lol.. if Phil say is a mess... then it must be a mess...  hahaaa..

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).