[OSM-talk] Script for animated GPX traces
Frederik Ramm
frederik at remote.org
Wed Aug 8 23:47:03 BST 2007
Hi,
I was very impressed by some of the eye candy on offer at SOTM,
especially Peter Miller's moving dots.
Now I don't have years of experience in the film industry to help me
create cool stuff, but I did manage to hack together a small Perl script
that takes a number of GPX traces recorded at the same time and makes an
animation from it, so you can see where people went.
I reckon this would be nice to use if you have tracks from a mapping
party - the film would then show all the various coloured dots going off
in different directions and all meeting at the pub later ;-)
Here's a demo:
http://openstreetmap.gryph.de/gpxanim/gpxanim.mpg
(I haven't managed to create this file with a frame rate less than
22fps; I would have liked 10fps or so but ffmpeg wouldn't let me)
And here's the script:
http://openstreetmap.gryph.de/gpxanim/gpxanim.pl
The script is configured by editing the first lines of Perl code, it is
fairly straightforward. It produces a lot of individual bitmaps which
you have to compile into a movie with ffmpeg or mencoder or so; you can
also choose to create an animated GIF file.
Bye
Frederik
(I wanted to put the script in OSM SVN but then again it doesn't have a
lot of OSM in it... just GPX traces and a background image... but if you
start expanding it in some cool and interesting way then we definitely
need it in SVN ;-)
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00.09' E008°23.33'
More information about the talk
mailing list