Author Topic: Modify video file date/tame tags (all)  (Read 332 times)

mastodon

  • Newbie
  • *
  • Posts: 6
Modify video file date/tame tags (all)
« on: January 09, 2019, 04:14:54 PM »
I know 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?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14425
    • ExifTool Home Page
Re: Modify video file date/tame tags (all)
« Reply #1 on: January 09, 2019, 09:39:08 PM »
ExifTool will modify most MOV date/time tags.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 934
  • Professional Photographer & Software Developer
    • Hayo Baan – Photography
Re: Modify video file date/tame tags (all)
« Reply #2 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.

If you have any questions/suggestions about matchDateTime, let me know :)
Hayo Baan – Photography
Web: www.hayobaan.nl

mastodon

  • Newbie
  • *
  • Posts: 6
Re: Modify video file date/tame tags (all)
« Reply #3 on: January 10, 2019, 12:42:41 PM »
That will be nice!
I have downloaded Strawberry Perl 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!

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 934
  • Professional Photographer & Software Developer
    • Hayo Baan – Photography
Re: Modify video file date/tame tags (all)
« Reply #4 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  :)
Hayo Baan – Photography
Web: www.hayobaan.nl

mastodon

  • Newbie
  • *
  • Posts: 6
Re: Modify video file date/tame tags (all)
« Reply #5 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?

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 934
  • Professional Photographer & Software Developer
    • Hayo Baan – Photography
Re: Modify video file date/tame tags (all)
« Reply #6 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.
Hayo Baan – Photography
Web: www.hayobaan.nl

mastodon

  • Newbie
  • *
  • Posts: 6
Re: Modify video file date/tame tags (all)
« Reply #7 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 ...

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2368
Re: Modify video file date/tame tags (all)
« Reply #8 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).
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.