Trackmaster Forums
Combination View Flat View Tree View
Threads [ Previous | Next ]
How to: Overlay GPS Data onto Video (Solved)
toggle
How to: Overlay GPS Data onto Video (Solved)
9/10/10 5:34 AM
Foreword:
I have created an Excel file from scratch that automates every step to help you. Below you will find two links to my GoogleDocs. One is for the Excel file which has macros in it. It’s currently set up to handle 20 laps worth of data which should be plenty for any track day. If you need more then just start mimicking what I have and add additional lap tabs. Or ask me and I'll modify the file.

The second file in my GoogleDocs is the RaceChrono2AVI (RC2AVI) software that I use to animate the data. Download and install this program.

Purpose:
This setup will work with any bike and any car. It's completely wireless and only uses your Android phone and a bluetooth GPS receiver that is the size of a key fob. Thefore you can log just about anything at any time without hassle.

Background:
I wanted a cheap way to get the data overlay and was willing to put in some time and effort in order to save some coin. I found that with four programs I could accomplish what I wanted as long as I put in some effort in the beginning. Those programs are:
- My Excel File; to manipulate the data
- RC2AVI; this animates the manipulated data and saves it as an .avi file
- A video editor; I chose Corel VideoStudio ProX3, but you can use whatever you want. ProX3 can overlay up to 6 additional video tracks over the main video track so 7 video feeds in total.

My template
Before you convert any data do this:
- Rename your logged file from Trackmaster to "Trackmaster Export" and have both that file and my template open at the same time. If it's not named exactly that then the automated template will not work.

After you convert you data using my template
Right click on the .csv file and choose Open With -> NotePad. When the file opens in NotePad it’ll look like a giant brick of number with commas. In the first few lines of this file you will notice that there are a lot of extra commas. Remove all the extra commas so that there is only one comma at the end of each line. I haven’t figure out yet why this happens, but it doesn’t occur in the rest of the data. Save your changes after you remove the extra commas.

RaceChrono Software
Open the RC2AVI software. Load whatever “config” you want and choose either kmh or mph. Then click the “…” button to the right of the long white box to load your data. Go to your desktop and select the .csv file you just saved the changes to. Choose your starting lap and ending lap. Check the box for “record avi.” Now click play and let it run. FYI: do not put your mouse inside of the box outlined in yellow as it will see and record the mouse. Same thing applies for other windows. It also applies if you lock your computer. Just let it sit there and record peacefully.

Edit the video
You now have your .avi data file recorded. Just use your video editing software and match up the two video feeds. Done.
.
.
.
.
.
.
Enjoy…
RE: How to: Overlay GPS Data onto Video (Solved)
8/5/10 12:11 PM as a reply to Brian Duncan.
Awesome, Brian. Thanks for putting this together and sharing. As you alluded to, Trackmaster will soon be able to export for RaceChrono2AVI and RaceRender for a video overlay. The feature should be available in just a few weeks.

Jeff
RE: How to: Overlay GPS Data onto Video (Solved)
8/11/10 6:33 PM as a reply to Jeff Trackaroo.
FYI, I've modified my template file. I also edited my OP because the template file is now 100% automated from start to finish. Makes it super fast to pump out the data.
RE: How to: Overlay GPS Data onto Video (Solved)
8/24/10 4:11 PM as a reply to Brian Duncan.
Hi I've been trying to do this for awhile now and keep getting a error "Run-time error '9': Subscript out of range. I'm not very fimilar with Excel so I have no idea what it means.

I've renamed the trackmaster .xls to "Trackmaster Export.xls" I open it, then open your file. I use the macro "Generate All" Ctrl+Shift+E and thats the error I get. It seems to be getting the error on the first lap page. I am only using 1 lap from a AutoX. Hope you can tell me what I'm doing wrong. Thanks.
RE: How to: Overlay GPS Data onto Video (Solved)
8/25/10 12:32 PM as a reply to Boyd R Burbank.
I havent had a chance to try this out yet, bu am wondering if the rendered AVI files include an alpha channel for transparency?
RE: How to: Overlay GPS Data onto Video (Solved)
9/7/10 11:55 AM as a reply to Jeff Trackaroo.
Any updates on the export to Race Chrono to AVI alongside of allowing the video camera to run at the same time? I'd love Trackmaster to do my full DAQ gathering and video.
RE: How to: Overlay GPS Data onto Video (Solved)
9/7/10 11:59 AM as a reply to Ryan Utara.
The next Trackmaster release will be out next week. This release includes an open API that allows third party apps to read the Trackmaster data. As an example of using this open API, I'll release an open source (free) app that will allow you to convert to your track data to Race2Chrono CSV.

Jeff
RE: How to: Overlay GPS Data onto Video (Solved)
9/10/10 5:58 AM as a reply to Jeff Trackaroo.
My apologies for not seeing this sooner. I probably won't need to answer too many more questions, but if anyone in the future is in need of help then feel free to shoot me an email at dunc8484 at yahoo dot com. I'll then come back here to answer the question emoticon

Boyd R Burbank:
Hi I've been trying to do this for awhile now and keep getting a error "Run-time error '9': Subscript out of range. I'm not very fimilar with Excel so I have no idea what it means.

I've renamed the trackmaster .xls to "Trackmaster Export.xls" I open it, then open your file. I use the macro "Generate All" Ctrl+Shift+E and thats the error I get. It seems to be getting the error on the first lap page. I am only using 1 lap from a AutoX. Hope you can tell me what I'm doing wrong. Thanks.

