How many Guinesses to write camm from Insta360 Pro 2?

Started by jamesworrell, December 19, 2018, 06:38:55 PM

Previous topic - Next topic

jamesworrell

Hi Phil,

I have an Insta360 Pro 2.

I want to 'hack' the GPS data - so take a GPS track from a survey-grade RTK receiver and replace the gps data embedded in the stitched video prior to sending to Google Street View.

I swear I saw the exif data a few weeks back, but can't seem to get it again.

So original question - how many Guinnesses (Guinnaeii?) to get this done?

Sample video .. https://bennettfrancis.blob.core.windows.net:443/temp/BF_Surveys_EXIF_Sample.mp4?sv=2015-04-05&sr=b&si=Read%20Only%202019&sig=VRbfqV%2FORHR2bD0wo1Qaf5m0prytaGzy5W4LqZRTDlE%3D

jamesworrell

Further info .. interestingly previous videos seem to encode slightly differently in that -ee seems to give me data ..

EXTRACT FROM PREVIOUS SAMPLE - few weeks back:

GPS Date Time : 2018:11:12 03:39:54.224301Z
GPS Measure Mode : 3-Dimensional Measurement
GPS Latitude : 26 deg 23' 4.83" S
GPS Longitude : 153 deg 5' 44.03" E
GPS Altitude : 27 m
GPS Horizontal Accuracy : 1.22000002861023
GPS Vertical Accuracy : 1.22000002861023
GPS Velocity East : 0.218192130327225
GPS Velocity North : -0.309076547622681
GPS Velocity Up : 0
GPS Speed Accuracy : 0
Sample Time : 0:07:10
Sample Duration : 0.10 s

WRT ABOVE SAMPLE:

That latest video (sample above), -ee doesn't seem to drag it out - yet the video places on Google Maps (turn on street view)
https://www.google.com/maps/@-27.4993689,153.0144763,21z


Phil Harvey

I'll take a look at this first thing tomorrow and let you know.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

#3
OK.  The next ExifTool release (11.23) will decode the streaming GPS from this video.

The problem was that the camm header contained non-zero data in the first two bytes (which should be zeros according to the specification), so ExifTool wasn't recognizing the data type.

No Guinnei required. ;)

- Phil

Oh. After going back and reading the tread title and your first post I see that you wanted to be able to write the GPS in this video.  Bad news I'm afraid... I can't drink that many Guineii! :(  If video metadata was more consistent this would be a real possibility, but with the current (completely chaotic) state of video metadata I simply don't have the time to be able to add write support for things like this.  To illustrate: This is only 1 of 20 different ways I have seen (and many more I haven't I'm sure!) that cameras store streaming GPS in videos.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jamesworrell

Thanks Phil, appreciate the problems ..

Interestingly the Insta360 guys came back .. fishing perhaps .. they pointed me your way.

"Many thanks for your trust and support for our camera, you can re-wirte the GPS info after stitched the pictures by using the exiftool, it won't affect the GSV uploading, please have a try and kindly let us know your feedback, thanks very much!"

Based on the above - I guess I could try to write the gps data to the frame - outside of the camm embed data? Is that a thing? Imagine that will confuse things so have my doubts ..

Thanks again ..

jamesworrell

And just hypothetically .. we are using this commercially and I have asked the Insta360 guys for quote for a console app or something .. but is there a figure that might make it worth your while? ;-p

Phil Harvey

ExifTool only writes XMP to MOV/MP4 files.  Other things are a huge can of worms.  I could perhaps add the ability to write something very specific, but if I did that then I would be endlessly fielding questions about why this feature doesn't work in other cases.

So the solution would be to make a dedicated version of ExifTool just for you.  This would likely take me about 3-4 days I would guess, which would be in the ballpark of $3000 at my normal consulting fee.  That is, if I could find time for it.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).