Street View from Video - the not so simple way

I bought the One X2 with the partial intention of using it to post to Street View. I was pretty disappointed to learn that the newer cameras do not have this functionality. Also pretty disappointing was the apparent lack of interest by Insta360 to retain GPS metadata on video export. Timelapse functionality is broken as well, the GPS information put into photos is from the time the video was started, and is not updated throughout the timelapse. The only method that I found to work reliably was to snap a photo every few feet while walking. I have used this method several times and it is tedious after a while.

Luckily there are tools that exist that will allow us to extract GPS data and tag extracted video frames to give us better functionality than exists currently.

The basic process follows:

  1. Record video
  2. Export stitched video from App or Studio
  3. Use exiftool to dump GPS data to gpx file
  4. Use ffmpeg to extract frames from stitched video
  5. Use exiftool to modify EXIF timestamps of extracted frames
  6. Use exiftool to add GPS data to extracted frames

I was able to find a batch file that looked like it would work, and modified it to work with the files produced by the One X2. There are enough comments in the batch file that it is mostly self-explanatory, but I am happy to try and answer any questions.

Batch file:

https://gist.github.com/bcheck555/a656bcecc351e110f5cb19faac812a38

Other links:

https://www.ffmpeg.org/

https://exiftool.org/

https://gist.github.com/Krzysiu/345c37b08d79d5f47971167e33bb2bd3