ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: mastodon on January 09, 2019, 04:14:54 PM

Title: Modify video file date/tame tags (all)
Post by: mastodon on January 09, 2019, 04:14:54 PM
I know (https://exiftool.org/forum/index.php/topic,6563.0.html) that it is very hard, but what is the best practice for modifing mov file date/time tags? (Canon Powershoot and Panasonic) Does anybody have a workflow for this? If Exiftool does not capable for it, how to do it with hex editors? Wich one to use?
Title: Re: Modify video file date/tame tags (all)
Post by: Phil Harvey on January 09, 2019, 09:39:08 PM
ExifTool will modify most MOV date/time tags.
Title: Re: Modify video file date/tame tags (all)
Post by: Hayo Baan on January 10, 2019, 04:16:19 AM
If you find that exiftool can't modify a date-time tag, have a look at the tool matchDateTime I wrote for modifying some of the tags that exiftool can't write. You can find it at github (https://github.com/HayoBaan/matchDateTime).

If you have any questions/suggestions about matchDateTime, let me know :)
Title: Re: Modify video file date/tame tags (all)
Post by: mastodon on January 10, 2019, 12:42:41 PM
That will be nice!
I have downloaded Strawberry Perl (http://strawberryperl.com/releases.html) 64 bit, portable. Unziiped it in a directory on C: (windows drive). Then I put in this unzipped directory the script with the name matchDateTime.pl and Exiftool.exe. I wanted to run the script like: matchDateTime... did not work
How to use it? Thank you Hayo Baan!
Title: Re: Modify video file date/tame tags (all)
Post by: Hayo Baan on January 11, 2019, 12:57:57 AM
On Windows, you either have to give the script a .pl suffix and associate .pl with Perl, or simply run perl matchDateTime .... That should do it. If you have more questions, let me know  :)
Title: Re: Modify video file date/tame tags (all)
Post by: mastodon on January 11, 2019, 11:31:51 AM
OK, it runs, but did not get the context. How to say shift back every time tag with 58:00 minutes in file video.mp4, that is in the same directory as matchDateTime.pl?
Do I understand right, that after this I have to run exiftool (with exiftool.exe in the same directory "exiftool.exe -globalTimeShift +00:58 -time:all video.mp4") to modify the rest of the time tags?
Title: Re: Modify video file date/tame tags (all)
Post by: Hayo Baan on January 12, 2019, 03:37:38 AM
Yes, to get everything the way you want, you'll first need to make sure that you've used exiftool to get all tags that exiftool can write (most importantly QuickTime createDate) the way you want and then run matchDateTime.

Note: You don't need to have the images and the script/exiftool in the same directory, just make sure that they can be found (PATH environment variable) or that you specify the image file including the directory.
Title: Re: Modify video file date/tame tags (all)
Post by: mastodon on February 11, 2019, 04:07:15 PM
Sorry, I had a computer crash and after I repaired it, I had no time. I am stucked. Even Exiftool does not modify anything. Please write the exact phrases that I have to use for shifting the date of the file named testvideo.mov with 1:42 (1 hour and 42 minutes) forward. (I don't undestand how to set minutes.)
exiftool ...
matchDateTime ...
Title: Re: Modify video file date/tame tags (all)
Post by: StarGeek on February 11, 2019, 08:03:15 PM
What is the exact command you are using and what is the output?   Are you using exiftool to check for a change or using some other program?

If it says that files have been updated, then something has been updated.  You just may be looking for a change in the wrong place.

The command to add an hour and 42 minutes would be:
exiftool -TAG+=1:42 testvideo.mov

The problem is knowing which tag you actually want to update (see FAQ #3 (https://exiftool.org/faq.html#Q3)).