Author Topic: Extracting GPS data from INSV file  (Read 1909 times)

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #30 on: October 04, 2019, 12:30:19 PM »
Hi Phil,

When I try to extract larger file (9GB) I am getting "out of Memory" error.

exiftool -ee -p "$gpsdatetime $gpslatitude $gpslongitude" -n "test.insv"> test.csv

Thanks,
Yamuna.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #31 on: October 04, 2019, 12:32:43 PM »
Could you attach the output of the -v3 command for this file?
...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 ($).

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #32 on: October 04, 2019, 01:56:25 PM »
Attached the image file.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #33 on: October 04, 2019, 01:57:32 PM »
That doesn't help as I only see the start of the output.  Also, you will need to add the LargeFileSupport option:

So try running this command and attaching the "out.txt" file (or email it to me if you want: phil at owl.phy.queensu.ca)

exiftool -api largefilesupport -v3 FILE > out.txt

Thanks.

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

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #34 on: October 04, 2019, 02:07:09 PM »
Attached. Thanks.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #35 on: October 07, 2019, 07:21:39 AM »
Unfortunately I can't figure out the problem from the verbose output.  I will need the sample file to be able to reproduce the problem.  Is there any way you could upload this to a file sharing service somewhere?  Then email me a link (phil at owl.phy.queensu.ca)

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

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #36 on: October 07, 2019, 11:30:52 AM »
Hi Phil,

I sent you the video link to download 9gb insv file.
Let me know once you download the file, i will remove the link.

Thanks,
yamuna.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #37 on: October 07, 2019, 12:12:05 PM »
Hi Yamuna,

I got the file, thanks.

The problem is simply that the file contains too much metadata to read into the limited memory space available to the Windows exe version of ExifTool (about 200 MB or so).  The file contains about 800000 accelerometer records, which is the main problem.  I'll see about limiting the number of these that ExifTool will read to work around this limitation.  It contains about 16500 GPS records, but ExifTool should be able to read all of these.

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

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #38 on: October 07, 2019, 02:07:04 PM »
Hi Phil,

I tried from Linux Virtual machine and I got into the same issue.

Thanks,
Yamuna.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #39 on: October 07, 2019, 08:57:01 PM »
I'm surprised.  At any rate, ExifTool 11.70 will fix this by not attempting to load all of the accelerometer data unless you use the -m option.

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

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #40 on: October 08, 2019, 09:42:40 AM »
Thanks Phil.
When are you planning to release version 11.70 ?


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #41 on: October 08, 2019, 09:47:10 AM »
Probably within a week.  I'm attaching the updated code which you can use to replace lib/Image/ExifTool/QuickTimeStream.pl in the Linux version to fix this in your copy before the new version comes out.

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

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #42 on: October 08, 2019, 11:29:02 AM »
Hi Phil,

I tried using that file, no error and no data.

Code: [Select]
./exiftool -api largefilesupport -ee -p "$gpstimestamp,$gpslatitude,$gpslongitude"  "rawvideos/VID_002.insv" > VID_002.csv
Thanks,
Yamuna.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15224
    • ExifTool Home Page
Re: Extracting GPS data from INSV file
« Reply #43 on: October 08, 2019, 11:31:58 AM »
1. Use single quotes on Linux.

2. Use GPSDateTime, not GPSTimeStamp

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

yamuna

  • Jr. Member
  • **
  • Posts: 13
Re: Extracting GPS data from INSV file
« Reply #44 on: October 08, 2019, 11:40:24 AM »
How to get all param names?
I tried "$latitude,$longitude"
"$gpslatitude,$gpslongitude"

all null. I think the command works but no param with the name "$gpslatitude,$gpslongitude". And the same command works from windows.

Thanks,
yamuna.