Export and add back GPS info from mp4 file

Started by jparchib, October 20, 2022, 02:51:24 PM

Previous topic - Next topic

jparchib

Hi, I need to edit a 360 file created with Insta360 Pro2 cam.  The stitched file was created using the Insta360 stitcher app and have the GPS data imbeded but if I bring this file in premiere, do my edits and render back, the gps data is lost.  I was able to get the gps data using "exiftool.exe -p gpx.fmt -ee "pt2-1.mp4" > pt2-1.gpx".

But i'm not sure how to import back this data into my new edited file.  I'm also not sure if the way I use to gather the data in the first place is the correct way to put the data back in the exact same format.

Thanks for your help!

Phil Harvey

ExifTool can not write timed metadata to video files.  It may be possible using some ffmpeg trick to copy it from the original video, but I don't know how or if that could be done.

- 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

I haven't seen any program yet that can re-embed a GPS track and given the myriad of ways it can be embedded (what is it, 60 ways so far?), I have doubts that there will be unless someone comes up with a real standard to do so.
"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

Currently 61 formats decoded by ExifTool, but there are a bunch I still haven't figured out.

There is a the camm standard used by Google StreetView that would be a leading contender if the various players wanted to get together and agree on something.  But of course the Insta360 doesn't use this method.  If I ever add the ability to write this with ExifTool, I would probably start with the Google camm format.

- 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

I remember that now.

Hmmm... This page instructs that if the GPS data isn't already in the video, you would upload a GPX file.  I wonder if the processed file would contain the GPS data re-embedded.

Of course, it's probably been recompressed which to more quality loss.
"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

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