upload-scripts icon indicating copy to clipboard operation
upload-scripts copied to clipboard

Uploading Video from Virb camera

Open hardillb opened this issue 8 years ago • 12 comments

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.

hardillb avatar Aug 22 '16 09:08 hardillb

@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

bogdan-racasan avatar Aug 22 '16 09:08 bogdan-racasan

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?

hardillb avatar Aug 22 '16 10:08 hardillb

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

bogdan-racasan avatar Aug 22 '16 10:08 bogdan-racasan

What units are videoIndex and tripFrameIndex in?

hardillb avatar Aug 22 '16 13:08 hardillb

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

bogdan-racasan avatar Aug 22 '16 13:08 bogdan-racasan

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?

hardillb avatar Aug 22 '16 14:08 hardillb

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....

bogdan-racasan avatar Aug 22 '16 14:08 bogdan-racasan

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

hardillb avatar Aug 22 '16 21:08 hardillb

Forbidden

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

bogdan-racasan avatar Aug 23 '16 07:08 bogdan-racasan

fixed

hardillb avatar Aug 23 '16 07:08 hardillb

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

bogdans-telenav avatar Jun 08 '18 09:06 bogdans-telenav

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.

bogdans-telenav avatar Feb 13 '19 11:02 bogdans-telenav