Author Topic: exiftool video performance  (Read 236 times)

Baumfaust

  • Newbie
  • *
  • Posts: 2
exiftool video performance
« on: March 23, 2019, 01:02:12 PM »
Hello folks,

I have about 50 video files here, a total of about 200 GB. Unfortunately the date of the camera was not set correctly (year 1984). Now I'm looking for a way to change the metadata of the individual files, to add an offset to the creation date, then to batch the whole thing.
So far I found exiftool for it, basically it works with the following call.

Code: [Select]
exiftool -overwrite_original "-AllDates+=35:01:26 02:24:32" -verbose 001_12_schwarz_11_blau.MOV

However, it is incredibly slow, since a copy of the file is created every time. With a 2 GB film it took 10 minutes.

Do you have another idea?


StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2569
Re: exiftool video performance
« Reply #1 on: March 23, 2019, 01:25:37 PM »
Due to the way exiftool works, it has to rewrite the file to change the data.  But it should be nearly as quick as copying the file.  Is the target file on a local disk or across a network or something similar?

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.

Baumfaust

  • Newbie
  • *
  • Posts: 2
Re: exiftool video performance
« Reply #2 on: March 23, 2019, 01:37:10 PM »
Oh ok, thanks for the info. The files are stored at a NAS, so yes its written across a network.
I guess its the wrong place to ask, but is there another tool which can change the metadata only, without rewriting the whole file?

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2569
Re: exiftool video performance
« Reply #3 on: March 23, 2019, 04:36:20 PM »
I don't know if it's possible do that safely.  But here are some other things you can check out.

HayoBaan's matchDateTime script.  He's a mod here so he might chime in as to the speed.
FFmpeg It always outputs to a new file, so that probably isn't faster.
mp4Box I haven't even checked this out so I don't know anything about it's abilities, so it might not even do what you need.
VLC I believe it does have some metadata editing abilities, though I haven't checked it out.  I'm not sure if it can be used through command line or is only through gui.
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.

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 1079
  • Professional Photographer & Software Developer
    • Hayo Baan – Photography
Re: exiftool video performance
« Reply #4 on: March 24, 2019, 07:18:06 AM »
HayoBaan's matchDateTime script.  He's a mod here so he might chime in as to the speed.

matchDateTime will really only update metadata that isn't updatable by exiftool and it too reads and writes the whole file, so this won't help in your case either.

Perhaps best is to (temporarily) copy the files to a local disk, make the necessary changes, and then write them all back.
Hayo Baan – Photography
Web: www.hayobaan.nl