Geotagging MP4-files

Started by tinttob, November 07, 2019, 07:58:54 AM

Previous topic - Next topic

tinttob

Hi,

I am trying to geotag a video of a road where I was driving. My recording program provided me with an *.srt file, where the geodata is organized as follows:

1
00:00:00,000 --> 00:00:00,434
07 Nov 2019 08:12:16
-25,97415, 32,5939, 100,5m, 65°

2
00:00:00,435 --> 00:00:01,434
07 Nov 2019 08:12:17
-25,9741, 32,59385, 97,4m, 64°

3
00:00:01,435 --> 00:00:02,434
07 Nov 2019 08:12:18
-25,97405, 32,59379, 95,9m, 65°

I actually wrote the data in a CSV file, where the headers were: "latitude", "longitude", "elevation", "name", "time", and turned it in to a GPX-file to try this in another geotagging program, but without success. After this I started thinking whether ExifTool might be of use here.

Is there any way I can geotag a MP4-video using this data with ExifTool?

Many thanks in advance!

With best,
Tintto

Phil Harvey

Hi Tintto,

ExifTool can only write a static GPS point to video files.  Is this what you want, or are you looking to add the whole track as timed GPS in the video?

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

StarGeek

Phil, are there variations of GPS track that are simply written to a subtitle stream?  If that was the case, then FFMPeg could be used to write the .srt file to a subtitle steam.
"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

Phil Harvey

@StarGeek: That is an interesting idea, and could maybe work.

The problem is that it would have to be written using whatever technique is compatible with the software used to view the track.

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