I have slightly tweaked the macros in my file after another guy was trying to get just 1 lap from an AutoX as well. I updated the "My Excel File" link in the OP just before making this post. Use that updated file and remember to rename your exported file to "Trackmaster Export" as usual (without the quotes obviously.)

Anyways I found that the error you are encountering is due to the macro expecting to see a minimum of 2 laps. I also determined that you can only use the Ctrl+Shift+E macro to zoom through everything automatically when you are lapping with 2+ laps. If you are trying to convert only 1 lap then you need to manually step through each macro on the "Marco Listing" tab. When stepping through each macro you'll still get an error when importing the lap data. No worries though this error is nothing bad and all you data transfered before the error occured. Simply say OK to error and continue on like nothing happened. I also updated the orange text box on the "Macro Listing" tab to explain this.

Matt L Williams:
I havent had a chance to try this out yet, bu am wondering if the rendered AVI files include an alpha channel for transparency?

I'm not quite following what you're saying. If you are asking if the AVI file that is generated can have it's transparency level adjusted then yes it can be adjusted. The RC2AVI software does not adjust the transparency though....this is done when using the video editing software. I forgot to just the transparency feature when I put my video together so I'll have to do that next time.

Jeff Trackaroo:
The next Trackmaster release will be out next week. This release includes an open API that allows third party apps to read the Trackmaster data. As an example of using this open API, I'll release an open source (free) app that will allow you to convert to your track data to Race2Chrono CSV.

Jeff

Jeff, you have an email of the .csv you were looking for.
RE: How to: Overlay GPS Data onto Video (Solved)
9/13/10 10:54 AM as a reply to Jeff Trackaroo.
Jeff Trackaroo:
The next Trackmaster release will be out next week. This release includes an open API that allows third party apps to read the Trackmaster data. As an example of using this open API, I'll release an open source (free) app that will allow you to convert to your track data to Race2Chrono CSV.

Jeff




Did the ver 2.5 include the free app to convert trackmaster data to Race2Chrono CSV...? I really would like to use race2chronoavi along with trackmasters to overlay my videos with telemetry... What about the open API data extraction will be compatible with other apps like Dashware, trackvision?
RE: How to: Overlay GPS Data onto Video (Solved)
9/13/10 11:00 AM as a reply to Jon McLain.
The open API is there, but I need another week on the new app. It's taking a bit longer to create it.

Jeff
RE: How to: Overlay GPS Data onto Video (Solved)
9/17/10 4:54 AM as a reply to Jeff Trackaroo.
emoticon Patiently waiting. I played around with the RaceChrono2AVI and I really like it. ...although they need a mitsu template!
RE: How to: Overlay GPS Data onto Video (Solved)
9/30/10 8:26 PM as a reply to Ryan Utara.
RE: How to: Overlay GPS Data onto Video (Solved)
racechrono
10/30/10 4:55 PM as a reply to Jeff Trackaroo.
I've been successfully using the video export file from Trackmaster together with the RaceChrono2AVI from sessions at Watkins Glen. Thanks for the feature.

One odd thing though, a few days earlier (Oct. 5) I had a trackday at Mosport in Canada, and the video export files seem to display a very peculiar bug. The track is shown on the RaceChrono2AVI screen reversed east-to-west. In the Trackmaster app (& exported to Google Earth), the track is shown correctly. Weird. Watkins Glen was fine, Mosport is reversed!

Track from video export

Google Earth image
RE: How to: Overlay GPS Data onto Video (Solved)
10/30/10 9:08 PM as a reply to Walt Etten.
Can you attach or send your session data in Google Earth format?

Jeff
RE: How to: Overlay GPS Data onto Video (Solved)
11/4/10 2:40 AM as a reply to Jeff Trackaroo.
I'm seeing a north south and an east west transposition!

When the data plays back it shows me going around the track clockwise whereas I was actually going anti-clockwise (most of the time emoticon )

Track also seems distended.

In my case it might be a Southern hemisphere issue in the lat/long tranposition to x:y co-ordinates.

Should be fixable by negating the data in the X and Y columns in the excel sheet.

I'll have a play with it now.
RE: How to: Overlay GPS Data onto Video (Solved)
11/18/10 7:42 PM as a reply to Jeff Trackaroo.
Here's the google earth file.
Attachments: Oct520101106AM20101118_223145.zip (1,199.6k)
RE: How to: Overlay GPS Data onto Video (Solved)
11/19/10 2:25 PM as a reply to Walt Etten.
Thanks. I'll have this fixed in the next release.

Jeff
RE: How to: Overlay GPS Data onto Video (Solved)
12/12/10 3:55 AM as a reply to Jeff Trackaroo.
Hi,

Used Trackmaster for the first time (well, aside from a trial run around home) today and been very happy with it - forgot to save one session but no major loss!

I'm finding the same issue with the maps loaded into RaceChrono2AVI though - inverted east/west, though north south is fine.

I'm in Western Australia, might have something to do with it - has anyone come up with a workaround?

I tried inverting the longitude but that didn't seem to make any difference.

Thanks,

Lee

Edit: Sorry, worked it out just a few minutes later - it's the X position I needed to flip, not the longitude!

Hope this helps anyone else with the same issue.

Edit again: It's the right direction at least, but the map seems very much skewed. This may need more work emoticon
RE: How to: Overlay GPS Data onto Video (Solved)
12/12/10 7:33 AM as a reply to Lee Sowden.
This will be fixed in the next release that will be available in a few days.

Jeff
RE: How to: Overlay GPS Data onto Video (Solved)
12/19/10 10:07 PM as a reply to Jeff Trackaroo.
This has been fixed in Trackmaster v3.0. Check it out.

http://trackmaster.trackaroo.com/forums/-/message_boards/message/40451

Jeff