As part of my masters project I will need a way of constructing movies from single images.
I have been having some issues with ffmpeg, and totem. Totem has been screwing up files somehow....
Here is the command I am using.
ffmpeg -f image2 -r 10 -qscale 1 -i %03d.jpg i.avi
-r = frame rate
-qsacle = VBR encoding quality (1-31)
This outputs you a nice little movie. Play with the -qscale option to get the output quality you want.
This has taken me a week to do, thanks Totem and your bizarre treatment of media files.
[ add comment ] ( 2 views ) | permalink
The best bit about OSM is seeing the work you did magically appear on the OpenStreetMap website.
Here's two images, before and after of what I did Saturday morning.


Whats also great to see is how collaboration between individuals gets a lot more done.
Here is a video that I rendered from all the participants GPS tracks.
[ add comment ] | permalink | related link
Andy Robinson organised an impromptu MicroMapping party of South Birmingham this morning. We were trying to make some progress on completing the blank areas that exist south west of Birmingham. The plan is to get Birmingham completed soon, and then make a big song and dance to get publicity.
To this end, Andy Robinson (blackadder) and BrianBoru have started moving down from north and east Birmingham to my neck of the woods. So I need to get a move on with mapping my little area of Harborne & Edgbaston. As Andy, BrianBoru and Xoff are encroaching into my territory! All progess will be posted here.
There were only a few of us attending, it was a serious mapping affair we met up at a McDonald's and chose the areas we were going to map. Meeting faces of people, namely Xoff, that you know did work nearby was incredibly fun. Talking about the nooks and cranies of your stomping ground, and making plans about what to do in the future.
I was on my bicycle, with help from Alex Wilmer and his car with bike rack, was dropped off somewhere near here
I had a few run ins with locals that were suspicious of me taking photographs and generally wandering around in a strange manner, talking to them placated and confused them, but they seemed happy to let me on my way. Quite a few less aggressive people though I was doing an art project, which made me smile. I can barely draw a car, though maybe the OSM data will be used in a artistic manner, then in some small way I would have helped with an art project.
One of the joys of mapping for OSM is the discovery of places that you would of otherwise never come across. Whilst recording the local of some footpaths I came across a large open park. Now the locals obviously know it's there, but I was very excited about finding such a beautiful park.


It's hard to think your in a city at times in Birmingham with these little parks hidden all over the place.
Andy has charged me with doing the "party renders" of the mapping party. This means making a static image of all the different traces recorded by the participants, and a movie that shows how the traces were collected over time. Both will be posted here in due course, once I have got all the traces.
[ add comment ] | permalink
I've tried doing graph plotting in Linux before and found it to be a bit of a nightmare.
All I ever wanted to do was get data from a comma separated value (.csv) file and plot it.
I used Octave + Gnuplot, as Octave was designed for mathmaticians I thought it was the best tool for the job. Turns out being able to add numbers together does not give you the ability to use Octave.
Using Octave together with Gnuplot I was able to plot a graph in about 4 days. (Do not take this as a criticism of Octave, but of me.)
Thankfully inbetween times I began to learn Python and now the time has come again for me to try my hand at plotting graphs myself.
Looking in Ubuntu's repositories I found there was a Gnuplot package for python ready to install. After installing and trying the demo that came with it I managed to plot some graphs. Even better there is a csv module built into python itself.
All in all it took about an hour to get some graphs out. Whoop! Thanks Python you saved me 4 days of pulling my hair out.
Here's the code
#! /usr/bin/env python
import csv
import Gnuplot
import sys
data = sys.argv[1]
title = sys.argv[2]
results = []
f = open(data, "r")
reader = csv.reader(f)
g = Gnuplot.Gnuplot(debug=1)
g.title(title)
g('set data style lines')
for i in reader:
a = []
for j in i:
a.append(float(j))
results.append(a)
g.plot(results)
g.hardcopy(title+".ps", enhanced=1, color=1)
I plan on extending the file to do some data analysis for me (integration, linear regression etc), but that will require me learning to count a few more numbers.
Enjoy.
[ 5 comments ] ( 66 views ) | permalink
I've written about Open Street Map before. Unfortunately since that Mapping Party I have been unable to contribute due to a lack of owning a GPS device.
This has been particularly frustrating as most of my area (Harborne, B17) is almost completely barren on OSM.
OSM were exhibiting at LRL this year, and after speaking to Andy Robinson I was allowed to borrow a Garmin Geko GPS device from the Open Street Map Foundation. I knew they had a stock of GPS devices, but I didn't know they were willing to lend them out! As long as you have someone they trust to vouch for your trustworthiness they are happy to let you have one.
Using the shiny Geko I was able to map a (in my opinion) large chunk of the surrounding area.
Before

After

It took me about 4 hours worth of cycling to get all the traces, and about another 2 hours of editing in JOSM to get it all tagged. I'm very pleased with the results. Even I was impressed by how much can be done by one person.
I would like to organise a mapping party for south Birmingham, along the lines of the one that I firsts attended. If anyone wants to give me a hand just leave a comment or email me.
Update:
I had to return the Geko of course, but I have purchased my own Geko 201 from Ebay for the princely sum of £51 plus £10 P&P. Have not done any serious mapping with it yet, just need to find a spare hour or two.
[ add comment ] ( 1 view ) | permalink

Calendar



