I want to export all the gyro data from a insta360 video file. like:
I tried the following:
exiftool -ee video.mp4
I get some gyro data:
Time Code : 15.070
Accelerometer : 0.031494140625 -0.8662109375 -0.500244140625
Angular Velocity : 0.721184015274048 -0.442084729671478 -0.502804815769196
Time Code : 15.072
Accelerometer : 0.03515625 -0.86083984375 -0.516357421875
Angular Velocity : 0.713727176189423 -0.399474173784256 -0.470846891403198
...
The problem is that I only get 20000 rows of gyro data. I also see the following:
Warning : [Minor] Insta360 accelerometer data is huge. Processing only the first 20000 records
Is there a way to get all the data?
Minor warnings are ignored with the -m option.
- Phil
Phil, I had the same question and when I use -m eventually I run "out of memory" when trying to write it to a file.
Is there a way to avoid it? Maybe a command that splits the data to many output files?
Thanks.
Unfortunately the way ExifTool works it loads all metadata into memory before outputting. This would work under any operating system other than Windows if you can do that. Windows unfortunately has a memory limitation for command-line applications that I don't know how to bypass.
- Phil
Thanks for the quick reply.
How about if I ask for one parameter each time and then end up with multiple outputs I can stitch together? Would that help? Is that possible with exiftool?
And just to be clear, if I run an OS other than windows on a VM this should run with no issues?
Phil, would the Perl version have this same problem on Windows?
I'm not a Windows expert.
There is a small chance that the 64-bit alternate Windows version (https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows) would have a larger memory allocation, but I wouldn't count on it.
The pure Perl version running on Windows may not have the problem, but this depends entirely on how you run Perl. I'm guessing that running Perl under Cygwin in Windows wouldn't have the problem, but just running at the DOS command line probably would.
- Phil
Running the command in Perl worked fine for me under Win64.
Thanks a lot.
Can you provide some details? What perl version, and what console did you use? How did you launch Perl?
- Phil
Heh, I was about to ask for a sample as I went through the process of installing the Windows Subsystem for Linux in order to check if that worked.