Athens 24 Hour time lapsed transit video

Mon Jan 16 05:13:55 UTC 2012

Using the data from I've made this 24 hour time-lapsed visualisation of the public transit system in Athens from Saturday 4am to Sunday 4am. The blue dots represent the metro vehicles, bus = red, trolley = yellow, tram = orange and proastiakos = green.

I made it by taking a screenshot every 5 seconds in order to check the performance of a new feature I am working on for my app and it turned out to look pretty interesting, so I used some encoding tools to create a video:

sudo ../../ ;xset b off ;xset s off ;xset -dpms ;for((i=0;;i++)) ;do import -window root $i.png ;sleep 5 ;done
for((i=9;i<=15149;i++)) ;do convert $i.png -resize 84% -crop 1280x720+6+75 $i.png ;done
for((i=9,j=1;i<=15149;i++,j++)) ;do cp -v $i.png img`printf %05d $j`.png ;done
ffmpeg -r 55 -i img%05d.png -i song.mp3 -acodec copy -s hd720 -vcodec libx264 -bf 0 -crf 16 -threads 0 -b 5000 athens.mp4