Write metadata to insv

Started by Houalef, April 11, 2024, 04:29:04 PM

Previous topic - Next topic

Houalef

Hello, i'm using exif to extract gps metadata from an insv file.
some of the output:

... other text
GPS Latitude                    : 53 deg 20' 49.45" N
GPS Longitude                   : 6 deg 13' 50.41" W
GPS Speed                       : 0.0101
GPS Track                       : 296.8327
GPS Altitude                    : 4.6107 m
... other text

now i want to add these values to an insv file that doesn't have GPS metadata.
the reason behind this:
using insta360 X3 camera with their Android application will give you a video with gps metadata but using the camera without the app (pressing the record button in the camera) will give you a video without gps metadata. Because the matadata is taken from the phone.

I have a GPX file, (or any other file needed to make this possible) and want to add it to the insv file.

Some notes:
- when i use
exiftool -api largefilesupport -ee file_location i get the GPSLatitude, GPSLongitude, GPSTrack, and GPSSpeed only if the video had gps metadata (recorded by their app).
- i used "listw" to see the writable tags in the video, and found  GPSLatitude, GPSLongitude, GPSTrack, and GPSSpeed.
- the video extention can be changed from .insv to .mp4 without any issues


i tried:
exiftool -api largefilesupport -geotag gpx_file_location insv_file_location - output :
Warning: Truncated '\x00\x02\x00\x00' data - C:/Users/MSI/Desktop/VID_20240411_201405_00_004.mp4
Warning: No writable tags set from C:/Users/MSI/Desktop/VID_20240411_201405_00_004.mp4
    0 image files updated
    1 image files unchanged

Phil Harvey

What version of ExifTool are you using?  Update to 12.82 and try this again if you are using an earlier version.  If you get an error saying "Trailer with ..." with this version, then you can add -trailer= to the command to delete the unknown trailer.

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

Houalef

#2
hi Phil, im using version 12.82, there is no "trailer" error.

Phil Harvey

OK.  In that case could you upload a file and send me a link so I can take a look?  My email is philharvey66 at gmail.com

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