Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading Video from Virb camera #14

Open
hardillb opened this issue Aug 22, 2016 · 12 comments
Open

Uploading Video from Virb camera #14

hardillb opened this issue Aug 22, 2016 · 12 comments
Assignees

Comments

@hardillb
Copy link

I've been looking at how to upload the video from my Garmin Virb camera as mentioned here. I'm struggling to work out what files the python code needs, looking in the code I can see it looking for a track.txt but I'm not sure what the format of this is supposed to be.

I have the fit and gpx files to go with the mp4 on the camera.

Any pointers would be great.

@bogdan-racasan
Copy link

bogdan-racasan commented Aug 22, 2016

@hardillb Can you send us a dropbox link with some samples video + gpx files ( this should be more easier to investigate).

track.txt protocol:
First row:
Garmin;0;1.1;0 //// this would be only for your case
Each row contains only the value that was updated any other value is left empty.
timestamp;longitude;latitude;elevation;horizontal_accuracy;GPSspeed;yaw;pitch;roll;accelerationX;accelerationY;accelerationZ;pressure;compass;videoIndex;tripFrameIndex;gravityX;gravityY;gravityZ;OBD2speed

@hardillb
Copy link
Author

It's a bit big (3.25gb) for my free dropbox account, I'll stick it up on my home web server when I get back tonight.

Do you happen to have any scripts to turn the GPX into the CSV?

@bogdan-racasan
Copy link

bogdan-racasan commented Aug 22, 2016

Not right now ... If you have any other type of transfer file it's ok for us like https://transfer.pcloud.com/

@hardillb
Copy link
Author

What units are videoIndex and tripFrameIndex in?

@bogdan-racasan
Copy link

videoIndex - the index of the video file
tripFrameIndex - current frame's index, relative to entire track.

@hardillb
Copy link
Author

yes, but is videoIndex a frame count or time in seconds?

And is tripFrameIndex a count of images since the start of the track or the video frame count?

@bogdan-racasan
Copy link

bogdan-racasan commented Aug 22, 2016

The mobile osv apps split one trip in several videos. videoIndex is the index of a video in a trip. Also on the mobile apps each video has 50 frames. For example when you start a trip you have:

  • videoIndex = 0
  • tripFrameIndex = 0

But when you have 51 images the values are:

  • videoIndex = 1
  • tripFrameIndex = 50
    And so one and so fourth....

@hardillb
Copy link
Author

Video and GPX can be found here: http://www.hardill.me.uk/openstreetview/

@bogdan-racasan
Copy link

Forbidden

You don't have permission to access /openstreetview/VIRB0135.MP4 on this server.

@hardillb
Copy link
Author

fixed

@bogdans-telenav
Copy link

@hardillb I made a script to upload VIRB data and will push it in the near future to this repo

@bogdans-telenav
Copy link

Update: we worked extensively on a new version of the scripts and we will address you suggestion on the next release. The script that i made in June is no longer compatible with the current version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants