Tuesday, July 24, 2007 4:06 AM
by
alogan
How to build geo-tagged video in Silverlight Streaming and sync'ing a Virtual Earth map
Demo: browse here (click top left: London River Thames, Bike Cam)
Rob Blackwell wrote a how to up in the Codeplex discussion forum:
Neil rode around London with a video camera mounted on his bike - he also carried a Garmin GPS.
We took the track log from the GPS and uploaded it to the PC using EasyGPS . This gave us a file in GPX format (XML Based).
We then wrote some code that transformed the GPX file into a Expression Media Encoder Project file (also XML format). Each of the track points became a keyframe in the video with a title in the format GPS,<lat>, <lon>. We knew exactly what time the video started, so we could calculate key frame offsets by looking at the time stamp for each GPS position.
We then ran the video through Expression Media Encoder and uploaded it to the Silverlight Streaming Service.
Then, using a Silverlight video player we hooked the onMarkerReached events and, using a simple JavaScript handler, we update the Virtual Earth map whenever a key frame is reached.
The code is pretty simple - take a look at function onMarkerReached in default.aspx.js
Let me know if you use this technique to do something cool in your own app.
Rob.
--
Rob Blackwell
R&D Director
Active Web Solutions Ltd
http://www.aws.net
http://www.robblackwell.org.uk
Microsoft MVP, Windows - Virtual Earth/MapPoint