filipc
August 31, 2019, 6:49pm
1
Yesterday in good weather I recaptured and completed the grocery transport area in Sint Katelijne Waver.
But with the wrong date and time.
Now I have problems changing the date. Even with Total Commander.
Does anyone know the trick ?
It is no big deal, I can easily redo it, it is not far from here.
eesger
August 31, 2019, 8:18pm
2
I expect that you need to edit the EXIF date/time!
4004
September 1, 2019, 7:40pm
3
yep, can also be done in Windows file properties window, and supposedly mac/linux should have options.
Wish there was an option to do it on the website, of course…
filipc
September 1, 2019, 7:48pm
4
30000 times changing the properties ?
I found a program to do it, I also changed all times to 00:00
Now I am uploading a test set.
1 Like
I wrote a (linux/bash) script fragment to touch an image file with an increasing date/timestamp. The source was a (ffmpeg) decoded mp4 file at a specified framerate. I then used jhead to write the EXIF date/time fields.
I’ll dig for the script if anyone wants it.
For MacOS, you can change the modification date using the following terminal command as well:
touch -t YYYYMMDDHHMM.SS path/to/file
$1 is the first argument after the command;
I used;
ffmpeg -i $1.mp4 -loglevel quiet -vf fps=1/0.5 -qscale:v 2 -nostdin $1_%06d.jpg
This yields a stack of jpg files with an increasing filename suffix;
Now touch the first file manually so its date/time is correct. Then;
PRIOR=$1_000001.jpg
for F2C in ls -1 *.jpg|tac|head -n -1|tac
; do
touch -r “$PRIOR” -d ‘+0.5 sec’ “$F2C”
PRIOR=$F2C
done
This increments half a second per file. Then
TZ=utc jhead -mkexif -dsft *.jpg
That writes the EXIF
filipc
September 4, 2019, 7:29am
8
I think the correct exif term I should use is “date taken”.
jhead does produce the correct one. AFAIK the proper tag is Exif.Photo.DateTimeOriginal.
The GPS date/time tags are additional;
Exif.GPSInfo.GPSTimeStamp
Exif.GPSInfo.GPSDateStamp
filipc
September 4, 2019, 10:06am
10
I have my wisdom from the Windows File Explorer. I suppose Bob is right.
pbb
September 6, 2019, 5:13pm
11
I prefer to use exiftool for EXIF manipulation. To write increasing EXIF timestamps:
First set all files to the same timestamp: exiftool -datetimeoriginal="2012:07:01 07:00:00" .
Then assign increasing timestamps: exiftool "-datetimeoriginal+<0:0:${filesequence;$_*=.5}" -fileorder FileName .
It’s not a very easy to understand command, but at least it should run on any operating system without additional requirements.
pbb
September 6, 2019, 5:35pm
12
You are both right. In Explorer it’s called “Date taken”, in the official EXIF documentation it’s “Exif.Photo.DateTimeOriginal”. But it’s the same thing.
4004
September 10, 2019, 4:47pm
14
not sure if you are asking about mapillary here?
hello guys,
I also have this problem, if someone has a solution, please tell me.
thanks in advance:)
4004
September 30, 2019, 9:34pm
16
do you mean changing exif dates?
filipc
October 5, 2019, 6:42am
17
And everything is fine now, except the hours.
I use an application called gps2jpeg 4.0 to change both time and geo position when I take pictures with my action camera and the time is wrong.
tordans
September 12, 2023, 3:23am
21
Thanks for sharing. This is how I solved it…
Install exif tools with homebrew (exiftool — Homebrew Formulae )
Use this website to calculate the date/time diff Time Duration Calculator: Time between two dates/times
Or 7 years, 6 months, 20 days, 9 hours, 20 minutes
User the ExifTool Date/Time Shift Feature to update all files in a folder
Docs: ExifTool by Phil Harvey
Command exiftool "-AllDates+=7:6:20 9:20" /FOLDER
Use the Desktop uploader like always. The “.JPG_original” files are ignored.
Before:
After:
After in Finder:
2 Likes
tordans
October 15, 2023, 9:36am
22
I just learned of a better way to do this:
All GoPros with GPS store a DateTime in UTC from as part of the GPS Data.
We can use this data to overwrite the Exif data…
exiftool -overwrite_original -r "-AllDates<\${GPSDateTime}" /FOLDER
… and then manually fix the offset to UTC wich is 2h for me ATM
exiftool -overwrite_original -r "-AllDates+=0:0:00 2:00" /FOLDER
Those commands also are recursive (-r) and overwrite the existing file (not *_original files anymore).
In order to validate the times, use this command to get all the different dateTime values for a file or Folder
exiftool -DateTimeOriginal -CreateDate -ModifyDate -GPSDateTime -r /FILE_OR_FOLDER
3 Likes