Change timestamp of images

Started by pepad89, February 14, 2023, 04:44:24 PM

Previous topic - Next topic

pepad89

Hi, please i need help with change of timestamp of 800 images. I can change date and time, but i need add 2 sec. for next images.

Ph. i have first image timestamp: 2023:01:16 12:09:01 and next image i need on: 2023:01:16 12:09:03,..... How i can do it automaticly?

This is code what i use:

"-AllDates+=0:0:2" "-DateTimeOriginal=2023:01:16 12:09:01" "-CreateDate=2023:01:16 12:09:01" -ext png "C:\Users\pc\...."

pepad89

Can i with exiftool match GPS locations (in .GPX) with images with using same time of image and location? If i can please how?

Phil Harvey

First question:  There are a number of threads which show how to do this.  Here is one.

Second question.  This is accomplished with the -geotag option.  Read here.

- 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 ($).


pepad89

#4
Quote from: Phil Harvey on February 14, 2023, 09:22:30 PMFirst question:  There are a number of threads which show how to do this.  Here is one.

Second question.  This is accomplished with the -geotag option.  Read here.

- Phil


So maybe i´m stupid, but i do it.

For other non-programmers there is a GUIDE (i´m using Insta360 pro2 camera):

Fffmpeg video extruction images = jpg
ffmpeg -i VIDEO_7152.mp4(path) -r 1 FRAMES(path output)img%d.jpg ---% spaces of photos

Convert PNG to JPG if it needed

Use exiftool to change Time of photos
exiftool -datetimeoriginal="2020:04:13 15:37:22" FRAMES(path to jpgs) - maybe u must exiftool -createdate="2020:04:13 15:37:22" FRAMES/
Increments datetimeoriginal values

exiftool -fileorder FileName -ext jpg "-datetimeoriginal+<0:0:${filesequence;$_*=2}" FRAMES/ ---- 2 is sec. for images

Next u need export GPX file from origin_6 video of Insta360 by exiftool u need downloaded file gpx.fmt

exiftool -p gpx.fmt -ee origin_6_lrv.mp4" > "C:\Users\pc\Downloads\gpx_sample30.gpx"
On WIN download GeoSetter - import jpgs files (easier way for geotag/ geotag command not work for me)
1. On the menu bar click Images > Open Folder and browse for the folder containing the images.
3. On the menu bar click View > Tracks. The tracks window opens at the bottom right of the main window.
4. On the Tracks window, click on the icon Open track file(s).
5. CTRL+A to select all images
6.EDIT > CTRL+G > CTRL+A > Shift+CTRL+S





Phil Harvey

Your steps in geosetter could be accomplished with:

exiftool -geotag "C:\Users\pc\Downloads\gpx_sample30.gpx" FRAMES/

- 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 ($).

pepad89

#6
Still not working, but in geosetter works.

C:\Users\pc>exiftool -geotag "C:\Users\pc\Downloads\gpx_sample30.gpx" "C:\Users\pc\OneDrive - ANTHONYapp s.r.o\Plocha\test5"
Warning: No track points found in GPS file 'C:\Users\pc\Downloads\gpx_sample30.gpx' in File:Geotag (ValueConvInv)
Warning: GPS track is empty in File:Geotime (ValueConvInv) - C:/Users/pc/OneDrive - ANTHONYapp s.r.o/Plocha/test5/BLUR3000001.jpg
Warning: No writable tags set from C:/Users/pc/OneDrive - ANTHONYapp s.r.o/Plocha/test5/BLUR3000001.jpg
Warning: GPS track is empty in File:Geotime (ValueConvInv) - C:/Users/pc/OneDrive - ANTHONYapp s.r.o/Plocha/test5/BLUR3000002.jpg
Warning: No writable tags set from C:/Users/pc/OneDrive - ANTHONYapp s.r.o/Plocha/test5/BLUR3000002.jpg
Warning: GPS track is empty in File:Geotime (ValueConvInv) - C:/Users/pc/OneDrive - ANTHONYapp s.r.o/Plocha/test5/BLUR3000003.jpg
Warning: No writable tags set from C:/Users/pc/OneDrive - ANTHONYapp s.r.o/Plocha/test5/BLUR3000003.jpg
    1 directories scanned
    0 image files updated
    3 image files unchanged

Strange...

Phil Harvey

I don't see how this could be the same GPX file that you used in geosetter.  Take a look at the GPX file... It must contain trkpt entries with lat/lon and time, like this:

<trkpt lat="44.5273416666667" lon="-76.6908222222222">
  <ele>159.19</ele>
  <time>2022-12-02T13:26:24Z</time>
</trkpt>

If not, then something went wrong with the command that produced the gpx file.  Be sure that the original movie contains the necessary gps information.

- 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 ($).