ExifTool Forum

ExifTool => Newbies => Topic started by: tinttob on November 07, 2019, 07:58:54 AM

Title: Geotagging MP4-files
Post by: tinttob on November 07, 2019, 07:58:54 AM
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
Title: Re: Geotagging MP4-files
Post by: Phil Harvey on November 07, 2019, 08:08:08 AM
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
Title: Re: Geotagging MP4-files
Post by: StarGeek on November 07, 2019, 10:37:32 AM
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.
Title: Re: Geotagging MP4-files
Post by: Phil Harvey on November 07, 2019, 10:43:01 AM
@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