Timelapse Capture of Google's Predicted Traffic Conditions
How I made this:
- Display google maps in a browser.
- Run xwininfo, click the browser window to learn its window id.
- In zsh:
for x ({0..50}) { echo go; import -window 0x12c849a pic-$x.png; echo sleep; sleep 3 }
- Advance the google traffic time each time the console says 'sleep'.
- Display one of the frames, get crop points.
for x (*.png) { convert -crop 669x703+300+200 -quality 95 $x $x:r.jpg }
ffmpeg -r 10 -i pic-%d.jpg timelapse.flv (are there better compression settings for this kind of image?)