Inject GPS data into image sequence extracted from video

Started by jvolto, September 17, 2024, 08:23:01 AM

Previous topic - Next topic

jvolto

Hi, i'm trying to inject GPS data from a gpx file i obtained from an Insta360 X4 into an image sequence extracted from an Insta360 X4 8K 24fps video.

I'm trying to use this command:
exiftool.exe -geotag "X:\Photoscanning\Photos\Flower Road 01\gps test\VID_20240917_113856_00_016.gpx" "X:\Photoscanning\Photos\Flower Road 01\gps test\frames"
This is the output from the console i'm getting:
Warning: GPS track is empty in File:Geotime (ValueConvInv) - X:/Photoscanning/Photos/Flower Road 01/gps test/frames/gps_test_002080.jpg
Warning: No writable tags set from X:/Photoscanning/Photos/Flower Road 01/gps test/frames/gps_test_002080.jpg
    1 directories scanned
    0 image files updated
 2080 image files unchanged

From what i understand i need some way to index the image sequence and assign each single image its specific GPS coords from the GPX file. Could somebody help me with that?

jvolto

Oh also, here's the gpx file if anybody wants to mess with it.
https://drive.google.com/file/d/15XcYFb5lYnclJYOa4vOwjg7vTom8AUK9/view?usp=sharing

StarGeek

Did you add time stamps to all the individual frames?  I'm assuming you used ffmpeg to extract the frames and that does not add any timing metadata to the individual files.

See this SuperUser answer. Ignore the first part about PowerShell.

First, you need to add timestamps to all the individual frames. Skip down to the paragraph starting "But before you can increment anything". Follow that to add the starting time to all the frames.

Then skip back up to part starting "RE: DateTimeOriginal". This details how to increment the time stamp for each frame of the video.

From there, you can run your geotag command, but you may need to make sure the time is properly synced using the -GeoTime option.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype