No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
add_year_labels.sh
berlin_bezirke.geojson
download_data.sh
render.py
template.xml

README.md

Baumvideo

Project to display all of Berlin's trees by year of plantation in the form of a video.

Dependencies

The images are rendered with mapnik. You can install it via pip install mapnik.

In order to add the labels to the videos you need convert from the imagemagick tool.

In order to render the actual video ffmpeg is required.

ffmpeg and imagemagick should be available via apt or brew.

Creating the images to be rendered

./download_data.sh   # Downloads the data from the tree api and puts it into ./data
./render.py          # Renders the images with mapnik
./add_year_labels.sh # Adds the labels that show the year to the top left

Rendreing the video

ffmpeg -framerate 2 -start_number 1880 -i './rendered/%04d.png' -r 30  -pix_fmt yuv420p trees.mp4

This will create a file called trees.mp4 in your current working directory.